@charset "UTF-8";

/* --- 1. VARIABLES & BASE --- */
:root {
    --accent: #facc15;
    --accent-glow: rgba(250, 204, 21, 0.15);
    --bg-dark: #050505;
    --card-bg: #121214;
    --card-bg-hero: #1c1c20;
    --card-border: #27272a;
    --text-main: #f4f4f5;
    --text-muted: #71717a;
    --col-width: 220px;
    --sq-size: 200px;
}

* {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    margin: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: #000;
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    overflow-y: auto;
    padding-top: 20px;
    padding-bottom: 20px;
    background: radial-gradient(circle at 50% 50%, #1a1830 0%, #000000 70%);
}

/* --- 2. GRID LAYOUT (DESKTOP BENTO) --- */
.lab-container {
    width: 100%;
    max-width: 1500px;
    min-height: 90vh;
    height: auto;
    display: grid;
    grid-template-columns: var(--col-width) 1fr var(--col-width);
    grid-template-rows: auto 1fr;
    gap: 25px;
    padding: 20px;
    overflow: visible;
    position: relative;
}

/* Utilidades */
.hidden {
    display: none !important;
}

.fade-in {
    animation: fadeIn 0.5s ease forwards;
}

.fade-out {
    animation: fadeOut 0.3s ease forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}

/* --- 3. HEADER --- */
.header-area {
    grid-column: 2 / 3;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding-bottom: 20px;
    z-index: 10;
    min-height: 80px;
}

.lab-title {
    font-size: 2.2rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -1px;
    margin: 0;
    color: #fff;
    cursor: pointer;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

.lab-subtitle {
    color: var(--accent);
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-top: 5px;
    opacity: 0.8;
}

#header-welcome-section {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    transition: opacity 0.3s;
}

.user-welcome {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 400;
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-countdown,
.stat-badge {
    background: rgba(250, 204, 21, 0.1);
    border: 1px solid rgba(250, 204, 21, 0.3);
    color: var(--accent);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.header-countdown:hover,
.stat-badge:hover {
    background: rgba(250, 204, 21, 0.2);
    transform: scale(1.05);
}

/* --- 4. LAYOUT COLUMNS --- */
#dashboard-content {
    display: contents;
}

.col-side {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding-top: 40px;
    gap: 20px;
    opacity: 0.9;
    transition: opacity 0.3s;
}

.col-side:hover {
    opacity: 1;
}

.col-left {
    grid-column: 1 / 2;
    grid-row: 1 / 3;
}

.col-right {
    grid-column: 3 / 4;
    grid-row: 1 / 3;
}

.col-center {
    grid-column: 2 / 3;
    grid-row: 2 / 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
    position: relative;
}

/* --- 5. CARDS DESIGN --- */
.card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 20px;
    position: relative;
    transition: all 0.3s;
    cursor: pointer;
    overflow: hidden;
}

.square-card-bottom {
    height: var(--sq-size);
    margin-top: auto;
    display: flex;
    flex-direction: column;
}

.card-notes {
    background-image: radial-gradient(#333 1px, transparent 1px);
    background-size: 12px 12px;
    border: 1px solid #333;
}

.card-notes:hover {
    border-color: var(--text-muted);
}

.card-promo-style {
    width: 100%;
    background: linear-gradient(145deg, rgba(250, 204, 21, 0.15), rgba(0, 0, 0, 0) 70%);
    border: 2px solid var(--accent);
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 0 20px rgba(250, 204, 21, 0.1);
    min-height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.card-promo-style:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(250, 204, 21, 0.25);
}

.promo-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.promo-title {
    font-size: 1rem;
    font-weight: 800;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.promo-desc {
    font-size: 0.8rem;
    color: #ccc;
    margin-bottom: 15px;
    line-height: 1.4;
}

@keyframes pulse-fire {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
    }
}

.fire-icon {
    font-size: 1.5rem;
    animation: pulse-fire 2s infinite ease-in-out;
}

.ai-icon {
    font-size: 1.5rem;
    filter: drop-shadow(0 0 5px var(--accent));
}

.btn-start {
    display: block;
    width: 100%;
    background: var(--accent);
    color: #000;
    font-weight: 900;
    font-size: 0.85rem;
    padding: 12px 0;
    border-radius: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
    border: none;
    cursor: pointer;
    transition: transform 0.1s;
}

.btn-start:hover {
    transform: scale(1.02);
    background: #fff;
}

.card-learn-banner {
    width: 100%;
    padding: 20px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    border: 1px solid var(--accent);
    background: rgba(250, 204, 21, 0.05);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.card-learn-banner h2 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.center-row-hero {
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 25px;
    flex: 1;
    align-items: flex-start;
}

.hero-card {
    flex: 1;
    max-width: 260px;
    aspect-ratio: 1 / 1;
    background: linear-gradient(145deg, #1e1e24 0%, #111 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow:
        0 10px 30px -5px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 15px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

/* Shine Effect */
.hero-card::after {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.03), transparent);
    transition: 0.5s;
}

.hero-card:hover::after {
    left: 100%;
}

.hero-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--accent);
    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.6),
        0 0 20px var(--accent-glow),
        inset 0 0 10px rgba(250, 204, 21, 0.05);
}

