/* ============================== */
/* PROGRESS TRACKING SYSTEM       */
/* Continue Card & Journey UI     */
/* ============================== */

/* Continue Card (Kaldığın Yer) */
.continue-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.15), rgba(255, 152, 0, 0.1));
    border: 2px solid rgba(255, 193, 7, 0.3);
    border-radius: 16px;
    margin-bottom: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.continue-card:hover {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.25), rgba(255, 152, 0, 0.15));
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255, 193, 7, 0.2);
}

.continue-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent);
    border-radius: 12px;
    color: #3e2723;
    flex-shrink: 0;
}

.continue-icon i {
    width: 28px;
    height: 28px;
}

.continue-info {
    flex: 1;
    min-width: 0;
}

.continue-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.6);
}

.continue-topic {
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
    margin: 0.25rem 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.continue-subject {
    font-size: 0.85rem;
    color: var(--accent);
}

.continue-progress .progress-ring-mini {
    position: relative;
    width: 48px;
    height: 48px;
    flex-shrink: 0;
}

.continue-progress svg {
    width: 100%;
    height: 100%;
}

.continue-progress .progress-percent {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 0.7rem;
    font-weight: 700;
    color: white;
}

.continue-arrow {
    flex-shrink: 0;
}

.continue-arrow i {
    width: 24px;
    height: 24px;
    color: rgba(255, 255, 255, 0.5);
}

/* ============================== */
/* JOURNEY PROGRESS INDICATORS    */
/* ============================== */
.subject-progress-bar {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    margin-top: 0.75rem;
    overflow: hidden;
}

.subject-progress-bar .progress-fill {
    height: 100%;
    background: var(--accent);
    border-radius: 2px;
    transition: width 0.5s ease;
}

.subject-progress-text {
    display: block;
    font-size: 0.7rem;
    color: var(--accent);
    margin-top: 0.35rem;
    text-align: center;
}

.topic-progress-summary {
    margin-top: 1rem;
    padding: 0.75rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
}

.progress-bar-horizontal {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.progress-bar-horizontal .progress-fill {
    height: 100%;
    background: var(--accent);
    border-radius: 3px;
    transition: width 0.5s ease;
}

.topic-progress-summary .progress-text {
    display: block;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 0.5rem;
    text-align: center;
}

/* Subject overall progress in textbook header */
.subject-overall-progress {
    margin-left: auto;
}

.progress-ring-small {
    width: 40px;
    height: 40px;
    background: rgba(255, 193, 7, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.progress-ring-small span {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--accent);
}

/* Topic progress icons */
.topic-progress-indicator {
    display: flex;
    align-items: center;
}

.topic-complete-icon {
    color: #4caf50;
    width: 20px;
    height: 20px;
}

.topic-incomplete-icon {
    color: rgba(255, 255, 255, 0.3);
    width: 20px;
    height: 20px;
}

/* ============================== */
/* NOTEBOOK CHECKBOX STATES       */
/* ============================== */
.notebook-checkbox.checked {
    background: #4caf50 !important;
    border-color: #4caf50 !important;
}

.notebook-checkbox.checked i {
    width: 14px;
    height: 14px;
    color: white;
}

.notebook-checkbox.in-progress {
    background: rgba(255, 193, 7, 0.2) !important;
    border-color: var(--accent) !important;
}

.notebook-checkbox.in-progress i {
    width: 12px;
    height: 12px;
    color: var(--accent);
}

.notebook-item.completed .notebook-text {
    text-decoration: line-through;
    opacity: 0.6;
}

.notebook-item.in-progress {
    border-left: 3px solid var(--accent);
    padding-left: 0.75rem;
}

/* ============================== */
/* LECTURE COMPLETE BUTTON        */
/* Static at content end          */
/* ============================== */
.lecture-footer {
    margin-top: 2.5rem;
    padding: 1.5rem;
    display: flex;
    justify-content: center;
    border-top: 1px dashed rgba(0, 0, 0, 0.1);
}

.btn-lecture-complete {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 2rem;
    background: #4e342e;
    color: rgba(255, 255, 255, 0.9);
    border: 2px solid #5d4037;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-lecture-complete:hover {
    background: #5d4037;
    border-color: #6d4c41;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.btn-lecture-complete:active {
    transform: translateY(0);
}

.btn-lecture-complete.completed {
    background: #2e7d32;
    border-color: #388e3c;
    color: white;
}

.btn-lecture-complete.completed:hover {
    background: #388e3c;
    border-color: #43a047;
}

.btn-lecture-complete i {
    width: 18px;
    height: 18px;
}

/* ============================== */
/* MOBILE RESPONSIVE              */
/* ============================== */
@media (max-width: 768px) {
    .continue-card {
        flex-wrap: wrap;
        padding: 1rem;
        gap: 0.75rem;
    }

    .continue-icon {
        width: 40px;
        height: 40px;
    }

    .continue-icon i {
        width: 22px;
        height: 22px;
    }

    .continue-topic {
        font-size: 1rem;
    }

    .continue-progress .progress-ring-mini {
        width: 40px;
        height: 40px;
    }

    .topic-progress-summary {
        margin-top: 0.75rem;
        padding: 0.5rem;
    }

    .lecture-footer {
        margin-top: 2rem;
        margin-bottom: 1rem;
        padding: 1rem;
    }

    .btn-lecture-complete {
        width: 100%;
        padding: 0.85rem 1.5rem;
        font-size: 0.9rem;
    }
}
/* PROGRESS PAGE REDESIGN */
.progress-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.progress-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: white;
    margin: 0;
}

.progress-subtitle {
    color: rgba(255,255,255,0.6);
    margin-top: 0.25rem;
}

.progress-period {
    background: rgba(255,255,255,0.1);
    padding: 0.25rem;
    border-radius: 8px;
    display: flex;
    gap: 0.25rem;
}

.progress-period button {
    background: none;
    border: none;
    color: rgba(255,255,255,0.6);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s;
}

.progress-period button.active {
    background: var(--accent);
    color: #3e2723;
    font-weight: 700;
}

/* Stats Row */
.stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 16px;
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-4px);
    background: rgba(255,255,255,0.06);
}

