/**
 * Admin Interface Styles
 * School Voting Application
 */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

/* Login Page Styles */
.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.login-container {
    width: 100%;
    max-width: 400px;
    padding: 20px;
}

.login-form {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-header h1 {
    color: #333;
    margin-bottom: 10px;
}

.login-header p {
    color: #666;
    font-size: 14px;
}

.login-footer {
    text-align: center;
    margin-top: 20px;
}

.login-footer a {
    color: #667eea;
    text-decoration: none;
}

/* Admin Layout */
.admin-layout {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.admin-header {
    background: white;
    border-bottom: 1px solid #e1e5e9;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.app-title {
    font-size: 20px;
    font-weight: 600;
}

.app-title a {
    color: #333;
    text-decoration: none;
}

.admin-nav {
    display: flex;
    gap: 30px;
}

.nav-link {
    color: #666;
    text-decoration: none;
    padding: 8px 0;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #667eea;
    border-bottom-color: #667eea;
}

.admin-menu {
    display: flex;
    align-items: center;
    gap: 15px;
}

.admin-name {
    color: #666;
    font-size: 14px;
}

/* Main Content */
.admin-content {
    flex: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
    width: 100%;
}

.page-header {
    display: flex;
    justify-content: between;
    align-items: center;
    margin-bottom: 30px;
}

.page-header h1 {
    font-size: 28px;
    color: #333;
    margin: 0;
}

/* Dashboard Styles */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.system-status {
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
}

.system-status.enabled {
    background: #d4edda;
    color: #155724;
}

.system-status.disabled {
    background: #f8d7da;
    color: #721c24;
}

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

.stat-card {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 15px;
}

.stat-icon {
    font-size: 36px;
    opacity: 0.7;
}

.stat-content h3 {
    font-size: 32px;
    color: #333;
    margin-bottom: 5px;
}

.stat-content p {
    color: #666;
    font-size: 14px;
}

/* Forms */
.form-group {
    margin-bottom: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #333;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-group small {
    display: block;
    margin-top: 5px;
    color: #666;
    font-size: 12px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.btn-primary {
    background: #667eea;
    color: white;
}

.btn-primary:hover {
    background: #9fa0a8;
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
}

.btn-danger {
    background: #dc3545;
    color: white;
}

.btn-danger:hover {
    background: #c82333;
}

.btn-warning {
    background: #ffc107;
    color: #212529;
}

.btn-warning:hover {
    background: #e0a800;
}

.btn-outline {
    background: transparent;
    color: #667eea;
    border: 1px solid #667eea;
}

.btn-outline:hover {
    background: #667eea;
    color: white;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
}

.btn-block {
    width: 100%;
}

/* Data Tables */
.data-table-container {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th,
.data-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #e1e5e9;
}

.data-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #333;
}

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

.candidate-thumbnail {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.status-badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.status-active {
    background: #d4edda;
    color: #155724;
}

.status-inactive {
    background: #f8d7da;
    color: #721c24;
}

.actions {
    display: flex;
    gap: 8px;
}

/* Alerts */
.alert {
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
}

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

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

.alert-warning {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

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

/* Modals */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-large {
    max-width: 700px;
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid #e1e5e9;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    color: #333;
}

.close {
    font-size: 24px;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
}

.close:hover {
    color: #333;
}

.modal-body {
    padding: 20px;
}

.modal form {
    padding: 20px;
}

.form-actions {
    margin-top: 30px;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

/* Settings */
.settings-container {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.settings-tabs {
    display: flex;
    border-bottom: 1px solid #e1e5e9;
}

.tab-button {
    padding: 15px 25px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
    color: #666;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
}

.tab-button.active,
.tab-button:hover {
    color: #667eea;
    border-bottom-color: #667eea;
    background: #f8f9fa;
}

.tab-content {
    display: none;
    padding: 30px;
}

.tab-content.active {
    display: block;
}

.settings-section {
    margin-bottom: 40px;
}

.settings-section:last-child {
    margin-bottom: 0;
}

.settings-section h3 {
    margin-bottom: 20px;
    color: #333;
    border-bottom: 1px solid #e1e5e9;
    padding-bottom: 10px;
}

/* Maintenance */
.maintenance-actions {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.maintenance-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border: 1px solid #e1e5e9;
    border-radius: 5px;
}

.maintenance-info h4 {
    margin-bottom: 5px;
    color: #333;
}

.maintenance-info p {
    color: #666;
    font-size: 14px;
}

/* System Info */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 1px solid #e1e5e9;
}

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

.info-item label {
    font-weight: 500;
    color: #333;
}

.info-item span {
    color: #666;
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.text-muted {
    color: #666;
}

.text-warning {
    color: #856404;
}

.no-data {
    text-align: center;
    color: #666;
    font-style: italic;
    padding: 40px;
}

/* Quick Actions */
.quick-actions {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.quick-actions h2 {
    margin-bottom: 20px;
    color: #333;
}

.action-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

/* Recent Activity */
.recent-activity {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.recent-activity h2 {
    margin-bottom: 20px;
    color: #333;
}

.activity-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.activity-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 5px;
}

.activity-content {
    flex: 1;
}

.activity-time {
    color: #666;
    font-size: 12px;
}

/* Checkbox Styles */
.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: normal;
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid #ddd;
    border-radius: 3px;
    margin-right: 10px;
    position: relative;
    transition: all 0.3s ease;
}

.checkbox-label input[type="checkbox"]:checked+.checkmark {
    background: #667eea;
    border-color: #667eea;
}

.checkbox-label input[type="checkbox"]:checked+.checkmark::after {
    content: "✓";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        padding: 0 15px;
        flex-wrap: wrap;
        height: auto;
        padding-top: 15px;
        padding-bottom: 15px;
    }

    .admin-nav {
        width: 100%;
        justify-content: center;
        margin-top: 15px;
        gap: 20px;
    }

    .admin-content {
        padding: 20px 15px;
    }

    .page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .maintenance-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .action-buttons {
        flex-direction: column;
    }

    .activity-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

/* Export Section */
.export-section {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.export-section h3 {
    margin-bottom: 20px;
    color: #333;
}

.export-options {
    display: flex;
    gap: 20px;
    align-items: end;
    flex-wrap: wrap;
}

.export-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.export-group label {
    font-weight: 500;
    color: #333;
    font-size: 14px;
}

.export-group select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    min-width: 150px;
}

/* Backup Section Styles */
.backup-section {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.backup-section h3 {
    margin-bottom: 15px;
    color: #333;
}

.backup-section p {
    color: #666;
    margin-bottom: 20px;
}

.existing-backups {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.existing-backups h3 {
    margin-bottom: 20px;
    color: #333;
}

.backup-info {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.backup-info h3 {
    margin-bottom: 20px;
    color: #333;
}

.info-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.info-card {
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    padding: 20px;
}

.info-card h4 {
    margin-bottom: 15px;
    color: #333;
    font-size: 1.1rem;
}

.info-card ul {
    list-style: none;
    padding: 0;
}

.info-card li {
    padding: 5px 0;
    color: #666;
    position: relative;
    padding-left: 20px;
}

.info-card li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #28a745;
    font-weight: bold;
}


.dashboard-header {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    color: white;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dashboard-header h3 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
}

.refresh-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    opacity: 0.9;
}

.refresh-dot {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.positions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 1.5rem;
    padding: 2rem;
}

.position-tile {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    background: white;
}

.position-tile:hover {
    box-shadow: 0 8px 25px -8px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.position-header {
    background: #f8fafc;
    border-bottom: 1px solid #e5e7eb;
    padding: 1.25rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.position-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.total-votes {
    text-align: right;
}

.vote-count {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: #3b82f6;
    line-height: 1;
}

.vote-label {
    font-size: 0.75rem;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.candidates-results {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.candidate-result {
    border: 1px solid #f3f4f6;
    border-radius: 8px;
    padding: 1rem;
    transition: all 0.2s ease;
}

.candidate-result:hover {
    border-color: #e5e7eb;
    background: #f9fafb;
}

.candidate-result.leading {
    border-color: #10b981;
    background: #f0fdf4;
}

.candidate-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.candidate-name {
    font-weight: 600;
    color: #111827;
    font-size: 1rem;
}

.leading-badge {
    background: #10b981;
    color: white;
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.vote-stats {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.vote-numbers {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.votes {
    color: #374151;
    font-size: 0.875rem;
    font-weight: 500;
}

.percentage {
    color: #6b7280;
    font-size: 0.875rem;
    font-weight: 600;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: #e5e7eb;
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: #3b82f6;
    border-radius: 3px;
    transition: width 0.5s ease;
    position: relative;
}

.progress-fill.leading {
    background: linear-gradient(90deg, #10b981 0%, #059669 100%);
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.3) 50%, transparent 100%);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

.no-votes-yet {
    padding: 2rem;
    text-align: center;
    color: #6b7280;
}

.no-votes-icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 0.5rem;
}

.no-votes-yet p {
    margin: 0;
    font-style: italic;
}

.no-data-modern {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem 2rem;
    color: #6b7280;
}

.no-data-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.no-data-modern h4 {
    font-size: 1.25rem;
    color: #374151;
    margin-bottom: 0.5rem;
}

.no-data-modern p {
    margin: 0;
    font-size: 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .positions-grid {
        grid-template-columns: 1fr;
        padding: 1rem;
        gap: 1rem;
    }

    .dashboard-header {
        padding: 1rem 1.5rem;
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }

    .position-header {
        padding: 1rem;
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }

    .candidates-results {
        padding: 1rem;
    }

    .candidate-info {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }

    .vote-numbers {
        flex-direction: column;
        gap: 0.25rem;
        align-items: flex-start;
    }
}

/* Animation for new votes */
@keyframes newVote {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
        background: #dbeafe;
    }

    100% {
        transform: scale(1);
    }
}

.candidate-result.new-vote {
    animation: newVote 0.6s ease;
}

/* Vote count number animation */
@keyframes countUp {
    0% {
        transform: scale(0.8);
        color: #10b981;
    }

    100% {
        transform: scale(1);
    }
}

.vote-count.updated {
    animation: countUp 0.4s ease;
}


/* Modern Votes Page Styles */
.votes-page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
    padding: 2rem;
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    border-radius: 16px;
    color: white;
}

.page-title h1 {
    font-size: 2rem;
    margin: 0 0 0.5rem 0;
    font-weight: 700;
}

.page-title p {
    margin: 0;
    opacity: 0.9;
    font-size: 1.1rem;
}

.vote-stats-summary {
    display: flex;
    gap: 1rem;
}

.stat-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 140px;
}

.stat-icon {
    font-size: 2rem;
    opacity: 0.9;
}

.stat-content {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1;
}

.stat-label {
    font-size: 0.875rem;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Main Grid Layout */
.votes-main-grid {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 2rem;
    align-items: start;
}

.votes-left-column,
.votes-right-column {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Management Cards */
.management-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    border: 1px solid #e5e7eb;
}

.card-header {
    background: #f8fafc;
    padding: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-header h3 {
    margin: 0 0 0.25rem 0;
    font-size: 1.125rem;
    font-weight: 600;
    color: #111827;
}

.card-header p {
    margin: 0;
    font-size: 0.875rem;
    color: #6b7280;
}

.card-content {
    padding: 1.5rem;
}

/* Session Search */
.session-search-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.search-input-wrapper {
    display: flex;
    gap: 0.75rem;
}

.session-input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.2s ease;
}

.session-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.search-btn {
    padding: 0.75rem 1.5rem;
    background: #3b82f6;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.search-btn:hover {
    background: #2563eb;
    transform: translateY(-1px);
}

.input-help {
    color: #6b7280;
    font-size: 0.8rem;
}

/* Search Results */
.search-results-card {
    border-left: 4px solid #3b82f6;
}

.session-votes-grid {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.vote-item {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1rem;
    transition: all 0.2s ease;
}

.vote-item:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

.vote-position {
    font-weight: 600;
    color: #374151;
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}

.vote-candidate {
    font-weight: 700;
    color: #111827;
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.vote-time {
    font-size: 0.8rem;
    color: #6b7280;
}

.no-results-found {
    text-align: center;
    padding: 2rem;
    color: #6b7280;
}

.no-results-icon {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
}

.no-results-found h4 {
    margin: 0 0 0.5rem 0;
    color: #374151;
}

.no-results-found p {
    margin: 0;
    font-size: 0.875rem;
}

/* Activity Timeline */
.activity-timeline {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.activity-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    position: relative;
}

.activity-dot {
    width: 8px;
    height: 8px;
    background: #3b82f6;
    border-radius: 50%;
    margin-top: 0.5rem;
    flex-shrink: 0;
}

.activity-item:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 3.5px;
    top: 16px;
    width: 1px;
    height: calc(100% + 0.5rem);
    background: #e5e7eb;
}

.activity-content {
    flex: 1;
}

.activity-main {
    font-size: 0.875rem;
    color: #374151;
    margin-bottom: 0.25rem;
}

.activity-meta {
    font-size: 0.75rem;
    color: #6b7280;
}

.no-activity {
    text-align: center;
    padding: 2rem;
    color: #6b7280;
}

.no-activity-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

/* Export Controls */
.export-controls {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.export-row {
    display: flex;
    gap: 0.75rem;
}

.export-select {
    flex: 1;
    padding: 0.5rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 0.875rem;
}

.export-btn {
    width: 100%;
    padding: 0.75rem;
    background: #10b981;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.export-btn:hover {
    background: #059669;
    transform: translateY(-1px);
}

/* Danger Button */
.danger-btn {
    padding: 0.5rem 1rem;
    background: #dc2626;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.danger-btn:hover {
    background: #b91c1c;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .votes-main-grid {
        grid-template-columns: 1fr;
    }
    
    .votes-page-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .vote-stats-summary {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .vote-stats-summary {
        flex-direction: column;
        width: 100%;
    }
    
    .stat-card {
        justify-content: center;
    }
    
    .search-input-wrapper {
        flex-direction: column;
    }
    
    .export-row {
        flex-direction: column;
    }
    
    .card-header {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
}

/* Site-wide Footer */
.app-footer {
    margin-top: auto;
    padding: 1rem 0;
    background: transparent;
    border-top: 1px solid #e5e7eb;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    text-align: center;
}

.footer-text {
    margin: 0;
    font-size: 0.875rem;
    color: #9ca3af;
}

.footer-text a {
    color: #6b7280;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-text a:hover {
    color: #374151;
}

/* School Header Styles */
.school-header {
    width: 100%;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.welcome-bar {
    background: linear-gradient(135deg, #b45309 0%, #d97706 100%);
    color: white;
    padding: 0.75rem 0;
}

.welcome-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    text-align: center;
}

.welcome-text {
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.025em;
}

.main-header {
    background: white;
    padding: 1.5rem 0;
    border-bottom: 3px solid #d97706;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.school-logo {
    flex-shrink: 0;
}

.logo-image {
    width: 100px;
    height: 100px;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.school-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.school-title {
    text-align: center;
}

.school-name-line1 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1e40af;
    margin: 0;
    letter-spacing: 0.025em;
    line-height: 1.2;
}

.school-name-line2 {
    font-size: 2rem;
    font-weight: 700;
    color: #d97706;
    margin: 0.25rem 0 0.5rem 0;
    letter-spacing: 0.025em;
    line-height: 1.1;
}

.system-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #374151;
    margin: 0;
    padding: 0.5rem 1rem;
    background: #f3f4f6;
    border-radius: 8px;
    border-left: 4px solid #3b82f6;
}

.school-details {
    text-align: center;
    font-size: 0.875rem;
    color: #6b7280;
    line-height: 1.5;
}

.school-details p {
    margin: 0.25rem 0;
}

.affiliation {
    font-weight: 500;
    color: #374151;
}

.contact {
    font-weight: 400;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    
    .logo-image {
        width: 80px;
        height: 80px;
    }
    
    .school-name-line1 {
        font-size: 1rem;
    }
    
    .school-name-line2 {
        font-size: 1.5rem;
    }
    
    .system-title {
        font-size: 1rem;
    }
    
    .welcome-text {
        font-size: 0.85rem;
    }
    
    .school-details {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .main-header {
        padding: 1rem 0;
    }
    
    .welcome-bar {
        padding: 0.5rem 0;
    }
    
    .logo-image {
        width: 70px;
        height: 70px;
    }
    
    .school-name-line2 {
        font-size: 1.25rem;
    }
    
    .system-title {
        font-size: 0.9rem;
        padding: 0.375rem 0.75rem;
    }
}

/* Admin Header Updates */
.admin-header {
    background: white;
    border-bottom: 1px solid #e1e5e9;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.admin-title a {
    color: #374151;
    text-decoration: none;
    font-size: 1.25rem;
    font-weight: 600;
}

/* Update body to accommodate new header */
.admin-layout {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.admin-content {
    flex: 1;
}