/* OpoStudy - Styles */

:root {
    --opo-primary: #2563eb;
    --opo-success: #16a34a;
    --opo-danger: #dc2626;
    --opo-warning: #d97706;
}

body {
    background-color: #f8fafc;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* Cards hover effect */
.hover-card {
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.hover-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1) !important;
}

/* Option buttons for cards */
.option-btn {
    transition: all 0.15s ease;
    font-size: 1rem;
}
.option-btn:hover:not(:disabled) {
    transform: translateX(4px);
    border-color: var(--opo-primary);
}

/* Markdown body */
.markdown-body {
    line-height: 1.7;
}
.markdown-body h1, .markdown-body h2, .markdown-body h3 {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 0.3rem;
}
.markdown-body ul, .markdown-body ol {
    padding-left: 1.5rem;
}
.markdown-body li {
    margin-bottom: 0.25rem;
}
.markdown-body blockquote {
    border-left: 4px solid var(--opo-primary);
    padding: 0.5rem 1rem;
    background: #f1f5f9;
    margin: 1rem 0;
}

/* Analogias section */
.analogias-section {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    padding: 1.5rem;
    border-radius: 0.5rem;
}

/* Tree view for mapa mental */
.tree-root, .tree-root ul {
    list-style: none;
    padding-left: 1.5rem;
}
.tree-root {
    padding-left: 0;
}
.tree-node {
    display: inline-block;
    padding: 4px 12px;
    margin: 2px 0;
    background: #e2e8f0;
    border-radius: 20px;
    font-size: 0.9rem;
    border-left: 3px solid var(--opo-primary);
}
.tree-root > li > .tree-node {
    background: var(--opo-primary);
    color: white;
    border-left: none;
    font-weight: bold;
    font-size: 1rem;
}
.tree-root > li > ul > li > .tree-node {
    background: #bfdbfe;
    color: #1e40af;
    font-weight: 600;
}
.mapa-tree ul::before {
    content: '';
    display: block;
    border-left: 2px solid #cbd5e1;
    position: absolute;
    left: 0;
    height: 100%;
}
.mapa-tree li {
    position: relative;
    padding-left: 0;
}

/* Loading overlay */
#loadingOverlay {
    background: rgba(255,255,255,0.9);
    border-radius: 0.5rem;
    padding: 2rem;
}

/* Exam options */
.exam-option {
    transition: all 0.1s ease;
}

/* Progress bar animation */
.progress-bar {
    transition: width 0.3s ease;
}

/* Cursor pointer for details */
.cursor-pointer {
    cursor: pointer;
}

/* Card feedback animation */
#feedbackArea {
    animation: slideIn 0.3s ease;
}
@keyframes slideIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .display-4 { font-size: 2rem; }
    .display-5 { font-size: 1.5rem; }
    .display-6 { font-size: 1.25rem; }
}

/* Print styles for study material */
@media print {
    nav, footer, .btn, .modal, .nav-tabs { display: none !important; }
    .tab-pane { display: block !important; opacity: 1 !important; }
    .card { break-inside: avoid; }
}
