/* Hotel Clementina - Sistema de Gestión Hotelera */
/* Paleta de colores basada en el logo elegante */

:root {
    /* Colores principales inspirados en el logo */
    --gold-primary: #D4AF37;
    --gold-light: #F4E4BC;
    --gold-dark: #B8941F;
    --black-elegant: #1A1A1A;
    --gray-dark: #2D2D2D;
    --gray-medium: #555555;
    --gray-light: #E5E5E5;
    --cream: #FDF8E7;
    --white: #FFFFFF;
    
    /* Colores de estado - COLORES MÁS IMPACTANTES */
    --success: #28a745;
    --warning: #ffc107;
    --danger: #dc3545;
    --info: #17a2b8;
    
    /* Colores del calendario - MÁS VIBRANTES E IMPACTANTES */
    --occupied: #e53e3e;     /* Rojo más vibrante */
    --confirmed: #38a169;    /* Verde más saturado */
    --pending: #fbb040;      /* Amarillo más cálido */
    --cleaning: #805ad5;     /* Púrpura más intenso */
    --maintenance: #ff7b39;  /* Naranja más brillante */
    --available: #f7fafc;    /* Gris muy claro */
    
    /* Tipografía */
    --font-primary: 'Inter', sans-serif;
    --font-display: 'Playfair Display', serif;
    
    /* Espaciados */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-xxl: 3rem;
    
    /* Sombras */
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.15);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.2);
    
    /* Bordes */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 16px;
    
    /* Layout */
    --sidebar-width: 280px;
    --header-height: 80px;
}

/* Reset y estilos base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    background-color: var(--cream);
    color: var(--black-elegant);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: linear-gradient(135deg, var(--black-elegant) 0%, var(--gray-dark) 100%);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 var(--space-xl);
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    gap: var(--space-md);
}

.logo-section {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.hotel-logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
    border-radius: var(--radius-sm);
    background: var(--white);
    padding: 4px;
}

.logo-ornament {
    width: 50px;
    height: 50px;
    background: linear-gradient(45deg, var(--gold-primary) 0%, var(--gold-light) 100%);
    color: var(--black-elegant);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.brand-text h1 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: -4px;
    background: linear-gradient(45deg, var(--gold-primary), var(--gold-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.brand-text span {
    font-size: 0.875rem;
    color: var(--gray-light);
    font-weight: 300;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
}

.date-display {
    font-size: 0.875rem;
    color: var(--gold-light);
    font-weight: 500;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    background: rgba(212, 175, 55, 0.1);
    border-radius: var(--radius-sm);
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.user-profile i {
    font-size: 1.2rem;
    color: var(--gold-primary);
}

/* Sidebar */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(26, 26, 26, 0.5);
    z-index: 1050;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.sidebar-overlay.show {
    opacity: 1;
    visibility: visible;
}

.sidebar {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: var(--sidebar-width);
    height: calc(100vh - var(--header-height));
    background: linear-gradient(180deg, var(--white) 0%, var(--cream) 100%);
    border-right: 1px solid var(--gray-light);
    box-shadow: var(--shadow-md);
    z-index: 900;
    transition: transform 0.3s ease;
    overflow-y: auto;
}

.nav-menu {
    list-style: none;
    padding: var(--space-lg) 0;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md) var(--space-xl);
    margin: var(--space-xs) var(--space-md);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.nav-item:hover {
    background: linear-gradient(135deg, var(--gold-light) 0%, rgba(244, 228, 188, 0.5) 100%);
    transform: translateX(4px);
}

.nav-item.active {
    background: linear-gradient(135deg, var(--gold-primary) 0%, var(--gold-dark) 100%);
    color: var(--white);
    box-shadow: var(--shadow-md);
}

.nav-item i {
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

.mobile-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    color: var(--gold-primary);
    font-size: 1.25rem;
    padding: var(--space-sm);
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
}

.mobile-menu-toggle:hover {
    background: rgba(212, 175, 55, 0.1);
    color: var(--gold-light);
    transform: scale(1.1);
}

/* Main Content */
.main-content {
    margin-left: var(--sidebar-width);
    margin-top: var(--header-height);
    padding: var(--space-xxl);
    min-height: calc(100vh - var(--header-height));
}

.view {
    display: none;
}

.view.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

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

/* Page Header */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-xxl);
    padding-bottom: var(--space-lg);
    border-bottom: 2px solid var(--gold-light);
}

