/* General Styling */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Open Sans', sans-serif;
    background: linear-gradient(135deg, #e6f7fa, #fff7e6);
    margin: 0;
    min-height: 100vh;
    color: #1e3a8a;
    line-height: 1.6;
}

.container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 2.5rem;
}

/* Card Styling */
.bg-white {
    background: #ffffff;
    border-radius: 1rem;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    padding: 2rem;
    margin-bottom: 2rem;
}

.bg-white:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

/* Padding and Spacing */
.p-4 {
    padding: 2.5rem;
}

.mb-4 {
    margin-bottom: 2.5rem;
}

.gap-6 {
    gap: 2.5rem;
}

/* Inputs and Selects */
input, select {
    width: 100%;
    padding: 1rem 1.5rem;
    border: 1px solid #cbd5e1;
    border-radius: 0.5rem;
    background-color: #f8fafc;
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}

input:focus, select:focus {
    outline: none;
    border-color: #14b8a6;
    box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.2);
    background-color: #ffffff;
}

/* Buttons */
button {
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: background-color 0.3s, transform 0.2s, box-shadow 0.3s;
    cursor: pointer;
    width: 100%;
    text-align: center;
}

button:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.bg-primary {
    background-color: #14b8a6;
    color: #ffffff;
}

.bg-primary-dark {
    background-color: #0d9488;
}

.bg-success {
    background-color: #10b981;
    color: #ffffff;
}

.bg-success-dark {
    background-color: #059669;
}

.bg-danger {
    background-color: #f43f5e;
    color: #ffffff;
}

.bg-danger-dark {
    background-color: #e11d48;
}

/* Typography */
.text-xl {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1e3a8a;
    margin-bottom: 1rem;
}

.text-2xl {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1e3a8a;
    margin-bottom: 1.5rem;
}

.text-3xl {
    font-size: 2.25rem;
    font-weight: 800;
    color: #1e3a8a;
    margin-bottom: 2rem;
}

.text-gray-900 {
    color: #1e3a8a;
}

.text-lg {
    font-size: 1.125rem;
    line-height: 1.75;
}

/* Grid and Layout */
.grid-cols-1 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
}

.md\:grid-cols-2 {
    @media (min-width: 768px) {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Login Page */
.h-screen {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(20, 184, 166, 0.9), rgba(244, 63, 94, 0.9)), url('https://source.unsplash.com/random/1920x1080?vote');
    background-size: cover;
    background-position: center;
}

.login-card {
    background: rgba(255, 255, 255, 0.97);
    border-radius: 1rem;
    padding: 3rem;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    max-width: 32rem;
    width: 100%;
}

/* Alerts */
.fixed {
    position: fixed;
    top: 2rem;
    right: 2rem;
    z-index: 1000;
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    animation: slideIn 0.4s ease-in-out;
}

@keyframes slideIn {
    from {
        transform: translateX(120%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Candidate Cards */
.candidate-card {
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 0.75rem;
    padding: 2rem;
    margin-bottom: 1.5rem;
    transition: background-color 0.3s, transform 0.3s, border-color 0.3s;
}

.candidate-card:hover {
    background: #e6f7fa;
    border-color: #14b8a6;
    transform: scale(1.02);
}

.candidate-card p {
    margin-bottom: 1rem;
}

/* Responsive Adjustments */
@media (max-width: 640px) {
    .container {
        padding: 1.5rem;
    }

    .p-4 {
        padding: 1.5rem;
    }

    .text-3xl {
        font-size: 1.75rem;
    }

    .text-2xl {
        font-size: 1.5rem;
    }

    .login-card {
        max-width: 90%;
        padding: 2rem;
    }

    input, select, button {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }

    .fixed {
        top: 1rem;
        right: 1rem;
        padding: 0.75rem 1.5rem;
    }
}

/* Additional Enhancements */
.border-b {
    border-bottom: 1px solid #cbd5e1;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
}

.transition {
    transition: all 0.3s ease-in-out;
}

label {
    font-weight: 600;
    color: #1e3a8a;
    margin-bottom: 0.5rem;
    display: block;
}