/* Floor View Page - Beautiful Desktop & Mobile Design */

.floor-view-section {
    padding: 40px 20px;
    background: linear-gradient(to bottom, #f8f9fa 0%, #ffffff 100%);
    min-height: 70vh;
}

.floor-view-section .container {
    max-width: 1600px;
}

/* Search Container */
.search-container {
    max-width: 800px;
    margin: 0 auto 40px;
    background: white;
    padding: 25px;
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.search-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.search-input-container {
    position: relative;
    display: flex;
    align-items: center;
    background: #f8f9fa;
    border-radius: 50px;
    padding: 5px 10px;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
}

.search-input-container:focus-within {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.search-icon {
    font-size: 1.3rem;
    margin: 0 10px;
}

.search-input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 15px 10px;
    font-size: 1.05rem;
    outline: none;
    font-family: 'Vazirmatn', sans-serif;
}

.search-button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.search-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.search-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.clear-button {
    background: #f44336;
    color: white;
    padding: 12px 25px;
    border-radius: 25px;
    font-weight: 700;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.clear-button:hover {
    background: #d32f2f;
    text-decoration: none;
}

.search-results-info {
    margin-top: 15px;
    padding: 12px 20px;
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border-radius: 15px;
    border-left: 4px solid #2196F3;
    font-weight: 600;
    color: #1565c0;
}

/* Floor Container */
.floor-container {
    margin-bottom: 50px;
    background: white;
    border-radius: 25px;
    padding: 35px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    transition: all 0.4s ease;
    border: 1px solid #e9ecef;
}

.floor-container:hover {
    box-shadow: 0 15px 50px rgba(0,0,0,0.12);
    transform: translateY(-3px);
}

/* Floor Header */
.floor-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    color: white;
    padding: 35px;
    border-radius: 20px;
    margin-bottom: 35px;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.floor-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.floor-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin: 0;
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
    letter-spacing: 1px;
}

.floor-title::before {
    content: '🏢';
    margin-left: 15px;
    font-size: 2.3rem;
}

/* Rooms Grid - Compact 2-Column Layout (Same as Teacher Classes) */
.rooms-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 768px) {
    .rooms-grid {
        grid-template-columns: repeat(1, 1fr);
        gap: 15px;
    }
}


/* Room Card - Compact Design (Same as Teacher Classes) */
.room-card {
    background: white;
    border: 3px solid #e9ecef;
    border-radius: 20px;
    padding: 28px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

@media (max-width: 768px) {
    .room-card {
        padding: 12px;
        border-radius: 12px;
    }
}

.room-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, #e9ecef 0%, #dee2e6 100%);
    transition: all 0.3s ease;
}

/* Room with Active Class */
.room-card.has-class {
    border: none;
    background: linear-gradient(135deg, #ffffff 0%, #e8f5e9 100%);
    box-shadow: 0 5px 25px rgba(76, 175, 80, 0.2);
}

.room-card.has-class::before {
    background: linear-gradient(90deg, #4CAF50 0%, #45a049 100%);
    height: 6px;
}

.room-card.has-class:hover {
    box-shadow: 0 12px 40px rgba(76, 175, 80, 0.3);
    transform: translateY(-8px) scale(1.02);
}

/* Room with Student-Reported Cancellation */
.room-card.student-cancelled {
    border: none;
    background: linear-gradient(135deg, #ffffff 0%, #ffebee 100%);
    box-shadow: 0 5px 25px rgba(244, 67, 54, 0.25);
}

.room-card.student-cancelled::before {
    background: linear-gradient(90deg, #f44336 0%, #d32f2f 100%);
    height: 6px;
}

.room-card.student-cancelled:hover {
    box-shadow: 0 12px 40px rgba(244, 67, 54, 0.35);
    transform: translateY(-8px) scale(1.02);
}

/* Room Class Not Held */
.room-card.not-held {
    border: none;
    background: linear-gradient(135deg, #ffffff 0%, #fff3e0 100%);
    box-shadow: 0 5px 25px rgba(255, 152, 0, 0.2);
}

.room-card.not-held::before {
    background: linear-gradient(90deg, #FF9800 0%, #f57c00 100%);
    height: 6px;
}

.room-card.not-held:hover {
    box-shadow: 0 12px 40px rgba(255, 152, 0, 0.3);
    transform: translateY(-8px) scale(1.02);
}

/* Room Class Held Online */
.room-card.held-online {
    border: none;
    background: linear-gradient(135deg, #ffffff 0%, #e3f2fd 100%);
    box-shadow: 0 5px 25px rgba(33, 150, 243, 0.2);
}

.room-card.held-online::before {
    background: linear-gradient(90deg, #2196F3 0%, #1976D2 100%);
    height: 6px;
}

.room-card.held-online:hover {
    box-shadow: 0 12px 40px rgba(33, 150, 243, 0.3);
    transform: translateY(-8px) scale(1.02);
}

/* Empty Room */
.room-card.empty-room-card {
    opacity: 0.5;
    border-color: #e0e0e0;
    border-style: dashed;
    background: #fafafa;
}

.room-card.empty-room-card:hover {
    opacity: 0.7;
    transform: translateY(-3px);
}

.room-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(0,0,0,0.15);
}

/* Room Header - Compact (Same as Teacher Classes) */
.room-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

.room-header.held-online-header {
    border-bottom-color: #17a2b8;
}

@media (max-width: 768px) {
    .room-header {
        margin-bottom: 10px;
        padding-bottom: 8px;
    }
}

/* Room Number - Compact (Same as Teacher Classes) */
.room-number {
    font-size: 1.1rem;
    font-weight: 800;
    color: #1e3c72;
    margin-bottom: 8px;
    line-height: 1.3;
}

@media (max-width: 768px) {
    .room-number {
        font-size: 1rem;
        margin-bottom: 6px;
    }
}

.room-type {
    font-size: 0.85rem;
    color: #666;
    font-weight: 600;
    background: #f8f9fa;
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
}

.room-location {
    font-size: 0.85rem;
    color: #4a5568;
    margin-top: 6px;
    font-weight: 600;
}

@media (max-width: 768px) {
    .room-type {
        font-size: 0.8rem;
        padding: 3px 10px;
    }
}

/* Room Body - Same as Teacher Classes */
.room-body {
    margin-top: 15px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Class Info - Compact Spacing (Same as Teacher Classes) */
.class-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

@media (max-width: 768px) {
    .class-info {
        gap: 6px;
    }
}

/* Info Row - Compact (Same as Teacher Classes) */
.info-row {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 0.9rem;
    color: #495057;
    padding: 6px 0;
}

@media (max-width: 768px) {
    .info-row {
        gap: 6px;
        padding: 5px 0;
        font-size: 0.85rem;
    }
}

/* Info Label - Compact (Same as Teacher Classes) */
.info-label {
    font-weight: 700;
    color: #495057;
    min-width: 75px;
    font-size: 0.85rem;
}

@media (max-width: 768px) {
    .info-label {
        min-width: auto;
        font-size: 0.8rem;
    }
}

.info-value {
    color: #212529;
    font-weight: 600;
    flex: 1;
}

/* Course Name - Compact (Same as Teacher Classes) */
.course-name-large {
    font-size: 1.1rem;
    font-weight: 800;
    color: #1e3c72;
    margin-bottom: 8px;
    line-height: 1.3;
}

@media (max-width: 768px) {
    .course-name-large {
        font-size: 1rem;
        margin-bottom: 6px;
    }
}

/* Teacher Name - Compact (Same as Teacher Classes) */
.teacher-name-large {
    font-size: 0.95rem;
    font-weight: 700;
    color: #2a5298;
}

@media (max-width: 768px) {
    .teacher-name-large {
        font-size: 0.85rem;
    }
}

.faculty-name {
    font-weight: 600;
    color: #667eea !important;
    background: linear-gradient(135deg, #667eea20 0%, #764ba220 100%);
    padding: 4px 12px;
    border-radius: 8px;
    display: inline-block;
}

/* Corridor Side Indicator - Compact (Same as Teacher Classes) */
.corridor-indicator {
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 6px;
    background: linear-gradient(135deg, #28a74520 0%, #20c99720 100%);
    color: #28a745 !important;
    display: inline-block;
}

/* Capacity Badge - Compact (Same as Teacher Classes) */

/* Holding Status - Compact (Same as Teacher Classes) */
.holding-status {
    margin-top: 15px;
    padding: 14px;
    border-radius: 15px;
    text-align: center;
    font-weight: 700;
    font-size: 1rem;
}

.holding-status.held {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
    border: 2px solid #28a745;
}

.holding-status.held-online {
    background: linear-gradient(135deg, #d1ecf1 0%, #bee5eb 100%);
    color: #0c5460;
    border: 2px solid #17a2b8;
}

.holding-status.not-held {
    background: linear-gradient(135deg, #fff3cd 0%, #ffe69c 100%);
    color: #856404;
    border: 2px solid #ffc107;
}

.holding-status.student-cancelled {
    background: linear-gradient(135deg, #ffcdd2 0%, #ef9a9a 100%);
    color: #c62828;
    border: 2px solid #f44336;
    font-weight: 800;
}

/* Compensatory Button (green, replacing report issue when available) */
.compensatory-btn {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    font-weight: 700;
    cursor: pointer;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.compensatory-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.35);
}

/* Exam Info Button - Light Olive Green */
.exam-info-btn {
    background: linear-gradient(135deg, #50a5ff 0%, #2963bd 100%);
    color: #ffffff;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    font-weight: 700;
    cursor: pointer;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(156, 175, 136, 0.35);
}

.exam-info-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(156, 175, 136, 0.45);
    background: linear-gradient(135deg, #50a5ff 0%, #2963bd 100%);
}

.action-buttons-group {
    display: flex;
    gap: 10px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

/* Exam Info Modal Styles */
.exam-info-body {
    padding: 20px;
    min-height: 0;
    box-sizing: border-box;
    width: 100%;
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
}

.class-info-body {
    background: linear-gradient(135deg, #f8f9fa 0%, #f1f3f5 100%);
    border-radius: 16px;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
}

.class-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 18px;
    box-sizing: border-box;
    width: 100%;
    align-items: start;
}

.exam-info {
    box-sizing: border-box;
    width: 100%;
    display: block;
    margin-top: 18px;
    padding-top: 0;
}

/* Keep 2 columns on all screen sizes - responsive gap instead */
@media (max-width: 768px) {
    .class-info-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    
    .exam-info-body {
        padding: 15px;
    }
}

/* Very small screens - still 2 columns but smaller gap */
@media (max-width: 480px) {
    .class-info-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }
    
    .class-info-card {
        padding: 10px 8px;
        font-size: 0.9em;
    }
    
    .exam-info-body {
        padding: 12px;
    }
    
    .exam-info-item {
        padding: 12px;
        margin-bottom: 15px;
    }
}

.class-info-card {
    background: #ffffff;
    border-radius: 12px;
    min-width: 0; /* Allow flex shrinking */
    overflow: hidden; /* Prevent content overflow */
    padding: 12px 14px;
    border: 1px solid #e9ecef;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

.class-info-card .exam-info-label {
    margin-bottom: 6px;
    display: block;
    flex-shrink: 0;
}

.class-info-card .exam-info-value {
    background: #fdfdfd;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
    display: block;
    width: 100%;
    min-width: 0;
}

.exam-info-extra {
    margin-top: 6px;
    visibility: visible !important;
    opacity: 1 !important;
    display: flex !important;
}

.exam-info-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
    border-right: 4px solid #9CAF88;
    box-sizing: border-box;
    width: 100%;
    visibility: visible;
    opacity: 1;
    position: relative;
}

.exam-info-item:last-child {
    margin-bottom: 0;
}

.exam-info-label {
    font-weight: 700;
    color: #495057;
    font-size: 0.95rem;
    margin-bottom: 5px;
}

.exam-info-value {
    font-size: 1.05rem;
    color: #1e3c72;
    font-weight: 600;
    padding: 8px 12px;
    background: white;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    min-height: 20px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
    display: block;
    width: 100%;
    box-sizing: border-box;
}

.exam-info-value:empty::before {
    content: '—';
    color: #adb5bd;
    font-weight: 400;
}

.compensatory-modal-body .makeup-card {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    padding: 12px 14px;
    margin-bottom: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.compensatory-modal-body .makeup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 6px;
}

.compensatory-modal-body .makeup-title {
    font-weight: 800;
    color: #28a745;
}

.compensatory-modal-body .makeup-replace-date {
    font-size: 0.85rem;
    color: #555;
}


/* Admin Controls */
.admin-controls {
    margin-top: 8px;
    padding: 8px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

.admin-buttons {
    display: flex;
    gap: 6px;
    margin-bottom: 4px;
}

.admin-btn {
    flex: 1;
    padding: 8px 10px;
    border: none;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-family: 'Vazirmatn', sans-serif;
}

.admin-btn.hold-btn {
    background: linear-gradient(135deg, #e8f5e8 0%, #c8e6c9 100%);
    color: #2e7d32;
    border: 1px solid #4caf50;
}

.admin-btn.hold-btn:hover {
    background: linear-gradient(135deg, #c8e6c9 0%, #a5d6a7 100%);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3);
}

.admin-btn.hold-btn.active {
    background: linear-gradient(135deg, #4caf50 0%, #45a049 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.4);
}

.admin-btn.not-hold-btn {
    background: linear-gradient(135deg, #fff3e0 0%, #ffcc02 100%);
    color: #f57c00;
    border: 1px solid #ff9800;
}

.admin-btn.not-hold-btn:hover {
    background: linear-gradient(135deg, #ffcc02 0%, #ffb300 100%);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(255, 152, 0, 0.3);
}

.admin-btn.not-hold-btn.active {
    background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(255, 152, 0, 0.4);
}

.admin-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

.admin-info {
    text-align: center;
    font-size: 9px;
    color: #6c757d;
    font-style: italic;
}


/* Announcement Box */
.announcement-box {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border: 2px solid #2196F3;
    border-radius: 20px;
    padding: 25px 30px;
    margin-bottom: 40px;
    box-shadow: 0 5px 20px rgba(33, 150, 243, 0.15);
}

.announcement-title {
    font-size: 1.6rem;
    font-weight: 800;
    color: #1565c0;
        margin-bottom: 15px;
    display: flex;
        align-items: center;
    gap: 10px;
}

.announcement-content {
    font-size: 1.05rem;
    color: #0d47a1;
    line-height: 1.8;
    margin-bottom: 15px;
}

.announcement-steps {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin: 15px 0;
}

.announcement-steps ol {
    margin: 0;
    padding-right: 25px;
}

.announcement-steps li {
    margin: 10px 0;
    font-weight: 600;
    color: #1976D2;
}

.announcement-warning {
    background: linear-gradient(135deg, #fff3cd 0%, #ffe69c 100%);
    border: 2px solid #ffc107;
    border-radius: 12px;
    padding: 15px 20px;
    margin-top: 15px;
    font-weight: 700;
    color: #856404;
        text-align: center;
}

/* Empty Room */
.empty-room {
    text-align: center;
    color: #999;
    font-style: italic;
    padding: 40px 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 15px;
    font-size: 1.05rem;
    opacity: 0.7;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.empty-room-icon {
    max-width: 180px;
    width: 100%;
    height: auto;
    opacity: 0.6;
}

.empty-room-text {
    display: block;
}

/* No Results Message */
.no-results {
    text-align: center;
    padding: 80px 20px;
    background: white;
    border-radius: 25px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.no-results-icon {
    font-size: 5rem;
    margin-bottom: 20px;
    opacity: 0.5;
    display: flex;
    justify-content: center;
    align-items: center;
}

.no-results-icon img {
    max-width: 300px;
    width: 100%;
    height: auto;
    opacity: 0.8;
}

.no-results h2 {
    font-size: 2rem;
    color: #495057;
    margin-bottom: 15px;
}

.no-results p {
    font-size: 1.2rem;
    color: #6c757d;
}

/* Page Header Improvements */
.page-header {
    background: linear-gradient(135deg, #00040b 0%, #2963bd 70%, #00040b 100%);
    padding: 50px 20px;
    box-shadow: 0 5px 25px rgba(102, 126, 234, 0.3);
}

/* Header Search Container */
.header-search-container {
    max-width: 600px;
    margin: 25px auto;
    width: 100%;
    position: relative;
    z-index: 100;
}


.header-search-form {
    width: 100%;
}

/* Header Search Input Wrapper - Glass Style */
.header-search-input-wrapper {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 50px;
    padding: 8px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    transition: all 0.3s ease;
}

.header-search-input-wrapper:focus-within {
    background: rgba(255, 255, 255, 0.35);
    border-color: rgba(255, 255, 255, 0.6);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.2);
}

.header-search-input {
    flex: 1;
    border: none;
    background: transparent;
    color: white;
    font-size: 1rem;
    padding: 10px 0;
    outline: none;
    font-family: 'Vazirmatn', sans-serif;
}

.header-search-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.header-search-icon {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-search-icon .search-icon-svg {
    width: 1.2rem;
    height: 1.2rem;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
    opacity: 0.9;
}

.header-clear-btn {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 1.2rem;
    padding: 5px 10px;
    border-radius: 50%;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
}

.header-clear-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.header-search-results {
    margin-top: 15px;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 15px;
    color: white;
    font-weight: 600;
}

/* Autocomplete suggestions for floor view */
.header-search-form {
    position: relative !important;
    overflow: visible !important;
    z-index: 100;
}

.header-search-form .teacher-suggestions {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    left: 0;
    margin-top: 0;
    z-index: 10000;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(2, 6, 23, 0.1);
    max-height: 320px;
    overflow-y: auto;
    overflow-x: visible;
    display: none;
}

.header-search-form .teacher-suggestions.show {
    display: block !important;
}

/* Suggestion item styling - consolidated */
.teacher-suggestions .suggestion-item,
.header-search-form .teacher-suggestions .suggestion-item {
    padding: 12px 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    border-bottom: 1px solid #f0f0f0;
    background: #ffffff;
}

.teacher-suggestions .suggestion-item:first-child,
.header-search-form .teacher-suggestions .suggestion-item:first-child {
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

.teacher-suggestions .suggestion-item:last-child,
.header-search-form .teacher-suggestions .suggestion-item:last-child {
    border-bottom: none;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
}

.teacher-suggestions .suggestion-item:hover,
.header-search-form .teacher-suggestions .suggestion-item:hover {
    background: #f8f9fa;
    border-color: #dee2e6;
}

.teacher-suggestions .suggestion-content,
.header-search-form .teacher-suggestions .suggestion-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.teacher-suggestions .suggestion-text,
.header-search-form .teacher-suggestions .suggestion-text {
    color: #212529;
    font-weight: 600;
    font-size: 1rem;
    line-height: 1.5;
    display: block;
    word-wrap: break-word;
}

.teacher-suggestions .suggestion-meta,
.header-search-form .teacher-suggestions .suggestion-meta {
    font-size: 0.875rem;
    color: #6c757d;
    margin-top: 0;
    font-weight: 400;
    display: block;
    line-height: 1.4;
}

/* Page Subtitle Grid - Glass Style */
.page-subtitle-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 30px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 20px;
    padding: 25px;
    position: relative;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.grid-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.grid-label {
    font-size: 0.9rem;
    color: #495057;
    font-weight: 600;
}

.grid-value {
    font-size: 1.3rem;
    color: #1e3c72;
    font-weight: 700;
}

.grid-top-right {
    grid-column: 2;
    grid-row: 1;
}

.grid-top-left {
    grid-column: 1;
    grid-row: 1;
}

.grid-bottom-right {
    grid-column: 2;
    grid-row: 2;
}

.grid-bottom-left {
    grid-column: 1;
    grid-row: 2;
}

@media (max-width: 768px) {
    .header-search-container {
        width: 90% !important;
        max-width: 90% !important;
        margin: 20px auto !important;
    }
    
    .header-search-input-wrapper {
        padding: 6px 15px;
        border-radius: 25px;
        width: 100%;
    }
    
    .header-search-input {
        font-size: 0.9rem;
        padding: 8px 0;
    }
    
    .header-search-form .teacher-suggestions {
        width: 100%;
        right: 0;
        left: 0;
    }
    
    .page-subtitle-grid {
        padding: 20px;
        gap: 12px;
    }
    
    .grid-value {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .header-search-container {
        width: 95% !important;
        max-width: 95% !important;
        margin: 15px auto !important;
    }
    
    .header-search-input-wrapper {
        padding: 5px 12px;
        width: 100%;
    }
    
    .header-search-input {
        font-size: 0.85rem;
        padding: 6px 0;
    }
    
    .header-search-form .teacher-suggestions {
        width: 100%;
        right: 0;
        left: 0;
        max-height: 250px;
    }
    
    .page-subtitle-grid {
        padding: 15px;
        gap: 10px;
    }
    
    .grid-label {
        font-size: 0.85rem;
    }
    
    .grid-value {
        font-size: 1rem;
    }
}

.page-title {
    font-size: 2.8rem;
    margin-bottom: 12px;
}

.page-subtitle {
    font-size: 1.3rem;
    opacity: 0.95;
    margin-bottom: 20px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 15px;
    background: rgba(255, 255, 255, 0.2);
    padding: 10px 25px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 1.05rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.back-link:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateX(5px);
}

/* Page Header Responsive */
@media (max-width: 768px) {
    .page-header {
        padding: 35px 15px;
    }
    
    .page-title {
        font-size: 1.6rem;
    }
    
    .page-subtitle {
        font-size: 1rem;
    }
    
    .back-link {
        font-size: 0.9rem;
        padding: 8px 20px;
    }
}

@media (max-width: 480px) {
    .page-header {
        padding: 25px 12px;
    }
    
    .page-title {
        font-size: 1.3rem;
    }
    
    .page-subtitle {
        font-size: 0.9rem;
    }
}

/* Remove old desktop/tablet specific styles - now using fixed 2-column layout */

/* Mobile - Already styled in specific sections above */

@media (max-width: 480px) {
    .rooms-grid {
        gap: 15px;
    }
    
    .floor-container {
        padding: 12px;
    }
    
    .floor-title {
        font-size: 1.2rem;
    }
    
    .announcement-box {
        padding: 15px;
    }
    
    .announcement-title {
        font-size: 1.1rem;
        flex-direction: column;
        gap: 8px;
    }
    
    .announcement-content {
        font-size: 0.85rem;
    }
    
    .announcement-steps {
        padding: 12px;
    }
    
    .announcement-steps li {
        font-size: 0.85rem;
        margin: 8px 0;
    }
    
    .announcement-warning {
        font-size: 0.8rem;
        padding: 10px;
    }
}

/* Animation on Load */
.room-card {
    animation: fadeInUp 0.6s ease-out backwards;
}

.room-card:nth-child(1) { animation-delay: 0.1s; }
.room-card:nth-child(2) { animation-delay: 0.15s; }
.room-card:nth-child(3) { animation-delay: 0.2s; }
.room-card:nth-child(4) { animation-delay: 0.25s; }
.room-card:nth-child(5) { animation-delay: 0.3s; }
.room-card:nth-child(6) { animation-delay: 0.35s; }

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

.floor-container {
    animation: slideIn 0.8s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}
