:root {
    --primary-bg: #FDFAF5;
    --primary-text: #2C3E50;
    --accent-gold: #B8860B;
    --accent-navy: #1A3C6E;
    --white: #FFFFFF;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Lato', sans-serif;
}

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

body {
    font-family: var(--font-body);
    background-color: var(--primary-bg);
    color: var(--primary-text);
    line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--accent-navy);
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

/* Header & Nav */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(253, 250, 245, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    z-index: 1000;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent-navy);
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--primary-text);
}

.nav-links a:hover {
    color: var(--accent-gold);
}

.language-selector-container {
    margin-left: 2rem;
}

#language-selector {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    border: 1px solid var(--accent-navy);
    background-color: transparent;
    color: var(--accent-navy);
    font-family: var(--font-body);
    font-size: 0.9rem;
    cursor: pointer;
    outline: none;
}

#language-selector:hover {
    background-color: rgba(26, 60, 110, 0.05);
}

.btn-primary {
    background-color: var(--accent-gold);
    color: var(--white);
    padding: 0.8rem 1.5rem;
    border-radius: 30px;
    font-weight: 600;
    border: 2px solid var(--accent-gold);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--accent-gold);
}

.btn-outline {
    background-color: transparent;
    color: var(--accent-navy);
    padding: 0.8rem 1.5rem;
    border-radius: 30px;
    font-weight: 600;
    border: 2px solid var(--accent-navy);
}

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

/* Hero Section */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), url('assets/images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    padding: 0 1rem;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    color: var(--white);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Features/About Section */
.section {
    padding: 5rem 1rem;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.section h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--accent-navy);
}

.section p.subtitle {
    color: #666;
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-card h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

/* Login Portal Section */
.portals {
    background-color: #F8F4E9;
}

.portal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-top: 2rem;
}

.portal-card {
    background: var(--white);
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    text-align: center;
    border-top: 5px solid var(--accent-navy);
}

.portal-card.staff {
    border-top-color: var(--accent-gold);
}

.portal-card h3 {
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.portal-card p {
    margin-bottom: 2rem;
    color: #666;
}

/* Helper Class */
.mb-4 {
    margin-bottom: 1.5rem;
}

.mt-4 {
    margin-top: 1.5rem;
}

.w-100 {
    width: 100%;
}

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

.form-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    font-family: var(--font-body);
    transition: border-color 0.3s;
}

.form-input:focus {
    outline: none;
    border-color: var(--accent-gold);
}

/* Profile View Styles */
.user-name {
    color: var(--accent-gold);
}

.profile-details {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 2rem 0;
    padding: 1.5rem;
    background-color: #FAFAFA;
    border-radius: 10px;
}

.tier-badge {
    background: var(--accent-gold);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    align-self: center;
}

.points-display {
    display: flex;
    flex-direction: column;
}

.big-number {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent-navy);
}

.booking-list {
    list-style: none;
    text-align: left;
    margin-top: 1rem;
    background: white;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
}

.booking-list li {
    padding: 10px 15px;
    border-bottom: 1px solid #eee;
    font-size: 0.95rem;
    color: #555;
    position: relative;
}

.booking-list li:before {
    content: "•";
    color: var(--accent-gold);
    margin-right: 10px;
}

.booking-list li:last-child {
    border-bottom: none;
}

/* Staff Link Card Specifics */
.staff-link-card {
    border-top: 5px solid #ddd;
    /* Neutral for staff link */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.btn-link {
    color: var(--accent-navy);
    font-weight: 700;
    font-size: 1.1rem;
    text-decoration: underline;
}

.btn-link:hover {
    color: var(--accent-gold);
}

/* Footer */
footer {
    background-color: var(--accent-navy);
    color: var(--white);
    padding: 3rem 1rem;
    text-align: center;
}

.section h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--accent-navy);
}

.section p.subtitle {
    color: #666;
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-card h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

/* Login Portal Section */
.portals {
    background-color: #F8F4E9;
}

.portal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-top: 2rem;
}

.portal-card {
    background: var(--white);
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    text-align: center;
    border-top: 5px solid var(--accent-navy);
}

.portal-card.staff {
    border-top-color: var(--accent-gold);
}

