/* Global Styles */
:root {
    --primary-color: #3498db;
    --secondary-color: #2c3e50;
    --success-color: #2ecc71;
    --warning-color: #f39c12;
    --danger-color: #e74c3c;
    --info-color: #17a2b8;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    color: #333;
    background-color: #f8f9fa;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    margin-bottom: 1rem;
}

/* Navigation */
.navbar-brand {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
}

.navbar-nav .nav-link {
    font-weight: 500;
    transition: color 0.3s ease;
}

    .navbar-nav .nav-link:hover {
        color: rgba(255, 255, 255, 0.8) !important;
    }

/* Cards */
.card {
    border: none;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

    .card:hover {
        transform: translateY(-2px);
        box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    }

.card-header {
    border-bottom: 1px solid rgba(0, 0, 0, 0.125);
    font-weight: 600;
}

.room-card .card-header {
    border-top-left-radius: 0.5rem !important;
    border-top-right-radius: 0.5rem !important;
}

/* Buttons */
.btn {
    border-radius: 0.375rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, #2980b9 100%);
    border: none;
}

    .btn-primary:hover {
        background: linear-gradient(135deg, #2980b9 0%, #1f6aa5 100%);
        transform: translateY(-1px);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    }

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
}

    .btn-outline-primary:hover {
        background: var(--primary-color);
        color: white;
        transform: translateY(-1px);
    }

.btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1.1rem;
}

.btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-bottom-left-radius: 2rem;
    border-bottom-right-radius: 2rem;
    margin-bottom: 3rem;
}

    .hero-section .display-4 {
        font-weight: 700;
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    }

    .hero-section .lead {
        font-size: 1.25rem;
        opacity: 0.9;
    }

/* Statistics */
.stat-card {
    background: white;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.125);
}

    .stat-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    }

    .stat-card i {
        transition: transform 0.3s ease;
    }

    .stat-card:hover i {
        transform: scale(1.1);
    }

/* Forms */
.form-control, .form-select {
    border-radius: 0.375rem;
    padding: 0.75rem 1rem;
    border: 1px solid #ced4da;
    transition: all 0.3s ease;
}

    .form-control:focus, .form-select:focus {
        border-color: var(--primary-color);
        box-shadow: 0 0 0 0.2rem rgba(52, 152, 219, 0.25);
        transform: translateY(-1px);
    }

.form-label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}