.hero-card .icon {
    font-size: 4rem;
    margin-bottom: 20px;
    transition: transform 0.3s ease, filter 0.3s;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.3));
}

/* --- ANIMATIONS FOR ICONS --- */
@keyframes shake-lab {
    0% {
        transform: rotate(0deg);
    }

    25% {
        transform: rotate(-15deg) scale(1.1);
    }

    50% {
        transform: rotate(15deg) scale(1.1);
    }

    75% {
        transform: rotate(-5deg) scale(1.1);
    }

    100% {
        transform: rotate(0deg);
    }
}

@keyframes pulse-sim {
    0% {
        transform: scale(1);
        filter: drop-shadow(0 0 5px rgba(250, 204, 21, 0.2));
    }

    50% {
        transform: scale(1.15);
        filter: drop-shadow(0 0 20px rgba(250, 204, 21, 0.6));
    }

    100% {
        transform: scale(1);
        filter: drop-shadow(0 0 5px rgba(250, 204, 21, 0.2));
    }
}

@keyframes bounce-pomo {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px) scale(1.1);
    }
}

/* Individual Card Icon Styles */
#card-learning-lab .icon {
    filter: drop-shadow(0 0 10px rgba(34, 197, 94, 0.2));
}

#card-learning-lab:hover .icon {
    animation: shake-lab 0.8s ease-in-out infinite;
    filter: drop-shadow(0 0 20px rgba(34, 197, 94, 0.6));
}

#card-simulation-lab .icon {
    filter: drop-shadow(0 0 10px rgba(250, 204, 21, 0.2));
}

#card-simulation-lab:hover .icon {
    animation: pulse-sim 1.5s infinite;
}

#card-pomodoro-lab .icon {
    filter: drop-shadow(0 0 10px rgba(239, 68, 68, 0.2));
}

#card-pomodoro-lab:hover .icon {
    animation: bounce-pomo 1s infinite;
    filter: drop-shadow(0 0 20px rgba(239, 68, 68, 0.6));
}

.hero-card .title {
    font-size: 1.2rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 5px;
}

