:root {
    --primary: #6366f1;
    --primary-hover: #4f46e5;
    --secondary: #64748b;
    --success: #22c55e;
    --warning: #f59e0b;
    --danger: #ef4444;
    --background: #f8fafc;
    --card-bg: #ffffff;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --border: #e2e8f0;
    --radius: 12px;
    --shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --font: 'Outfit', 'Inter', -apple-system, sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font);
    background: #ffffff;
    color: var(--text-main);
    line-height: 1.5;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.card {
    background: var(--card-bg);
    width: 100%;
    max-width: 400px;
    padding: 32px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-align: center;
    animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

h1,
h2,
h3 {
    margin-bottom: 8px;
    color: var(--text-main);
}

p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 24px;
}

.input-group {
    margin-bottom: 16px;
    text-align: left;
}

label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 6px;
    color: var(--text-main);
}

input {
    width: 100%;
    padding: 12px 16px;
    border-radius: 8px;
    border: 1px solid var(--border);
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

button {
    width: 100%;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-family: inherit;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-1px);
}

.btn-success {
    background-color: var(--success);
    color: white;
}

.btn-warning {
    background-color: var(--warning);
    color: white;
}

.btn-secondary {
    background-color: var(--secondary);
    color: white;
}

.btn-ghost {
    background: transparent;
    color: var(--text-muted);
    border: 1px solid var(--border);
}

.btn-ghost:hover {
    background: #f1f5f9;
}

img.preview {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid var(--border);
}

/* Notification Styles */
#notification-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

.notification {
    background: white;
    padding: 12px 20px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    margin-bottom: 10px;
    border-left: 4px solid var(--primary);
    animation: slideIn 0.3s ease-out;
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 250px;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.notification.success {
    border-left-color: var(--success);
}

.notification.error {
    border-left-color: var(--danger);
}

.notification.warning {
    border-left-color: var(--warning);
}

/* User Profile Badge */
.user-profile-badge {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    padding: 8px 16px;
    border-radius: 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid var(--border);
    z-index: 900;
    transition: all 0.3s ease;
    animation: slideInDown 0.5s ease-out;
}

@keyframes slideInDown {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.user-profile-badge .avatar {
    width: 32px;
    height: 32px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.8rem;
}

.user-profile-badge .info {
    text-align: left;
}

.user-profile-badge .info .name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-main);
    display: block;
    line-height: 1.2;
}

.user-profile-badge .info .phone {
    font-size: 0.7rem;
    color: var(--text-muted);
    display: block;
}

.user-profile-badge .extra-details {
    margin-top: 4px;
    padding-top: 4px;
    border-top: 1px dashed var(--border);
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.user-profile-badge .extra-field {
    font-size: 0.65rem;
    color: var(--text-muted);
    display: block;
}

.user-profile-badge .extra-field b {
    color: var(--text-main);
    font-size: 0.6rem;
}

/* Responsive Design */
@media (max-width: 600px) {
    body {
        padding: 12px;
    }

    .card {
        padding: 24px 16px;
    }

    .user-profile-badge {
        top: 10px;
        right: 10px;
        padding: 6px 12px;
        max-width: calc(100% - 20px);
    }

    .user-profile-badge .extra-details {
        display: none;
        /* Hide extra details on small mobile to save space */
    }

    .user-profile-badge .avatar {
        width: 28px;
        height: 28px;
        font-size: 0.7rem;
    }

    .user-profile-badge .info .name {
        font-size: 0.75rem;
    }

    .user-profile-badge .info .phone {
        font-size: 0.65rem;
    }

    #notification-container {
        top: 70px;
        right: 10px;
        left: 10px;
    }

    .notification {
        min-width: auto;
        padding: 10px 16px;
        font-size: 0.85rem;
    }

    .otp-inputs {
        gap: 6px;
    }

    .otp-inputs input {
        width: 36px;
        height: 48px;
        font-size: 16px;
    }

    /* Voting Page Specifics */
    .candidate-list {
        grid-template-columns: 1fr;
    }
}