:root {
    --bg-primary: #f4f6fa;
    --card-bg: #ffffff;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --sidebar-bg: #111827;
    --sidebar-active: #2563eb;
    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --border-color: #e2e8f0;
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    overflow: hidden; /* Main-content handles scroll */
}

/* Dashboard Container */
.dashboard-container {
    display: flex;
    height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 260px;
    background-color: var(--sidebar-bg);
    color: #ffffff;
    display: flex;
    flex-direction: column;
}

.logo {
    padding: 24px;
    font-size: 1.25rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.logo i {
    color: var(--sidebar-active);
}

.nav-links {
    flex: 1;
    padding: 16px 12px;
}

.nav-links a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: #94a3b8;
    text-decoration: none;
    border-radius: 8px;
    margin-bottom: 8px;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.nav-links a:hover {
    background-color: rgba(255, 255, 255, 0.03);
    color: #ffffff;
}

.nav-links a.active {
    background-color: var(--sidebar-active);
    color: #ffffff;
    font-weight: 500;
}

.sidebar-footer {
    padding: 16px 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background-color: #030712;
}

.version {
    color: #64748b;
    font-size: 0.8rem;
}

/* Main Content */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

/* Top Bar & Header */
.top-bar {
    padding: 24px 32px;
    border-bottom: 1px solid var(--border-color);
    background-color: var(--card-bg);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.greeting h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.greeting p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 4px;
}

.stats-cards {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.stat-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 16px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 160px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    cursor: pointer;
    transition: all 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.05);
    border-color: var(--primary);
}

.stat-card.active {
    border: 2px solid var(--primary);
    background: #f8fafc;
}