.page-header h2 {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 600;
    color: var(--black-elegant);
}

/* Botones */
.btn-primary {
    background: linear-gradient(135deg, var(--gold-primary) 0%, var(--gold-dark) 100%);
    color: var(--white);
    border: none;
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: var(--white);
    color: var(--black-elegant);
    border: 2px solid var(--gold-light);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-sm);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    border-color: var(--gold-primary);
    background: var(--gold-light);
}

.btn-outline {
    background: transparent;
    color: var(--gold-primary);
    border: 1px solid var(--gold-primary);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background: var(--gold-primary);
    color: var(--white);
}

.btn-icon {
    background: transparent;
    border: none;
    color: var(--gray-medium);
    cursor: pointer;
    padding: var(--space-sm);
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
}

.btn-icon:hover {
    color: var(--gold-primary);
    background: var(--gold-light);
}

.btn-icon:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Dashboard - Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-lg);
    margin-bottom: var(--space-xxl);
}

.stat-card {
    background: var(--white);
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-light);
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--gold-primary), var(--gold-light));
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--white);
    background: linear-gradient(135deg, var(--gold-primary), var(--gold-dark));
}

.stat-content {
    flex: 1;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--black-elegant);
    margin-bottom: var(--space-xs);
}

.stat-label {
    color: var(--gray-medium);
    font-size: 0.875rem;
    font-weight: 500;
}

/* Activity Section */
.activity-section {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-light);
}

.activity-section h3 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: var(--space-lg);
    color: var(--black-elegant);
}

.activity-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.activity-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    padding: var(--space-md);
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
}

.activity-item:hover {
    background: var(--cream);
}

.activity-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    color: var(--white);
}

.activity-icon.checkin { background: var(--success); }
.activity-icon.checkout { background: var(--info); }
.activity-icon.reservation { background: var(--gold-primary); }

.activity-content {
    flex: 1;
}

.activity-text {
    display: block;
    color: var(--black-elegant);
    font-weight: 500;
    margin-bottom: var(--space-xs);
}

.activity-time {
    color: var(--gray-medium);
    font-size: 0.875rem;
}

/* Calendar Controls */
.calendar-controls {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.current-period {
    font-weight: 600;
    color: var(--black-elegant);
    padding: 0 var(--space-md);
}

/* Calendar Legend */
.calendar-legend {
    display: flex;
    justify-content: center;
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
    padding: var(--space-lg);
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 0.875rem;
    font-weight: 500;
}

.legend-color {
    width: 20px;
    height: 20px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--gray-light);
}

.legend-color.occupied { background: var(--occupied); }
.legend-color.confirmed { background: var(--confirmed); }
.legend-color.pending { background: var(--pending); }
.legend-color.cleaning { background: var(--cleaning); }
.legend-color.maintenance { background: var(--maintenance); }
.legend-color.available { background: var(--available); }

/* Calendar Container */
.calendar-container {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    box-shadow: var(--shadow-md);
    border: 2px solid var(--gold-light);
    overflow-x: auto;
}

.desktop-calendar {
    display: block;
}

.mobile-rooms-list {
    display: none;
}

.calendar-grid {
    display: grid;
    grid-template-columns: 140px repeat(7, 1fr);
    gap: 3px;
    min-width: 900px;
}

.calendar-cell {
    background: var(--white);
    border: 2px solid var(--gray-light);
    padding: var(--space-md);
    min-height: 70px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    font-size: 0.875rem;
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
    position: relative;
    font-weight: 500;
}

.calendar-cell.header {
    background: linear-gradient(135deg, var(--black-elegant) 0%, var(--gray-dark) 100%);
    color: var(--white);
    font-weight: 700;
    text-transform: uppercase;
    min-height: 85px;
    border: 2px solid var(--gold-primary);
    box-shadow: var(--shadow-md);
}

.day-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.date-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gold-primary);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
    margin: 2px 0;
}

.month-name {
    font-size: 0.7rem;
    color: var(--gold-light);
    font-weight: 500;
}

