/* ===== RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

:root {
    --primary-color: #1a2980;
    --secondary-color: #26d0ce;
    --accent-color: #4CAF50;
    --danger-color: #ff416c;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
    --dark-color: #333;
    --light-color: #f8f9fa;
    --gray-color: #6c757d;
    --border-color: #dee2e6;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

body {
    background-color: #f5f7fa;
    color: var(--dark-color);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    line-height: 1.6;
}

/* ===== HEADER STYLES ===== */
header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 1rem 0;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.logo i {
    font-size: 2.2rem;
}

.logo h1 {
    font-size: 1.8rem;
    font-weight: 700;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 1rem;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-weight: 600;
    padding: 0.7rem 1.2rem;
    border-radius: 6px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.nav-link:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.nav-link.active {
    background-color: rgba(255, 255, 255, 0.3);
}

.user-status {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.7rem 1.2rem;
    border-radius: 30px;
    font-weight: 600;
    min-width: 150px;
    justify-content: center;
}

/* ===== MAIN CONTENT ===== */
main {
    flex: 1;
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1.5rem;
    width: 100%;
}

/* ===== PAGE STYLES ===== */
.page {
    display: none;
    background-color: white;
    border-radius: 12px;
    box-shadow: var(--shadow);
    padding: 2.5rem;
    animation: fadeIn 0.5s ease;
    min-height: 600px;
}

.page.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.page-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
}

.page-header h2 {
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 0.5rem;
}

.page-subtitle {
    color: var(--gray-color);
    font-size: 1.1rem;
}

/* ===== HOME PAGE ===== */
.welcome-section {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2.5rem;
    padding: 2rem;
    background: linear-gradient(135deg, #f5f7fa, #e4edf5);
    border-radius: 10px;
}

.welcome-icon {
    font-size: 4rem;
    color: var(--primary-color);
    flex-shrink: 0;
}

.welcome-content {
    flex: 1;
}

.welcome-content h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.welcome-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.stat-card {
    background: white;
    padding: 1.8rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
    border-top: 4px solid var(--secondary-color);
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

.stat-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.stat-card h3 {
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.roles-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 2.5rem;
}

.role-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-top: 4px solid transparent;
    transition: var(--transition);
}

.role-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.voter-role {
    border-top-color: var(--accent-color);
}

.admin-role {
    border-top-color: var(--primary-color);
}

.role-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.voter-role .role-icon {
    color: var(--accent-color);
}

.admin-role .role-icon {
    color: var(--primary-color);
}

.role-content h3 {
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.role-content ul {
    list-style: none;
    margin: 1.5rem 0;
    padding-left: 1.5rem;
}

.role-content ul li {
    margin-bottom: 0.8rem;
    padding-left: 1.5rem;
    position: relative;
}

.role-content ul li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
}

.security-notice {
    background-color: #fff8e1;
    border-left: 5px solid var(--warning-color);
    padding: 1.5rem;
    border-radius: 0 8px 8px 0;
    margin-top: 2rem;
}

.security-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1rem;
}

.security-header i {
    font-size: 1.5rem;
    color: var(--warning-color);
}

.security-features {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1rem;
}