.hero-card .sub {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.card-metrics {
    background: linear-gradient(180deg, var(--card-bg-hero) 0%, #080808 100%);
    border-top: 1px solid #333;
}

.metrics-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}

.metrics-title {
    font-size: 0.7rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.pie-chart-main {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: conic-gradient(var(--accent) 0% 0%, #27272a 0% 100%);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
    margin: auto;
}

/* --- VISTAS OCULTAS --- */
#learning-view,
#simulation-view,
#pomodoro-view {
    grid-column: 1 / -1;
    grid-row: 2 / -1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 30px;
    height: 100%;
}

.learning-cards-row {
    display: flex;
    flex-direction: row;
    gap: 40px;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.learning-card {
    width: 300px;
    height: 300px;
    background: linear-gradient(145deg, rgba(250, 204, 21, 0.05), rgba(0, 0, 0, 0) 70%);
    border: 2px solid var(--accent);
    border-radius: 24px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    cursor: pointer;
    transition: all 0.4s;
}

.learning-card:hover {
    transform: scale(1.05);
    background: rgba(250, 204, 21, 0.1);
    box-shadow: 0 0 40px var(--accent-glow);
}

.learning-card h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #fff;
    text-transform: uppercase;
}

.learning-card p {
    font-size: 0.9rem;
    color: #aaa;
}

.learning-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.btn-back-small {
    background: transparent;
    border: 1px solid var(--text-muted);
    color: var(--text-muted);
    padding: 10px 25px;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 10px;
}

.btn-back-small:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* --- SELECTION VIEW --- */
#selection-view {
    grid-column: 1 / -1;
    grid-row: 2 / -1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    gap: 20px;
    height: auto;
    min-height: 100%;
    padding: 20px;
    padding-bottom: 50px;
}

.selection-container {
    display: flex;
    width: 100%;
    max-width: 1200px;
    gap: 40px;
    height: 100%;
    align-items: center;
    /* Prevents stretching */
    justify-content: center;
}

.card-categories {
    flex: 1;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    height: 650px;
    /* Fixed height for consistency */
    max-width: 800px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

#dynamic-cat-list {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
    /* Fills remaining space */
}

.category-card {
    background: #18181b;
    border: 1px solid #27272a;
    border-radius: 12px;
    padding: 15px 20px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.category-card:hover {
    border-color: var(--accent);
    background: #27272a;
    transform: translateX(5px);
}

.category-card.selected {
    border-color: var(--accent);
    background: #27272a;
    box-shadow: 0 0 15px rgba(250, 204, 21, 0.1);
}

.cat-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.progress-track {
    width: 100%;
    height: 6px;
    background: #3f3f46;
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.5s ease;
}

.card-start-quiz {
    flex: 0 0 240px;
    height: 240px;
    background: linear-gradient(135deg, var(--accent) 0%, #f59e0b 100%);
    border: none;
    border-radius: 50%;
    /* Circle */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow:
        0 20px 50px rgba(250, 204, 21, 0.3),
        inset 0 0 20px rgba(255, 255, 255, 0.3);
    position: relative;
    z-index: 10;
}

.card-start-quiz:hover {
    transform: scale(1.05) translateY(-5px);
    box-shadow:
        0 30px 60px rgba(250, 204, 21, 0.5),
        inset 0 0 20px rgba(255, 255, 255, 0.5);
}

.card-start-quiz .start-icon {
    font-size: 4rem;
    filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.2));
    margin-bottom: 5px;
    transition: transform 0.3s;
}

.card-start-quiz:hover .start-icon {
    transform: rotate(-10deg) scale(1.1);
}

.card-start-quiz h3 {
    font-weight: 900;
    margin-top: 5px;
    color: #000;
    font-size: 1.1rem;
    text-shadow: none;
    text-align: center;
    line-height: 1.2;
}

/* --- POMODORO --- */
#pomodoro-timer-view {
    grid-column: 1 / -1;
    grid-row: 2 / -1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 20px;
    height: 100%;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

.pomo-container {
    width: 100%;
    background: var(--card-bg);
    border: 1px solid var(--accent);
    border-radius: 24px;
    padding: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 0 40px rgba(250, 204, 21, 0.1);
    position: relative;
}

.pomo-timer-display {
    font-size: 6rem;
    font-weight: 900;
    font-variant-numeric: tabular-nums;
    color: #fff;
    margin: 10px 0;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

.pomo-btn {
    background: #333;
    color: #fff;
    border: none;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.2s;
}

.pomo-btn.main {
    background: var(--accent);
    color: #000;
    width: 80px;
    height: 80px;
    font-size: 2rem;
    box-shadow: 0 0 20px rgba(250, 204, 21, 0.3);
}

/* --- MODALES --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 20000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background: #121212;
    border: 1px solid #333;
    padding: 30px;
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.close-btn {
    float: right;
    cursor: pointer;
    font-size: 1.5rem;
    color: #666;
}

.close-btn:hover {
    color: #fff;
}

.ai-input-area {
    width: 100%;
    background: #000;
    border: 1px solid #333;
    border-radius: 10px;
    padding: 15px;
    color: #fff;
    font-size: 1rem;
    min-height: 100px;
    margin: 15px 0;
    resize: none;
}

.ai-input-area:focus {
    outline: none;
    border-color: var(--accent);
}

.ai-action-btn {
    width: 100%;
    background: var(--accent);
    border: none;
    padding: 12px;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
}

#password-alert-container {
    position: absolute;
    top: 0;
    width: 100%;
    z-index: 2000;
}

.password-alert {
    background: rgba(250, 204, 21, 0.2);
    color: var(--accent);
    border-bottom: 1px solid var(--accent);
    padding: 10px;
    text-align: center;
    font-size: 0.9rem;
    display: none;
}

/* --- NUEVOS ESTILOS (Actividad & Calendario) --- */

/* Pie Chart en la Card */
.activity-pie-chart {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: conic-gradient(#222 0% 100%);
    /* Default background */
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
    transition: background 0.5s ease;
}

.activity-pie-inner {
    width: 70px;
    height: 70px;
    background-color: #121214;
    /* Mismo color que card-bg */
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 800;
    color: white;
    font-size: 1.2rem;
}

/* Calendario en el Modal */
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
}

/* --- MEDIA BUTTONS --- */
.media-btn-container {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

/* --- PREMIUM PERFORMANCE CARD --- */
.card-performance-premium {
    background: linear-gradient(135deg, #1c1c20 0%, #050505 100%);
    border: 1px solid #333;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-performance-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: 0.5;
}

.card-performance-premium:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(250, 204, 21, 0.15);
    border-color: rgba(250, 204, 21, 0.5);
}

.premium-chart-container {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 12px;
    height: 80px;
    margin-top: 15px;
    margin-bottom: 5px;
}

.bar {
    width: 14px;
    background: linear-gradient(to top, var(--accent), #fff);
    border-radius: 4px;
    animation: bar-pulse 2s infinite ease-in-out;
    box-shadow: 0 0 15px var(--accent-glow);
}

.bar-1 {
    height: 40%;
    animation-delay: 0s;
    opacity: 0.5;
    background: #555;
    box-shadow: none;
}

.bar-2 {
    height: 65%;
    animation-delay: 0.2s;
    opacity: 0.7;
    background: #777;
    box-shadow: none;
}

.bar-3 {
    height: 50%;
    animation-delay: 0.4s;
    opacity: 0.9;
    background: var(--accent);
}

.bar-4 {
    height: 85%;
    animation-delay: 0.1s;
    background: #fff;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.4);
}

@keyframes bar-pulse {

    0%,
    100% {
        transform: scaleY(1);
    }

    50% {
        transform: scaleY(1.15);
    }
}

.view-stats-btn {
    font-size: 0.7rem;
    color: var(--accent);
    background: rgba(250, 204, 21, 0.1);
    padding: 4px 10px;
    border-radius: 12px;
    font-weight: 700;
    border: 1px solid rgba(250, 204, 21, 0.2);
    transition: all 0.2s;
}

.card-performance-premium:hover .view-stats-btn {
    background: var(--accent);
    color: #000;
}

.btn-media {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border: none;
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    transition: all 0.2s;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

.btn-media:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
    box-shadow: 0 6px 12px rgba(37, 99, 235, 0.3);
}

/* Ensure modal image is centered and responsive */
/* Ensure modal image is centered and responsive */
.media-content {
    display: flex;
    justify-content: center;
    align-items: center;
}

.cal-day-header {
    text-align: center;
    font-size: 0.75rem;
    color: #666;
    padding-bottom: 5px;
    font-weight: bold;
}

.cal-day {
    aspect-ratio: 1/1;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #222;
    border-radius: 6px;
    font-size: 0.9rem;
    color: #666;
    border: 1px solid transparent;
}

.cal-day.active-day {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
    border-color: #10b981;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.1);
}

.cal-day.missed-day {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    border-color: rgba(239, 68, 68, 0.3);
}

.cal-day.future-day {
    background: #1a1a1a;
    color: #444;
}

.cal-day.today {
    border: 1px solid var(--accent);
}

/* =========================================================
   SKELETON LOADING
   ========================================================= */
.skeleton {
    background-color: #27272a;
    background-image: linear-gradient(90deg,
            #27272a 0px,
            #3f3f46 40px,
            #27272a 80px);
    background-size: 600px;
    animation: shimmer 2s infinite linear;
    border-radius: 8px;
    color: transparent !important;
    cursor: default;
}

@keyframes shimmer {
    0% {
        background-position: -100px;
    }

    40%,
    100% {
        background-position: 140px;
    }
}

.sk-text {
    height: 16px;
    margin-bottom: 8px;
    width: 80%;
}

.sk-title {
    height: 24px;
    margin-bottom: 12px;
    width: 60%;
}

.sk-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
}

.sk-card {
    height: 100%;
    min-height: 150px;
}

.fade-in {
    animation: fadeIn 0.5s ease-in-out forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* --- POMODORO ACCORDION (Migrated & Styled) --- */
.learning-card:active {
    transform: scale(0.98);
    border-color: var(--accent);
}

.pomo-accordion-btn {
    width: 100%;
    background: transparent;
    border: 1px solid var(--accent);
    color: var(--accent);
    padding: 10px 25px;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 15px 0 10px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.pomo-accordion-btn:hover {
    background: var(--accent);
    color: #000;
    box-shadow: 0 0 15px var(--accent-glow);
}

.pomo-accordion-content {
    background: #111;
    border: 1px solid #333;
    border-radius: 12px;
    padding: 20px;
    color: #ccc;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 15px;
    max-height: 400px;
    overflow-y: auto;
    margin-top: 0;
}

.pomo-accordion-content h4 {
    color: white;
    margin: 15px 0 5px 0;
}

.pomo-accordion-content ul {
    padding-left: 20px;
    margin-top: 5px;
}

.pomo-accordion-content li {
    margin-bottom: 8px;
}

/* --- PREMIUM QUICK NOTES CARD --- */
.card-notes-premium {
    background-color: #0d0d0d;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 20px 20px;
    border: 1px solid #222;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-notes-premium:hover {
    border-color: var(--accent);
    box-shadow: 0 0 15px rgba(250, 204, 21, 0.1);
    transform: translateY(-5px);
}

.notes-cursor {
    display: inline-block;
    width: 2px;
    height: 1em;
    background-color: var(--accent);
    margin-left: 2px;
    vertical-align: middle;
    animation: blink-cursor 1s step-end infinite;
}

@keyframes blink-cursor {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

.notes-icon-premium {
    font-size: 1.2rem;
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.2));
}

/* --- PREMIUM ACTIVITY LOG CARD --- */
.card-activity-premium {
    background: linear-gradient(180deg, #101012 0%, #050505 100%);
    border: 1px solid #222;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.card-activity-premium:hover {
    border-color: #333;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
    transform: translateY(-5px);
}

.activity-ring-container {
    position: relative;
    width: 100px;
    height: 100px;
    margin: 0 auto;
}

.activity-ring-svg {
    transform: rotate(-90deg);
    width: 100%;
    height: 100%;
}

.activity-ring-circle-bg {
    fill: none;
    stroke: #222;
    stroke-width: 8;
}

.activity-ring-circle-fg {
    fill: none;
    stroke: var(--accent);
    stroke-width: 8;
    stroke-dasharray: 283;
    /* 2 * PI * 45 */
    stroke-dashoffset: 283;
    /* Start empty */
    transition: stroke-dashoffset 1.5s cubic-bezier(0.4, 0, 0.2, 1);
    stroke-linecap: round;
    filter: drop-shadow(0 0 4px var(--accent-glow));
}

.activity-ring-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.4rem;
    font-weight: 800;
    color: #fff;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.activity-label {
    text-align: center;
    font-size: 0.75rem;
    color: #666;
    margin-top: -10px;
    /* Pull closer to ring if needed, or adjust padding */
    letter-spacing: 0.5px;
}