.calendar-cell.room-number {
    background: linear-gradient(135deg, var(--gold-primary) 0%, var(--gold-dark) 100%);
    color: var(--white);
    font-weight: 700;
    font-size: 1.1rem;
    border: 2px solid var(--gold-dark);
    box-shadow: var(--shadow-sm);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.calendar-cell.reservation {
    cursor: pointer;
    position: relative;
    overflow: hidden;
    border-width: 2px;
}

.calendar-cell.reservation:hover {
    transform: scale(1.05);
    z-index: 10;
    box-shadow: var(--shadow-lg);
    border-color: var(--gold-primary);
}

/* Reservation states - COLORES MÁS IMPACTANTES */
.reservation.occupied {
    background: linear-gradient(135deg, var(--occupied) 0%, #c53030 100%);
    color: var(--white);
    border-color: #c53030;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(229, 62, 62, 0.3);
}

.reservation.confirmed {
    background: linear-gradient(135deg, var(--confirmed) 0%, #2f855a 100%);
    color: var(--white);
    border-color: #2f855a;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(56, 161, 105, 0.3);
}

.reservation.pending {
    background: linear-gradient(135deg, var(--pending) 0%, #ed8936 100%);
    color: var(--black-elegant);
    border-color: #ed8936;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(251, 176, 64, 0.3);
}

.reservation.cleaning {
    background: linear-gradient(135deg, var(--cleaning) 0%, #6b46c1 100%);
    color: var(--white);
    border-color: #6b46c1;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(128, 90, 213, 0.3);
}

.reservation.maintenance {
    background: linear-gradient(135deg, var(--maintenance) 0%, #f56500 100%);
    color: var(--white);
    border-color: #f56500;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(255, 123, 57, 0.3);
}

.reservation.available {
    background: var(--available);
    color: var(--gray-medium);
    border-color: var(--gray-light);
    font-weight: 500;
}

.reservation-info {
    font-size: 0.8rem;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
}

/* Mobile Room List */
.mobile-rooms-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.mobile-room-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    box-shadow: var(--shadow-sm);
    border: 2px solid var(--gold-light);
    transition: all 0.3s ease;
}

.mobile-room-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--gold-primary);
}

.mobile-room-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-md);
    padding-bottom: var(--space-sm);
    border-bottom: 1px solid var(--gold-light);
}

.mobile-room-number {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--black-elegant);
}

.mobile-room-type {
    font-size: 0.875rem;
    color: var(--gray-medium);
    font-weight: 500;
}

