* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: #f5f7fb;
    color: #1f2937;
    padding-bottom: 2rem;
}

/* Login Page */
.login-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.login-container {
    background: white;
    padding: 2rem;
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    width: 90%;
    max-width: 400px;
}

.logo h1 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.input-group {
    margin: 1rem 0;
}

.input-group input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1rem;
}

.btn-login {
    width: 100%;
    padding: 12px;
    background: #1a73e8;
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
}

.error {
    color: red;
    margin-top: 1rem;
    text-align: center;
}

/* Navbar */
.navbar {
    background: white;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.btn-logout {
    padding: 8px 16px;
    background: #ef4444;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}

/* Filters */
.filters {
    display: flex;
    gap: 0.5rem;
    padding: 1rem;
    background: white;
    flex-wrap: wrap;
    margin: 1rem;
    border-radius: 16px;
}

.filter-btn {
    padding: 8px 16px;
    border: none;
    background: #f1f5f9;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
}

.filter-btn.active {
    background: #1a73e8;
    color: white;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1rem;
    padding: 0 1rem;
}

.stat-card {
    background: white;
    padding: 1.2rem;
    border-radius: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.stat-card h3 {
    font-size: 0.85rem;
    color: #6b7280;
    margin-bottom: 0.5rem;
}

.stat-card .value {
    font-size: 1.8rem;
    font-weight: bold;
}

.change {
    font-size: 0.75rem;
    margin-top: 0.5rem;
}

.change.positive {
    color: #10b981;
}

.change.negative {
    color: #ef4444;
}

/* Chart */
.chart-container {
    background: white;
    margin: 1rem;
    padding: 1rem;
    border-radius: 20px;
}

/* Sections */
.campaign-section, .platform-section, .services-section, .qr-section {
    background: white;
    margin: 1rem;
    padding: 1rem;
    border-radius: 20px;
}

.campaign-card {
    padding: 1rem;
    background: #f0fdf4;
    border-radius: 12px;
    margin-top: 0.5rem;
}

.platform-list {
    margin-top: 0.5rem;
}

.platform-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid #e5e7eb;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.service-card {
    background: #f3f4f6;
    padding: 0.8rem;
    border-radius: 12px;
    text-align: center;
}

.qr-section img {
    max-width: 200px;
    margin-top: 0.5rem;
}

/* Admin Panel */
.admin-page {
    background: #f3f4f6;
}

.admin-sections {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
    padding: 1.5rem;
}

.admin-card {
    background: white;
    padding: 1.5rem;
    border-radius: 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.admin-card h3 {
    margin-bottom: 1rem;
}

.admin-card input, .admin-card select {
    width: 100%;
    padding: 8px 12px;
    margin-bottom: 0.5rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
}

.admin-card button {
    width: 100%;
    padding: 10px;
    background: #1a73e8;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}

/* Mobile Responsive */
@media (max-width: 600px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .filters {
        justify-content: center;
    }
    
    .admin-sections {
        grid-template-columns: 1fr;
    }
}

.footer-note {
    text-align: center;
    margin-top: 1rem;
    font-size: 0.8rem;
    color: #6b7280;
}