:root {
    /* Theme Colors - Clean Light */
    --bg-body: #f0f2f5;
    --bg-surface: #ffffff;
    --primary: #1a73e8;
    /* Google Blue-ish */
    --primary-hover: #1557b0;
    --secondary: #5f6368;
    --accent-success: #1e8e3e;
    --accent-error: #d93025;
    --accent-warning: #f9ab00;

    /* Text */
    --text-main: #202124;
    --text-secondary: #5f6368;
    --text-muted: #dadce0;

    /* Shapes */
    --radius-card: 24px;
    --radius-btn: 999px;
    /* Pill shape */
    --radius-sm: 12px;

    /* Effects */
    --shadow-sm: 0 1px 2px 0 rgba(60, 64, 67, 0.3), 0 1px 3px 1px rgba(60, 64, 67, 0.15);
    --shadow-md: 0 4px 6px 0 rgba(60, 64, 67, 0.3), 0 4px 8px 3px rgba(60, 64, 67, 0.15);
    --shadow-hover: 0 6px 10px 0 rgba(60, 64, 67, 0.3), 0 2px 6px 2px rgba(60, 64, 67, 0.15);

    --transition-base: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    background-color: var(--bg-body);
    color: var(--text-main);
    font-family: 'Google Sans', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Custom Scrollbar (Cross-browser) */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #dadce0;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #bdc1c6;
}

/* Firefox Scrollbar */
* {
    scrollbar-width: thin;
    scrollbar-color: #dadce0 transparent;
}

/* Background - subtle pattern or solid */
.bg-decoration {
    display: none;
    /* Removed orbs for clean look */
}

/* Layout */
.container {
    max-width: 1000px;
    /* Tighter container for focus */
    margin: 0 auto;
    padding: 2rem;
}

/* Header */
.clean-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2.5rem;
    padding: 1rem 0;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-icon {
    width: 32px;
    height: 32px;
    fill: var(--primary);
}

.campaign-badge {
    background: #e8f0fe;
    color: var(--primary);
    padding: 8px 16px;
    border-radius: var(--radius-btn);
    font-size: 0.9rem;
    font-weight: 500;
}

/* Cards */
.clean-card {
    background: var(--bg-surface);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-sm);
    padding: 1.5rem;
    transition: var(--transition-base);
    border: 1px solid transparent;
}

.clean-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.stat-value {
    font-size: 2.25rem;
    font-weight: 400;
    /* Cleaner look */
    color: var(--text-main);
}

.stat-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
}

/* Action Area */
.action-area {
    text-align: center;
    margin-bottom: 3rem;
    background: white;
    padding: 3rem;
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-sm);
}

.action-title {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.action-text {
    color: var(--text-secondary);
    max-width: 500px;
    margin: 0 auto 2rem;
    line-height: 1.5;
}

/* Buttons */
.btn-clean {
    background: var(--primary);
    color: white;
    padding: 0 48px;
    height: 56px;
    font-size: 1rem;
    font-weight: 500;
    border: none;
    border-radius: var(--radius-btn);
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: var(--transition-base);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.btn-clean:hover {
    background: var(--primary-hover);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transform: translateY(-1px);
}

.btn-clean:disabled {
    background: var(--text-muted);
    box-shadow: none;
    cursor: not-allowed;
}

.btn-clean svg {
    fill: currentColor;
    width: 24px;
    height: 24px;
}

/* Data Table */
.data-container {
    background: var(--bg-surface);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.data-header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #f1f3f4;
}

.data-header h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 500;
}

.clean-table {
    width: 100%;
    border-collapse: collapse;
}

.clean-table th {
    text-align: left;
    padding: 1rem 2rem;
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
    border-bottom: 1px solid #f1f3f4;
}

.clean-table td {
    padding: 1rem 2rem;
    border-bottom: 1px solid #f1f3f4;
    color: var(--text-main);
}

.clean-table tr:last-child td {
    border-bottom: none;
}

.clean-table tr:hover td {
    background: #f8f9fa;
}

/* Status Badges */
.status-pill {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
}

.status-pill.valid {
    background: #e6f4ea;
    color: var(--accent-success);
}

.status-pill.invalid {
    background: #fce8e6;
    color: var(--accent-error);
}

/* Forms */
.clean-form-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

.clean-label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-main);
}

.clean-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #dadce0;
    border-radius: 8px;
    font-size: 1rem;
    color: var(--text-main);
    background: #fff;
    transition: var(--transition-base);
    box-sizing: border-box;
    font-family: inherit;
}