.mobile-current-status {
    padding: var(--space-xs) var(--space-md);
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.mobile-current-status.available { background: rgba(40, 167, 69, 0.1); color: var(--success); }
.mobile-current-status.occupied { background: rgba(229, 62, 62, 0.1); color: var(--occupied); }
.mobile-current-status.confirmed { background: rgba(56, 161, 105, 0.1); color: var(--confirmed); }
.mobile-current-status.pending { background: rgba(251, 176, 64, 0.1); color: var(--pending); }
.mobile-current-status.cleaning { background: rgba(128, 90, 213, 0.1); color: var(--cleaning); }
.mobile-current-status.maintenance { background: rgba(255, 123, 57, 0.1); color: var(--maintenance); }

.mobile-room-guest {
    font-size: 0.875rem;
    color: var(--black-elegant);
    font-weight: 600;
    margin-top: var(--space-xs);
}

.mobile-week-timeline {
    display: flex;
    gap: var(--space-xs);
    margin-top: var(--space-md);
    padding-top: var(--space-md);
    border-top: 1px solid var(--gold-light);
}

.mobile-day-slot {
    flex: 1;
    text-align: center;
    padding: var(--space-sm) var(--space-xs);
    border-radius: var(--radius-sm);
    font-size: 0.7rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid var(--gray-light);
}

.mobile-day-slot:hover {
    transform: scale(1.05);
}

.mobile-day-date {
    display: block;
    font-size: 0.6rem;
    color: var(--gray-medium);
    margin-bottom: var(--space-xs);
    text-transform: uppercase;
}

.mobile-day-status {
    display: block;
    font-weight: 700;
}

/* Status colors for mobile timeline */
.mobile-day-slot.occupied { background: linear-gradient(135deg, var(--occupied), #c53030); color: var(--white); border-color: #c53030; }
.mobile-day-slot.confirmed { background: linear-gradient(135deg, var(--confirmed), #2f855a); color: var(--white); border-color: #2f855a; }
.mobile-day-slot.pending { background: linear-gradient(135deg, var(--pending), #ed8936); color: var(--black-elegant); border-color: #ed8936; }
.mobile-day-slot.cleaning { background: linear-gradient(135deg, var(--cleaning), #6b46c1); color: var(--white); border-color: #6b46c1; }
.mobile-day-slot.maintenance { background: linear-gradient(135deg, var(--maintenance), #f56500); color: var(--white); border-color: #f56500; }
.mobile-day-slot.available { background: var(--available); color: var(--gray-medium); border-color: var(--gray-light); }

/* Rooms Filters */
.rooms-filters {
    display: flex;
    gap: var(--space-md);
}

.filter-select {
    padding: var(--space-sm) var(--space-md);
    border: 2px solid var(--gray-light);
    border-radius: var(--radius-sm);
    background: var(--white);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-select:focus {
    outline: none;
    border-color: var(--gold-primary);
}

/* Rooms Grid */
.rooms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: var(--space-lg);
}

.no-rooms-message {
    grid-column: 1 / -1;
    text-align: center;
    padding: var(--space-xxl);
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 2px dashed var(--gold-light);
    color: var(--gray-medium);
    font-size: 1.1rem;
}

.room-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-light);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.room-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--gold-primary), var(--gold-light));
}

.room-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.room-header {
    display: flex;
    justify-content: between;
    align-items: center;
    margin-bottom: var(--space-lg);
}

.room-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--black-elegant);
}

.room-status {
    padding: var(--space-xs) var(--space-md);
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.room-status.available {
    background: rgba(40, 167, 69, 0.1);
    color: var(--success);
}

.room-status.occupied {
    background: rgba(220, 53, 69, 0.1);
    color: var(--danger);
}

.room-status.cleaning {
    background: rgba(111, 66, 193, 0.1);
    color: var(--cleaning);
}

.room-status.maintenance {
    background: rgba(253, 126, 20, 0.1);
    color: var(--maintenance);
}

.room-details {
    margin-bottom: var(--space-lg);
}

.room-detail {
    display: flex;
    justify-content: space-between;
    margin-bottom: var(--space-sm);
    font-size: 0.875rem;
}

.room-detail-label {
    color: var(--gray-medium);
    font-weight: 500;
}

.room-detail-value {
    color: var(--black-elegant);
    font-weight: 600;
}

.room-actions {
    display: flex;
    gap: var(--space-sm);
}

/* Reports Grid */
.reports-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-lg);
    margin-bottom: var(--space-xxl);
}

.report-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-light);
    transition: all 0.3s ease;
}

.report-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.report-header {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.report-icon {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--gold-primary), var(--gold-dark));
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.report-header h3 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--black-elegant);
}

.report-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.report-metric {
    flex: 1;
}

.metric-value {
    display: block;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--black-elegant);
    margin-bottom: var(--space-xs);
}

.metric-label {
    color: var(--gray-medium);
    font-size: 0.875rem;
    font-weight: 500;
}

.report-actions {
    display: flex;
    gap: var(--space-sm);
}

/* Recent Reports */
.recent-reports {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-light);
}

.recent-reports h3 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: var(--space-lg);
    color: var(--black-elegant);
}

.reports-table {
    overflow-x: auto;
}

.reports-table table {
    width: 100%;
    border-collapse: collapse;
}

.reports-table th,
.reports-table td {
    text-align: left;
    padding: var(--space-md);
    border-bottom: 1px solid var(--gray-light);
}

