/* ===================================
   AI FOR ACCOUNTING STUDENTS
   Clean, Modern Styles
   =================================== */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* Category Buttons */
.category-btn {
    padding: 0.5rem 1.5rem;
    border-radius: 9999px;
    background-color: #e5e7eb;
    color: #374151;
    font-weight: 500;
    font-size: 0.875rem;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
}

.category-btn:hover {
    background-color: #d1d5db;
}

.category-btn.active {
    background-color: #2563eb;
    color: white;
}

/* Tool Cards */
.tool-card {
    background: white;
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s;
}

.tool-card:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    transform: translateY(-4px);
}

/* Learning Cards */
.learning-card {
    background: white;
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s;
}

.learning-card:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

/* Resource Cards */
.resource-card {
    background: white;
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    transition: all 0.3s;
}

.resource-card:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

/* Modal */
#modal.active {
    display: flex !important;
}

#modal-content {
    max-height: calc(90vh - 100px);
}

/* Toast */
#toast.show {
    transform: translateY(0);
    opacity: 1;
}

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

#toast.error {
    background-color: #ef4444;
}

#toast.info {
    background-color: #3b82f6;
}

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

.fade-in {
    animation: fadeIn 0.5s ease-out;
}

/* Lesson Progress */
.lesson-item {
    padding: 1rem;
    border-radius: 0.5rem;
    border: 2px solid #e5e7eb;
    transition: all 0.2s;
}

.lesson-item.completed {
    border-color: #10b981;
    background-color: #f0fdf4;
}

.lesson-item.current {
    border-color: #3b82f6;
    background-color: #eff6ff;
}

.lesson-badge {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.875rem;
}

.lesson-badge.completed {
    background-color: #10b981;
    color: white;
}

.lesson-badge.current {
    background-color: #3b82f6;
    color: white;
}

.lesson-badge.locked {
    background-color: #d1d5db;
    color: #6b7280;
}

/* Quiz Options */
.quiz-option {
    width: 100%;
    text-align: left;
    padding: 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 0.5rem;
    transition: all 0.2s;
    cursor: pointer;
    background: white;
}

.quiz-option:hover:not(:disabled) {
    border-color: #3b82f6;
    background-color: #eff6ff;
}

.quiz-option.correct {
    background-color: #f0fdf4;
    border-color: #10b981;
}

.quiz-option.incorrect {
    background-color: #fef2f2;
    border-color: #ef4444;
}

.quiz-option:disabled {
    cursor: not-allowed;
}

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

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;
}

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

/* Responsive */
@media (max-width: 768px) {
    #modal > div {
        max-width: 100%;
        margin: 1rem;
    }
    
    #toast {
        bottom: 1rem;
        right: 1rem;
        left: 1rem;
    }
}
