/* General Styles */
body {
    background-color: #f8f9fa;
}

.card {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.2s;
}

.card:hover {
    transform: translateY(-2px);
}

/* Dashboard Cards */
.dashboard-card {
    height: 100%;
    cursor: pointer;
}

.dashboard-card .card-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.dashboard-card i {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* Flashcard Styles */
.flashcard {
    min-height: 300px;
    perspective: 1000px;
    cursor: pointer;
}

.flashcard-inner {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 300px;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.flashcard.flipped .flashcard-inner {
    transform: rotateY(180deg);
}

.flashcard-front,
.flashcard-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    border-radius: 0.5rem;
    font-size: 1.25rem;
}

.flashcard-front {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.flashcard-back {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    color: white;
    transform: rotateY(180deg);
}

/* Pomodoro Timer */
.pomodoro-display {
    font-size: 6rem;
    font-weight: bold;
    font-family: 'Courier New', monospace;
}

.pomodoro-card {
    background: linear-gradient(135deg, #ee0979 0%, #ff6a00 100%);
    color: white;
}

/* Code Snippet */
.code-block {
    background-color: #1e1e1e;
    color: #d4d4d4;
    border-radius: 0.5rem;
    padding: 1rem;
    font-family: 'Courier New', monospace;
    overflow-x: auto;
    white-space: pre-wrap;
}

/* Circuit Solver */
.circuit-result {
    font-size: 1.5rem;
    font-weight: bold;
    color: #0d6efd;
}

/* Concept Map */
#concept-canvas {
    border: 2px solid #dee2e6;
    border-radius: 0.5rem;
    background-color: white;
    cursor: crosshair;
}

.concept-node {
    position: absolute;
    padding: 10px 20px;
    border-radius: 20px;
    background-color: #6c757d;
    color: white;
    cursor: move;
    user-select: none;
    z-index: 10;
}

/* Quiz */
.quiz-option {
    cursor: pointer;
    transition: all 0.2s;
}

.quiz-option:hover {
    background-color: #e9ecef;
}

.quiz-option.correct {
    background-color: #d4edda !important;
    border-color: #28a745 !important;
}

.quiz-option.incorrect {
    background-color: #f8d7da !important;
    border-color: #dc3545 !important;
}

/* Formula display */
.formula-display {
    font-family: 'Times New Roman', serif;
    font-size: 1.25rem;
    padding: 1rem;
    background-color: #fff3cd;
    border-radius: 0.5rem;
    border-left: 4px solid #ffc107;
}

/* Stats cards */
.stat-card {
    text-align: center;
    padding: 1.5rem;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
}

/* Subject tags */
.subject-tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.875rem;
    margin-right: 0.25rem;
}

/* Difficulty badges */
.difficulty-easy { background-color: #d4edda; color: #155724; }
.difficulty-medium { background-color: #fff3cd; color: #856404; }
.difficulty-hard { background-color: #f8d7da; color: #721c24; }

/* Responsive */
@media (max-width: 768px) {
    .pomodoro-display {
        font-size: 4rem;
    }

    .dashboard-card i {
        font-size: 2rem;
    }
}