.reports-table th {
    font-weight: 600;
    color: var(--black-elegant);
    background: var(--cream);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.reports-table td {
    font-size: 0.875rem;
    color: var(--gray-medium);
}

.status {
    padding: var(--space-xs) var(--space-md);
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status.completed {
    background: rgba(40, 167, 69, 0.1);
    color: var(--success);
}

.status.processing {
    background: rgba(255, 193, 7, 0.1);
    color: var(--warning);
}

/* Maintenance System Styles */
.maintenance-filters {
    display: flex;
    gap: var(--space-sm);
    margin-bottom: var(--space-xl);
    flex-wrap: wrap;
}

.filter-btn {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-lg);
    border: 2px solid var(--border-color);
    background: var(--background-page);
    color: var(--text-secondary);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.filter-btn:hover {
    border-color: var(--primary-color);
    background: rgba(212, 175, 55, 0.1);
    color: var(--primary-color);
}

.filter-btn.active {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: var(--white);
}

.maintenance-orders {
    background: var(--background-card);
    padding: var(--space-xl);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    margin-bottom: var(--space-xl);
}

.maintenance-orders h3 {
    margin-bottom: var(--space-lg);
    color: var(--text-color);
    border-left: 4px solid var(--primary-color);
    padding-left: var(--space-md);
}

.orders-table {
    overflow-x: auto;
}

.orders-table table {
    width: 100%;
    border-collapse: collapse;
}

.orders-table th,
.orders-table td {
    padding: var(--space-md);
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.orders-table th {
    background: var(--background-page);
    color: var(--text-color);
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.orders-table tr:hover {
    background: rgba(212, 175, 55, 0.05);
}

/* Priority and Status Badges */
.priority {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.priority.low {
    background: rgba(40, 167, 69, 0.1);
    color: #28a745;
}

.priority.medium {
    background: rgba(255, 193, 7, 0.1);
    color: #ffc107;
}

.priority.high {
    background: rgba(255, 87, 34, 0.1);
    color: #ff5722;
}

.status-maintenance {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-maintenance.pending {
    background: rgba(108, 117, 125, 0.1);
    color: #6c757d;
}

.status-maintenance.in-progress {
    background: rgba(0, 123, 255, 0.1);
    color: #007bff;
}

.status-maintenance.completed {
    background: rgba(40, 167, 69, 0.1);
    color: #28a745;
}

.status-maintenance.urgent {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
    animation: pulse 2s infinite;
}

/* Maintenance Stats Cards */
.stat-card.pending {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
}

.stat-card.progress {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
}

.stat-card.urgent {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    animation: pulse 3s infinite;
}

/* Maintenance Form Modal */
.maintenance-modal {
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
}

.maintenance-form {
    padding: var(--space-md);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
    align-items: start;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    margin-bottom: var(--space-sm);
    color: var(--text-color);
    font-weight: 600;
    font-size: 0.875rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: var(--space-md);
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 0.875rem;
    background: var(--background-page);
    color: var(--text-color);
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

/* Required field indicator */
.form-group label::after {
    content: '';
}

.form-group label:has(+ input[required])::after,
.form-group label:has(+ select[required])::after,
.form-group label:has(+ textarea[required])::after {
    content: ' *';
    color: #dc3545;
}

/* Responsive Design */
@media (min-width: 769px) {
    .sidebar-overlay {
        display: none;
    }
    
    /* Hide mobile calendar in desktop */
    .mobile-rooms-list {
        display: none;
    }
}

@media (max-width: 1024px) {
    :root {
        --sidebar-width: 250px;
    }
    
    .main-content {
        padding: var(--space-lg);
    }
    
    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
    
    .page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-md);
    }
}

@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        width: 85%;
        max-width: 300px;
        z-index: 1100;
        box-shadow: var(--shadow-lg);
    }
    
    .sidebar.mobile-open {
        transform: translateX(0);
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .sidebar-overlay {
        display: block;
    }
    
    .main-content {
        margin-left: 0;
        padding: var(--space-md);
    }
    
    .header {
        padding: 0 var(--space-lg);
        gap: var(--space-sm);
    }
    
    .header {
        padding: 0 var(--space-lg) 0 var(--space-lg);
        gap: var(--space-md);
    }
    
    .hotel-logo {
        width: 50px;
        height: 50px;
    }
    
    .brand-text h1 {
        font-size: 1.25rem;
    }
    
    .brand-text span {
        display: none;
    }
    
    .logo-section {
        flex: 1;
        justify-content: center;
    }
    
    .header-actions {
        gap: var(--space-sm);
    }
    
    .user-profile span {
        display: none;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .calendar-legend {
        gap: var(--space-sm);
        justify-content: flex-start;
        overflow-x: auto;
    }
    
    .rooms-grid {
        grid-template-columns: 1fr;
    }
    
    .reports-grid {
        grid-template-columns: 1fr;
    }
    
    .report-actions {
        flex-direction: column;
    }
    
    .calendar-controls {
        flex-direction: column;
        gap: var(--space-sm);
    }
    
    .maintenance-filters {
        justify-content: flex-start;
        overflow-x: auto;
        gap: var(--space-xs);
    }
    
    .filter-btn {
        white-space: nowrap;
        min-width: fit-content;
    }
    
    .orders-table {
        font-size: 0.875rem;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }
    
    .maintenance-modal {
        max-width: 95vw;
        margin: var(--space-md);
    }
    
    .current-period {
        font-size: 0.875rem;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 0 var(--space-md) 0 50px;
    }
    
    .hotel-logo {
        width: 40px;
        height: 40px;
    }
    
    .logo-ornament {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }
    
    .brand-text h1 {
        font-size: 1.1rem;
    }
    
    .main-content {
        padding: var(--space-sm);
    }
    
    .page-header h2 {
        font-size: 1.5rem;
    }
    
    .stat-card {
        padding: var(--space-lg);
        flex-direction: column;
        text-align: center;
        gap: var(--space-md);
    }
    
    .stat-icon {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
    
    .stat-number {
        font-size: 1.75rem;
    }
    
    .calendar-container {
        padding: var(--space-sm);
    }
    
    .calendar-grid {
        grid-template-columns: 120px repeat(7, 90px);
        gap: 2px;
        min-width: 850px;
    }
    
    .calendar-cell {
        min-height: 60px;
        font-size: 0.75rem;
        padding: var(--space-sm);
    }
    
    .calendar-cell.header {
        min-height: 75px;
    }
    
    .date-number {
        font-size: 1.2rem;
    }
    
    .month-name {
        font-size: 0.6rem;
    }
    
    .room-card {
        padding: var(--space-lg);
    }
    
    .room-actions {
        flex-direction: column;
    }
    
    .maintenance-filters {
        flex-direction: column;
        gap: var(--space-xs);
    }
    
    .filter-btn {
        justify-content: center;
        padding: var(--space-md);
    }
    
    .orders-table th,
    .orders-table td {
        padding: var(--space-sm);
        font-size: 0.75rem;
    }
    
    .priority,
    .status-maintenance {
        padding: 2px 8px;
        font-size: 0.6rem;
    }
    
    .maintenance-modal {
        max-width: 95vw;
        max-height: 95vh;
    }
    
    .form-grid {
        gap: var(--space-sm);
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: var(--space-sm);
        font-size: 0.875rem;
    }
    
    /* Mobile calendar redesign - show room list instead of grid */
    .calendar-grid {
        display: none;
    }
    
    .mobile-rooms-list {
        display: block;
    }
    
    .mobile-room-card {
        background: rgba(255, 255, 255, 0.95);
        border-radius: var(--border-radius);
        margin-bottom: var(--space-md);
        padding: var(--space-lg);
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        border-left: 4px solid var(--primary-color);
    }
    
    .mobile-room-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: var(--space-sm);
    }
    
    .mobile-room-number {
        font-size: 1.25rem;
        font-weight: 600;
        color: var(--text-color);
    }
    
    .mobile-room-type {
        font-size: 0.875rem;
        color: var(--text-secondary);
        background: var(--background-card);
        padding: 4px 8px;
        border-radius: 4px;
    }
    
    .mobile-room-timeline {
        display: flex;
        align-items: center;
        gap: var(--space-xs);
        margin-bottom: var(--space-sm);
    }
    
    .timeline-day {
        flex: 1;
        text-align: center;
        padding: 8px 4px;
        border-radius: 4px;
        font-size: 0.75rem;
        border: 1px solid var(--border-color);
        background: var(--background-page);
    }
    
    .timeline-day.occupied {
        background: #ff6b6b;
        color: white;
        border-color: #ff5757;
    }
    
    .timeline-day.available {
        background: #51cf66;
        color: white;
        border-color: #40c057;
    }
    
    .timeline-day.maintenance {
        background: #ffd43b;
        color: var(--text-color);
        border-color: #fcc419;
    }
    
    .mobile-room-status {
        display: flex;
        justify-content: space-between;
        align-items: center;
        font-size: 0.875rem;
    }
    
    .mobile-status-badge {
        padding: 4px 12px;
        border-radius: 20px;
        font-size: 0.75rem;
        font-weight: 500;
    }
    
    .mobile-status-badge.available {
        background: #d3f9d8;
        color: #37b24d;
    }
    
    .mobile-status-badge.occupied {
        background: #ffe0e6;
        color: #e03131;
    }
    
    .mobile-status-badge.maintenance {
        background: #fff4e6;
        color: #fd7e14;
    }
}

/* Loading animation */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.loading {
    animation: pulse 1.5s infinite;
}

/* Smooth transitions */
* {
    transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, opacity 0.3s ease;
}

/* Focus states for accessibility */
button:focus,
select:focus {
    outline: 2px solid var(--gold-primary);
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .sidebar,
    .header,
    .btn-primary,
    .btn-secondary,
    .btn-outline,
    .btn-icon,
    .modal-overlay {
        display: none !important;
    }
    
    .main-content {
        margin: 0;
        padding: 0;
    }
    
    .view {
        display: block !important;
    }
}

/* Modal System */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(26, 26, 26, 0.8);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.modal-container {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 3px solid var(--gold-primary);
    min-width: 400px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow: hidden;
    transform: scale(0.7);
    transition: transform 0.3s ease;
}

.modal-overlay.show .modal-container {
    transform: scale(1);
}

.modal-header {
    background: linear-gradient(135deg, var(--black-elegant) 0%, var(--gray-dark) 100%);
    color: var(--white);
    padding: var(--space-lg) var(--space-xl);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid var(--gold-primary);
}

.modal-header h3 {
    margin: 0;
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    background: linear-gradient(45deg, var(--gold-primary), var(--gold-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.modal-close {
    background: transparent;
    border: none;
    color: var(--gold-light);
    font-size: 1.25rem;
    cursor: pointer;
    padding: var(--space-sm);
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: rgba(212, 175, 55, 0.2);
    color: var(--gold-primary);
    transform: scale(1.1);
}

.modal-body {
    padding: var(--space-xl);
    color: var(--black-elegant);
    line-height: 1.6;
    font-size: 1rem;
}

.modal-body p {
    margin: 0 0 var(--space-md) 0;
}

.modal-body p:last-child {
    margin-bottom: 0;
}

.modal-body .detail-list {
    background: var(--cream);
    padding: var(--space-lg);
    border-radius: var(--radius-md);
    margin-top: var(--space-md);
    border-left: 4px solid var(--gold-primary);
}

.modal-body .detail-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: var(--space-sm);
    align-items: center;
}

.modal-body .detail-item:last-child {
    margin-bottom: 0;
}

.modal-body .detail-label {
    font-weight: 600;
    color: var(--gray-medium);
}

.modal-body .detail-value {
    font-weight: 700;
    color: var(--black-elegant);
}

.modal-body .highlight {
    color: var(--gold-dark);
    font-weight: 600;
}

.modal-footer {
    padding: var(--space-lg) var(--space-xl);
    background: var(--cream);
    border-top: 1px solid var(--gold-light);
    display: flex;
    justify-content: flex-end;
    gap: var(--space-md);
}

.modal-footer .btn-secondary {
    background: var(--white);
    color: var(--gray-medium);
    border: 2px solid var(--gray-light);
}

.modal-footer .btn-secondary:hover {
    border-color: var(--gray-medium);
    color: var(--black-elegant);
}

/* Modal animations */
@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.7);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes modalFadeOut {
    from {
        opacity: 1;
        transform: scale(1);
    }
    to {
        opacity: 0;
        transform: scale(0.7);
    }
}

/* Mobile modal adjustments */
@media (max-width: 768px) {
    .modal-container {
        min-width: 300px;
        width: 95%;
        max-height: 85vh;
        margin: var(--space-md);
    }
    
    .modal-header {
        padding: var(--space-md) var(--space-lg);
    }
    
    .modal-header h3 {
        font-size: 1.1rem;
    }
    
    .modal-body {
        padding: var(--space-lg);
        font-size: 0.9rem;
    }
    
    .modal-footer {
        padding: var(--space-md) var(--space-lg);
        flex-direction: column;
        gap: var(--space-sm);
    }
    
    .modal-footer .btn-primary,
    .modal-footer .btn-secondary {
        width: 100%;
        justify-content: center;
    }
    
    .modal-body .detail-list {
        padding: var(--space-md);
    }
    
    .modal-body .detail-item {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-xs);
    }
}

@media (max-width: 480px) {
    .modal-container {
        min-width: 280px;
        width: 98%;
        max-height: 90vh;
    }
    
    .modal-header {
        padding: var(--space-sm) var(--space-md);
    }
    
    .modal-header h3 {
        font-size: 1rem;
    }
    
    .modal-close {
        width: 30px;
        height: 30px;
        font-size: 1rem;
    }
    
    .modal-body {
        padding: var(--space-md);
        font-size: 0.875rem;
    }
    
    .modal-footer {
        padding: var(--space-sm) var(--space-md);
    }
}