/**
 * Vermietung Admin CSS — css/vermietung-admin.css
 *
 * Styles für den Admin-Bereich im Vermietungsmodus.
 *
 * @package PocketBookingPro
 */

/* ===== Tab-Navigation (Einstellungen etc.) ===== */
.simpbook-tabs .nav-tab {
    cursor: pointer;
}
.simpbook-tabs .nav-tab-active {
    background: #fff;
    border-bottom-color: #fff;
}

.simpbook-tab-content {
    background: #fff;
    padding: 20px;
    border: 1px solid #c3c4c7;
    border-top: none;
    border-radius: 0 0 4px 4px;
    margin-bottom: 20px;
}

/* ===== 2-Column Postbox Layout (Unterkunft Editor) ===== */
.simpbook-columns-2 {
    display: grid !important;
    grid-template-columns: 1fr 300px;
    gap: 20px;
    align-items: start;
}

.simpbook-columns-2 #post-body-content {
    min-width: 0;
}

.simpbook-columns-2 #postbox-container-1 {
    float: none !important;
    width: auto !important;
    margin: 0 !important;
    min-width: 0;
}

.simpbook-columns-2 .postbox {
    margin-bottom: 20px;
}

.simpbook-columns-2 .postbox .hndle {
    cursor: default;
}

/* Responsive: single column on small screens */
@media screen and (max-width: 960px) {
    .simpbook-columns-2 {
        grid-template-columns: 1fr;
    }
}

/* ===== Unterkünfte-Tabelle ===== */
.simpbook-unterkuenfte-table .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

.simpbook-unterkuenfte-table td {
    vertical-align: middle;
}

/* ===== Status-Badges ===== */
.simpbook-status-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
}
.simpbook-status-bestaetigt,
.simpbook-status-bestätigt {
    background: #d4edda;
    color: #155724;
}
.simpbook-status-ausstehend {
    background: #fff3cd;
    color: #856404;
}
.simpbook-status-abgelehnt {
    background: #f8d7da;
    color: #721c24;
}
.simpbook-status-storniert {
    background: #f8d7da;
    color: #721c24;
}
.simpbook-status-eingecheckt {
    background: #cce5ff;
    color: #004085;
}
.simpbook-status-ausgecheckt {
    background: #e2e3e5;
    color: #383d41;
}

/* ===== Tags-Seite ===== */
.simpbook-tags-wrap .wp-list-table td {
    vertical-align: middle;
}

/* ===== Dashboard ===== */
.simpbook-dashboard-page .simpbook-stat-card {
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.simpbook-dashboard-page .simpbook-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 3px 8px rgba(0,0,0,.15);
}

/* ===== Zimmer CRUD ===== */
.simpbook-zimmer-row {
    border: 1px solid #dcdcde;
    border-radius: 4px;
    margin-bottom: 8px;
    background: #fff;
    transition: box-shadow 0.15s ease;
}
.simpbook-zimmer-row:hover {
    box-shadow: 0 1px 4px rgba(0,0,0,.08);
}
.simpbook-zimmer-row-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    gap: 12px;
}
.simpbook-zimmer-row-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}
.simpbook-zimmer-name {
    font-size: 14px;
}
.simpbook-zimmer-meta {
    font-size: 12px;
    color: #666;
}
.simpbook-zimmer-row-actions {
    display: flex;
    gap: 4px;
    flex-shrink: 0;
}
.simpbook-zimmer-edit-form {
    padding: 12px 14px 14px;
    border-top: 1px solid #eee;
    background: #f9f9f9;
}
#simpbook-neues-zimmer-form {
    animation: simpbookSlideIn 0.2s ease;
}
@keyframes simpbookSlideIn {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ===== Ausstattungs-Liste ===== */
.simpbook-ausstattung-item {
    display: flex;
    gap: 8px;
    margin-bottom: 5px;
    align-items: center;
}
.simpbook-ausstattung-item .button {
    min-width: 30px;
    text-align: center;
}

/* ===== Galerie-Bilder ===== */
.simpbook-galerie-bild {
    position: relative;
    display: inline-block;
}
.simpbook-galerie-bild img {
    border-radius: 4px;
    width: 80px;
    height: 80px;
    object-fit: cover;
}
.simpbook-galerie-remove {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #b32d2e;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    cursor: pointer;
    font-size: 12px;
    line-height: 18px;
}

/* ===== Delete-Button ===== */
.simpbook-delete-btn:hover .dashicons {
    color: #dc3232 !important;
}

/* ===== Responsive ===== */
@media (max-width: 782px) {
    .simpbook-dashboard-page .simpbook-dashboard-stats {
        grid-template-columns: 1fr 1fr !important;
    }
    .simpbook-dashboard-page > div[style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
    }
    .simpbook-tags-wrap > div[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
    }
}
