* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f5f7fa;
    min-height: 100vh;
}

/* ========== LOGIN PAGE ========== */
.login-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0a5c2f 0%, #1e7b4a 100%);
    padding: 20px;
}

.login-card {
    background: white;
    border-radius: 20px;
    padding: 40px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-header i {
    font-size: 50px;
    color: #0a5c2f;
    margin-bottom: 15px;
}

.login-header h2 {
    color: #333;
    font-size: 24px;
    margin-bottom: 10px;
}

.login-header p {
    color: #666;
    font-size: 14px;
}

.input-group {
    margin-bottom: 25px;
    position: relative;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 500;
    font-size: 14px;
}

.input-group .input-icon {
    position: absolute;
    left: 15px;
    top: 42px;
    color: #0a5c2f;
    font-size: 16px;
}

.input-group input {
    width: 100%;
    padding: 15px 15px 15px 45px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s;
}

.input-group input:focus {
    outline: none;
    border-color: #0a5c2f;
    box-shadow: 0 0 0 3px rgba(10,92,47,0.1);
}

.login-btn {
    width: 100%;
    padding: 15px;
    background: #0a5c2f;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.login-btn:hover {
    background: #0a4a26;
}

.login-footer {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
    color: #666;
    font-size: 13px;
}

.error-message {
    background: #fee;
    color: #c33;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-left: 4px solid #c33;
}

/* ========== DASHBOARD ========== */
.navbar {
    background: #0a5c2f;
    color: white;
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-size: 20px;
    font-weight: bold;
}

.nav-logo i {
    margin-right: 10px;
}

.nav-user {
    display: flex;
    align-items: center;
    gap: 15px;
}

.nav-user i {
    font-size: 20px;
}

.logout-btn {
    color: white;
    text-decoration: none;
    padding: 5px 10px;
    border-radius: 5px;
    background: rgba(255,255,255,0.2);
    transition: background 0.3s;
}

.logout-btn:hover {
    background: rgba(255,255,255,0.3);
}

.dashboard-container {
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 20px;
}

.welcome-card {
    background: linear-gradient(135deg, #0a5c2f 0%, #1e7b4a 100%);
    color: white;
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 30px;
}

.welcome-card h1 {
    font-size: 28px;
    margin-bottom: 10px;
}

.welcome-card .date {
    opacity: 0.9;
    font-size: 14px;
}

.section-title {
    color: #333;
    margin-bottom: 20px;
    font-size: 22px;
}

.section-title i {
    color: #0a5c2f;
    margin-right: 10px;
}

.empty-state {
    text-align: center;
    padding: 60px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.empty-state i {
    font-size: 60px;
    color: #ccc;
    margin-bottom: 20px;
}

.empty-state p {
    color: #666;
    font-size: 18px;
}

.empty-state .sub-text {
    font-size: 14px;
    color: #999;
    margin-top: 10px;
}

.windows-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 20px;
}

.window-card {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    border-left: 4px solid;
    transition: transform 0.3s;
}

.window-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.window-card.county { border-left-color: #4299e1; }
.window-card.constituency { border-left-color: #48bb78; }
.window-card.ward { border-left-color: #ed8936; }
.window-card.women_rep { border-left-color: #9f7aea; }

.card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.card-header i {
    font-size: 24px;
    color: #0a5c2f;
}

.card-header h3 {
    font-size: 18px;
    color: #333;
    flex: 1;
}

.urgent-badge {
    background: #fed7d7;
    color: #c53030;
    padding: 3px 8px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
}

.location {
    color: #666;
    margin-bottom: 15px;
    font-size: 14px;
}

.location i {
    color: #0a5c2f;
    margin-right: 5px;
}

.deadline {
    background: #f7fafc;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
}

.deadline .label {
    color: #666;
    font-size: 13px;
}

.deadline .value {
    font-weight: bold;
    color: #333;
}

.days-left {
    margin-top: 5px;
    font-size: 13px;
    color: #666;
}

.days-left.urgent {
    color: #c53030;
    font-weight: bold;
}

.application-types {
    margin-top: 15px;
}

.type-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
    width: 100%;
    justify-content: center;
}

.type-btn.highschool {
    background: #e3f2fd;
    color: #1976d2;
}

.type-btn.tertiary {
    background: #e8f5e9;
    color: #2e7d32;
}

.type-btn.university {
    background: #fff3e0;
    color: #f57c00;
}

.type-btn.special {
    background: #f3e5f5;
    color: #7b1fa2;
}

.type-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.upcoming-list {
    background: white;
    border-radius: 10px;
    overflow: hidden;
}

.upcoming-item {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #e0e0e0;
}

.upcoming-item:last-child {
    border-bottom: none;
}

.upcoming-icon {
    width: 40px;
    height: 40px;
    background: #e8f5e9;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    color: #0a5c2f;
}

.upcoming-info {
    flex: 1;
}

.upcoming-info strong {
    color: #333;
    margin-right: 10px;
}

.upcoming-info .badge {
    background: #e0e0e0;
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 11px;
    color: #666;
}

.upcoming-info .upcoming-location {
    font-size: 12px;
    color: #666;
    margin-top: 3px;
}

.upcoming-date {
    color: #666;
    font-size: 14px;
}

.upcoming-date small {
    color: #999;
    font-size: 12px;
}

@media (max-width: 768px) {
    .windows-grid {
        grid-template-columns: 1fr;
    }
    
    .upcoming-item {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .upcoming-icon {
        margin-right: 0;
    }
    
    .nav-container {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}