/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: system-ui, 'Segoe UI', 'Inter', sans-serif;
}

body {
    background: #f1f5f9;
    min-height: 100vh;
}

/* TOP NAV */
.top-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(135deg, #1e293b, #0f172a);
    display: flex;
    align-items: center;
    padding: 0 24px;
    gap: 32px;
    z-index: 100;
    box-shadow: 0 2px 12px rgba(0,0,0,0.2);
}

.top-nav-brand {
    display: none;
}

.top-nav-links {
    display: flex;
    gap: 6px;
    list-style: none;
    flex: 1;
}

.top-nav-item {
    list-style: none;
    color: rgba(255,255,255,0.65);
    padding: 7px 16px;
    border-radius: 8px;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.top-nav-item:hover {
    background: rgba(255,255,255,0.1);
    color: white;
}

.top-nav-item.active {
    background: #3b82f6;
    color: white;
}

.top-nav-hint {
    color: rgba(255,255,255,0.4);
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
}

.side-nav {
    position: fixed;
    top: 70px;
    right: 0;
    z-index: 200;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.side-nav-tab {
    background: #1e293b;
    color: white;
    width: 32px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px 0 0 10px;
    cursor: pointer;
    font-size: 1rem;
    box-shadow: -2px 0 12px rgba(0,0,0,0.15);
    transition: background 0.2s ease;
    user-select: none;
}

.side-nav:hover .side-nav-tab,
.side-nav.open .side-nav-tab {
    background: #3b82f6;
}

.side-nav-content {
    background: linear-gradient(135deg, #1e293b, #0f172a);
    padding: 20px 16px;
    border-radius: 12px 0 0 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    box-shadow: -4px 0 20px rgba(0,0,0,0.2);
    transform: translateX(110%);
    position: absolute;
    top: 0;
    right: 32px;
    transition: transform 0.3s ease;
    min-width: 200px;
    max-height: calc(100vh - 90px);
    overflow-y: auto;
}

.side-nav:hover .side-nav-content,
.side-nav.open .side-nav-content {
    transform: translateX(0);
}

.side-nav-label {
    color: rgba(255,255,255,0.35);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 6px;
    padding-left: 4px;
}

.side-nav-item {
    list-style: none;
    color: rgba(255,255,255,0.7);
    padding: 9px 14px;
    border-radius: 8px;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.side-nav-item:hover {
    background: rgba(255,255,255,0.1);
    color: white;
}

.side-nav-item.active {
    background: #3b82f6;
    color: white;
}

.side-nav-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 199;
}

.side-nav-backdrop.visible {
    display: block;
}



/* MAIN AREA */
.container {
    padding-top: 60px;
}

.mainArea {
    padding: 2rem;
    overflow-y: auto;
    min-height: calc(100vh - 60px);
}

.mainArea {
    flex: 1;
    padding: 2rem;
    overflow-y: auto;
    width: 100%;
    margin-left: 1rem;
}

.nav-btn {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.nav-btn.active {
    background: #3b82f6;
    box-shadow: 0 4px 8px rgba(59, 130, 246, 0.3);
}
.nav-btn li {
    list-style: none;
    margin-top: 20px;
    padding: 20px;
    border: 1px solid gray;
    border-radius: 10px;
    font-weight: bold;
}

.nav-btn li:hover:not(.active){
    background: #334155;
}

/* Main content area */

.tasks-section h1 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: #0f172a;
}

.add-task {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.add-task input {
    flex: 2;
    padding: 0.75rem;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    font-size: 1rem;
}

.add-task select, .add-task button {
    padding: 0.75rem 1rem;
    border-radius: 12px;
    border: none;
    font-weight: 600;
}

.add-task button {
    background: #3b82f6;
    color: white;
    cursor: pointer;
    transition: transform 0.1s ease;
}

.add-task button:hover {
    background: #2563eb;
    transform: scale(0.97);
}

/* Task list */
.task-list {
    list-style: none;
    margin-bottom: 2rem;
}

.task-item {
    background: white;
    border-radius: 16px;
    padding: 1rem;
    margin-bottom: 0.75rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.2s;
}

.task-item:hover {
    transform: translateY(4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.priority-high {
    border-left: 5px solid #ef4444;
}

.priority-medium {
    border-left: 5px solid #f59e0b;
}

.priority-low {
    border-left: 5px solid #22c55e;
}

.task-text {
    font-weight: 500;
}

.complete-btn {
    background: #10b981;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
}

.delete-btn {
    background: #ef4444;
    margin-left: 0.5rem;
}

/* Stats card */

.stats {
    display: flex;
    gap: 2rem;
    margin: 2rem 0;
}

.streak-card, .reward-card {
    background: white;
    padding: 1.5rem;
    border-radius: 24px;
    flex: 1;
    margin-left: 2px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.09);
}

.streak-card p, .reward-card p {
    font-size: 2.5rem;
    font-weight: bold;
    margin: 0.5rem 0;
}

/* HEATMAP */
.heatmap {
    background: white;
    padding: 1.5rem;
    border-radius: 24px;
    margin-top: 1rem;
}

.heatmap-grid {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
    flex-wrap: wrap;
    justify-content: space-around;
}

.heatmap-day {
    min-width: 55px;
    text-align: center;
    height: 40px;
    border-radius: 12px;
    background: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: bold;   
}

.heatmap-square {
    width: 20px;
    height: 20px;
    margin-right: 6px;
    border-radius: 12px;
    margin-bottom: 0.5rem;
    transition: transform 0.2s ease;
}


.heatmap-level-0 {background: #e2e8f0;}
.heatmap-level-1 {background: #bbf7d0;}
.heatmap-level-2 {background: #86efac;}
.heatmap-level-3 {background: #4ade80;}
.heatmap-level-4 {background: #22c55e;}
.heatmap-level-5 {background: #16a34a;}

.section {display: none;}
.section.active-section {
    display: block;
    padding-bottom: 4rem;
}



/* GOALS SECTION */
.goals-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 2rem;
}

.goal-card {
    background: white;
    border-radius: 20px;
    padding: 28px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: transform 0.2s ease;
}

.goal-card:hover {
    transform: translateY(-4px);
}

.goal-card.money   { border-top: 5px solid #22c55e; }
.goal-card.skills  { border-top: 5px solid #3b82f6; }
.goal-card.health  { border-top: 5px solid #f59e0b; }
.goal-card.character { border-top: 5px solid #a855f7; }

.goal-icon {
    font-size: 2rem;
    margin-bottom: 10px;
}

.goal-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 10px;
}

.goal-current {
    font-size: 0.95rem;
    color: #475569;
    line-height: 1.6;
    margin-bottom: 16px;
    min-height: 48px;
}

.goal-edit-btn {
    background: #0f172a;
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    font-size: 0.85rem;
    transition: background 0.2s ease;
}

.goal-edit-btn:hover {
    background: #3b82f6;
}

/* MODAL */
.goal-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.goal-modal-box {
    background: white;
    border-radius: 20px;
    padding: 36px;
    width: 480px;
    max-width: 90%;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.goal-modal-box h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #0f172a;
}

.goal-modal-box textarea {
    width: 100%;
    height: 120px;
    padding: 12px;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    font-size: 0.95rem;
    resize: none;
    font-family: inherit;
    outline: none;
}

.goal-modal-box textarea:focus {
    border-color: #3b82f6;
}

.modal-actions {
    display: flex;
    gap: 12px;
}

.modal-actions button {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    font-size: 0.95rem;
    background: #3b82f6;
    color: white;
    transition: background 0.2s ease;
}

.modal-actions button:hover {
    opacity: 0.9;
}

/* ACHIEVED GOALS */
.achieved-section {
    background: white;
    border-radius: 20px;
    padding: 28px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    margin-top: 1rem;
}

.achieved-section h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 16px;
}

.achieved-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.achieved-list li {
    background: #f0fdf4;
    border-left: 4px solid #22c55e;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 0.9rem;
    color: #166534;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.achieved-list li small {
    color: #86efac;
    font-size: 0.78rem;
}


/* JOURNAL SECTION */
.journal-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 2px;
    align-items: start;
}

.journal-write {
    background: white;
    border-radius: 20px;
    padding: 32px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    display: flex;
    width: 700px;
    flex-direction: column;
    gap: 10px;
}

.journal-date {
    font-size: 0.85rem;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 8px;
}

.journal-question {
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.5;
}

.journal-write textarea {
    width: 100%;
    height: 100px;
    padding: 14px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    font-size: 0.95rem;
    font-family: inherit;
    resize: none;
    outline: none;
    color: #1e293b;
    line-height: 1.6;
    transition: border 0.2s ease;
}

.journal-write textarea:focus {
    border-color: #3b82f6;
}

.journal-mood {
    margin-top: 1rem;
}

.journal-mood p {
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 12px;
}

.mood-options {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.mood-btn {
    padding: 8px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 20px;
    background: white;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #0f172a;
}

.mood-btn:hover {
    border-color: #3b82f6;
}

.mood-btn.selected {
    background: #0f172a;
    color: white;
    border-color: #0f172a;
}

.journal-save-btn {
    margin-top: 1.5rem;
    background: #0f172a;
    color: white;
    border: none;
    padding: 14px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease;
}

.journal-save-btn:hover {
    background: #3b82f6;
}

/* JOURNAL HISTORY */
.journal-history {
    background: white;
    border-radius: 20px;
    padding: 28px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.journal-history h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 16px;
}

.journal-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 600px;
    overflow-y: auto;
}

.journal-entry-item {
    background: #f8fafc;
    border-radius: 12px;
    padding: 14px 16px;
    cursor: pointer;
    border-left: 4px solid #e2e8f0;
    transition: all 0.2s ease;
}

.journal-entry-item:hover {
    border-left-color: #3b82f6;
    background: #f0f9ff;
}

.journal-entry-item .entry-date {
    font-size: 0.78rem;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.journal-entry-item .entry-mood {
    font-size: 1.2rem;
    margin-bottom: 4px;
}

.journal-entry-item .entry-preview {
    font-size: 0.85rem;
    color: #475569;
    line-height: 1.5;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* INCOME TRACKER */
.income-summary {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.income-card {
    background: white;
    border-radius: 20px;
    padding: 24px 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    text-align: center;
}

.income-card-icon {
    font-size: 1.8rem;
    margin-bottom: 8px;
}

.income-card h3 {
    font-size: 0.85rem;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 8px;
}

.income-card p {
    font-size: 1.4rem;
    font-weight: 800;
    color: #0f172a;
}

.income-card.earned p { color: #16a34a; }
.income-card.spent p  { color: #ef4444; }
.income-card.balance p { color: #3b82f6; }

.set-target-btn {
    margin-top: 10px;
    background: #0f172a;
    color: white;
    border: none;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
}

.set-target-btn:hover { background: #3b82f6; }

/* PROGRESS BAR */
.income-progress-wrap {
    background: white;
    border-radius: 16px;
    padding: 20px 24px;
    margin-bottom: 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.income-progress-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.88rem;
    font-weight: 700;
    color: #475569;
    margin-bottom: 10px;
}

.income-progress-track {
    background: #e2e8f0;
    border-radius: 30px;
    height: 12px;
    overflow: hidden;
}

.income-progress-fill {
    height: 100%;
    border-radius: 30px;
    background: linear-gradient(90deg, #3b82f6, #22c55e);
    width: 0%;
    transition: width 0.5s ease;
}

/* ADD TRANSACTION */
.add-transaction {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    background: white;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.add-transaction input {
    flex: 2;
    padding: 10px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font-size: 0.95rem;
    outline: none;
    font-family: inherit;
}

.add-transaction input:focus {
    border-color: #3b82f6;
}

.add-transaction select {
    padding: 10px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font-size: 0.9rem;
    font-family: inherit;
    outline: none;
    background: white;
}

.add-transaction button {
    background: #0f172a;
    color: white;
    border: none;
    padding: 10px 24px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background 0.2s ease;
}

.add-transaction button:hover { background: #3b82f6; }

/* TRANSACTION LIST */
.transaction-list-wrap {
    background: white;
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.transaction-list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.transaction-list-header h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #0f172a;
}

.transaction-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 400px;
    overflow-y: auto;
}

.transaction-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    border-radius: 12px;
    background: #f8fafc;
    border-left: 4px solid #e2e8f0;
    transition: all 0.2s ease;
}

.transaction-item:hover { background: #f0f9ff; }

.transaction-item.income-item { border-left-color: #22c55e; }
.transaction-item.expense-item { border-left-color: #ef4444; }

.transaction-info h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 4px;
}

.transaction-info small {
    font-size: 0.78rem;
    color: #94a3b8;
    text-transform: uppercase;
    font-weight: 600;
}

.transaction-amount {
    font-size: 1rem;
    font-weight: 800;
}

.transaction-amount.positive { color: #16a34a; }
.transaction-amount.negative { color: #ef4444; }

.trans-delete-btn {
    background: none;
    border: none;
    color: #cbd5e1;
    font-size: 1.1rem;
    cursor: pointer;
    margin-left: 12px;
    transition: color 0.2s ease;
}

.trans-delete-btn:hover { color: #ef4444; }

/* LEARNING LOG */
.learn-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.learn-stat-card {
    background: white;
    border-radius: 20px;
    padding: 24px 20px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.learn-stat-icon {
    font-size: 1.8rem;
    margin-bottom: 8px;
}

.learn-stat-card p {
    font-size: 1.6rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 4px;
}

.learn-stat-card small {
    font-size: 0.78rem;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* ADD ENTRY */
.learn-add {
    background: white;
    border-radius: 20px;
    padding: 28px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    margin-bottom: 24px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.learn-add-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.learn-add input {
    flex: 2;
    padding: 10px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font-size: 0.95rem;
    font-family: inherit;
    outline: none;
}

.learn-add input:focus {
    border-color: #3b82f6;
}

.learn-add select {
    padding: 10px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font-size: 0.9rem;
    font-family: inherit;
    background: white;
    outline: none;
}

.learn-add textarea {
    width: 100%;
    height: 100px;
    padding: 14px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font-size: 0.95rem;
    font-family: inherit;
    resize: none;
    outline: none;
    line-height: 1.6;
}

.learn-add textarea:focus {
    border-color: #3b82f6;
}

.learn-add button {
    background: #0f172a;
    color: white;
    border: none;
    padding: 10px 28px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background 0.2s ease;
    white-space: nowrap;
}

.learn-add button:hover { background: #3b82f6; }

/* HISTORY */
.learn-history {
    background: white;
    border-radius: 20px;
    padding: 28px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.learn-history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.learn-history-header h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #0f172a;
}

.learn-history-header select {
    padding: 8px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font-size: 0.88rem;
    font-family: inherit;
    background: white;
    outline: none;
}

.learn-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 500px;
    overflow-y: auto;
}

.learn-entry {
    background: #f8fafc;
    border-radius: 14px;
    padding: 18px 20px;
    border-left: 4px solid #3b82f6;
    transition: all 0.2s ease;
}

.learn-entry:hover { background: #f0f9ff; }

.learn-entry-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.learn-entry-topic {
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
}

.learn-entry-meta {
    display: flex;
    gap: 8px;
    align-items: center;
}

.learn-skill-badge {
    background: #0f172a;
    color: white;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    letter-spacing: 0.04em;
}

.learn-entry-date {
    font-size: 0.78rem;
    color: #94a3b8;
    font-weight: 600;
}

.learn-entry-summary {
    font-size: 0.88rem;
    color: #475569;
    line-height: 1.6;
    margin-bottom: 8px;
}

.learn-entry-built {
    font-size: 0.82rem;
    color: #3b82f6;
    font-weight: 600;
}

.learn-entry-built span {
    color: #94a3b8;
    font-weight: 400;
}

/* NOTES SECTION */
.notes-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 24px;
}

.notes-tab {
    padding: 10px 22px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    background: white;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    color: #64748b;
    transition: all 0.2s ease;
}

.notes-tab:hover {
    border-color: #3b82f6;
    color: #3b82f6;
}

.notes-tab.active {
    background: #0f172a;
    color: white;
    border-color: #0f172a;
}

.notes-tab-content { display: none; }
.notes-tab-content.active-tab { display: block; }
.section.section.active-section .notes-tab-content.active-tab {display: block;}

/* ADD NOTE */
.note-add {
    background: white;
    border-radius: 20px;
    padding: 28px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    margin-bottom: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.note-add input {
    padding: 10px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font-size: 0.95rem;
    font-family: inherit;
    outline: none;
}

.note-add input:focus { border-color: #3b82f6; }

.note-add select {
    padding: 10px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font-size: 0.9rem;
    font-family: inherit;
    background: white;
    outline: none;
    width: fit-content;
}

.note-add textarea {
    width: 100%;
    height: 120px;
    padding: 14px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font-size: 0.95rem;
    font-family: inherit;
    resize: vertical;
    outline: none;
    line-height: 1.6;
}

.note-add textarea:focus { border-color: #3b82f6; }

.note-add-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.note-add-actions button {
    background: #0f172a;
    color: white;
    border: none;
    padding: 10px 28px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background 0.2s ease;
}

.note-add-actions button:hover { background: #3b82f6; }

.pin-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.88rem;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
}

/* SEARCH AND FILTER */
.notes-controls {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.notes-controls input {
    padding: 10px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font-size: 0.95rem;
    font-family: inherit;
    outline: none;
    width: 100%;
}

.notes-controls input:focus { border-color: #3b82f6; }

.note-filters {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 6px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 20px;
    background: white;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    color: #64748b;
    transition: all 0.2s ease;
}

.filter-btn:hover { border-color: #3b82f6; color: #3b82f6; }
.filter-btn.active { background: #0f172a; color: white; border-color: #0f172a; }

/* NOTES GRID */
.notes-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.note-card {
    background: white;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: transform 0.2s ease;
    position: relative;
}

.note-card:hover { transform: translateY(-3px); }

.note-card.pinned {
    border-top: 4px solid #f59e0b;
}

.note-card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.note-card-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #0f172a;
    flex: 1;
}

.note-card-pin {
    font-size: 1rem;
    margin-left: 8px;
}

.note-card-body {
    font-size: 0.85rem;
    color: #475569;
    line-height: 1.6;
    flex: 1;
    white-space: pre-wrap;
    word-break: break-word;
    max-height: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.note-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 4px;
}

.note-category-badge {
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    background: #f1f5f9;
    color: #64748b;
}

.note-card-date {
    font-size: 0.72rem;
    color: #cbd5e1;
    font-weight: 600;
}

.note-card-actions {
    display: flex;
    gap: 6px;
}

.note-action-btn {
    background: none;
    border: none;
    font-size: 0.85rem;
    cursor: pointer;
    color: #cbd5e1;
    transition: color 0.2s ease;
    padding: 2px 4px;
}

.note-action-btn:hover { color: #ef4444; }

/* FLASHCARDS */
.flash-add {
    background: white;
    border-radius: 20px;
    padding: 28px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    margin-bottom: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.flash-add input,
.flash-add textarea,
.flash-add select {
    padding: 10px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font-size: 0.95rem;
    font-family: inherit;
    outline: none;
}

.flash-add textarea {
    height: 80px;
    resize: none;
}

.flash-add input:focus,
.flash-add textarea:focus { border-color: #3b82f6; }

.flash-add button {
    background: #0f172a;
    color: white;
    border: none;
    padding: 10px 28px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    width: fit-content;
    transition: background 0.2s ease;
}

.flash-add button:hover { background: #3b82f6; }

.flash-review {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.flash-card-display {
    background: white;
    border-radius: 20px;
    padding: 28px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.flash-card {
    min-height: 180px;
    background: #0f172a;
    border-radius: 16px;
    padding: 28px;
    cursor: pointer;
    position: relative;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: all 0.3s ease;
}

.flash-card:hover { transform: scale(1.02); }

.flash-front, .flash-back {
    color: white;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.6;
}

.flash-back { display: none; color: #86efac; }
.flash-card.flipped .flash-front { display: none; }
.flash-card.flipped .flash-back { display: block; }

.flash-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.flash-controls button {
    flex: 1;
    padding: 8px 12px;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.82rem;
    cursor: pointer;
    background: #0f172a;
    color: white;
    transition: opacity 0.2s ease;
}

.flash-controls button:hover { opacity: 0.85; }

.flash-list-wrap {
    background: white;
    border-radius: 20px;
    padding: 28px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.flash-list-wrap h3 {
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 16px;
}

.flash-list-wrap h3 span {
    color: #94a3b8;
    font-size: 0.85rem;
    font-weight: 600;
}

.flash-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 400px;
    overflow-y: auto;
}

.flash-item {
    background: #f8fafc;
    border-radius: 12px;
    padding: 14px 16px;
    border-left: 4px solid #3b82f6;
}

.flash-item-q {
    font-size: 0.88rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 4px;
}

.flash-item-a {
    font-size: 0.82rem;
    color: #64748b;
    line-height: 1.5;
}

.flash-item-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
}

.flash-item-subject {
    font-size: 0.72rem;
    font-weight: 700;
    background: #0f172a;
    color: white;
    padding: 2px 8px;
    border-radius: 20px;
}

.flash-delete {
    background: none;
    border: none;
    color: #cbd5e1;
    cursor: pointer;
    font-size: 0.85rem;
    transition: color 0.2s ease;
}

.flash-delete:hover { color: #ef4444; }

/* HABIT LOG */
.habit-add {
    background: white;
    border-radius: 20px;
    padding: 28px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    margin-bottom: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.habit-add input,
.habit-add select {
    padding: 10px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font-size: 0.95rem;
    font-family: inherit;
    outline: none;
    background: white;
}

.habit-add input:focus { border-color: #3b82f6; }

.habit-add button {
    background: #0f172a;
    color: white;
    border: none;
    padding: 10px 28px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    width: fit-content;
    transition: background 0.2s ease;
}

.habit-add button:hover { background: #3b82f6; }

.habit-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.habit-card {
    background: white;
    border-radius: 16px;
    padding: 20px 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border-left: 4px solid #ef4444;
}

.habit-card-content h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 6px;
}

.habit-replace {
    font-size: 0.88rem;
    color: #22c55e;
    font-weight: 600;
    margin-bottom: 4px;
}

.habit-replace span { color: #94a3b8; font-weight: 400; }

.habit-trigger-badge {
    font-size: 0.75rem;
    font-weight: 700;
    background: #fef3c7;
    color: #92400e;
    padding: 3px 10px;
    border-radius: 20px;
    width: fit-content;
}

.habit-delete {
    background: none;
    border: none;
    color: #cbd5e1;
    font-size: 1rem;
    cursor: pointer;
    transition: color 0.2s ease;
}

.habit-delete:hover { color: #ef4444; }

/* CLIENT TRACKER */
.pipeline-stats {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 14px;
    margin-bottom: 24px;
}

.pipeline-stat-card {
    background: white;
    border-radius: 16px;
    padding: 20px 16px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
}

.pipeline-stat-icon {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.pipeline-stat-card p {
    font-size: 1.3rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 4px;
}

.pipeline-stat-card small {
    font-size: 0.72rem;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* ADD CLIENT */
.client-add {
    background: white;
    border-radius: 20px;
    padding: 28px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    margin-bottom: 24px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.client-add h3 {
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 4px;
}

.client-add-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.client-add input,
.client-add select,
.client-add textarea {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font-size: 0.92rem;
    font-family: inherit;
    outline: none;
    background: white;
}

.client-add input:focus,
.client-add select:focus,
.client-add textarea:focus {
    border-color: #3b82f6;
}

.client-add textarea {
    height: 90px;
    resize: none;
}

.client-add button {
    background: #0f172a;
    color: white;
    border: none;
    padding: 12px 28px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    width: fit-content;
    transition: background 0.2s ease;
}

.client-add button:hover { background: #3b82f6; }

/* FILTER BAR */
.client-filters {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.client-filter-btn {
    padding: 7px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 20px;
    background: white;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    color: #64748b;
    transition: all 0.2s ease;
}

.client-filter-btn:hover {
    border-color: #3b82f6;
    color: #3b82f6;
}

.client-filter-btn.active {
    background: #0f172a;
    color: white;
    border-color: #0f172a;
}

/* CLIENT LIST */
.client-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.client-card {
    background: white;
    border-radius: 16px;
    padding: 22px 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    border-left: 5px solid #e2e8f0;
    transition: all 0.2s ease;
}

.client-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

.client-card.status-Prospect     { border-left-color: #94a3b8; }
.client-card.status-Contacted    { border-left-color: #3b82f6; }
.client-card.status-Meeting      { border-left-color: #f59e0b; }
.client-card.status-Proposal-Sent { border-left-color: #8b5cf6; }
.client-card.status-Closed       { border-left-color: #22c55e; }
.client-card.status-Lost         { border-left-color: #ef4444; }

.client-card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.client-card-info h4 {
    font-size: 1rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 4px;
}

.client-card-info p {
    font-size: 0.82rem;
    color: #64748b;
}

.client-card-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
}

.client-status-badge {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    background: #f1f5f9;
    color: #475569;
}

.client-value {
    font-size: 1rem;
    font-weight: 800;
    color: #0f172a;
}

.client-card-body {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.client-card-notes {
    font-size: 0.85rem;
    color: #64748b;
    line-height: 1.6;
    flex: 1;
    margin-right: 20px;
}

.client-card-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.client-followup {
    font-size: 0.78rem;
    font-weight: 700;
    color: #f59e0b;
    background: #fef3c7;
    padding: 3px 10px;
    border-radius: 8px;
}

.client-followup.overdue {
    color: #ef4444;
    background: #fee2e2;
}

.client-card-actions {
    display: flex;
    gap: 6px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid #f1f5f9;
}

.client-action-btn {
    padding: 6px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: white;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    color: #475569;
    transition: all 0.2s ease;
}

.client-action-btn:hover {
    background: #0f172a;
    color: white;
    border-color: #0f172a;
}

.client-action-btn.danger:hover {
    background: #ef4444;
    border-color: #ef4444;
}

/* ===========================
   POMODORO TIMER
   =========================== */

   .pomo-modes {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.pomo-mode-btn {
    padding: 0.5rem 1.25rem;
    border: 2px solid #334155;
    background: transparent;
    color: #94a3b8;
    border-radius: 999px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.pomo-mode-btn.active {
    background: #6366f1;
    border-color: #6366f1;
    color: #fff;
}

.pomo-subject-wrap {
    margin-bottom: 2rem;
}

.pomo-subject-wrap input {
    width: 100%;
    padding: 0.75rem 1rem;
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 10px;
    color: #f1f5f9;
    font-size: 0.95rem;
    box-sizing: border-box;
}

.pomo-clock-wrap {
    text-align: center;
    margin-bottom: 2rem;
}

.pomo-clock {
    font-size: 5rem;
    font-weight: 900;
    color: #042f5a;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.05em;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.pomo-clock.running {
    color: #6366f1;
}

.pomo-clock.break {
    color: #22c55e;
}

.pomo-session-count {
    color: #64748b;
    font-size: 0.9rem;
}

.pomo-controls {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.pomo-btn {
    padding: 0.75rem 2.5rem;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: opacity 0.2s;
}

.pomo-btn:hover {
    opacity: 0.85;
}

.pomo-btn.start {
    background: #6366f1;
    color: #fff;
}

.pomo-btn.reset {
    background: #1e293b;
    color: #94a3b8;
    border: 1px solid #334155;
}

.pomo-stats {
    display: flex;
    gap: 1rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.pomo-stat {
    flex: 1;
    min-width: 100px;
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 12px;
    padding: 1rem;
    text-align: center;
}

.pomo-stat-num {
    display: block;
    font-size: 2rem;
    font-weight: 900;
    color: #6366f1;
}

.pomo-stat-label {
    font-size: 0.8rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.pomo-log-wrap {
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 14px;
    padding: 1.5rem;
}

.pomo-log {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-height: 300px;
    overflow-y: auto;
}

.pomo-log-entry {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1rem;
    background: #0f172a;
    border-radius: 8px;
    border-left: 3px solid #6366f1;
}

.pomo-log-entry.break-entry {
    border-left-color: #22c55e;
}

.pomo-log-subject {
    flex: 1;
    font-size: 0.9rem;
    color: #f1f5f9;
}

.pomo-log-meta {
    font-size: 0.8rem;
    color: #64748b;
    white-space: nowrap;
}

.pomo-log-empty {
    color: #64748b;
    font-size: 0.9rem;
    text-align: center;
    padding: 1rem;
}


/* ===========================
   CALCULATOR
   =========================== */

   .calc-tabs {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 2rem;
    justify-content: center;
}

.calc-tab {
    padding: 0.5rem 1.25rem;
    border: 2px solid #334155;
    background: transparent;
    color: #94a3b8;
    border-radius: 999px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.calc-tab.active {
    background: #6366f1;
    border-color: #6366f1;
    color: #fff;
}

.calc-tab-content {
    display: none;
}

.calc-tab-content.active-tab {
    display: block;
}

/* Standard calc */
.calc-wrap {
    max-width: 340px;
    margin: 0 auto;
}

.calc-display {
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 14px 14px 0 0;
    padding: 1.25rem 1.5rem;
    text-align: right;
    min-height: 90px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.calc-expression {
    font-size: 0.85rem;
    color: #64748b;
    min-height: 1.2rem;
    margin-bottom: 0.25rem;
    word-break: break-all;
}

.calc-result {
    font-size: 2.5rem;
    font-weight: 900;
    color: #f1f5f9;
    word-break: break-all;
}

.calc-buttons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: #334155;
    border: 1px solid #334155;
    border-top: none;
    border-radius: 0 0 14px 14px;
    overflow: hidden;
}

.calc-btn {
    padding: 1.1rem;
    background: #1e293b;
    border: none;
    color: #f1f5f9;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
}

.calc-btn:hover {
    background: #293548;
}

.calc-btn.operator {
    color: #6366f1;
}

.calc-btn.equals {
    background: #6366f1;
    color: #fff;
}

.calc-btn.equals:hover {
    background: #4f46e5;
}

.calc-btn.wide {
    grid-column: span 2;
}

/* Grade calculator */
.grade-wrap {
    max-width: 560px;
    margin: 0 auto;
}

.grade-add {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.grade-add input {
    padding: 0.75rem 1rem;
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 10px;
    color: #f1f5f9;
    font-size: 0.95rem;
}

.grade-add button {
    padding: 0.75rem;
    background: #6366f1;
    border: none;
    border-radius: 10px;
    color: #fff;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
}

.grade-list {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-bottom: 1.5rem;
}

.grade-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 10px;
    padding: 0.75rem 1rem;
}

.grade-row-subject {
    flex: 1;
    font-size: 0.95rem;
    color: #f1f5f9;
}

.grade-row-score {
    font-size: 1rem;
    font-weight: 700;
    color: #6366f1;
    min-width: 45px;
    text-align: right;
}

.grade-row-letter {
    font-size: 0.85rem;
    color: #94a3b8;
    min-width: 30px;
    text-align: center;
}

.grade-row-delete {
    background: none;
    border: none;
    color: #ef4444;
    cursor: pointer;
    font-size: 0.85rem;
    padding: 0.25rem 0.5rem;
}

.grade-summary {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.grade-summary-item {
    flex: 1;
    min-width: 100px;
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 12px;
    padding: 1rem;
    text-align: center;
}

.grade-summary-num {
    display: block;
    font-size: 2rem;
    font-weight: 900;
    color: #6366f1;
}

.grade-summary-label {
    font-size: 0.8rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.grade-clear-btn {
    background: #1e293b;
    border: 1px solid #334155;
    color: #94a3b8;
    padding: 0.6rem 1.25rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.85rem;
} 

/* ===========================
   DOCUMENTS
   =========================== */

   .docs-layout {
    display: flex;
    gap: 1.5rem;
    height: 600px;
}

.docs-sidebar {
    width: 220px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.docs-new-btn {
    padding: 0.75rem;
    background: #6366f1;
    border: none;
    border-radius: 10px;
    color: #fff;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: opacity 0.2s;
}

.docs-search-wrap {
    position: relative;
}

.docs-search {
    width: 100%;
    padding: 0.65rem 1rem;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font-size: 0.85rem;
    color: #1e293b;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

.docs-search:focus {
    outline: none;
    border-color: #6366f1;
    background: #fff;
}

.docs-new-btn:hover {
    opacity: 0.85;
}

.docs-list {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.docs-list-item {
    padding: 0.75rem 1rem;
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 10px;
    cursor: pointer;
    transition: border-color 0.2s;
}

.docs-list-item:hover {
    border-color: #6366f1;
}

.docs-list-item.active {
    border-color: #6366f1;
    background: #1e1e3a;
}

.docs-list-item-title {
    font-size: 0.9rem;
    color: #f1f5f9;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.docs-list-item-date {
    font-size: 0.75rem;
    color: #64748b;
    margin-top: 0.2rem;
}

.docs-editor-wrap {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.docs-title-input {
    padding: 0.75rem 1rem;
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 10px;
    color: #f1f5f9;
    font-size: 1.1rem;
    font-weight: 700;
}

.docs-editor {
    flex: 1;
    padding: 1rem;
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 10px;
    color: #f1f5f9;
    font-size: 0.95rem;
    line-height: 1.7;
    resize: none;
    font-family: inherit;
}

.docs-editor:focus, .docs-title-input:focus {
    outline: none;
    border-color: #6366f1;
}

.docs-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.docs-save-btn {
    padding: 0.65rem 1.5rem;
    background: #6366f1;
    border: none;
    border-radius: 8px;
    color: #fff;
    font-weight: 700;
    cursor: pointer;
}

.docs-delete-btn {
    padding: 0.65rem 1.5rem;
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 8px;
    color: #ef4444;
    font-weight: 700;
    cursor: pointer;
}

.docs-save-status {
    font-size: 0.85rem;
    color: #22c55e;
}

/* ===========================
   MEDIA
   =========================== */

   .media-add {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 2rem;
    max-width: 600px;
}

.media-add input {
    padding: 0.75rem 1rem;
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 10px;
    color: #f1f5f9;
    font-size: 0.95rem;
}

.media-add button {
    padding: 0.75rem;
    background: #6366f1;
    border: none;
    border-radius: 10px;
    color: #fff;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: opacity 0.2s;
}

.media-add button:hover {
    opacity: 0.85;
}

.media-player-wrap {
    margin-bottom: 2rem;
    max-width: 700px;
}

.media-player-label {
    font-size: 1rem;
    font-weight: 700;
    color: #f1f5f9;
    margin-bottom: 0.75rem;
}

.media-iframe-wrap {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid #334155;
}

.media-iframe-wrap iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.media-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-width: 700px;
}

.media-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.85rem 1rem;
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 12px;
    cursor: pointer;
    transition: border-color 0.2s;
}

.media-card:hover {
    border-color: #6366f1;
}

.media-card.active {
    border-color: #6366f1;
    background: #1e1e3a;
}

.media-card-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.media-card-info {
    flex: 1;
}

.media-card-label {
    font-size: 0.95rem;
    font-weight: 600;
    color: #f1f5f9;
}

.media-card-url {
    font-size: 0.78rem;
    color: #64748b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 400px;
}

.media-card-delete {
    background: none;
    border: none;
    color: #ef4444;
    cursor: pointer;
    font-size: 0.85rem;
    padding: 0.25rem 0.5rem;
    flex-shrink: 0;
}

/* ===========================
   ASSIGNMENT DEADLINES
   =========================== */

   .deadlines-wrap {
    margin-top: 2rem;
    margin-bottom: 1.5rem;
}

.deadline-add {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
    max-width: 500px;
}

.deadline-add input {
    padding: 0.75rem 1rem;
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 10px;
    color: #f1f5f9;
    font-size: 0.9rem;
}

.deadline-add input[type="datetime-local"] {
    color-scheme: dark;
}

.deadline-add button {
    padding: 0.75rem;
    background: #6366f1;
    border: none;
    border-radius: 10px;
    color: #fff;
    font-weight: 700;
    cursor: pointer;
    transition: opacity 0.2s;
}

.deadline-add button:hover {
    opacity: 0.85;
}

.deadline-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-width: 500px;
}

.deadline-card {
    padding: 1rem 1.25rem;
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 12px;
    border-left: 4px solid #6366f1;
}

.deadline-card.urgent {
    border-left-color: #ef4444;
}

.deadline-card.soon {
    border-left-color: #f59e0b;
}

.deadline-card.done {
    border-left-color: #22c55e;
    opacity: 0.6;
}

.deadline-card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.4rem;
}

.deadline-card-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #f1f5f9;
}

.deadline-card-subject {
    font-size: 0.8rem;
    color: #94a3b8;
    margin-bottom: 0.5rem;
}

.deadline-card-countdown {
    font-size: 1rem;
    font-weight: 700;
    color: #6366f1;
}

.deadline-card.urgent .deadline-card-countdown {
    color: #ef4444;
}

.deadline-card.soon .deadline-card-countdown {
    color: #f59e0b;
}

.deadline-card.done .deadline-card-countdown {
    color: #22c55e;
}

.deadline-card-delete {
    background: none;
    border: none;
    color: #475569;
    cursor: pointer;
    font-size: 0.85rem;
    padding: 0;
}

.deadline-card-delete:hover {
    color: #ef4444;
}

/* ===========================
   EXAM SCHEDULE
   =========================== */

   .exams-wrap {
    margin-top: 2rem;
    margin-bottom: 1.5rem;
}

.exam-add {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
    max-width: 500px;
}

.exam-add input {
    padding: 0.75rem 1rem;
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 10px;
    color: #f1f5f9;
    font-size: 0.9rem;
}

.exam-add input[type="datetime-local"] {
    color-scheme: dark;
}

.exam-add button {
    padding: 0.75rem;
    background: #0ea5e9;
    border: none;
    border-radius: 10px;
    color: #fff;
    font-weight: 700;
    cursor: pointer;
    transition: opacity 0.2s;
}

.exam-add button:hover {
    opacity: 0.85;
}

.exam-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-width: 500px;
}

.exam-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 12px;
}

.exam-card-badge {
    min-width: 56px;
    text-align: center;
    background: #0ea5e9;
    border-radius: 10px;
    padding: 0.5rem 0.4rem;
    flex-shrink: 0;
}

.exam-card-badge.urgent {
    background: #ef4444;
}

.exam-card-badge.soon {
    background: #f59e0b;
}

.exam-card-badge.past {
    background: #334155;
}

.exam-badge-days {
    display: block;
    font-size: 1.3rem;
    font-weight: 900;
    color: #fff;
    line-height: 1;
}

.exam-badge-label {
    display: block;
    font-size: 0.65rem;
    color: rgba(255,255,255,0.8);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.exam-card-info {
    flex: 1;
}

.exam-card-subject {
    font-size: 1rem;
    font-weight: 700;
    color: #f1f5f9;
    margin-bottom: 0.2rem;
}

.exam-card-meta {
    font-size: 0.8rem;
    color: #64748b;
}

.exam-card-delete {
    background: none;
    border: none;
    color: #475569;
    cursor: pointer;
    font-size: 0.85rem;
}

.exam-card-delete:hover {
    color: #ef4444;
}

.deadlines {
    display: flex;
    flex-direction: row;
    gap: 4rem;
}

.deadlines .deadlines-wrap {
    min-width: 500px;   
}
.deadlines .exams-wrap {
    flex: 1;
}

/* ===========================
   ROUTINE CHECKLIST
   =========================== */

   .routine-wrap {
    margin-top: 2rem;
    margin-bottom: 1.5rem;
    max-width: 500px;
}

.routine-tabs {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.routine-tab {
    padding: 0.5rem 1.25rem;
    border: 2px solid #334155;
    background: transparent;
    color: #94a3b8;
    border-radius: 999px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.routine-tab.active {
    background: #6366f1;
    border-color: #6366f1;
    color: #fff;
}

.routine-tab-content {
    display: none;
}

.routine-tab-content.active-tab {
    display: block;
}

.routine-add {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.routine-add input {
    flex: 1;
    padding: 0.7rem 1rem;
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 10px;
    color: #f1f5f9;
    font-size: 0.9rem;
}

.routine-add button {
    padding: 0.7rem 1.25rem;
    background: #6366f1;
    border: none;
    border-radius: 10px;
    color: #fff;
    font-weight: 700;
    cursor: pointer;
    transition: opacity 0.2s;
}

.routine-add button:hover {
    opacity: 0.85;
}

.routine-list {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-bottom: 1rem;
}

.routine-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
}

.routine-item.checked {
    border-color: #22c55e;
    background: #0f2a1a;
}

.routine-item-checkbox {
    width: 20px;
    height: 20px;
    border: 2px solid #334155;
    border-radius: 50%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    color: #22c55e;
    transition: all 0.2s;
}

.routine-item.checked .routine-item-checkbox {
    background: #22c55e;
    border-color: #22c55e;
    color: #fff;
}

.routine-item-label {
    flex: 1;
    font-size: 0.9rem;
    color: #f1f5f9;
    transition: all 0.2s;
}

.routine-item.checked .routine-item-label {
    text-decoration: line-through;
    color: #64748b;
}

.routine-item-delete {
    background: none;
    border: none;
    color: #475569;
    cursor: pointer;
    font-size: 0.8rem;
}

.routine-item-delete:hover {
    color: #ef4444;
}

.routine-progress-wrap {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.routine-progress-bar {
    flex: 1;
    height: 8px;
    background: #1e293b;
    border-radius: 999px;
    overflow: hidden;
}

.routine-progress-fill {
    height: 100%;
    background: #22c55e;
    border-radius: 999px;
    width: 0%;
    transition: width 0.3s ease;
}

.routine-progress-label {
    font-size: 0.8rem;
    color: #64748b;
    white-space: nowrap;
}


/* ===========================
   SPLASH SCREEN
   =========================== */

   .splash {
    position: fixed;
    inset: 0;
    background: #0f172a;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.splash.hidden {
    opacity: 0;
    pointer-events: none;
}

.splash-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.splash-logo {
    width: 80px;
    height: 80px;
    background: #6366f1;
    border-radius: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.5rem;
    box-shadow: 0 0 40px rgba(99, 102, 241, 0.4);
}

.splash-logo-mark {
    font-size: 2rem;
    font-weight: 900;
    color: #fff;
    letter-spacing: -1px;
}

.splash-title {
    font-size: 3.5rem;
    font-weight: 900;
    color: #f1f5f9;
    letter-spacing: -2px;
    margin: 0;
}

.splash-tagline {
    font-size: 1.1rem;
    color: #64748b;
    margin: 0;
    letter-spacing: 0.02em;
}

.splash-btn {
    margin-top: 1rem;
    padding: 0.9rem 2.5rem;
    background: #6366f1;
    border: none;
    border-radius: 12px;
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    letter-spacing: 0.02em;
}

.splash-btn:hover {
    background: #4f46e5;
    transform: translateY(-1px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.35);
}

.splash-credit {
    font-size: 0.8rem;
    color: #334155;
    margin: 0;
}

.splash-credit strong {
    color: #475569;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0 1rem;
    flex-shrink: 0;
}

.nav-brand-mark {
    width: 32px;
    height: 32px;
    background: #6366f1;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 900;
    color: #fff;
    letter-spacing: -0.5px;
    flex-shrink: 0;
}

.nav-brand-name {
    font-size: 1rem;
    font-weight: 900;
    color: #f1f5f9;
    letter-spacing: -0.5px;
}

.section-title {
    font-size: 2rem;
    font-weight: 900;
    color: #062b50;
    letter-spacing: -1px;
    margin-bottom: 0.4rem;
}

.section-sub {
    color: #64748b;
    font-size: 0.95rem;
    margin-bottom: 2rem;
}

/* ABOUT PANEL */

.about-panel {
    margin-top: auto;
    padding: 1.25rem 1rem;
    border-top: 1px solid #1e293b;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    text-align: center;
}

.about-avatar {
    width: 44px;
    height: 44px;
    background: #6366f1;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 900;
    color: #fff;
    letter-spacing: -0.5px;
    margin-bottom: 0.25rem;
}

.about-name {
    font-size: 0.9rem;
    font-weight: 700;
    color: #f1f5f9;
}

.about-title {
    font-size: 0.75rem;
    color: #64748b;
    line-height: 1.4;
}

.about-divider {
    width: 40px;
    height: 1px;
    background: #1e293b;
    margin: 0.25rem 0;
}

.about-bio {
    font-size: 0.75rem;
    color: #475569;
    line-height: 1.5;
}

.about-link {
    font-size: 0.8rem;
    color: #6366f1;
    text-decoration: none;
    margin-top: 0.25rem;
    transition: opacity 0.2s;
}

.about-link:hover {
    opacity: 0.75;
}

/* ===========================
   RENTAL PLANNER
   =========================== */

   .rental-readiness {
    background: linear-gradient(135deg, #1e1b4b, #312e81);
    border-radius: 16px;
    padding: 1.5rem 2rem;
    margin-bottom: 2rem;
    text-align: center;
}

.rental-readiness-label {
    color: #a5b4fc;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.rental-readiness-bar {
    background: rgba(255,255,255,0.1);
    border-radius: 999px;
    height: 12px;
    margin-bottom: 0.75rem;
    overflow: hidden;
}

.rental-readiness-fill {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #6366f1, #22c55e);
    width: 0%;
    transition: width 0.6s ease;
}

.rental-readiness-score {
    font-size: 2.5rem;
    font-weight: 900;
    color: white;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.rental-readiness-note {
    color: #a5b4fc;
    font-size: 0.9rem;
    margin: 0;
}

.rental-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

@media (max-width: 768px) {
    .rental-grid {
        grid-template-columns: 1fr;
    }
}

.rental-col {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.rental-card {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.rental-card h3 {
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 1.25rem;
}

.rental-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.85rem;
    gap: 1rem;
}

.rental-row label {
    font-size: 0.85rem;
    color: #475569;
    white-space: nowrap;
    min-width: 140px;
}

.rental-row input {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.9rem;
    color: #0f172a;
    background: #f8fafc;
    outline: none;
    transition: border 0.2s;
}

.rental-row input:focus {
    border-color: #6366f1;
    background: white;
}

.rental-progress-wrap {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

.rental-progress-bar {
    background: #f1f5f9;
    border-radius: 999px;
    height: 8px;
    overflow: hidden;
    margin-bottom: 0.4rem;
}

.rental-progress-fill {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #6366f1, #22c55e);
    width: 0%;
    transition: width 0.5s ease;
}

.rental-progress-wrap span {
    font-size: 0.8rem;
    color: #64748b;
}

.rental-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    padding-top: 0.85rem;
    border-top: 1px solid #e2e8f0;
    font-weight: 700;
    font-size: 0.95rem;
    color: #0f172a;
}

.rental-total-row.surplus span:last-child {
    color: #22c55e;
}

.rental-card textarea {
    width: 100%;
    min-height: 120px;
    padding: 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font-size: 0.9rem;
    color: #0f172a;
    background: #f8fafc;
    resize: vertical;
    outline: none;
    font-family: inherit;
    line-height: 1.6;
    box-sizing: border-box;
}

.rental-card textarea:focus {
    border-color: #6366f1;
    background: white;
}

/* ===========================
   BACKUP SYSTEM
   =========================== */

   .backup-wrap {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
}

.backup-btn {
    display: block;
    text-align: center;
    padding: 0.6rem;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    border: none;
    transition: opacity 0.2s;
}

.backup-btn:hover {
    opacity: 0.85;
}

.backup-btn.export {
    background: #6366f1;
    color: white;
}

.backup-btn.import {
    background: #f1f5f9;
    color: #0f172a;
}

/* ===========================
   DASHBOARD
   =========================== */

   .dash-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
    gap: 1rem;
    flex-wrap: wrap;
}

.dash-greeting {
    font-size: 1.8rem;
    font-weight: 900;
    color: #0f172a;
    margin: 0 0 0.25rem 0;
}

.dash-date {
    color: #64748b;
    font-size: 0.95rem;
    margin: 0;
}

.dash-quote {
    background: linear-gradient(135deg, #1e1b4b, #312e81);
    color: #a5b4fc;
    font-size: 0.85rem;
    font-style: italic;
    padding: 1rem 1.25rem;
    border-radius: 12px;
    max-width: 320px;
    line-height: 1.6;
}

.dash-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

@media (max-width: 768px) {
    .dash-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

.dash-stat-card {
    background: white;
    border-radius: 16px;
    padding: 1.25rem;
    text-align: center;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.dash-stat-icon {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.dash-stat-num {
    font-size: 1.8rem;
    font-weight: 900;
    color: #6366f1;
    line-height: 1;
    margin-bottom: 0.25rem;
}

.dash-stat-label {
    font-size: 0.78rem;
    color: #94a3b8;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.dash-section-block {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.dash-block-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0 0 1rem 0;
}

.dash-goals {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.dash-goal-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.dash-goal-icon {
    font-size: 1.1rem;
    margin-top: 0.1rem;
}

.dash-goal-text {
    font-size: 0.95rem;
    color: #0f172a;
    line-height: 1.5;
}

.dash-mood {
    font-size: 1rem;
    color: #0f172a;
    line-height: 1.6;
}

.dash-quicklinks {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.dash-quicklinks button {
    background: #f1f5f9;
    border: none;
    border-radius: 10px;
    padding: 0.6rem 1rem;
    font-size: 0.85rem;
    font-weight: 700;
    color: #0f172a;
    cursor: pointer;
    transition: background 0.2s;
}

.dash-quicklinks button:hover {
    background: #e2e8f0;
}

/* ===========================
   SETTINGS
   =========================== */

.settings-block {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.settings-block-title {
    font-size: 1rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.settings-desc {
    font-size: 0.85rem;
    color: #64748b;
    margin-bottom: 1.25rem;
    line-height: 1.5;
}

.settings-row {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.settings-btn {
    padding: 0.65rem 1.25rem;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    border: none;
    transition: opacity 0.2s;
}

.settings-btn:hover {
    opacity: 0.85;
}

.settings-btn.primary {
    background: #6366f1;
    color: #fff;
}

.settings-btn.secondary {
    background: #f1f5f9;
    color: #1e293b;
    border: 1px solid #e2e8f0;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
}

.settings-btn.danger {
    background: #ef4444;
    color: #fff;
}

.settings-reset-grid {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.settings-reset-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 1rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    gap: 1rem;
}

.settings-reset-info {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.settings-reset-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: #1e293b;
}

.settings-reset-desc {
    font-size: 0.78rem;
    color: #94a3b8;
}

.settings-reset-btn {
    padding: 0.45rem 1rem;
    background: #fff;
    border: 1px solid #ef4444;
    color: #ef4444;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
    flex-shrink: 0;
}

.settings-reset-btn:hover {
    background: #ef4444;
    color: #fff;
}

.danger-block {
    border-color: #fca5a5;
    background: #fff5f5;
}

.settings-about {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.settings-about-logo {
    width: 52px;
    height: 52px;
    background: #6366f1;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 900;
    color: #fff;
    flex-shrink: 0;
}

.settings-about-name {
    font-size: 1.1rem;
    font-weight: 900;
    color: #1e293b;
}

.settings-about-tagline {
    font-size: 0.85rem;
    color: #64748b;
    margin-bottom: 0.25rem;
}

.settings-about-credit {
    font-size: 0.8rem;
    color: #94a3b8;
    margin-bottom: 0.25rem;
}

.settings-about-link {
    font-size: 0.85rem;
    color: #6366f1;
    text-decoration: none;
}


/* ===========================
   NOTE VIEW/EDIT MODAL
   =========================== */

.note-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.note-modal-overlay.open {
    display: flex;
}

.note-modal {
    background: #fff;
    border-radius: 18px;
    width: 100%;
    max-width: 620px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    overflow: hidden;
}

.note-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem 0;
}

.note-modal-label {
    font-size: 0.8rem;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.note-modal-close {
    background: none;
    border: none;
    font-size: 1.1rem;
    color: #94a3b8;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    transition: background 0.2s;
}

.note-modal-close:hover {
    background: #f1f5f9;
    color: #1e293b;
}

.note-modal-title-input {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1e293b;
    border: none;
    outline: none;
    padding: 1rem 1.5rem 0.5rem;
    width: 100%;
    box-sizing: border-box;
}

.note-modal-body {
    flex: 1;
    border: none;
    outline: none;
    padding: 0.5rem 1.5rem 1rem;
    font-size: 0.95rem;
    color: #334155;
    line-height: 1.7;
    resize: none;
    min-height: 260px;
    font-family: inherit;
}

.note-modal-footer {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    border-top: 1px solid #f1f5f9;
    flex-wrap: wrap;
}

.note-modal-footer select {
    padding: 0.5rem 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.85rem;
    color: #1e293b;
    background: #f8fafc;
}

.note-modal-pin-label {
    font-size: 0.85rem;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    cursor: pointer;
}

.note-modal-save-btn {
    padding: 0.6rem 1.25rem;
    background: #6366f1;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    margin-left: auto;
    transition: opacity 0.2s;
}

.note-modal-save-btn:hover {
    opacity: 0.85;
}

.note-modal-delete-btn {
    padding: 0.6rem 1rem;
    background: #fff;
    color: #ef4444;
    border: 1px solid #ef4444;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
}

.note-modal-delete-btn:hover {
    background: #ef4444;
    color: #fff;
}

.note-modal-status {
    font-size: 0.8rem;
    color: #22c55e;
    width: 100%;
    text-align: right;
    padding: 0 1.5rem 0.75rem;
}


/* ===========================
   JOURNAL ENTRY MODAL
   =========================== */

.journal-entry-item {
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
}

.journal-entry-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.journal-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.journal-modal-overlay.open {
    display: flex;
}

.journal-modal {
    background: #fff;
    border-radius: 18px;
    width: 100%;
    max-width: 580px;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}

.journal-modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 1.5rem 1.5rem 1rem;
    border-bottom: 1px solid #f1f5f9;
}

.journal-modal-date {
    font-size: 1rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.25rem;
}

.journal-modal-mood {
    font-size: 0.85rem;
    color: #64748b;
}

.journal-modal-close {
    background: none;
    border: none;
    font-size: 1.1rem;
    color: #94a3b8;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    transition: background 0.2s;
    flex-shrink: 0;
}

.journal-modal-close:hover {
    background: #f1f5f9;
    color: #1e293b;
}

.journal-modal-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.journal-modal-question {
    font-size: 0.78rem;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.journal-modal-answer {
    font-size: 0.95rem;
    color: #334155;
    line-height: 1.7;
    white-space: pre-wrap;
    background: #f8fafc;
    border-radius: 10px;
    padding: 1rem;
    min-height: 60px;
}