/* ==========================================
   HEADER ICON GROUP (Info | Profile | Timer) — App Icon Style
   ========================================== */
.header-icon-group {
    position: absolute;
    top: 0;
    right: 0;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

/* App-icon style buttons */
.header-icon-btn {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    /* iOS-style rounded square */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.2rem;
    cursor: pointer;
    transition: all 0.22s ease;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
    font-size: 1.25rem;
    -webkit-text-fill-color: white;
    color: white;
    margin: 0px;
}

.header-icon-btn:hover {
    transform: scale(1.08) translateY(-2px);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35);
}

.header-icon-btn:active {
    transform: scale(0.95);
}

/* Info — indigo */
#btnInfoIcon {
    background: linear-gradient(145deg, #4f46e5, #6366f1);
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.4);
}

#btnInfoIcon:hover {
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.55);
}

/* Profile — violet/purple */
.profile-icon-btn {
    background: linear-gradient(145deg, #7c3aed, #8b5cf6);
    box-shadow: 0 4px 14px rgba(139, 92, 246, 0.4);
}

.profile-icon-btn:hover {
    box-shadow: 0 8px 24px rgba(139, 92, 246, 0.55);
}

/* Timer — red */
.pomodoro-icon-btn {
    background: linear-gradient(145deg, #dc2626, #ef4444);
    box-shadow: 0 4px 14px rgba(239, 68, 68, 0.4);
}

.pomodoro-icon-btn:hover {
    box-shadow: 0 8px 24px rgba(239, 68, 68, 0.55);
}

.header-icon-label {
    font-size: 0.55rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    line-height: 1;
    -webkit-text-fill-color: rgba(255, 255, 255, 0.8);
    color: rgba(255, 255, 255, 0.8);
}

/* ─── RESPONSIVE: medium screens (icons may overlap longer title) ─── */
@media (max-width: 820px) {
    .top-nav {
        /* Let the title row have enough padding on right for icons */
        padding-right: 170px;
    }
}

/* ─── RESPONSIVE: mobile ─── */
@media (max-width: 600px) {
    .top-nav {
        padding-right: 0;
        /* no more absolute, flow normally */
    }

    .header-icon-group {
        position: static;
        /* take back into normal flow */
        margin-top: 0.6rem;
        justify-content: center;
    }

    .logo {
        font-size: 1.75rem;
    }

    .logo i {
        font-size: 1.5rem;
    }

    .header-icon-btn {
        width: 46px;
        height: 46px;
        border-radius: 12px;
        font-size: 1.1rem;
    }
}


/* ==========================================
   SHARED MODAL STYLES (Info + Pomodoro)
   ========================================== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    -webkit-
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
}

.modal-box {
    width: 100%;
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.97), rgba(15, 23, 42, 0.99));
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1.5rem;
    padding: 1.75rem;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.6), 0 0 50px rgba(99, 102, 241, 0.08);
    transform: translateY(20px) scale(0.97);
    transition: transform 0.3s ease;
    overflow-y: auto;
}

.modal-overlay.active .modal-box {
    transform: translateY(0) scale(1);
}

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

.modal-header h2 {
    font-size: 1.3rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.modal-close-btn {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.95rem;
    flex-shrink: 0;
}

.modal-close-btn:hover {
    background: rgba(239, 68, 68, 0.2);
    color: #fca5a5;
    border-color: rgba(239, 68, 68, 0.3);
}

/* ==========================================
   PROFILE BOTTOM SHEET (SLIDE-UP DRAWER)
   ========================================== */
.bottom-sheet-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    -webkit-
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.bottom-sheet-overlay.active {
    opacity: 1;
    visibility: visible;
}

.bottom-sheet {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--glass-bg);
    -webkit-
    border-top: 1px solid var(--glass-border);
    border-radius: 24px 24px 0 0;
    z-index: 1001;
    padding: 1rem 1.5rem 2rem;
    padding-bottom: calc(2rem + env(safe-area-inset-bottom));
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.32, 0.72, 0, 1);
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 -10px 40px rgba(0,0,0,0.5);
}

.bottom-sheet.open {
    transform: translateY(0);
}

.bottom-sheet-handle {
    width: 40px;
    height: 5px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    margin: 0 auto 1.5rem;
}

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

.bottom-sheet-header h2 {
    font-size: 1.35rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
}

.sheet-close-btn {
    background: rgba(255, 255, 255, 0.08);
    border: none;
    color: var(--text-secondary);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.sheet-close-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    color: var(--text-primary);
}

.profile-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

/* Form overrides for bottom sheet */
.bottom-sheet .form-group input,
.bottom-sheet .form-group select {
    background: rgba(0, 0, 0, 0.25);
    padding: 1rem 1.25rem;
    font-size: 1rem;
    border-radius: 12px;
}

.info-feature-icon {
    width: 36px;
    height: 36px;
    border-radius: 0.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    flex-shrink: 0;
}

.info-feature-name {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.2rem;
}

.info-feature-desc {
    font-size: 0.78rem;
    color: var(--text-secondary);
    line-height: 1.45;
}

/* Steps */
.info-steps {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.info-step {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
}

.info-step-num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    font-size: 0.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.info-step-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.2rem;
}

.info-step-desc {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.info-step-desc strong {
    color: #a5b4fc;
}

/* Info callout banners */
.info-callout {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    border-radius: 0.75rem;
    padding: 0.85rem 1rem;
    margin-bottom: 0.9rem;
    font-size: 0.85rem;
    line-height: 1.55;
    color: var(--text-secondary);
}

.info-callout i {
    font-size: 1rem;
    margin-top: 0.1rem;
    flex-shrink: 0;
}

.info-callout strong {
    color: var(--text-primary);
}

.info-callout-blue {
    background: rgba(14, 165, 233, 0.08);
    border: 1px solid rgba(14, 165, 233, 0.2);
    color: #7dd3fc;
}

.info-callout-blue i {
    color: #38bdf8;
}

.info-callout-violet {
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.25);
    color: #c4b5fd;
}

.info-callout-violet i {
    color: #a78bfa;
}

/* Data action cards (export/import/backup) */
.info-data-actions {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.info-data-card {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 0.75rem;
    padding: 0.75rem;
    transition: border-color 0.2s;
}

.info-data-card:hover {
    border-color: rgba(99, 102, 241, 0.2);
}

.info-data-icon {
    width: 34px;
    height: 34px;
    border-radius: 0.55rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.info-data-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.15rem;
}

.info-data-desc {
    font-size: 0.78rem;
    color: var(--text-secondary);
    line-height: 1.45;
}

.info-data-desc strong {
    color: var(--text-primary);
}

.info-footer {
    text-align: center;
    padding-top: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.82rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    margin-top: 0.25rem;
}


