/* Hotel Management Tab Styles */

.hotel-tabs {
    margin-top: 15px;
}

.hotel-tabs .nav-tabs {
    background: rgba(255, 255, 255, 0.9);
    padding: 10px 10px 0 10px;
    border-radius: 10px 10px 0 0;
    backdrop-filter: blur(10px);
}

.hotel-tabs .nav-link {
    color: #495057;
    font-weight: 500;
    padding: 10px 20px;
    margin-right: 5px;
    border: 1px solid transparent;
    border-bottom: none;
    transition: all 0.3s ease;
}

.hotel-tabs .nav-link:hover {
    background: rgba(102, 126, 234, 0.05);
    color: #667eea;
}

.hotel-tabs .nav-link.active {
    background: rgba(102, 126, 234, 0.1) !important;
    color: #667eea;
    font-weight: 600;
    border-color: #dee2e6 #dee2e6 #fff #dee2e6;
}

.hotel-tabs .nav-link i {
    margin-right: 5px;
}

.tab-content {
    min-height: 500px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.95) !important;
    border: 1px solid #dee2e6;
    border-top: none;
    border-radius: 0 0 10px 10px;
    backdrop-filter: blur(10px);
}

.tab-pane {
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Contract Tab Specific */
.contract-tab-container .card-header {
    background-color: rgba(13, 110, 253, 0.95) !important;
    color: white !important;
}

.contract-tab-container .card-header h6 {
    color: white !important;
    font-weight: 600 !important;
}

.contract-tab-container .card-header .btn-light {
    background-color: white !important;
    color: #333 !important;
}

/* BoardType Tab Specific */
.boardtype-tab-container .card-header {
    background-color: rgba(220, 53, 69, 0.95) !important;
    color: white !important;
}

/* Room Tab Specific */
.room-tab-container .card-header {
    background-color: rgba(25, 135, 84, 0.95) !important;
    color: white !important;
}

/* Season Tab Specific */
.season-tab-container .card-header {
    background-color: rgba(255, 193, 7, 0.95) !important;
    color: #000 !important;
}

/* Period Tab Specific */
.period-tab-container .card-header {
    background-color: rgba(13, 202, 240, 0.95) !important;
    color: #000 !important;
}

/* Quota Tab Specific */
.quota-tab-container .card-header {
    background-color: rgba(111, 66, 193, 0.95) !important;
    color: white !important;
}

/* Price Tab Specific */
.price-tab-container .card-header {
    background-color: rgba(23, 162, 184, 0.95) !important;
    color: white !important;
}

/* Markup Tab Specific */
.markup-tab-container .card-header {
    background-color: rgba(108, 117, 125, 0.95) !important;
    color: white !important;
}

/* Aksiyon Tab Specific */
.aksiyon-tab-container .card-header {
    background-color: rgba(255, 102, 0, 0.95) !important;
    color: white !important;
}

/* StopSale Tab Specific */
.stopsale-tab-container .card-header {
    background-color: rgba(220, 53, 69, 0.95) !important;
    color: white !important;
}

/* FreeSale Tab Specific */
.freesale-tab-container .card-header {
    background-color: rgba(25, 135, 84, 0.95) !important;
    color: white !important;
}

/* RelDate Tab Specific */
.reldate-tab-container .card-header {
    background-color: rgba(102, 16, 242, 0.95) !important;
    color: white !important;
}

/* Extra Tab Specific */
.extra-tab-container .card-header {
    background-color: rgba(253, 126, 20, 0.95) !important;
    color: white !important;
}

/* Common Tab Styles */
.tab-container .table-responsive {
    margin-top: 20px;
}

.tab-container .table thead {
    background-color: #343a40;
    color: white;
}

.tab-container .btn-sm {
    margin: 2px;
}

.tab-container .alert {
    margin-top: 15px;
}

/* Loading Spinner */
.loading-spinner {
    text-align: center;
    padding: 50px;
}

.loading-spinner .spinner-border {
    width: 3rem;
    height: 3rem;
}

/* Hotel Selector */
.card-primary.card-outline {
    border-top: 3px solid #007bff;
}

/* Compact Table Styles - Make tables smaller */
.tab-container table.table {
    font-size: 0.875rem; /* Smaller text */
}

.tab-container table.table th,
.tab-container table.table td {
    padding: 0.4rem 0.5rem; /* Reduced padding */
    vertical-align: middle;
}

.tab-container table.table thead th {
    font-size: 0.875rem;
    font-weight: 600;
    padding: 0.5rem 0.5rem;
}

.tab-container table.table-sm th,
.tab-container table.table-sm td {
    padding: 0.3rem 0.4rem; /* Even smaller for table-sm */
    font-size: 0.8125rem;
}

.tab-container .btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.8125rem;
}

.tab-container .form-control-sm,
.tab-container .form-select-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
}

/* Compact card headers */
.tab-container .card-header h6 {
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hotel-tabs .nav-link {
        padding: 8px 12px;
        font-size: 0.875rem;
    }
    
    .hotel-tabs .nav-link i {
        display: block;
        margin: 0 auto 5px;
    }
    
    .tab-content {
        padding: 15px;
    }
    
    .tab-container table.table {
        font-size: 0.75rem;
    }
    
    .tab-container table.table th,
    .tab-container table.table td {
        padding: 0.3rem 0.4rem;
    }
}