.portal-card h3 {
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.portal-card p {
    margin-bottom: 2rem;
    color: #666;
}

/* Helper Class */
.mb-4 {
    margin-bottom: 1.5rem;
}

.mt-4 {
    margin-top: 1.5rem;
}

.w-100 {
    width: 100%;
}

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

.form-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    font-family: var(--font-body);
    transition: border-color 0.3s;
}

.form-input:focus {
    outline: none;
    border-color: var(--accent-gold);
}

/* Profile View Styles */
.user-name {
    color: var(--accent-gold);
}

.profile-details {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 2rem 0;
    padding: 1.5rem;
    background-color: #FAFAFA;
    border-radius: 10px;
}

.tier-badge {
    background: var(--accent-gold);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    align-self: center;
}

.points-display {
    display: flex;
    flex-direction: column;
}

.big-number {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent-navy);
}

.booking-list {
    list-style: none;
    text-align: left;
    margin-top: 1rem;
    background: white;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
}

.booking-list li {
    padding: 10px 15px;
    border-bottom: 1px solid #eee;
    font-size: 0.95rem;
    color: #555;
    position: relative;
}

.booking-list li:before {
    content: "•";
    color: var(--accent-gold);
    margin-right: 10px;
}

.booking-list li:last-child {
    border-bottom: none;
}