.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Badges */
.badge {
    font-weight: 500;
    padding: 0.5em 0.75em;
}

    .badge.bg-primary {
        background: linear-gradient(135deg, var(--primary-color) 0%, #2980b9 100%) !important;
    }

/* Tables */
.table {
    border-radius: 0.5rem;
    overflow: hidden;
}

    .table th {
        font-family: 'Montserrat', sans-serif;
        font-weight: 600;
        background: linear-gradient(135deg, var(--primary-color) 0%, #2980b9 100%);
        color: white;
        border: none;
        padding: 1rem;
    }

    .table td {
        padding: 1rem;
        vertical-align: middle;
    }

.table-hover tbody tr:hover {
    background-color: rgba(52, 152, 219, 0.1);
    transform: scale(1.01);
    transition: all 0.2s ease;
}

/* Navigation Tabs */
.nav-tabs .nav-link {
    border: none;
    border-bottom: 3px solid transparent;
    font-weight: 500;
    color: var(--dark-color);
    padding: 1rem 1.5rem;
    transition: all 0.3s ease;
}

    .nav-tabs .nav-link.active {
        border-bottom: 3px solid var(--primary-color);
        color: var(--primary-color);
        background: transparent;
    }

    .nav-tabs .nav-link:hover {
        border-bottom: 3px solid rgba(52, 152, 219, 0.5);
    }

/* Alerts */
.alert {
    border: none;
    border-radius: 0.5rem;
    padding: 1rem 1.5rem;
}

.alert-success {
    background: linear-gradient(135deg, var(--success-color) 0%, #27ae60 100%);
    color: white;
}

.alert-danger {
    background: linear-gradient(135deg, var(--danger-color) 0%, #c0392b 100%);
    color: white;
}

.alert-warning {
    background: linear-gradient(135deg, var(--warning-color) 0%, #e67e22 100%);
    color: white;
}

.alert-info {
    background: linear-gradient(135deg, var(--info-color) 0%, #2c9cc9 100%);
    color: white;
}

/* Dropdowns */
.dropdown-menu {
    border: none;
    border-radius: 0.5rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    padding: 0.5rem;
}

.dropdown-item {
    border-radius: 0.375rem;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
}

    .dropdown-item:hover {
        background: var(--primary-color);
        color: white;
        transform: translateX(5px);
    }

/* Modal */
.modal-content {
    border: none;
    border-radius: 0.5rem;
}

.modal-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, #2980b9 100%);
    color: white;
    border-top-left-radius: 0.5rem !important;
    border-top-right-radius: 0.5rem !important;
}

/* Loading Spinner */
.loading-spinner {
    display: inline-block;
    width: 2rem;
    height: 2rem;
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

.slide-in {
    animation: slideIn 0.5s ease-out;
}

.bounce {
    animation: bounce 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        transform: translateX(-100%);
    }

    to {
        transform: translateX(0);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }
}

/* Room Features */
.room-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.feature-badge {
    background: rgba(52, 152, 219, 0.1);
    border: 1px solid rgba(52, 152, 219, 0.2);
    color: var(--primary-color);
    padding: 0.375rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.875rem;
    font-weight: 500;
}

/* Booking Status */
.booking-status {
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    font-weight: 500;
}

.status-confirmed {
    background: rgba(46, 204, 113, 0.1);
    color: var(--success-color);
    border: 1px solid rgba(46, 204, 113, 0.2);
}

.status-cancelled {
    background: rgba(231, 76, 60, 0.1);
    color: var(--danger-color);
    border: 1px solid rgba(231, 76, 60, 0.2);
}

.status-pending {
    background: rgba(243, 156, 18, 0.1);
    color: var(--warning-color);
    border: 1px solid rgba(243, 156, 18, 0.2);
}

/* Custom Utilities */
.text-gradient {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.shadow-hover {
    transition: box-shadow 0.3s ease;
}

    .shadow-hover:hover {
        box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
    }

.border-gradient {
    border: 2px solid transparent;
    background: linear-gradient(white, white) padding-box, linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%) border-box;
}

/* Footer */
.footer {
    margin-top: auto;
    background: var(--light-color);
    border-top: 1px solid #dee2e6;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section .display-4 {
        font-size: 2.5rem;
    }

    .hero-section .lead {
        font-size: 1.1rem;
    }

    .stat-card {
        margin-bottom: 1rem;
    }

    .table-responsive {
        font-size: 0.875rem;
    }

    .btn-group .btn {
        margin-bottom: 0.5rem;
    }

    .navbar-brand {
        font-size: 1.25rem;
    }
}

@media (max-width: 576px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .card-body {
        padding: 1rem;
    }

    .table th, .table td {
        padding: 0.75rem 0.5rem;
    }

    .nav-tabs .nav-link {
        padding: 0.75rem 1rem;
        font-size: 0.875rem;
    }
}

/* Print Styles */
@media print {
    .navbar, .footer, .btn, .no-print {
        display: none !important;
    }

    .card {
        border: 1px solid #000 !important;
        box-shadow: none !important;
    }

    .table {
        page-break-inside: avoid;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    :root {
        --primary-color: #64b5f6;
        --secondary-color: #90caf9;
        --success-color: #81c784;
        --warning-color: #ffb74d;
        --danger-color: #e57373;
        --info-color: #4fc3f7;
        --light-color: #424242;
        --dark-color: #f5f5f5;
    }

    body {
        background-color: #121212;
        color: #e0e0e0;
    }

    .card {
        background-color: #1e1e1e;
        color: #e0e0e0;
    }

    .table {
        color: #e0e0e0;
    }

    .form-control, .form-select {
        background-color: #2d2d2d;
        border-color: #404040;
        color: #e0e0e0;
    }

        .form-control:focus, .form-select:focus {
            background-color: #2d2d2d;
            color: #e0e0e0;
        }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .btn {
        border: 2px solid currentColor;
    }

    .form-control, .form-select {
        border: 2px solid currentColor;
    }

    .card {
        border: 2px solid var(--primary-color);
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .card:hover, .btn:hover, .stat-card:hover {
        transform: none !important;
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

    ::-webkit-scrollbar-thumb:hover {
        background: #2980b9;
    }

/* Selection Color */
::selection {
    background: var(--primary-color);
    color: white;
}

::-moz-selection {
    background: var(--primary-color);
    color: white;
}

/* Focus Styles */
.btn:focus, .form-control:focus, .form-select:focus, .form-check-input:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    backdrop-filter: blur(5px);
}

.loading-overlay-content {
    text-align: center;
    color: white;
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 1050;
}

.toast {
    background: white;
    border: none;
    border-radius: 0.5rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    margin-bottom: 1rem;
}

.toast-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, #2980b9 100%);
    color: white;
    border-top-left-radius: 0.5rem;
    border-top-right-radius: 0.5rem;
}

/* Custom Checkbox and Radio */
.form-check-input {
    width: 1.2em;
    height: 1.2em;
    margin-top: 0.15em;
}

    .form-check-input:focus {
        box-shadow: 0 0 0 0.2rem rgba(52, 152, 219, 0.25);
    }

/* Progress Bars */
.progress {
    height: 0.5rem;
    border-radius: 0.25rem;
    background: #e9ecef;
}

.progress-bar {
    background: linear-gradient(135deg, var(--primary-color) 0%, #2980b9 100%);
    border-radius: 0.25rem;
}

/* Tooltips */
.tooltip {
    --bs-tooltip-bg: var(--primary-color);
    --bs-tooltip-color: white;
}

/* Badge Variants */
.badge-online {
    background: var(--success-color);
    color: white;
}

.badge-offline {
    background: var(--danger-color);
    color: white;
}

.badge-busy {
    background: var(--warning-color);
    color: white;
}

/* Room Display Section Styles */
#roomDisplaySection {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 1rem;
}

    #roomDisplaySection.highlight {
        animation: highlightSection 2s ease;
    }

@keyframes highlightSection {
    0% {
        background-color: #f8f9fa;
    }

    50% {
        background-color: #e3f2fd;
    }

    100% {
        background-color: #f8f9fa;
    }
}

.room-display-preview {
    position: relative;
    overflow: hidden;
    border-radius: 0.5rem 0.5rem 0 0;
}

.room-preview-content {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.room-status .badge {
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
}

.room-features-preview i {
    transition: all 0.3s ease;
    opacity: 0.8;
}

    .room-features-preview i:hover {
        opacity: 1;
        transform: scale(1.2);
    }

/* Scroll to top button */
#scrollToTopBtn {
    transition: all 0.3s ease;
}

    #scrollToTopBtn:hover {
        transform: translateY(-2px);
    }

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .room-display-card,
    #scrollToRoomDisplay,
    #scrollToTopBtn {
        transition: none;
    }
}

/* Keyboard navigation hint */
.keyboard-hint {
    position: fixed;
    bottom: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    z-index: 1000;
    animation: fadeIn 0.5s ease;
}

/* Room display grid animations */
.room-display-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .room-display-grid {
        grid-template-columns: 1fr;
    }

    .room-preview-content h4 {
        font-size: 1.2rem;
    }

    .room-features-preview {
        font-size: 1rem;
    }
}

/* Print styles for room displays */
@media print {
    .room-display-card {
        break-inside: avoid;
        page-break-inside: avoid;
    }

    .room-display-preview {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}

/* ==========================================================================
   ROOM DISPLAY SPECIFIC STYLES - AUTO REFRESH
   ========================================================================== */

/* Room Display Container */
.room-display {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 0;
    position: relative;
}

/* Room Header */
.room-header {
    padding: 2rem;
    text-align: center;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

    .room-header h1 {
        font-size: 2.5rem;
        font-weight: 700;
        margin-bottom: 0.5rem;
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    }

.room-capacity {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 1rem;
}

/* Current Booking Section */
.current-booking {
    padding: 2rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 1rem;
    margin: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.booking-in-progress {
    text-align: center;
}

    .booking-in-progress h2 {
        color: #ff6b6b;
        margin-bottom: 1.5rem;
    }

.booking-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.booking-time {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.booking-organizer {
    font-size: 1rem;
    margin-bottom: 1rem;
    opacity: 0.8;
}

.booking-description {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    opacity: 0.7;
    font-style: italic;
}

.booking-progress {
    margin-top: 2rem;
}

.progress-bar {
    height: 8px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #ff6b6b, #ee5a52);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.progress-time {
    display: flex;
    justify-content: space-between;
    margin-top: 0.5rem;
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Room Available State */
.room-available {
    text-align: center;
}

    .room-available h2 {
        color: #2ecc71;
        margin-bottom: 1rem;
    }

    .room-available p {
        font-size: 1.1rem;
        margin-bottom: 1.5rem;
        opacity: 0.9;
    }

.next-booking-info {
    background: rgba(52, 152, 219, 0.2);
    padding: 1rem;
    border-radius: 0.5rem;
    border-left: 4px solid #3498db;
    margin-top: 1rem;
}

.time-until {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.3rem 0.6rem;
    border-radius: 0.3rem;
    font-size: 0.9rem;
    margin-left: 0.5rem;
}

/* Scrollable Content Area */
.scrollable-content {
    max-height: 50vh;
    overflow-y: auto;
    padding: 1rem;
    margin: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Content Sections */
.content-section {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

    .section-header h3 {
        margin: 0;
        font-size: 1.3rem;
        color: #fff;
    }

/* Booking Lists */
.simple-booking-list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.booking-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

    .booking-item:hover {
        background: rgba(255, 255, 255, 0.1);
        transform: translateX(5px);
    }

    .booking-item.current {
        background: rgba(46, 204, 113, 0.1);
        border-left: 4px solid #2ecc71;
    }

    .booking-item.past {
        background: rgba(149, 165, 166, 0.1);
        border-left: 4px solid #95a5a6;
        opacity: 0.7;
    }

    .booking-item.upcoming {
        background: rgba(52, 152, 219, 0.1);
        border-left: 4px solid #3498db;
    }

.booking-time {
    min-width: 100px;
    text-align: center;
    padding: 0 1rem;
}

.time-range {
    font-weight: 600;
    font-size: 0.95rem;
}

.duration {
    font-size: 0.8rem;
    opacity: 0.7;
    margin-top: 0.2rem;
}

.date {
    font-size: 0.8rem;
    opacity: 0.7;
    margin-bottom: 0.2rem;
}

.booking-info {
    flex: 1;
    margin: 0 1rem;
}

.booking-title {
    font-weight: 600;
    margin-bottom: 0.3rem;
    font-size: 1rem;
}

.booking-organizer {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-bottom: 0.3rem;
}

.booking-description {
    font-size: 0.85rem;
    opacity: 0.6;
    font-style: italic;
}

.booking-status {
    min-width: 100px;
    text-align: center;
}

.status-badge {
    padding: 0.3rem 0.6rem;
    border-radius: 0.3rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 0.5rem;
}

    .status-badge.now {
        background: #2ecc71;
        color: white;
    }

    .status-badge.completed {
        background: #95a5a6;
        color: white;
    }

    .status-badge.upcoming {
        background: #3498db;
        color: white;
    }

.mini-progress {
    width: 60px;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    overflow: hidden;
    margin: 0.3rem auto 0;
}

.mini-progress-bar {
    width: 100%;
    height: 100%;
}

.mini-progress-fill {
    height: 100%;
    background: #2ecc71;
    border-radius: 2px;
    transition: width 0.3s ease;
}

/* No Bookings State */
.no-bookings {
    text-align: center;
    padding: 2rem;
    color: rgba(255, 255, 255, 0.5);
    font-style: italic;
}

/* Room Info Grid */
.room-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.info-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.info-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 0.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    font-size: 1.2rem;
}

.info-content {
    flex: 1;
}

.info-label {
    font-size: 0.8rem;
    opacity: 0.7;
    margin-bottom: 0.2rem;
}

.info-value {
    font-weight: 600;
}

.feature-available {
    color: #2ecc71;
    font-weight: 600;
}

.feature-unavailable {
    color: #e74c3c;
    font-weight: 600;
}

/* Quick Actions */
.quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.action-card {
    display: flex;
    align-items: center;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    cursor: pointer;
}

    .action-card:hover {
        background: rgba(255, 255, 255, 0.1);
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }

    .action-card.primary {
        background: rgba(255, 255, 255, 0.9);
        color: #2c3e50;
        border: none;
    }

        .action-card.primary:hover {
            background: white;
        }

    .action-card.secondary {
        background: transparent;
        border-color: rgba(255, 255, 255, 0.3);
    }

.action-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 0.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    font-size: 1.2rem;
}

.action-card.primary .action-icon {
    background: rgba(44, 62, 80, 0.1);
}

.action-content {
    flex: 1;
}

.action-title {
    font-weight: 600;
    margin-bottom: 0.2rem;
}

.action-card.primary .action-title {
    color: #2c3e50;
}

.action-description {
    font-size: 0.8rem;
    opacity: 0.7;
}

.action-card.primary .action-description {
    color: #7f8c8d;
}

.action-arrow {
    opacity: 0.5;
    font-size: 0.9rem;
}

.action-card.primary .action-arrow {
    color: #95a5a6;
}

/* System Status */
.system-status-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.status-card {
    display: flex;
    align-items: center;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
}

.status-indicator {
    width: 12px;
    height: 12px;
    background: #2ecc71;
    border-radius: 50%;
    margin-right: 1rem;
    animation: pulse 2s infinite;
}

.status-card.error .status-indicator {
    background: #e74c3c;
    animation: pulse 1s infinite;
}

.status-card.refreshing .status-indicator {
    background: #f39c12;
    animation: spin 1s linear infinite;
}

.status-content {
    flex: 1;
}

.status-title {
    font-size: 0.8rem;
    opacity: 0.7;
    margin-bottom: 0.2rem;
}

.status-value {
    font-weight: 600;
}

    .status-value.success {
        color: #2ecc71;
    }

    .status-value.error {
        color: #e74c3c;
    }

    .status-value.refreshing {
        color: #f39c12;
    }

.status-icon {
    opacity: 0.3;
    font-size: 1.2rem;
}

/* Room Footer */
.room-footer {
    padding: 1.5rem 2rem;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.current-time {
    font-size: 0.9rem;
    opacity: 0.8;
}

.footer-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.btn-refresh {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.3rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

    .btn-refresh:hover {
        background: rgba(255, 255, 255, 0.2);
    }

.btn-text {
    margin-left: 0.5rem;
    font-size: 0.9rem;
}

.refresh-info {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 0.3rem;
    font-size: 0.9rem;
}

.counter {
    font-weight: 600;
    margin: 0 0.2rem;
    transition: all 0.3s ease;
}

    .counter.critical {
        color: #ff6b6b;
        font-weight: bold;
    }

    .counter.warning {
        color: #feca57;
        font-weight: bold;
    }

.scroll-hint {
    font-size: 0.9rem;
    opacity: 0.7;
}

/* Notification System */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 8px;
    color: white;
    font-weight: 500;
    z-index: 10000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    animation: slideInRight 0.3s ease;
}

    .notification.success {
        background: #2ecc71;
    }

    .notification.error {
        background: #e74c3c;
    }

    .notification button {
        margin-left: 10px;
        background: none;
        border: none;
        color: inherit;
        cursor: pointer;
        opacity: 0.8;
    }

        .notification button:hover {
            opacity: 1;
        }

/* Animation for refresh */
.refresh-pulse {
    animation: pulse 1s ease;
}

@keyframes pulse {
    0% {
        background: rgba(255, 255, 255, 0.05);
    }

    50% {
        background: rgba(255, 255, 255, 0.1);
    }

    100% {
        background: rgba(255, 255, 255, 0.05);
    }
}

/* Responsive Design for Room Display */
@media (max-width: 768px) {
    .room-header h1 {
        font-size: 2rem;
    }

    .current-booking,
    .scrollable-content {
        margin: 0.5rem;
        padding: 1rem;
    }

    .booking-item {
        flex-direction: column;
        text-align: center;
    }

    .booking-time,
    .booking-status {
        margin: 0.5rem 0;
    }

    .booking-info {
        margin: 0.5rem 0;
    }

    .room-info-grid,
    .quick-actions-grid,
    .system-status-grid {
        grid-template-columns: 1fr;
    }

    .room-footer {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .footer-actions {
        flex-wrap: wrap;
        justify-content: center;
    }

    .refresh-info,
    .scroll-hint {
        order: 2;
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .room-header h1 {
        font-size: 1.8rem;
    }

    .booking-in-progress h2 {
        font-size: 1.3rem;
    }

    .booking-title {
        font-size: 1.1rem;
    }

    .content-section h3 {
        font-size: 1.1rem;
    }

    .action-card {
        flex-direction: column;
        text-align: center;
    }

    .action-icon {
        margin-right: 0;
        margin-bottom: 0.5rem;
    }

    .action-arrow {
        display: none;
    }
}

/* Dark mode adjustments for room display */
@media (prefers-color-scheme: dark) {
    .room-display {
        background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    }

    .current-booking,
    .scrollable-content,
    .content-section,
    .booking-item,
    .info-item,
    .action-card,
    .status-card {
        background: rgba(255, 255, 255, 0.05);
        border-color: rgba(255, 255, 255, 0.1);
    }

        .action-card.primary {
            background: rgba(255, 255, 255, 0.9);
            color: #2c3e50;
        }

            .action-card.primary:hover {
                background: white;
            }
}

/* Print styles for room display */
@media print {
    .room-display {
        background: white !important;
        color: black !important;
    }

    .current-booking,
    .scrollable-content,
    .content-section,
    .booking-item,
    .info-item,
    .action-card,
    .status-card {
        background: white !important;
        border: 1px solid #000 !important;
        color: black !important;
    }

    .room-footer,
    .btn-refresh,
    .refresh-info,
    .scroll-hint {
        display: none !important;
    }
}
