/* SIDEBAR */
.logo {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-size: 28px;
}

.theme-btn {
    border: none;
    color: var(--text-color);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    transition: 0.3s;
}

.theme-btn:hover {
    transform: rotate(12deg) scale(1.05);
}

/* NAVIGATION */
.nav-item {
    display: block;
    color: var(--secondary-text);
    text-decoration: none;
    padding: 12px;
    border-radius: 10px;
    margin-bottom: 10px;
    transition: 
        background-color 0.3s,
        color 0.3s,
        transform 0.2s;
}

.nav-item:hover {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--text-color);
    transform: translateX(4px);
}

.nav-item.active {
    background-color: var(--primary-color);
    color: white;
}

/* MAIN */
.top-header h2 {
    font-size: 32px;
    margin-bottom: 8px;
}

.top-header p {
    font-size: 16px;
}

/* DASHBOARD HERO */
.dashboard-hero {
    text-align: center;
    padding: 48px 32px;
}

.hero-title {
    font-size: 40px;
    margin-bottom: 16px;
}

.hero-text {
    color: var(--secondary-text);
    max-width: 600px;
    margin: 0 auto 32px;
    line-height: 1.7;
}

.hero-btn {
    border: none;
    background-color: var(--primary-color);
    color: white;
    padding: 14px 24px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 16px;
    transition: 0.3s;
}

.hero-btn:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

/* QUOTE CARD */
.quote-card {
    text-align: center;
}

.quote-text {
    color: var(--secondary-text);
    font-style: italic;
    margin-top: 12px;
    line-height: 1.6;
}

/* STREAK CARD */
.streak-card {
    text-align: center;
}

.streak-number {
    font-size: 42px;
    font-weight: bold;
    margin: 16px 0;
}

.streak-text {
    color: var(--secondary-text);
    line-height: 1.6;
}

/* CARD COMPONENT */
.card {
    background-color: var(--card-color);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
}

.completed-count, .total-count, .session-count {
    font-size: 32px;
    font-weight: bold;
    color: var(--text-color);
}

/* SECTION HEADER */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

/* PRIMARY BUTTON */
.primary-btn {
    border: none;
    background-color: var(--primary-color);
    color: white;
    padding: 12px 18px;
    border-radius: 10px;
    cursor: pointer;
    transition: 0.3s;
}

.primary-btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.primary-btn:active {
    transform: scale(0.98);
}

/* TASK ACTION BUTTONS */
.complete-btn {
    background-color: #22c55e;
    color: white;
}

.delete-btn {
    background-color: #ef4444;
    color: white;
}

.complete-btn, .delete-btn {
    border: none;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.2s;
}

.complete-btn:hover, .delete-btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

/* TIMER BUTTONS */
.timer-buttons {
    display: flex;
    gap: 12px;
}

.reset-btn {
    border: none;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--text-color);
    padding: 12px 18px;
    border-radius: 10px;
    cursor: pointer;
    transition: 0.3s;
}

.reset-btn:hover {
    background-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.reset-btn:active {
    transform: scale(0.98);
}

/* TIMER MODES */
.timer-modes {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}

.mode-btn {
    border: none;
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--secondary-text);
    padding: 10px 16px;
    border-radius: 10px;
    cursor: pointer;
    transition: 0.3s;
}

.mode-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--text-color);
}

.active-mode {
    background-color: var(--primary-color);
    color: white;
}

/* ACCESSIBILITY */
.primary-btn:focus,
.reset-btn:focus,
.mode-btn:focus,
.hero-btn:focus,
.theme-btn:focus,
.task-input:focus,
.complete-btn:focus,
.delete-btn:focus,
.nav-item:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* TIMER DISPLAY */
.timer-display {
    font-size: 64px;
    font-weight: bold;
    text-align: center;
    padding: 30px 0;
    letter-spacing: 2px;
}

/* SESSION ANALYTICS */
.session-info {
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.session-status {
    font-size: 14px;
    color: var(--secondary-text);
    opacity: 0.85;
}

/* PROGRESS BAR */
.progress-bar {
    width: 100%;
    height: 10px;
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    margin-top: 16px;
    overflow: hidden;
}

.progress-fill {
    width: 0%;
    height: 100%;
    background-color: var(--primary-color);
    border-radius: 999px;
    transition: 0.3s;
}

/* TASK PLACEHOLDER */
.task-placeholder {
    color: var(--secondary-text);
    padding: 32px 16px;
    text-align: center;
}

.task-placeholder p {
    font-weight: 600;
}

.task-placeholder span {
    display: block;
    margin-top: 8px;
    color: var(--secondary-text);
    font-size: 14px;
}

/* TASK FORM */
.task-form {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}

/* TASK INPUT */
.task-input {
    flex: 1;
    border: none;
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--text-color);
    padding: 14px 16px;
    border-radius: 10px;
    outline: none;
}

.task-input:focus {
    outline: none;
    border: 2px solid var(--primary-color);
}

/* TASK ITEM */
.task-item {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 16px;
    border-radius: 10px;
    margin-bottom: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* TASK ACTIONS */
.task-actions {
    display: flex;
    gap: 10px;
}

/* COMPLETED TASK */
.task-item.completed {
    opacity: 0.6;
    transform: scale(0.98);
}

.task-item.completed .task-text {
    text-decoration: line-through;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .top-header h2 {
        font-size: 26px;
    }

    .completed-count, .total-count, .session-count {
        font-size: 24px;
        font-weight: bold;
    }

    .task-form {
        flex-direction: column;
    }

    .task-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
}

/* NOTIFICATION */
.notification {
    position: fixed;
    top: 24px;
    right: 24px;
    background-color: var(--card-color);
    color: var(--text-color);
    padding: 16px 20px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    font-size: 14px;
    z-index: 1000;
}

/* UTILITY CLASSES */
.hidden {
    display: none;
}

/* PAGE TRANSITIONS */
.app-section {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* FOOTER */
.app-footer {
    text-align: right;
    padding: 12px 0 4px;
    color: var(--secondary-text);
    font-size: 13px;
    opacity: 0.8;
}