:root {
    --primary-color: #00413a;
    --primary-light: #005a51;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-800: #1f2937;
}

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

body {
    font-family: 'Work Sans', sans-serif;
    line-height: 1.6;
    color: var(--gray-800);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Header */
header {
    background-color: white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    height: 40px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Syne', sans-serif;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Buttons */
.btn {
    font-family: 'Work Sans', sans-serif;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s;
}

.btn-primary {
    background-color: #4285F4; /* Google blue */
    color: white;
}

.btn-primary:hover {
    background-color: #357AE8; /* Darker blue on hover */
}

.btn-outline {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: transparent;
}

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

/* Forms */
.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.form-group input {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid var(--gray-200);
    border-radius: 4px;
}

/* Login */
.login-container {
    max-width: 400px;
    margin: 4rem auto;
    padding: 2rem;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);

    .gif-container {
        display: flex;
        justify-content: center;
        margin-top: 20px; /* Optional: adds space above the gif */
        overflow: hidden; /* Ensures the image stays within the container */
    }
    
    .gif-container img {
        max-width: 100%; /* Keeps the image responsive */
        height: auto; /* Maintains aspect ratio */
    } 
}

/* Rooms Grid */
.rooms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.room-card {
    background-color: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    width: 100%;
    max-width: 500px;
}

.modal-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 1.5rem;
}

/* Navigation */
nav {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.nav-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.nav-link:hover {
    color: var(--primary-light);
}

/* Add more styles as needed */

/* Add this to your existing CSS */
.error-message {
    background-color: #fee2e2;
    border: 1px solid #ef4444;
    color: #991b1b;
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.room-id {
    color: var(--gray-800);
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

/* Add these to your existing CSS */
.upcoming-meetings {
    margin: 1rem 0;
    padding: 1rem;
    background-color: var(--gray-100);
    border-radius: 4px;
}

.upcoming-meetings h3 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.meeting-list {
    list-style: none;
    padding: 0;
}

.meeting-item {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--gray-200);
    font-size: 0.875rem;
}

.meeting-item:last-child {
    border-bottom: none;
}

.meeting-time {
    display: block;
    color: var(--primary-color);
    font-weight: 600;
}

.meeting-title {
    display: block;
    color: var(--gray-800);
}

.no-meetings {
    color: var(--gray-800);
    font-style: italic;
    font-size: 0.875rem;
}

/* Add to your existing CSS */
.booking-section {
    margin: 1rem 0;
    padding: 1rem;
    background-color: var(--gray-100);
    border-radius: 4px;
}

.duration-selector {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.duration-btn {
    flex: 1;
}

.duration-btn.selected {
    background-color: var(--primary-color);
    color: white;
}

.schedule-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
    overflow-x: auto;
}

.day-column {
    min-width: 120px;
}

.day-column h4 {
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
    text-align: center;
}

.time-slot {
    display: block;
    width: 100%;
    padding: 0.5rem;
    margin: 0.25rem 0;
    border: none;
    border-radius: 4px;
    font-size: 0.875rem;
    cursor: pointer;
    text-align: center;
}

.time-slot.available {
    background-color: var(--primary-light);
    color: white;
}

.time-slot.available:hover {
    background-color: var(--primary-color);
}

.time-slot.unavailable {
    background-color: var(--gray-200);
    color: var(--gray-800);
    cursor: not-allowed;
    opacity: 0.5;
}

.booking-details {
    margin-bottom: 1rem;
    padding: 1rem;
    background-color: var(--gray-100);
    border-radius: 4px;
}

.booking-details p {
    margin: 0.5rem 0;
}

.time-range {
    font-size: 0.875rem;
    color: var(--gray-800);
    margin-bottom: 1rem;
    font-style: italic;
}

/* Add these loader styles */
.loader-container {
    display: none;
    padding: 2rem;
    text-align: center;
}

.loader {
    width: 40px;
    height: 40px;
    margin: 0 auto;
    border: 3px solid var(--gray-200);
    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); }
}

/* Update schedule grid to handle loading state */
.schedule-grid.loading {
    display: none;
}

.meeting-booker {
    display: block;
    color: var(--gray-800);
    font-size: 0.75rem;
    font-style: italic;
    margin-top: 0.25rem;
}

.room-image {
    max-width: 50px; /* Limit the image size */
    float: right; /* Align the image to the right */
    margin-left: 10px; /* Optional: adds space between the text and the image */
}

.hero-block {
    background-color: #f0f0f0; /* Light background color */
    padding: 30px; /* Increased padding for a more spacious look */
    text-align: center; /* Center the text */
    margin: 20px 0 30px; /* Added top margin and space below the hero block */
    border-radius: 8px; /* Rounded corners */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Match the box shadow to .room-card */
}

.hero-block h1 {
    font-family: 'Syne', sans-serif; /* Main title font */
    font-size: 2.5em; /* Larger font size for the title */
    color: #00413a; /* Primary color for the title */
    margin-bottom: 10px; /* Space below the title */
}

.hero-block p {
    font-family: 'Work Sans', sans-serif; /* Text font */
    font-size: 1.2em; /* Slightly larger font size for readability */
    color: #333; /* Darker text color */
    margin-bottom: 20px; /* Space below the paragraph */
}

.discover-button {
    display: inline-block; /* Make the button inline */
    padding: 12px 24px; /* Increased padding for a more substantial button */
    background-color: #00413a; /* Primary color */
    color: white; /* Text color */
    text-decoration: none; /* Remove underline */
    border-radius: 5px; /* Rounded corners */
    margin-top: 10px; /* Space above the button */
    transition: background-color 0.3s ease; /* Smooth transition for hover effect */
    font-size: 1em; /* Font size for the button */
}

.discover-button:hover {
    background-color: #00332a; /* Darker shade on hover */
    transform: scale(1.05); /* Slightly enlarge the button on hover */
}