.clean-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(26, 115, 232, 0.1);
}

.clean-file-area {
    border: 2px dashed #dadce0;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition-base);
    background: #f8f9fa;
    position: relative;
}

.clean-file-area:hover {
    background: #e8f0fe;
    border-color: var(--primary);
}

.clean-file-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(4px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: white;
    padding: 2.5rem;
    border-radius: 28px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    text-align: center;
    max-width: 400px;
    width: 90%;
    transform: translateY(20px);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.modal-header {
    margin-bottom: 1.5rem;
}

.modal-icon {
    width: 64px;
    height: 64px;
    background: #e8f0fe;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.modal-icon svg {
    width: 32px;
    height: 32px;
    color: var(--primary);
    fill: currentColor;
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-main);
    margin: 0 0 0.5rem 0;
}

.modal-description {
    color: var(--text-secondary);
    font-size: 1rem;
    margin: 0 0 1.5rem 0;
    line-height: 1.5;
}

/* Progress bar inside modal */
.modal-progress {
    height: 6px;
    background: #f1f3f4;
    border-radius: 3px;
    overflow: hidden;
    margin-top: 1rem;
}

.progress-bar {
    height: 100%;
    background: var(--primary);
    width: 0%;
    transition: width 0.3s ease;
}

/* Utility: Screen Reader Only */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Responsive */
@media (max-width: 600px) {
    .container {
        padding: 1rem;
    }

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

    .clean-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }

    .footer-content {
        flex-direction: column;
        gap: 1.5rem;
    }
}

/* Original Footer Restore */
.footer {
    padding: 3rem 0;
    margin-top: auto;
    background: transparent;
    /* Or dark if desired, but elements need to pop */
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 2rem;
    border-top: 1px solid #e0e0e0;
}

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

.tech-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.tech-items {
    display: flex;
    align-items: center;
    gap: 8px;
}

.tech-item {
    font-size: 0.8rem;
    color: #00d4ff;
    /* Cyan text */
    background: rgba(15, 20, 25, 1);
    /* Dark background */
    padding: 6px 14px;
    border-radius: 999px;
    border: 1px solid rgba(0, 212, 255, 0.2);
    font-weight: 500;
    display: inline-block;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.tech-divider {
    color: var(--text-muted);
}

.footer-brand {
    font-size: 0.85rem;
    color: #1e8e3e;
    /* Green matching the image copyright */
    font-weight: 500;
}

/* App Layout (Sidebar) */
.app-layout {
    display: flex;
    min-height: 100vh;
    background: var(--bg-body);
}

.sidebar {
    width: 260px;
    background: var(--bg-surface);
    border-right: 1px solid #dadce0;
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    flex-shrink: 0;
    position: sticky;
    top: 0;
    height: 100vh;
}

.sidebar-header {
    margin-bottom: 2.5rem;
    padding-left: 0.5rem;
}

.nav-menu {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition-base);
}

.nav-item:hover {
    background: #f1f3f4;
    color: var(--text-main);
}

.nav-item.active {
    background: #e8f0fe;
    color: var(--primary);
}

.nav-item svg {
    width: 20px;
    height: 20px;
}

.main-content {
    flex: 1;
    padding: 2rem 3rem;
    /* max-width: 1200px; */
    margin: 0 auto;
    width: 100%;
}

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

.welcome-text h1 {
    font-size: 1.75rem;
    margin: 0 0 0.25rem 0;
}

.welcome-text p {
    color: var(--text-secondary);
    margin: 0;
}

/* Responsive Sidebar */
@media (max-width: 900px) {
    .app-layout {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        height: auto;
        border-right: none;
        border-bottom: 1px solid #dadce0;
        padding: 1rem;
        position: relative;
    }

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

    .nav-menu {
        flex-direction: row;
        overflow-x: auto;
        padding-bottom: 0.5rem;
    }

    .nav-item {
        white-space: nowrap;
    }

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

/* Action Buttons - Circular */
.btn-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    transition: var(--transition-base);
    background: transparent;
    cursor: pointer;
    text-decoration: none;
    font-size: 1.2rem;
    padding: 0;
    color: var(--text-secondary);
}

.btn-icon:hover {
    background: #f1f3f4;
    transform: translateY(-1px);
    color: var(--primary);
}

.btn-icon.delete:hover {
    color: var(--accent-error);
    background: #fce8e6;
}