/* Enhanced Candidate System Styles for United We Rise */

/* ========================================
   ENHANCED ELECTIONS DISPLAY
======================================== */

.enhanced-elections {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin: 1rem 0;
    overflow: hidden;
}

.elections-header {
    background: linear-gradient(135deg, #202e0c, #4b5c09);
    color: white;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.elections-header h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
}

.data-source {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
}

.source-badge {
    background: rgba(255,255,255,0.2);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.75rem;
}

.source-cache { background-color: #28a745; }
.source-api { background-color: #007bff; }
.source-fallback { background-color: #ffc107; color: #000; }

.source-message {
    font-style: italic;
    opacity: 0.9;
}

/* ========================================
   ENHANCED ELECTION & OFFICE CARDS
======================================== */

.enhanced-election {
    border-bottom: 1px solid #eee;
    padding: 1.5rem;
}

.enhanced-election:last-child {
    border-bottom: none;
}

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

.election-header h3 {
    margin: 0;
    color: #202e0c;
    font-size: 1.3rem;
}

.election-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.9rem;
    color: #666;
}

.election-date {
    font-weight: 500;
    color: #4b5c09;
}

.election-type {
    background: #f8f9fa;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    text-transform: capitalize;
}

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

.enhanced-office {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1rem;
    border-left: 4px solid #4b5c09;
}

.office-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
}

.office-header h4 {
    margin: 0;
    color: #202e0c;
    font-size: 1.1rem;
}

.office-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.25rem;
    font-size: 0.8rem;
}

.candidate-count {
    background: #4b5c09;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-weight: 500;
}

.office-level {
    color: #666;
    text-transform: uppercase;
    font-weight: 500;
}

.office-description {
    font-size: 0.9rem;
    color: #555;
    margin: 0.5rem 0;
    line-height: 1.4;
}

/* ========================================
   CANDIDATE CARDS
======================================== */

.candidates-preview {
    display: grid;
    gap: 0.75rem;
    margin: 1rem 0;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.candidate-card {
    background: white;
    border-radius: 8px;
    padding: 1rem;
    border: 1px solid #ddd;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
}

.candidate-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.candidate-photo {
    display: flex;
    justify-content: center;
    margin-bottom: 0.75rem;
}

.candidate-image {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #4b5c09;
}

.candidate-placeholder {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4b5c09, #6b7c19);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 600;
}

.candidate-info {
    text-align: center;
}

.candidate-name {
    margin: 0 0 0.25rem 0;
    font-size: 1rem;
    color: #202e0c;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.verified-badge {
    background: #28a745;
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: bold;
}

.incumbent-badge {
    background: #6f42c1;
    color: white;
    padding: 0.15rem 0.4rem;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 500;
    text-transform: uppercase;
}

.candidate-party {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 0.5rem;
    font-style: italic;
}

.candidate-summary, .no-summary {
    font-size: 0.8rem;
    color: #555;
    line-height: 1.3;
    margin: 0.5rem 0;
    text-align: left;
}

.no-summary {
    font-style: italic;
    color: #888;
}

.candidate-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    margin-top: 0.75rem;
}

.ai-analysis-indicator {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.25rem;
}

.ai-badge {
    background: linear-gradient(135deg, #6f42c1, #e83e8c);
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 500;
}

.policy-count {
    background: rgba(111, 66, 193, 0.1);
    color: #6f42c1;
    padding: 0.15rem 0.4rem;
    border-radius: 8px;
    font-size: 0.65rem;
    font-weight: 500;
}

.more-candidates {
    background: #f8f9fa;
    border: 2px dashed #ddd;
    border-radius: 8px;
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-weight: 500;
    font-size: 0.9rem;
}

/* ========================================
   OFFICE ACTIONS
======================================== */

.office-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.no-candidates {
    text-align: center;
    padding: 1.5rem;
    color: #666;
    font-style: italic;
}

.no-elections {
    text-align: center;
    padding: 3rem 1.5rem;
    color: #666;
}

.no-elections h3 {
    color: #4b5c09;
    margin-bottom: 1rem;
}

.election-info {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
    font-size: 0.9rem;
}

/* ========================================
   MODAL STYLES
======================================== */

.candidate-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 1rem;
}

.modal-container {
    background: white;
    border-radius: 12px;
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.modal-header {
    background: linear-gradient(135deg, #202e0c, #4b5c09);
    color: white;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 12px 12px 0 0;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.3rem;
}

.modal-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.modal-close:hover {
    background: rgba(255,255,255,0.1);
}

.modal-body {
    padding: 1.5rem;
}

/* ========================================
   CANDIDATE COMPARISON STYLES
======================================== */

.candidate-comparison {
    max-width: 100%;
}

.comparison-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

.comparison-header h3 {
    margin: 0;
    color: #202e0c;
}

.ai-status {
    font-size: 0.9rem;
}

.ai-enabled {
    background: linear-gradient(135deg, #6f42c1, #e83e8c);
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-weight: 500;
}

.ai-disabled {
    background: #ffc107;
    color: #000;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-weight: 500;
}

.candidates-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.comparison-candidate {
    text-align: center;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.comparison-candidate .candidate-header img,
.comparison-candidate .candidate-header .placeholder {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-bottom: 0.5rem;
}

.comparison-candidate .placeholder {
    background: linear-gradient(135deg, #4b5c09, #6b7c19);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    margin: 0 auto 0.5rem auto;
}

.comparison-candidate h4 {
    margin: 0;
    font-size: 0.95rem;
    color: #202e0c;
}

.comparison-candidate .party {
    font-size: 0.8rem;
    color: #666;
    font-style: italic;
}

.shared-issues, .unique-issues, .overall-summary {
    margin: 2rem 0;
}

.shared-issues h4, .unique-issues h4, .overall-summary h4 {
    color: #202e0c;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #eee;
}

.shared-issue {
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin: 1rem 0;
    overflow: hidden;
}

.issue-header {
    background: #f8f9fa;
    padding: 0.75rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.issue-header h5 {
    margin: 0;
    color: #202e0c;
}

.agreement-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
}

.agreement-high .agreement-badge {
    background: #d4edda;
    color: #155724;
}

.agreement-low .agreement-badge {
    background: #f8d7da;
    color: #721c24;
}

.agreement-mixed .agreement-badge {
    background: #fff3cd;
    color: #856404;
}

.agreement-unclear .agreement-badge {
    background: #e2e3e5;
    color: #6c757d;
}

.issue-positions {
    padding: 1rem;
}

.position-item {
    margin: 1rem 0;
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 6px;
    border-left: 4px solid #4b5c09;
}

.position-item .candidate-name {
    font-weight: 600;
    color: #202e0c;
    margin-bottom: 0.5rem;
}

.position-text {
    color: #555;
    line-height: 1.4;
    margin: 0.5rem 0;
}

.position-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.8rem;
    margin-top: 0.5rem;
}

.stance {
    padding: 0.15rem 0.5rem;
    border-radius: 10px;
    font-weight: 500;
    text-transform: uppercase;
}

.stance-for { background: #d4edda; color: #155724; }
.stance-against { background: #f8d7da; color: #721c24; }
.stance-neutral { background: #e2e3e5; color: #6c757d; }
.stance-nuanced { background: #d1ecf1; color: #0c5460; }

.confidence {
    color: #666;
}

.issue-summary {
    padding: 0.75rem 1rem;
    background: #f8f9fa;
    border-top: 1px solid #ddd;
    font-style: italic;
    color: #555;
}

.unique-issue {
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 1rem;
    margin: 1rem 0;
}

.unique-issue h5 {
    margin: 0 0 0.75rem 0;
    color: #202e0c;
}

.unique-positions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.unique-position {
    padding: 0.5rem;
    background: #f8f9fa;
    border-radius: 4px;
    line-height: 1.4;
}

.contact-link {
    margin-left: 0.5rem;
    background: #4b5c09;
    color: white;
    border: none;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: background-color 0.2s;
}

.contact-link:hover {
    background: #202e0c;
}

.comparison-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

.generated-time {
    color: #888;
    font-style: italic;
}

/* ========================================
   CONTACT FORM STYLES
======================================== */

.candidate-contact-form {
    max-width: 100%;
}

.candidate-info-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

.contact-photo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.contact-placeholder {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4b5c09, #6b7c19);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 600;
}

.candidate-info-header h3 {
    margin: 0;
    color: #202e0c;
}

.candidate-info-header .party {
    color: #666;
    font-style: italic;
    margin: 0.25rem 0;
}

.candidate-info-header .office {
    color: #4b5c09;
    font-weight: 500;
    margin: 0;
}

.inquiry-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 500;
    color: #202e0c;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.9rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #4b5c09;
    box-shadow: 0 0 0 2px rgba(75, 92, 9, 0.1);
}

.anonymous-inquiry {
    margin: 0.5rem 0;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
}

#anonymousContactInfo {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 6px;
    border: 1px solid #ddd;
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 1rem;
}

/* ========================================
   PUBLIC Q&A STYLES
======================================== */

.public-qa {
    max-width: 100%;
}

.qa-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

.qa-header h3 {
    margin: 0;
    color: #202e0c;
}

.qa-count {
    color: #666;
    font-size: 0.9rem;
    margin: 0;
}

.qa-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.qa-item {
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

.qa-item.pinned {
    border-left: 4px solid #ffc107;
}

.pinned-indicator {
    background: #ffc107;
    color: #000;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 500;
    text-align: center;
}

.question {
    padding: 1rem;
    background: #f8f9fa;
}

.question h5 {
    margin: 0 0 0.5rem 0;
    color: #202e0c;
    font-size: 1rem;
}

.question-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.8rem;
    color: #666;
}

.question-meta .category {
    background: #4b5c09;
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 10px;
    text-transform: uppercase;
    font-size: 0.7rem;
}

.answer {
    padding: 1rem;
}

.answer p {
    margin: 0;
    line-height: 1.5;
    color: #333;
}

.qa-engagement {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background: #f8f9fa;
    border-top: 1px solid #ddd;
}

.voting {
    display: flex;
    gap: 0.5rem;
}

.vote-btn {
    background: none;
    border: 1px solid #ddd;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.2s;
}

.vote-btn:hover {
    background: #f8f9fa;
    border-color: #4b5c09;
}

.vote-btn.upvote:hover {
    background: #d4edda;
    border-color: #28a745;
}

.vote-count {
    padding: 0.4rem 0.8rem;
    background: #e9ecef;
    border-radius: 20px;
    font-size: 0.85rem;
}

.views {
    color: #666;
    font-size: 0.8rem;
}

.no-qa {
    text-align: center;
    padding: 3rem 1rem;
    color: #666;
}

.qa-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

/* ========================================
   LOADING & UTILITY STYLES
======================================== */

.comparison-loading {
    text-align: center;
    padding: 3rem 1rem;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #4b5c09;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-detail {
    color: #666;
    font-size: 0.9rem;
    font-style: italic;
}

/* ========================================
   BUTTONS
======================================== */

.btn-primary, .btn-secondary, .btn-outline {
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    font-weight: 500;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.btn-primary {
    background: linear-gradient(135deg, #4b5c09, #6b7c19);
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #202e0c, #4b5c09);
    transform: translateY(-1px);
}

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

.btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-1px);
}

.btn-outline {
    background: white;
    color: #4b5c09;
    border: 1px solid #4b5c09;
}

.btn-outline:hover {
    background: #4b5c09;
    color: white;
}

.btn-sm {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
}

/* ========================================
   NOTIFICATIONS
======================================== */

.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 1rem 1.5rem;
    border-radius: 6px;
    color: white;
    font-weight: 500;
    z-index: 1001;
    animation: slideIn 0.3s ease-out;
    max-width: 300px;
}

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

.notification-success {
    background: #28a745;
}

.notification-error {
    background: #dc3545;
}

.notification-info {
    background: #17a2b8;
}

/* ========================================
   RESPONSIVE DESIGN
======================================== */

@media (max-width: 768px) {
    .offices-grid {
        grid-template-columns: 1fr;
    }
    
    .candidates-preview {
        grid-template-columns: 1fr;
    }
    
    .candidates-overview {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .election-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .office-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .office-meta {
        align-items: flex-start;
        flex-direction: row;
        gap: 0.5rem;
    }
    
    .candidate-info-header {
        flex-direction: column;
        text-align: center;
    }
    
    .form-actions {
        justify-content: stretch;
    }
    
    .form-actions button {
        flex: 1;
    }
    
    .office-actions {
        flex-direction: column;
    }
    
    .comparison-actions {
        flex-direction: column;
    }
    
    .qa-actions {
        flex-direction: column;
    }
    
    .modal-container {
        margin: 0.5rem;
        max-height: 95vh;
    }
}

@media (max-width: 480px) {
    .candidates-overview {
        grid-template-columns: 1fr;
    }
    
    .election-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .qa-engagement {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }
}

/* ========================================
   CANDIDATE DASHBOARD STYLES
======================================== */

.candidate-dashboard {
    background: #f8f9fa;
    min-height: 100vh;
    padding: 1rem;
}

.dashboard-header {
    background: linear-gradient(135deg, #202e0c, #4b5c09);
    color: white;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

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

.dashboard-header .subtitle {
    margin: 0 0 1rem 0;
    opacity: 0.9;
    font-size: 1.1rem;
}

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

.status-badge {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.status-badge.verified {
    background: rgba(40, 167, 69, 0.8);
    border-color: rgba(40, 167, 69, 0.5);
}

.candidate-name {
    font-weight: 600;
    font-size: 1.1rem;
}

.dashboard-content {
    max-width: 1200px;
    margin: 0 auto;
}

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

.dashboard-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    padding: 1.5rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.dashboard-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.dashboard-card.primary {
    border-top: 4px solid #ff6b35;
}

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

.card-icon {
    font-size: 2rem;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border-radius: 50%;
    flex-shrink: 0;
}

.card-header h3 {
    margin: 0;
    color: #333;
    font-size: 1.3rem;
    font-weight: 600;
}

.card-content p {
    color: #666;
    margin: 0 0 1rem 0;
    line-height: 1.5;
}

.card-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.stat {
    background: #f8f9fa;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.85rem;
    color: #666;
    border: 1px solid #e9ecef;
}

.card-actions {
    margin-top: 1.5rem;
}

.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-block;
    font-size: 0.95rem;
}

.btn.primary {
    background: linear-gradient(135deg, #ff6b35, #e55a2b);
    color: white;
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.3);
}

.btn.primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.4);
}

.btn.secondary {
    background: #f8f9fa;
    color: #333;
    border: 1px solid #e9ecef;
}

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

.quick-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.quick-btn {
    padding: 0.6rem 1rem;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    cursor: pointer;
    text-align: left;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    color: #333;
}

.quick-btn:hover {
    background: #e9ecef;
    transform: translateX(3px);
}

/* Dashboard button styling for header */
.header-btn.dashboard {
    background: linear-gradient(135deg, #28a745, #20c997) !important;
    border-color: #28a745 !important;
}

.header-btn.dashboard:hover {
    background: linear-gradient(135deg, #218838, #1e9f85) !important;
    transform: translateY(-1px);
}

/* Responsive dashboard */
@media (max-width: 768px) {
    .dashboard-header {
        padding: 1.5rem;
        text-align: center;
    }
    
    .dashboard-header h1 {
        font-size: 1.5rem;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .candidate-info {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .dashboard-header {
        padding: 1rem;
    }
    
    .dashboard-card {
        padding: 1rem;
    }
    
    .card-header {
        flex-direction: column;
        text-align: center;
    }
    
    .card-icon {
        margin: 0 auto;
    }
}