body {
    font-family: 'Inter', sans-serif;
    -webkit-tap-highlight-color: transparent;
}

body {
    min-height: max(884px, 100dvh);
}

.progress-bar-container {
    height: 4px;
    width: 100%;
    background-color: #e2e8f0;
    border-radius: 2px;
    overflow: hidden;
}

.dark .progress-bar-container {
    background-color: #334155;
}

:root {
    --color-clases: #6366f1;
    --color-activs: #ec4899;
    --color-tests: #f59e0b;
    --color-docs: #10b981;
    --color-exam: #8b5cf6;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.accordion-content.expanded {
    max-height: 1000px;
    transition: max-height 0.5s ease-in;
}

.control-input {
    width: 60px;
    text-align: center;
    font-weight: 600;
    font-size: 14px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    padding: 8px;
    transition: all 0.2s;
}

.dark .control-input {
    border-color: #475569;
    background-color: #1e293b;
    color: #f1f5f9;
}

.control-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.control-button {
    background-color: #f1f5f9;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    user-select: none;
}

.dark .control-button {
    background-color: #334155;
    border-color: #475569;
}

.control-button:hover {
    background-color: #e2e8f0;
    transform: scale(1.05);
}

.dark .control-button:hover {
    background-color: #475569;
}

.control-button:active {
    transform: scale(0.95);
}

.item-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px;
    background-color: #f8fafc;
    border-radius: 12px;
    margin-top: 12px;
}

.dark .item-controls {
    background-color: #0f172a;
}

.fraction-display {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 700;
}

.link-button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    background-color: #3b82f6;
    color: white;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    margin-top: 12px;
}

.link-button:hover {
    background-color: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.link-button:active {
    transform: translateY(0);
}

.expand-button {
    transition: transform 0.3s ease;
}

.expand-button.rotated {
    transform: rotate(180deg);
}

/* Loading animation */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.loading-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}