.security-features span {
    background: rgba(255, 193, 7, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* ===== LOGIN PAGES ===== */
.login-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.login-form, .admin-login-form {
    background-color: #f8f9fa;
    padding: 2rem;
    border-radius: 10px;
    border: 1px solid var(--border-color);
}

.admin-login-form {
    text-align: center;
}

.admin-login-icon {
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.admin-login-form h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.admin-description {
    color: var(--gray-color);
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--dark-color);
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-group input {
    width: 100%;
    padding: 0.9rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(26, 41, 128, 0.1);
}

.demo-credentials, .admin-features {
    background-color: #e7f3ff;
    padding: 2rem;
    border-radius: 10px;
    border: 1px solid #b3d9ff;
}

.demo-credentials h3, .admin-features h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.credentials-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.credential {
    background: white;
    padding: 1rem;
    border-radius: 6px;
    border-left: 4px solid var(--secondary-color);
}

.note {
    font-style: italic;
    color: var(--gray-color);
    font-size: 0.9rem;
    margin-top: 1rem;
    padding: 0.8rem;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 6px;
}

.admin-credentials-info {
    background: rgba(255, 255, 255, 0.5);
    padding: 1rem;
    border-radius: 6px;
    margin: 1.5rem 0;
    text-align: left;
}

.feature-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.feature {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    transition: var(--transition);
}

.feature:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.feature i {
    font-size: 1.8rem;
    color: var(--primary-color);
}

.feature h4 {
    color: var(--dark-color);
    margin-bottom: 0.3rem;
}

.feature p {
    color: var(--gray-color);
    font-size: 0.9rem;
}

.form-footer {
    margin-top: 2rem;
    text-align: center;
}

/* ===== VOTING PAGE ===== */
.voting-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.info-card {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    gap: 1rem;
    border-left: 4px solid var(--secondary-color);
}

.info-card i {
    font-size: 2rem;
    color: var(--primary-color);
}

.voting-instructions {
    margin-bottom: 2rem;
}

.instruction-alert {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    background-color: #e7f3ff;
    border-radius: 8px;
    border-left: 4px solid var(--info-color);
}

.instruction-alert i {
    font-size: 2rem;
    color: var(--info-color);
    flex-shrink: 0;
}

.instruction-alert h4 {
    color: var(--primary-color);
    margin-bottom: 0.8rem;
}

#candidates-section h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.candidates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.candidate-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
    border: 2px solid transparent;
}

.candidate-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.candidate-card.selected {
    border-color: var(--primary-color);
    background-color: #f0f7ff;
}

.candidate-header {
    padding: 1.5rem;
    text-align: center;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

.candidate-name {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.candidate-party {
    font-size: 1rem;
    opacity: 0.9;
}

.candidate-body {
    padding: 1.5rem;
}

.candidate-platform {
    margin-bottom: 1.5rem;
    color: var(--gray-color);
    font-size: 0.95rem;
}

.vote-btn {
    width: 100%;
    padding: 0.9rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.vote-btn:hover {
    background: linear-gradient(135deg, #15246e, #1fb9b7);
    transform: translateY(-2px);
}

.vote-btn:disabled {
    background: var(--gray-color);
    cursor: not-allowed;
    transform: none;
}

.already-voted {
    text-align: center;
    padding: 3rem;
    background-color: #f8f9fa;
    border-radius: 10px;
    margin-top: 2rem;
}

.already-voted-icon {
    font-size: 4rem;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
}

.already-voted h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* ===== CONFIRMATION PAGE ===== */
.confirmation-container {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
}

.confirmation-icon {
    font-size: 5rem;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
    animation: bounce 1s ease infinite alternate;
}

@keyframes bounce {
    from { transform: scale(1); }
    to { transform: scale(1.1); }
}

.confirmation-content h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.confirmation-message {
    font-size: 1.2rem;
    color: var(--gray-color);
    margin-bottom: 2rem;
}

.vote-details {
    background-color: #f8f9fa;
    padding: 2rem;
    border-radius: 10px;
    margin-bottom: 2rem;
    text-align: left;
}

.vote-details h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--border-color);
}

.detail-item:last-child {
    border-bottom: none;
}

.detail-label {
    font-weight: 600;
    color: var(--dark-color);
}

.detail-value {
    color: var(--primary-color);
    font-weight: 600;
    text-align: right;
}

.confirmation-notice {
    background-color: #e7f3ff;
    padding: 1.5rem;
    border-radius: 8px;
    margin: 2rem 0;
    text-align: left;
}

.notice-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.notice-content {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.notice-content p {
    display: flex;
    align-items: center;
    gap: 10px;
}

.notice-content i {
    color: var(--accent-color);
}

.action-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

/* ===== RESULTS PAGE (ADMIN ONLY) ===== */
.admin-control-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.admin-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.admin-info i {
    font-size: 2.5rem;
}

.admin-actions {
    display: flex;
    gap: 1rem;
}

.results-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.summary-card {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
    border-top: 4px solid var(--secondary-color);
}

.summary-card h3 {
    color: var(--gray-color);
    font-size: 1rem;
    margin-bottom: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.summary-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.summary-change {
    font-size: 0.9rem;
    color: var(--gray-color);
}

.results-container {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

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

.results-header h3 {
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.results-actions {
    display: flex;
    gap: 1rem;
}

.results-chart {
    margin: 2rem 0;
}

.result-item {
    margin-bottom: 1.5rem;
}

.result-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.candidate-result-name {
    font-weight: 600;
    color: var(--dark-color);
}

.candidate-result-votes {
    color: var(--primary-color);
    font-weight: 600;
}

.result-bar {
    height: 30px;
    background-color: #e9ecef;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
}

.bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 15px;
    color: white;
    font-weight: bold;
    min-width: 40px;
    transition: width 1s ease-in-out;
}

.results-table {
    margin-top: 2rem;
}

.results-table h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.results-table table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    overflow: hidden;
}

.results-table th {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 1rem;
    text-align: left;
    font-weight: 600;
}

.results-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
}

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

.results-table tr:hover {
    background-color: #f8f9fa;
}

.voter-activity {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.voter-activity h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.activity-list {
    max-height: 300px;
    overflow-y: auto;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: white;
    border-radius: 6px;
    margin-bottom: 0.8rem;
    border-left: 4px solid var(--accent-color);
}

.activity-item i {
    color: var(--accent-color);
    font-size: 1.2rem;
}

/* ===== MODAL STYLES ===== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1001;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    width: 90%;
    max-width: 500px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    background: linear-gradient(135deg, var(--danger-color), #ff4b2b);
    color: white;
}

.modal-header h3 {
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-close {
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
}

.modal-body {
    padding: 1.5rem;
}

.warning-message {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    background: #fff8e1;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    border-left: 4px solid var(--warning-color);
}

.warning-message i {
    font-size: 2.5rem;
    color: var(--warning-color);
    flex-shrink: 0;
}

.warning-message h4 {
    color: var(--dark-color);
    margin-bottom: 0.8rem;
}

.warning-message ul {
    list-style: none;
    padding-left: 1rem;
}

.warning-message li {
    margin-bottom: 0.5rem;
    padding-left: 1rem;
    position: relative;
}

.warning-message li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--danger-color);
    font-weight: bold;
}

.admin-verification {
    margin-top: 1.5rem;
}

.admin-verification label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--dark-color);
    display: flex;
    align-items: center;
    gap: 8px;
}

.admin-verification input {
    width: 100%;
    padding: 0.9rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.hint {
    font-size: 0.9rem;
    color: var(--gray-color);
    font-style: italic;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-top: 1px solid var(--border-color);
}

/* ===== BUTTON STYLES ===== */
.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    padding: 0.9rem 1.8rem;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #15246e, #1fb9b7);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(26, 41, 128, 0.2);
}

.btn-secondary {
    background: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 0.9rem 1.8rem;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.btn-text {
    background: none;
    color: var(--primary-color);
    border: none;
    padding: 0.9rem 1.8rem;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-text:hover {
    background: rgba(26, 41, 128, 0.1);
    transform: translateY(-2px);
}

.btn-refresh, .btn-logout, .btn-export, .btn-reset {
    padding: 0.7rem 1.2rem;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-refresh {
    background: var(--accent-color);
    color: white;
}

.btn-logout {
    background: var(--gray-color);
    color: white;
}

.btn-export {
    background: var(--info-color);
    color: white;
}

.btn-reset {
    background: var(--warning-color);
    color: var(--dark-color);
}

.btn-refresh:hover, .btn-logout:hover, .btn-export:hover, .btn-reset:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

.btn-cancel, .btn-danger {
    padding: 0.9rem 1.5rem;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-cancel {
    background: var(--gray-color);
    color: white;
}

.btn-danger {
    background: var(--danger-color);
    color: white;
}

.btn-cancel:hover, .btn-danger:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

/* ===== FOOTER ===== */
footer {
    background-color: var(--primary-color);
    color: white;
    margin-top: 3rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-section h3 {
    color: white;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.role-info {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.8rem;
    border-radius: 6px;
    margin-top: 1rem;
    font-weight: 600;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.8rem;
    padding-left: 1.5rem;
    position: relative;
}

.footer-section ul li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--secondary-color);
}

.footer-bottom {
    background-color: rgba(0, 0, 0, 0.2);
    padding: 1.5rem;
    text-align: center;
    font-size: 0.9rem;
}

/* ===== MESSAGE STYLES ===== */
.message {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 6px;
    text-align: center;
    font-weight: 600;
}

.message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.message.info {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 992px) {
    .login-container, .roles-section {
        grid-template-columns: 1fr;
    }
    
    .header-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .main-nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .admin-control-bar {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .page {
        padding: 1.5rem;
    }
    
    .welcome-section {
        flex-direction: column;
        text-align: center;
    }
    
    .stats-container {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .candidates-grid {
        grid-template-columns: 1fr;
    }
    
    .action-buttons, .results-actions, .modal-footer {
        flex-direction: column;
    }
    
    .results-summary {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .credentials-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .stats-container, .results-summary {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .user-status {
        min-width: auto;
        padding: 0.5rem 1rem;
    }
}