:root {
    --bg-color: #f4f7f6;
    --sidebar-bg: #ffffff;
    --text-primary: #334155;
    --text-secondary: #64748b;
    --border-color: #e2e8f0;
    --hover-bg: #f8fafc;
    --active-bg: #e0f2fe;
    --active-text: #0284c7;
    --primary-color: #0ea5e9;
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
}

.site-banner {
    background-color: #1e293b;
    color: #f8fafc;
    padding: 12px 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    z-index: 20;
}

.site-banner-content {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
}

.site-banner .badge {
    background-color: var(--primary-color);
    color: white;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.site-banner .separator {
    color: #64748b;
}

.app-container {
    display: flex;
    flex-grow: 1;
    overflow: hidden;
}

/* --- Left Sidebar Styles (30%) --- */
.sidebar {
    width: 30%;
    min-width: 300px;
    max-width: 400px;
    background-color: var(--sidebar-bg);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    box-shadow: 2px 0 10px rgba(0,0,0,0.02);
    z-index: 10;
}

.sidebar-header {
    padding: 24px;
    border-bottom: 1px solid var(--border-color);
    background-color: var(--sidebar-bg);
}

.brand-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.sidebar-logo {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

.sidebar-header h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0;
    letter-spacing: -0.02em;
}

.search-container {
    position: relative;
}

.search-input {
    width: 100%;
    padding: 12px 16px 12px 40px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.95rem;
    outline: none;
    transition: all 0.2s ease;
    background-color: #f8fafc;
}

.search-input:focus {
    border-color: var(--primary-color);
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}

.search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
}

.employee-list {
    flex-grow: 1;
    overflow-y: auto;
    padding: 16px 12px;
}

/* Custom Scrollbar for Sidebar */
.employee-list::-webkit-scrollbar {
    width: 6px;
}
.employee-list::-webkit-scrollbar-track {
    background: transparent;
}
.employee-list::-webkit-scrollbar-thumb {
    background-color: #cbd5e1;
    border-radius: 20px;
}

.employee-btn {
    width: 100%;
    text-align: left;
    padding: 14px 16px;
    margin-bottom: 8px;
    background: none;
    border: 1px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
}

.employee-btn:hover {
    background-color: var(--hover-bg);
    border-color: var(--border-color);
}

.employee-btn.active {
    background-color: var(--active-bg);
    border-color: #bae6fd;
}

.employee-btn.active .emp-name {
    color: var(--active-text);
    font-weight: 600;
}

.employee-btn.active .emp-dept {
    color: #0369a1;
}

.emp-name {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.emp-dept {
    font-size: 0.8rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 4px;
}

.emp-dept::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    background-color: #94a3b8;
    border-radius: 50%;
}

.employee-btn.active .emp-dept::before {
    background-color: #38bdf8;
}

.no-results {
    padding: 30px 20px;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.95rem;
    display: none;
}

.no-results-icon {
    margin-bottom: 12px;
    color: #cbd5e1;
}

/* --- Right Main Pane Styles (70%) --- */
.main-pane {
    flex-grow: 1;
    width: 70%;
    background-color: var(--bg-color);
    display: flex;
    flex-direction: column;
    position: relative;
}

.placeholder-message {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    text-align: center;
    padding: 40px;
    z-index: 1;
}

.main-logo {
    width: 90px;
    height: 90px;
    object-fit: contain;
    margin-bottom: 24px;
}

.placeholder-message h1 {
    color: var(--text-primary);
    margin-bottom: 12px;
    font-weight: 600;
    font-size: 1.75rem;
}

.placeholder-message p {
    max-width: 400px;
    line-height: 1.6;
}

iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: none; /* Hidden until a button is clicked */
    background-color: white;
    z-index: 2;
    position: relative;
    box-shadow: -5px 0 15px rgba(0,0,0,0.02);
}

/* Loading spinner */
.loader {
    display: none;
    border: 3px solid #f3f3f3;
    border-radius: 50%;
    border-top: 3px solid var(--primary-color);
    width: 30px;
    height: 30px;
    -webkit-animation: spin 1s linear infinite;
    animation: spin 1s linear infinite;
    position: absolute;
    top: 50%;
    left: 50%;
    margin-top: -15px;
    margin-left: -15px;
    z-index: 3;
}@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* --- Landing Page Styles --- */
.landing-body {
    background-color: #f8fafc;
    display: block;
    height: auto;
    overflow: auto;
}

.landing-nav {
    background-color: white;
    border-bottom: 1px solid var(--border-color);
    padding: 16px 24px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.nav-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 16px;
}

.landing-logo {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.nav-content h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    letter-spacing: -0.02em;
}

.landing-main {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 24px;
}

.landing-header {
    text-align: center;
    margin-bottom: 48px;
}

.landing-header h2 {
    font-size: 2.25rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 12px;
}

.landing-header p {
    font-size: 1.1rem;
    color: #64748b;
    max-width: 600px;
    margin: 0 auto;
}

.sites-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 24px;
}

.site-card {
    background-color: white;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05), 0 2px 4px -1px rgba(0,0,0,0.03);
}

.site-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
    border-color: #bae6fd;
}

.site-card:hover .site-card-arrow {
    color: var(--primary-color);
    transform: translateX(4px);
}

.site-card-icon {
    background-color: #e0f2fe;
    color: var(--primary-color);
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.site-card-content {
    flex-grow: 1;
}

.site-card-content h3 {
    font-size: 1.15rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 6px;
    line-height: 1.4;
}

.site-card-content p {
    font-size: 0.9rem;
    color: #64748b;
}

.site-card-arrow {
    color: #cbd5e1;
    transition: all 0.2s ease;
}

.placeholder-site {
    background-color: #f8fafc;
    border: 2px dashed #cbd5e1;
    box-shadow: none;
}

.placeholder-site .site-card-icon {
    background-color: #f1f5f9;
    color: #94a3b8;
}

.placeholder-site:hover {
    border-color: #94a3b8;
    box-shadow: none;
    transform: none;
}

/* --- Mobile Responsiveness --- */
@media (max-width: 768px) {
    .app-container {
        flex-direction: column;
    }

    .site-banner-content {
        flex-direction: column;
        gap: 6px;
        text-align: center;
        font-size: 0.85rem;
    }

    .site-banner .separator {
        display: none;
    }

    .sidebar {
        width: 100%;
        max-width: none;
        min-width: 100%;
        height: 35vh;
        min-height: 250px;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }

    .sidebar-header {
        padding: 16px;
    }

    .employee-list {
        padding: 12px 8px;
    }

    .main-pane {
        width: 100%;
        flex-grow: 1;
        height: 65vh;
    }

    .placeholder-message {
        padding: 24px;
    }

    .placeholder-message h1 {
        font-size: 1.4rem;
    }

    .placeholder-message p {
        font-size: 0.9rem;
    }
}