/* Staff Link Card Specifics */
.staff-link-card {
    border-top: 5px solid #ddd;
    /* Neutral for staff link */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.btn-link {
    color: var(--accent-navy);
    font-weight: 700;
    font-size: 1.1rem;
    text-decoration: underline;
}

.btn-link:hover {
    color: var(--accent-gold);
}

/* Footer */
footer {
    background-color: var(--accent-navy);
    color: var(--white);
    padding: 3rem 1rem;
    text-align: center;
}

footer p {
    opacity: 0.8;
}

/* Dashboard Tabs */
.dashboard-tabs {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    margin-bottom: 2rem;
    border-bottom: 2px solid #eee;
    padding-bottom: 1px;
}

.tab-btn {
    padding: 1rem 1.5rem;
    background: none;
    border: none;
    font-size: 1rem;
    font-weight: 600;
    color: #888;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.3s;
    white-space: nowrap;
    font-family: var(--font-body);
}

.tab-btn:hover {
    color: var(--accent-gold);
}

.tab-btn.active {
    color: var(--accent-navy);
    border-bottom-color: var(--accent-navy);
}

.tab-content {
    display: none;
    animation: fadeIn 0.4s ease;
}

.tab-content.active {
    display: block;
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Data Tables */
.table-container {
    overflow-x: auto;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
    /* Force scroll on small mobile */
}

.data-table th,
.data-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.data-table th {
    background-color: #f8fafc;
    color: var(--accent-navy);
    font-weight: 700;
    font-family: var(--font-heading);
}

.status-badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.status-badge.completed {
    background-color: #e6fcf5;
    color: #0ca678;
}

.status-badge.upcoming {
    background-color: #fff9db;
    color: #f59f00;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }

    .nav-links {
        display: none;
        /* Simple hiding for now, could add hamburger */
    }

    background-color: #FAFAFA;
    border-radius: 10px;
}

.tier-badge {
    background: var(--accent-gold);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    align-self: center;
}

.points-display {
    display: flex;
    flex-direction: column;
}

.big-number {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent-navy);
}

.booking-list {
    list-style: none;
    text-align: left;
    margin-top: 1rem;
    background: white;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
}

.booking-list li {
    padding: 10px 15px;
    border-bottom: 1px solid #eee;
    font-size: 0.95rem;
    color: #555;
    position: relative;
}

.booking-list li:before {
    content: "•";
    color: var(--accent-gold);
    margin-right: 10px;
}

.booking-list li:last-child {
    border-bottom: none;
}

/* Staff Link Card Specifics */
.staff-link-card {
    border-top: 5px solid #ddd;
    /* Neutral for staff link */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.btn-link {
    color: var(--accent-navy);
    font-weight: 700;
    font-size: 1.1rem;
    text-decoration: underline;
}

.btn-link:hover {
    color: var(--accent-gold);
}

/* Footer */
footer {
    background-color: var(--accent-navy);
    color: var(--white);
    padding: 3rem 1rem;
    text-align: center;
}

footer p {
    opacity: 0.8;
}

/* Dashboard Tabs */
.dashboard-tabs {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    margin-bottom: 2rem;
    border-bottom: 2px solid #eee;
    padding-bottom: 1px;
}

.tab-btn {
    padding: 1rem 1.5rem;
    background: none;
    border: none;
    font-size: 1rem;
    font-weight: 600;
    color: #888;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.3s;
    white-space: nowrap;
    font-family: var(--font-body);
}

.tab-btn:hover {
    color: var(--accent-gold);
}

.tab-btn.active {
    color: var(--accent-navy);
    border-bottom-color: var(--accent-navy);
}

.tab-content {
    display: none;
    animation: fadeIn 0.4s ease;
}

.tab-content.active {
    display: block;
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Data Tables */
.table-container {
    overflow-x: auto;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
    /* Force scroll on small mobile */
}

.data-table th,
.data-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.data-table th {
    background-color: #f8fafc;
    color: var(--accent-navy);
    font-weight: 700;
    font-family: var(--font-heading);
}

.status-badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.status-badge.completed {
    background-color: #e6fcf5;
    color: #0ca678;
}

.status-badge.upcoming {
    background-color: #fff9db;
    color: #f59f00;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }

    .nav-links {
        display: none;
        /* Simple hiding for now, could add hamburger */
    }

    .portal-grid {
        grid-template-columns: 1fr;
    }
}

/* Scheduler V2 (Image Match) */
.scheduler-wrapper {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 1rem;
    overflow-x: auto;
}

.sched-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

.sched-controls-left {
    display: flex;
    gap: 0.5rem;
}

.sched-controls-right {
    display: flex;
    gap: 0.5rem;
}

.sched-btn {
    background: #f8f9fa;
    border: 1px solid #e2e8f0;
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    cursor: pointer;
    color: #4b5563;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.sched-btn:hover {
    background: #e2e8f0;
}

.sched-btn.primary {
    background: white;
    border-color: #cbd5e1;
    color: #1e293b;
}

.sched-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1e293b;
}

.sched-table-wrapper {
    overflow-x: auto;
}

.scheduler-table {
    width: 100%;
    min-width: 600px;
    border-collapse: separate;
    border-spacing: 0;
    table-layout: fixed;
}

.sched-header-time {
    width: 70px;
    border-bottom: 1px solid #e5e7eb;
}

.sched-header-room {
    background: #f8fafc;
    /* Light Gray/Beige */
    padding: 0.75rem;
    border: 1px solid #e2e8f0;
    color: #475569;
    text-align: left;
    font-size: 0.9rem;
    font-weight: 600;
}

.room-icon {
    margin-right: 5px;
    opacity: 0.7;
}

.sched-time-label {
    text-align: right;
    padding: 0.5rem 0.75rem 0 0;
    color: #94a3b8;
    font-size: 0.8rem;
    vertical-align: top;
    border-right: 1px solid #e2e8f0;
    border-bottom: 1px solid #f1f5f9;
    /* Subtle line */
    background: white;
}

.sched-cell {
    border: 1px solid #e2e8f0;
    border-top: none;
    border-left: none;
    /* Reduce double borders */
    height: 70px;
    vertical-align: top;
    padding: 4px;
    position: relative;
    background: #fff;
}

/* Event Cards */
.sched-event {
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 0.85rem;
    margin-bottom: 4px;
    color: white;
    font-weight: 600;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    cursor: pointer;
}

/* Walk-in (Orange - matching ref) */
.event-walkin {
    background-color: #f59e0b;
    border-left: 4px solid #d97706;
    color: #fff;
}

/* My Booking (Green/Yellow distinct) */
.event-mine {
    background-color: #10b981;
    border-left: 4px solid #059669;
}

.event-sub {
    display: block;
    font-size: 0.75rem;
    font-weight: 400;
    opacity: 0.9;
}

.free-slot:hover {
    background-color: #f8fafc;
    cursor: cell;
}

/* Responsive */
@media (max-width: 600px) {
    .sched-title {
        font-size: 0.9rem;
    }

    .sched-btn {
        padding: 0.3rem 0.6rem;
    }
}