.stat-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.stat-icon.total { background: #eff6ff; color: #1d4ed8; }
.stat-icon.verified { background: #ecfdf5; color: #10b981; }
.stat-icon.ticked { background: #fef3c7; color: #d97706; }

.stat-info .stat-label {
    display: block;
    color: var(--text-secondary);
    font-size: 0.75rem;
}

.stat-info .stat-value {
    display: block;
    font-size: 1.25rem;
    font-weight: 700;
}

/* Table Section */
.table-container {
    padding: 32px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.table-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.search-box {
    display: flex;
    align-items: center;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 10px 16px;
    border-radius: 10px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    width: 100%;
    max-width: 320px;
}

.search-box i { color: var(--text-secondary); margin-right: 12px; }

.search-box input {
    border: none;
    outline: none;
    background: transparent;
    width: 100%;
    color: var(--text-primary);
}

.filters {
    display: flex;
    gap: 12px;
    align-items: center;
}

.filters select {
    padding: 10px 16px;
    border: 1px solid var(--border-color);
    background: var(--card-bg);
    border-radius: 10px;
    outline: none;
    color: var(--text-primary);
    cursor: pointer;
}

.btn {
    padding: 10px 16px;
    border-radius: 10px;
    border: none;
    font-weight: 500;
    cursor: pointer;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn:hover { background: #f8fafc; }

.btn-primary {
    background-color: var(--primary);
    color: white;
    border: none;
}

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

/* Table wrapper */
.table-wrapper {
    background: var(--card-bg);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
    overflow-x: auto;
    flex: 1;
    min-height: 400px;
}

table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

thead th {
    background-color: #f8fafc;
    padding: 14px 20px;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.85rem;
    border-bottom: 1px solid var(--border-color);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

tbody tr {
    border-bottom: 1px solid var(--border-color);
    transition: all 0.1s ease;
}

tbody tr:hover {
    background-color: #f8fafc;
}

tbody td {
    padding: 16px 20px;
    font-size: 0.95rem;
}

.col-tick { width: 40px; text-align: center; }
.col-company { font-weight: 600; width: 25%; }
.col-email { color: var(--text-secondary); }

/* Custom Bookmark tick trigger */
.tick-checkbox {
    cursor: pointer;
    font-size: 1.1rem;
    color: #e2e8f0;
    transition: color 0.2s ease;
}

.tick-checkbox.active {
    color: #f59e0b;
}

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge.success { background: #ecfdf5; color: #065f46; }
.badge.unverified { background: #fffbeb; color: #b45309; }

/* Table loader */
.table-loader {
    text-align: center;
    padding: 60px 0;
    color: var(--text-secondary);
}

.spinner {
    width: 32px;
    height: 32px;
    border: 3px solid #e2e8f0;
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 12px;
}

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

/* Pagination */
.pagination {
    margin-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.btn-sm { padding: 6px 10px; }

.page-controls {
    display: flex;
    gap: 12px;
    align-items: center;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.4);
    backdrop-filter: blur(4px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: var(--card-bg);
    border-radius: 16px;
    width: 100%;
    max-width: 500px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    animation: slideUp 0.3s ease;
}

@keyframes slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

.modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 { font-size: 1.25rem; font-weight: 700; }

.close-modal { cursor: pointer; font-size: 1.5rem; color: var(--text-secondary); }

.modal-body { padding: 24px; }

.detail-row {
    margin-bottom: 16px;
}

.detail-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 600;
    text-transform: uppercase;
}

.detail-value {
    font-size: 1rem;
    color: var(--text-primary);
    margin-top: 4px;
    word-break: break-all;
}
/* Login Overlay */
.login-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: #0d121f;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #ffffff;
}

.login-box {
    background: #1e293b;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    text-align: center;
    max-width: 400px;
    width: 90%;
    border: 1px solid rgba(255,255,255,0.05);
}

.login-box i {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 20px;
}

.login-box h1 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.login-box p {
    color: #94a3b8;
    font-size: 0.9rem;
    margin-bottom: 32px;
}

#google-signin-btn {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}


/*  Toast Notifications */
#toast-container { position: fixed; top: 24px; right: 24px; z-index: 9999; display: flex; flex-direction: column; gap: 12px; pointer-events: none; }
.toast { background: #0f172a; color: #f8fafc; padding: 14px 18px; border-radius: 10px; font-size: 0.875rem; font-weight: 500; box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1); display: flex; align-items: center; gap: 12px; min-width: 280px; border-left: 4px solid #10b981; transition: all 0.3s ease; animation: toastSlideIn 0.3s ease-out forwards; }
.toast.error { border-left-color: #ef4444; }
.toast i { font-size: 1.1rem; }
.toast.success i { color: #10b981; }
.toast.error i { color: #ef4444; }
@keyframes toastSlideIn { from { opacity: 0; transform: translateX(30px); } to { opacity: 1; transform: translateX(0); } }


/*  Premium Auth Styles */
.auth-form-group { text-align: left; margin-bottom: 16px; }
.auth-form-group label { font-size: 0.8rem; font-weight: 500; color: #94a3b8; margin-bottom: 6px; display: block; }
.auth-input-wrapper { position: relative; display: flex; align-items: center; }
.auth-input-wrapper i { position: absolute; left: 14px; color: #64748b; font-size: 0.95rem; }
.auth-input-wrapper input, .auth-input-wrapper select { width: 100%; padding: 12px 12px 12px 40px; border-radius: 10px; background: #0f172a; border: 1px solid rgba(255, 255, 255, 0.05); color: #f8fafc; font-size: 0.9rem; outline: none; transition: all 0.2s; }
.auth-input-wrapper input:focus { border-color: #38bdf8; }
.auth-divider { display: flex; align-items: center; gap: 10px; margin: 24px 0; color: #475569; font-size: 0.75rem; text-transform: uppercase; font-weight: 600; }

/* 📱 Mobile Responsiveness */
@media (max-width: 768px) {
    #mobile-toggle-btn {
        display: block !important;
    }

    .dashboard-container {
        flex-direction: column;
        position: relative;
    }

    .sidebar {
        width: 250px;
        position: fixed;
        top: 0;
        left: -260px;
        height: 100vh;
        z-index: 1500;
        transition: left 0.3s ease;
        box-shadow: 4px 0 15px rgba(0,0,0,0.1);
    }

    .sidebar.active {
        left: 0;
    }

    .top-bar {
        padding: 16px;
        flex-direction: column;
        align-items: flex-start;
    }

    .stats-cards {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .stat-card {
        min-width: unset;
        width: 100%;
    }

    .table-container {
        padding: 16px;
    }

    .table-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .search-box {
        max-width: 100%;
    }

    .filters {
        width: 100%;
        justify-content: space-between;
    }

    .filters select {
        flex: 1;
    }

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

    .modal-content {
        width: 95%;
        margin: 0 10px;
    }
}

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

