/* Custom CSS for Flask Web Application */

:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #0dcaf0;
    --light-color: #f8f9fa;
    --dark-color: #212529;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
}

/* Navigation */
.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
}

.navbar-nav .nav-link {
    font-weight: 500;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: rgba(255, 255, 255, 0.8) !important;
}

/* Cards */
.card {
    border: none;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    transition: box-shadow 0.15s ease-in-out;
}

.bill-card {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
    visibility: visible !important;
    display: block !important;
}

.bill-card * {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
}

.card:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.task-card {
    transition: all 0.3s ease;
}

.task-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.task-card.completed {
    opacity: 0.7;
    background-color: #f8f9fa;
}

.task-card.completed .card-title {
    text-decoration: line-through;
    color: #6c757d;
}

/* Stats */
.stat-item h3 {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.stat-item p {
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* Progress Bar */
.progress {
    height: 0.5rem;
}

.progress-bar {
    background: linear-gradient(45deg, var(--success-color), #20c997);
}

/* Buttons */
.btn {
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

/* Forms */
.form-control {
    border-radius: 0.375rem;
    border: 1px solid #ced4da;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

/* Footer */
footer {
    margin-top: auto;
}

/* Social Links */
.social-links .btn {
    margin: 0.25rem;
}

/* Contact Info */
.contact-info .fas {
    width: 1.5rem;
    text-align: center;
}

/* Code Blocks */
pre {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 0.375rem;
    padding: 1rem;
    font-size: 0.875rem;
}

/* Technology Icons */
.fab, .fas {
    transition: transform 0.3s ease;
}

.fab:hover, .fas:hover {
    transform: scale(1.1);
}

/* Responsive Design */
@media (max-width: 768px) {
    .stat-item h3 {
        font-size: 2rem;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .navbar-brand {
        font-size: 1.25rem;
    }
}

/* Animation - DISABLED FOR DEBUGGING */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* DISABLE ALL ANIMATIONS GLOBALLY */
* {
    animation: none !important;
    transition: none !important;
}

.card:not(.bill-card) {
    animation: none !important;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Civics 101 Specific Styles */
.process-steps {
    position: relative;
}

.step {
    display: flex;
    align-items: flex-start;
    position: relative;
}

.step-number {
    width: 40px;
    height: 40px;
    background: linear-gradient(45deg, var(--primary-color), #20c997);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-right: 15px;
    flex-shrink: 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.step-content {
    flex: 1;
    padding-top: 5px;
}

.step-content h6 {
    margin-bottom: 8px;
    font-weight: 600;
}

.step-content p {
    margin-bottom: 0;
    color: #6c757d;
}

/* Connect steps with lines */
.step:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 19px;
    top: 40px;
    width: 2px;
    height: calc(100% + 20px);
    background: linear-gradient(to bottom, var(--primary-color), transparent);
}

/* Quiz Styles */
.quiz-question {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 15px;
    background: #f8f9fa;
}

.quiz-btn {
    text-align: left;
    margin-bottom: 5px;
    transition: all 0.3s ease;
}

.quiz-btn:hover {
    transform: translateX(5px);
}

.score-display {
    font-size: 1.5rem;
}

/* Lesson Cards */
.card-header h3 {
    font-size: 1.5rem;
}

.card-header i {
    font-size: 1.2rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .step {
        flex-direction: column;
        text-align: center;
    }
    
    .step-number {
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    .step:not(:last-child)::after {
        display: none;
    }
    
    .display-4 {
        font-size: 2rem;
    }
}

/* Vote Count Styling */
.vote-count {
    padding: 0.5rem;
    border-radius: 0.375rem;
    background-color: rgba(0, 0, 0, 0.02);
    transition: background-color 0.2s ease;
}

.vote-count:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.vote-count i {
    font-size: 1.2rem;
    margin-bottom: 0.25rem;
}

.vote-count span {
    font-size: 1.1rem;
    display: block;
    margin: 0.25rem 0;
}

.vote-count small {
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