.stat-icon-bg {
    font-size: 2rem;
    margin-bottom: 1rem;
    width: 48px;
    height: 48px;
    background: rgba(255,255,255,0.05);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-value {
    font-size: 1.75rem;
    font-weight: 800;
    color: white;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.6);
}

.stat-footer {
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.8rem;
    color: rgba(255,255,255,0.5);
}

.stat-footer.success {
    color: #4caf50;
}

/* Charts Grid */
.charts-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.chart-card {
    background: rgba(20, 20, 20, 0.6);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 16px;
    padding: 1.5rem;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.card-header h3 {
    margin: 0;
    font-size: 1.1rem;
    color: white;
}

.activity-chart {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    height: 200px;
    padding-top: 2rem;
}

.chart-bar-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    height: 100%;
    justify-content: flex-end;
}

.chart-bar-wrapper {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    position: relative;
}

.chart-bar {
    width: 12px;
    background: var(--accent);
    border-radius: 6px 6px 0 0;
    transition: height 1s ease;
    min-height: 4px;
    position: relative;
}

.bar-tooltip {
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    opacity: 0;
    transition: opacity 0.2s;
    pointer-events: none;
    white-space: nowrap;
}

.chart-bar:hover .bar-tooltip {
    opacity: 1;
}

.chart-label {
    margin-top: 0.75rem;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.5);
}

/* Subject List */
.subject-item {
    margin-bottom: 1.25rem;
}

.subject-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.8);
}

.subject-progress-bg {
    height: 8px;
    background: rgba(255,255,255,0.1);
    border-radius: 4px;
    overflow: hidden;
}

.subject-progress-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 1s ease;
}

/* Bottom Grid */
.bottom-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.mini-badge {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    background: rgba(255,255,255,0.03);
    border-radius: 8px;
    margin-bottom: 0.75rem;
}

.mini-badge-icon {
    font-size: 1.5rem;
}

.mini-badge-info {
    display: flex;
    flex-direction: column;
}

.mini-badge-name {
    font-weight: 600;
    color: white;
    font-size: 0.9rem;
}

.mini-badge-date {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.5);
}

.pomo-stats-row {
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 100%;
    padding: 1rem 0;
}

.pomo-box {
    text-align: center;
}

.pomo-val {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: #ff6b6b;
}

.pomo-lbl {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.6);
    text-transform: uppercase;
}

.pomo-divider {
    width: 1px;
    height: 40px;
    background: rgba(255,255,255,0.1);
}

@media (max-width: 768px) {
    .charts-grid, .bottom-grid {
        grid-template-columns: 1fr;
    }
    
    .progress-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .progress-period {
        width: 100%;
        justify-content: space-between;
    }
    
    .progress-period button {
        flex: 1;
        padding: 0.5rem;
        font-size: 0.85rem;
    }
}

