/* Custom color theme based on provided palette */

/* Import Inter font from Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@100;200;300;400;500;600;700;800;900&display=swap');

/* Base Colors
   Primary: Navy Blue #123d67
   Secondary: Medium Blue #366ca0
   Accent: Navy Blue (lighter) #194a7f
   Interactive: Bright Blue #2677c7
   Background: Off-White #f8f7f1
*/

/* Typography */
body {
    font-family: 'Inter', sans-serif;
    background-color: #f8f7f1;
    color: #123d67;
}

h1, h2, h3, h4, h5, h6, .navbar-brand {
    font-family: 'Inter', sans-serif;
    color: #123d67;
}

/* Navbar styling */
.navbar-dark {
    background-color: #123d67 !important;
}

.navbar-brand {
    font-size: 1.75rem;
    font-weight: 700;
    color: #f8f7f1 !important;
}

.navbar-dark .navbar-nav .nav-link {
    color: #f8f7f1 !important;
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link:focus {
    color: #2677c7 !important;
}

.navbar-dark .navbar-toggler {
    border-color: #f8f7f1;
}

/* Card styling */
.card {
    border-color: #366ca0;
    background-color: #fff;
}

.card-header.bg-primary {
    background-color: #123d67 !important;
    color: #f8f7f1;
    border-bottom: none;
}

.card-body {
    background-color: #fff;
}

/* Button styling - use the same color for all buttons */
.btn-primary {
    background-color: #2677c7 !important;
    border-color: #2677c7 !important;
    color: #f8f7f1 !important;
}

.btn-primary:hover, .btn-primary:focus {
    background-color: #194a7f !important;
    border-color: #194a7f !important;
}

.btn-outline-primary {
    color: #2677c7 !important;
    border-color: #2677c7 !important;
}

.btn-outline-primary:hover {
    background-color: #2677c7 !important;
    color: #f8f7f1 !important;
}

.btn-secondary {
    background-color: #366ca0 !important;
    border-color: #366ca0 !important;
    color: #f8f7f1 !important;
}

.btn-secondary:hover {
    background-color: #194a7f !important;
    border-color: #194a7f !important;
}

/* Preserving success and danger colors for correct/incorrect answers */
.btn-success {
    background-color: #28a745 !important;
    border-color: #28a745 !important;
}

.btn-success:hover {
    background-color: #218838 !important;
    border-color: #218838 !important;
}

.btn-danger {
    background-color: #dc3545 !important;
    border-color: #dc3545 !important;
}

.btn-danger:hover {
    background-color: #c82333 !important;
    border-color: #c82333 !important;
}

.btn-warning {
    background-color: #366ca0 !important;
    border-color: #366ca0 !important;
    color: #f8f7f1 !important;
}

.btn-warning:hover {
    background-color: #194a7f !important;
    border-color: #194a7f !important;
}

/* Links */
a {
    color: #2677c7;
}

a:hover {
    color: #194a7f;
}

/* Form elements */
.form-control:focus, .form-select:focus, .form-check-input:focus {
    border-color: rgba(38, 119, 199, 0.5) !important;
    box-shadow: 0 0 0 0.25rem rgba(38, 119, 199, 0.25) !important;
}

.form-check-input:checked {
    background-color: #2677c7 !important;
    border-color: #2677c7 !important;
}

/* Progress indicator */
.progress-indicator .progress-dot {
    background-color: #366ca0;
}

.progress-indicator .progress-dot.active {
    background-color: #2677c7;
}

.progress-indicator .progress-dot.correct {
    background-color: #28a745;
}

.progress-indicator .progress-dot.incorrect {
    background-color: #dc3545;
}

/* Flashcard styling */
.flashcard {
    background-color: #fff;
    box-shadow: 0 4px 15px rgba(18, 61, 103, 0.15);
}

.flashcard-front {
    background-image: linear-gradient(135deg, #123d67, #194a7f) !important;
    color: #f8f7f1;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
}

.flashcard-back {
    background-color: #f8f7f1;
    color: #123d67;
}

.flashcard.correct .flashcard-front {
    background-image: linear-gradient(135deg, #28a745, #218838) !important;
}

.flashcard.incorrect .flashcard-front {
    background-image: linear-gradient(135deg, #dc3545, #c82333) !important;
}

/* Textbook selection */
.textbook-card {
    border: 2px solid #366ca0 !important;
    background-color: #fff;
}

.textbook-card:hover {
    border-color: #2677c7 !important;
    box-shadow: 0 4px 8px rgba(18, 61, 103, 0.2);
}

.textbook-card.selected {
    border-color: #123d67 !important;
    background-color: rgba(18, 61, 103, 0.05);
}

.card-img-container {
    background-color: #366ca0;
}

.textbook-placeholder {
    color: #f8f7f1;
}

/* Background colors */
.bg-primary {
    background-color: #123d67 !important;
}

.bg-secondary {
    background-color: #366ca0 !important;
}

.bg-light {
    background-color: #f8f7f1 !important;
}

.bg-danger {
    background-color: #dc3545 !important;
}

/* Alert styling */
.alert-warning {
    background-color: #194a7f;
    color: #f8f7f1;
    border-color: #123d67;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border-color: #f5c6cb;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border-color: #c3e6cb;
}

/* Badge styling */
.badge.bg-primary {
    background-color: #123d67 !important;
}

.badge.bg-secondary {
    background-color: #366ca0 !important;
}

/* Stats and progress bars */
.progress-bar.bg-success {
    background-color: #28a745 !important;
}

.progress-bar.bg-warning {
    background-color: #366ca0 !important;
}

.progress-bar.bg-danger {
    background-color: #dc3545 !important;
}

/* Difficulty indicators */
.difficulty-low {
    background-color: #28a745;
}

.difficulty-medium {
    background-color: #366ca0;
}

.difficulty-high {
    background-color: #dc3545;
}

/* Quiz completion modal */
.quiz-complete-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(18, 61, 103, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1050;
}

.quiz-complete-content {
    background-color: #f8f7f1;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(18, 61, 103, 0.3);
    padding: 30px;
    width: 90%;
    max-width: 500px;
    text-align: center;
}

/* Active navigation link */
.nav-link.active {
    background-color: rgba(54, 108, 160, 0.3) !important;
    color: #f8f7f1 !important;
}

/* Checkbox hover */
.checkbox-label:hover {
    background-color: rgba(18, 61, 103, 0.1) !important;
}

/* Button transitions */
.btn {
    transition: all 0.2s;
}

/* Navbar logo styling */
.navbar-logo {
    height: 40px;
    width: auto;
    max-width: 200px;
}

/* Mobile-specific styles */
@media (max-width: 767px) {
    .navbar-logo {
        height: 35px;
        max-width: 160px;
    }
    
    .flashcard-front, .flashcard-back {
        padding: 15px;
    }
    
    .flashcard-front {
        font-size: 2rem;
    }
    
    /* Mobile chapter selection */
    .checkbox-group {
        max-height: 200px;
        overflow-y: auto;
        padding-right: 5px;
    }
    
    /* Mobile quiz and restudy */
    .flashcard {
        height: auto;
        min-height: 300px;
        margin: 15px auto;
    }
    
    .flashcard-definition .definition-text {
        font-size: 1.2rem;
        line-height: 1.4;
    }
    
    .d-flex.gap-2 {
        gap: 0.5rem !important;
    }
    
    .answer-btn {
        min-width: auto;
        padding: 8px 12px;
        font-size: 0.9rem;
    }
    
    .d-flex.justify-content-between.align-items-center.mt-4 {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .d-flex.justify-content-between.align-items-center.mt-4 .btn-secondary {
        padding: 6px 10px;
        font-size: 0.9rem;
    }
    
    .progress-indicator {
        margin-bottom: 15px;
    }
    
    .progress-dot {
        width: 8px;
        height: 8px;
        margin: 0 3px;
    }
    
    .quiz-complete-content {
        padding: 20px;
        width: 95%;
    }
    
    .container {
        padding: 15px;
    }
} 