:root {
    --primary: #2F3A4F;
    --secondary: #4F596D;
    --accent: #3A86FF;
    --background: #F8FAFC;
    --text: #1E293B;
    --card-bg: #FFFFFF;
    --footer-bg: #1A202C;
    --gradient: linear-gradient(135deg, #3A86FF 0%, #6C5CE7 100%);
    --success: #48BB78;
    --warning: #ECC94B;
    --error: #F56565;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--background);
    color: var(--text);
    line-height: 1.5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-image: linear-gradient(to right, rgba(0,0,0,0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0,0,0,0.02) 1px, transparent 1px);
    background-size: 24px 24px;
}

.container {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.header {
    background: var(--gradient);
    padding: 1.5rem 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.title {
    color: white;
    margin-bottom: 1rem;
}

.accent-gradient {
    background: linear-gradient(45deg, #FFD700, #FFA500);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
    font-size: 2rem;
    display: block;
}

.subtitle {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    margin-top: 0.5rem;
}

.controls {
    display: flex;
    gap: 0.75rem;
    max-width: 800px;
    margin: 1rem auto 0.5rem;
    justify-content: center;
    padding: 0 1rem;
    flex-wrap: wrap;
}

.search-container {
    position: relative;
    flex-grow: 1;
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    height: 1.1rem;
    width: 1.1rem;
    fill: var(--secondary);
    opacity: 0.8;
}

.search-input {
    width: 100%;
    padding: 0.75rem 0.75rem 0.75rem 2.5rem;
    border: none;
    border-radius: 10px;
    font-size: 0.95rem;
    background: var(--card-bg);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
}

.search-input:focus {
    outline: none;
    box-shadow: 0 0 0 2px var(--accent);
}

.filter-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background: var(--card-bg) url("data:image/svg+xml,%3csvg...%3e%3c/svg%3e") no-repeat right 0.75rem center;
    background-size: 1rem;
    padding: 0.75rem 2rem 0.75rem 1rem;
    border: none;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s ease;
}


.main-content {
    padding-top: 1rem;
    flex-grow: 1;
}

.room-grid {
    display: grid;
    gap: 0.75rem;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    padding: 0 1rem 1rem;
}

.room-card {
    background: var(--card-bg);
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    min-height: 80px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.room-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
    z-index: 2;
    min-height: 120px;
}

.room-card .detailed-status {
    max-height: 0;
    opacity: 0;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    color: var(--secondary);
}

.room-card:hover .detailed-status {
    max-height: 50px;
    opacity: 1;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.25rem;
}

.room-number {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary);
    margin: 0;
}

.status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    position: absolute;
    top: 12px;
    right: 12px;
}

.status-indicator.free {
    background: var(--success);
    box-shadow: 0 0 8px rgba(72, 187, 120, 0.3);
}

.status-indicator.occupied {
    background: var(--error);
    box-shadow: 0 0 8px rgba(245, 101, 101, 0.3);
}

.room-details {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 8px;
}

.detail-item {
    font-size: 0.8rem;
    color: var(--secondary);
    display: flex;
    align-items: center;
    gap: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.status-tag {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    margin: 2px 0;
}

.status-tag.free {
    background: rgba(72, 187, 120, 0.15);
    color: var(--success);
}

.status-tag.occupied {
    background: rgba(245, 101, 101, 0.15);
    color: var(--error);
}

.status-tag.upcoming {
    background: rgba(236, 201, 75, 0.15);
    color: var(--warning);
}

.availability-progress {
    height: 4px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 2px;
    margin: 8px 0;
}

.progress-bar {
    height: 100%;
    border-radius: 2px;
    transition: width 0.5s ease;
}

.loading-message {
    grid-column: 1 / -1;
    text-align: center;
    padding: 2rem;
    color: var(--secondary);
    animation: fadeIn 0.3s ease;
    margin: 1rem auto;
    max-width: 600px;
}

.loading-message.error {
    color: var(--error);
    background: rgba(245, 101, 101, 0.1);
    border-color: rgba(245, 101, 101, 0.2);
}

.loading-content {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.03);
    width: 100%;
}

.spinner {
    width: 2.5rem;
    height: 2.5rem;
    border: 3px solid rgba(58, 134, 255, 0.1);
    border-radius: 50%;
    border-top-color: var(--accent);
    animation: spin 1s linear infinite;
}

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

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

.footer {
    background: var(--footer-bg);
    color: white;
    padding: 1.5rem 1rem;
    display: block;
    width: 100%;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.9rem;
}

.links {
    display: flex;
    gap: 1.5rem;
}

.link {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.link:hover {
    opacity: 0.8;
}


@media (max-width: 768px) {
    .room-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    }

    .room-card {
        padding: 0.6rem;
    }

    .controls {
        flex-direction: column;
    }

    .search-input,
    .filter-select {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .room-grid {
        grid-template-columns: 1fr;
    }

    .room-card {
        padding: 0.75rem;
    }

    .header {
        padding: 1rem;
    }

    .accent-gradient {
        font-size: 1.75rem;
    }

    .loading-content {
        padding: 1.5rem;
    }
}

/* === Contact Page Styles === */

.contact-content {
    padding: 4rem 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f9fafb;
}

.contact-card {
    background-color: #ffffff;
    border-radius: 1.5rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
    padding: 3rem;
    max-width: 600px;
    width: 100%;
    text-align: center;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-method {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.contact-icon {
    width: 48px;
    height: 48px;
    fill: #6366f1; /* Indigo accent */
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
}

.contact-form label {
    font-weight: 600;
    color: #374151;
    text-align: left;
}

.contact-form input,
.contact-form textarea {
    padding: 0.75rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 0.75rem;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    width: 100%;
    background-color: #f9fafb;
    transition: border-color 0.2s;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #6366f1;
}

.contact-form button {
    background: linear-gradient(to right, #6366f1, #8b5cf6);
    color: white;
    border: none;
    border-radius: 0.75rem;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.contact-form button:hover {
    background: linear-gradient(to right, #4f46e5, #7c3aed);
}
