/* styles.css */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: #000000;
    color: #ffffff;
    min-height: 100vh;
    padding: 20px;
    position: relative;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    transition: background-color 0.4s ease;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(46, 139, 255, 0.08) 0%, transparent 60%);
    pointer-events: none;
    transition: opacity 0.4s ease;
}

/* Primary color for body when in Focus Mode */
body.in-focus-mode {
    background-color: #0D1B2A;
}

body.in-focus-mode::before {
    opacity: 0;
}


.container {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* LOGIN SCREEN */
.login-screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
}

.login-box {
    background: rgba(10, 26, 47, 0.85);
    border: 1px solid rgba(46, 139, 255, 0.2);
    border-radius: 24px;
    padding: 50px 40px;
    backdrop-filter: blur(20px);
    max-width: 400px;
    width: 100%;
    text-align: center;
    box-shadow: 0 8px 32px rgba(46, 139, 255, 0.1);
}

.login-logo {
    width: 120px;
    height: 120px;
    margin: 0 auto 30px;
}

.login-title {
    font-size: 1.8rem;
    font-weight: 400;
    letter-spacing: 12px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 10px;
}

.login-subtitle {
    font-size: 0.6rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.3);
    font-weight: 300;
    margin-bottom: 40px;
}

.btn-google {
    background: transparent;
    border: 1px solid rgba(46, 139, 255, 0.3);
    color: rgba(255, 255, 255, 0.95);
    padding: 16px 30px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.4s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 16px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.btn-google:hover {
    border-color: rgba(46, 139, 255, 0.6);
    background: rgba(46, 139, 255, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(46, 139, 255, 0.2);
}

.btn-google:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.google-icon {
    width: 20px;
    height: 20px;
}

.loading-text {
    font-size: 0.7rem;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 20px;
}

/* LOGOUT BUTTON */
.logout-container {
    text-align: center;
    margin-top: 40px;
    padding-bottom: 20px;
}

.btn-logout {
    background: transparent;
    border: 1px solid rgba(231, 76, 60, 0.2);
    color: rgba(231, 76, 60, 0.6);
    padding: 10px 24px;
    font-size: 0.65rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-radius: 16px;
}

.btn-logout:hover {
    border-color: rgba(231, 76, 60, 0.5);
    background: rgba(231, 76, 60, 0.05);
    color: rgba(231, 76, 60, 0.9);
}

/* HEADER */
header {
    text-align: center;
    margin-bottom: 25px;
}

h1 {
    font-size: 1.8rem;
    font-weight: 400;
    letter-spacing: 12px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 6px;
}

.subtitle {
    font-size: 0.6rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.3);
    font-weight: 300;
}

/* COUNTDOWN TIMER */
.countdown-container {
    text-align: center;
    margin-bottom: 24px;
    padding: 20px;
    background: rgba(10, 26, 47, 0.6);
    border: 1px solid rgba(255, 122, 0, 0.3);
    border-radius: 20px;
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 24px rgba(255, 122, 0, 0.1);
}

.countdown-label {
    font-size: 0.7rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255, 122, 0, 0.8);
    margin-bottom: 10px;
    font-weight: 500;
}

.countdown-time {
    font-size: 2.4rem;
    font-weight: 300;
    letter-spacing: 6px;
    color: #FF7A00;
    text-shadow: 0 0 20px rgba(255, 122, 0, 0.4);
}

/* MISSION CARD (NEW) */
.mission-card {
    background: rgba(10, 26, 47, 0.6);
    border: 1px solid rgba(46, 139, 255, 0.2);
    border-radius: 20px;
    padding: 25px 30px;
    margin-bottom: 28px;
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 24px rgba(46, 139, 255, 0.08);
}

.mission-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 15px;
}

.mission-icon {
    font-size: 1.5rem;
}

.mission-title {
    font-size: 1.2rem;
    font-weight: 400;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.9);
}

.mission-stats-grid {
    display: flex;
    justify-content: space-around;
    gap: 20px;
    text-align: center;
    margin-bottom: 20px;
}

.mission-stat-label {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.mission-stat-value {
    font-size: 1.8rem;
    font-weight: 300;
    color: #2E8BFF;
}

.error-points-value {
    color: #FF5252;
}

.mission-footer {
    text-align: center;
    border-top: 1px dashed rgba(255, 255, 255, 0.1);
    padding-top: 15px;
}

.mission-tip {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    font-style: italic;
}


/* STATS */
.stats-row {
    display: flex;
    justify-content: center;
    gap: 50px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
}

.stat-label {
    font-size: 0.6rem;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 8px;
    font-weight: 300;
}

.stat-value {
    font-size: 2.2rem;
    font-weight: 200;
    color: rgba(255, 255, 255, 0.95);
    letter-spacing: 2px;
}

.stat-value.streak {
    color: #00FF8C;
    text-shadow: 0 0 20px rgba(0, 255, 140, 0.3);
}

/* PROGRESS BAR */
.progress-container {
    margin-bottom: 32px;
}

.progress-bar-wrapper {
    height: 8px;
    background: rgba(10, 26, 47, 0.8);
    border-radius: 20px;
    position: relative;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #2E8BFF 0%, #00D4FF 100%);
    width: 0%;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    border-radius: 20px;
    box-shadow: 0 0 20px rgba(46, 139, 255, 0.5);
}

.progress-bar::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    background: #2E8BFF;
    border-radius: 50%;
    box-shadow: 0 0 16px rgba(46, 139, 255, 0.8);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.progress-bar.has-progress::after {
    opacity: 1;
}

.level-name {
    text-align: center;
    font-size: 1.2rem;
    font-weight: 200;
    letter-spacing: 4px;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    margin-top: 10px;
}

/* WEEKLY CHART */
.weekly-chart-container {
    background: rgba(10, 26, 47, 0.6);
    border: 1px solid rgba(46, 139, 255, 0.2);
    border-radius: 20px;
    padding: 28px;
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 24px rgba(46, 139, 255, 0.08);
    margin-bottom: 28px;
}

.chart-title {
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 20px;
    text-align: center;
}

.weekly-chart {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    height: 140px;
    gap: 10px;
}

.chart-bar-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.chart-bar {
    width: 100%;
    background: linear-gradient(180deg, #2E8BFF 0%, #0066CC 100%);
    border-radius: 8px 8px 0 0;
    transition: all 0.3s ease;
    min-height: 10px;
    cursor: pointer;
}

.chart-bar:hover, .chart-bar.active {
    background: linear-gradient(180deg, #00FF8C 0%, #00CC70 100%);
}

.chart-label {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* MAIN GRID */
.main-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 30px;
}

.panel {
    background: rgba(10, 26, 47, 0.6);
    border: 1px solid rgba(46, 139, 255, 0.2);
    border-radius: 20px;
    padding: 28px;
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 24px rgba(46, 139, 255, 0.06);
}

.panel-title {
    font-size: 0.8rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 20px;
    font-weight: 300;
    text-align: center;
}

/* INPUT FORM */
.input-group {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    align-items: center;
}

.input-group.with-number {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 10px;
}

input[type="text"],
input[type="number"],
select {
    background: rgba(10, 26, 47, 0.8);
    border: 1px solid rgba(46, 139, 255, 0.2);
    color: rgba(255, 255, 255, 0.95);
    padding: 14px 16px;
    font-size: 16px;
    border-radius: 16px;
    outline: none;
    transition: all 0.4s ease;
    letter-spacing: 0.3px;
    flex: 1;
}

input[type="text"] {
    flex: 1;
}

input[type="number"] {
    width: 80px;
    flex: none;
}

input:focus, select:focus {
    border-color: rgba(46, 139, 255, 0.6);
    background: rgba(10, 26, 47, 0.95);
    box-shadow: 0 0 0 3px rgba(46, 139, 255, 0.1);
}

/* Quick Add Button */
.btn-add {
    background: transparent;
    border: 1px solid rgba(0, 255, 140, 0.3);
    color: #00FF8C;
    padding: 14px 22px;
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.4s ease;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border-radius: 16px;
    white-space: nowrap;
    flex-shrink: 0;
}

.btn-add:hover {
    border-color: rgba(0, 255, 140, 0.6);
    background: rgba(0, 255, 140, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 255, 140, 0.2);
}

.btn-add.error-add {
    border: 1px solid rgba(255, 82, 82, 0.3);
    color: #FF5252;
}

.btn-add.error-add:hover {
    border-color: rgba(255, 82, 82, 0.6);
    background: rgba(255, 82, 82, 0.1);
    box-shadow: 0 4px 16px rgba(255, 82, 82, 0.2);
}

.btn-add:active {
    transform: translateY(0) scale(0.98);
}

/* LISTS */
.list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.list-item {
    background: rgba(10, 26, 47, 0.4);
    border: 1px solid rgba(46, 139, 255, 0.15);
    border-radius: 16px;
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    transition: all 0.4s ease;
}

.list-item:hover {
    background: rgba(10, 26, 47, 0.6);
    border-color: rgba(46, 139, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(46, 139, 255, 0.1);
}

.checkbox {
    width: 22px;
    height: 22px;
    border: 2px solid rgba(46, 139, 255, 0.4);
    background: transparent;
    cursor: pointer;
    flex-shrink: 0;
    position: relative;
    transition: all 0.4s ease;
    border-radius: 6px;
}

.checkbox:hover {
    border-color: #2E8BFF;
    background: rgba(46, 139, 255, 0.1);
}

.list-item-text-wrapper {
    flex: 1;
}

.task-goal-tag {
    font-size: 0.65rem;
    color: #00D4FF;
    background: rgba(0, 212, 255, 0.1);
    padding: 4px 8px;
    border-radius: 6px;
    margin-top: 4px;
    display: inline-block;
}

.task-text {
    flex: 1;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.85);
    letter-spacing: 0.5px;
}

.task-points {
    font-size: 0.8rem;
    color: #00FF8C;
    font-weight: 600;
    letter-spacing: 0.5px;
    flex-shrink: 0;
}

.btn-config {
    background: transparent;
    border: 1px solid rgba(46, 139, 255, 0.25);
    color: rgba(46, 139, 255, 0.8);
    padding: 8px 12px;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.4s ease;
    border-radius: 12px;
    flex-shrink: 0;
}

.btn-config:hover {
    border-color: rgba(46, 139, 255, 0.5);
    background: rgba(46, 139, 255, 0.1);
    color: #2E8BFF;
}

.btn-delete {
    background: transparent;
    border: 1px solid rgba(255, 82, 82, 0.3);
    color: rgba(255, 82, 82, 0.9);
    padding: 8px 12px;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.4s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 12px;
    flex-shrink: 0;
}

.btn-delete:hover {
    border-color: rgba(255, 82, 82, 0.6);
    background: rgba(255, 82, 82, 0.1);
    color: #FF5252;
    transform: translateY(-2px);
}

.list-item-content {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    cursor: pointer;
}

.error-item {
    background: rgba(10, 26, 47, 0.4);
    border: 1px solid rgba(46, 139, 255, 0.15);
    border-radius: 16px;
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.4s ease;
}

.error-item-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex: 1;
    cursor: pointer;
}

.error-item:hover {
    background: rgba(10, 26, 47, 0.6);
    border-color: rgba(46, 139, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(46, 139, 255, 0.1);
}

.error-text {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.85);
    letter-spacing: 0.5px;
}

.error-points {
    font-size: 0.8rem;
    color: rgba(255, 82, 82, 0.9);
    font-weight: 600;
    letter-spacing: 0.5px;
}

.empty-state {
    text-align: center;
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 40px 20px;
}

/* MODAL */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
    backdrop-filter: blur(10px);
}

.modal-content {
    background: rgba(10, 26, 47, 0.98);
    border: 1px solid rgba(46, 139, 255, 0.3);
    border-radius: 24px;
    padding: 32px;
    max-width: 500px;
    width: 100%;
    backdrop-filter: blur(30px);
    box-shadow: 0 8px 40px rgba(46, 139, 255, 0.2);
    position: relative;
}

.modal-close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.modal-close-btn:hover {
    color: #2E8BFF;
}

.modal-title {
    font-size: 1.2rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 25px;
    text-align: center;
    font-weight: 300;
}

.modal-subtitle {
    font-size: 0.7rem;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.4);
    text-align: center;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.focus-task-name-selector {
    font-size: 1.1rem;
    font-weight: 500;
    color: #2E8BFF;
    text-align: center;
    margin-bottom: 25px;
}

/* Time Wheel / Slider Styles */
.time-wheel-container {
    text-align: center;
    margin-top: 20px;
}

.time-wheel-value {
    font-size: 4rem;
    font-weight: 200;
    color: #00FF8C;
    line-height: 1;
}

.time-wheel-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    color: rgba(0, 255, 140, 0.6);
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.time-wheel-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 80%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    outline: none;
    margin: 10px 0;
}

.time-wheel-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    background: #00FF8C;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(0, 255, 140, 0.6);
}

.slider-minmax {
    display: flex;
    justify-content: space-between;
    width: 80%;
    margin: 0 auto;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 1px;
}


.modal-section {
    margin-bottom: 20px;
}

.modal-label {
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 10px;
    display: block;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.checkbox-input {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.checkbox-label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
    letter-spacing: 0.5px;
    cursor: pointer;
}

.days-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
    margin-top: 10px;
}

.day-btn {
    background: rgba(10, 26, 47, 0.6);
    border: 1px solid rgba(46, 139, 255, 0.3);
    color: rgba(255, 255, 255, 0.7);
    padding: 12px 8px;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.4s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 12px;
}

.day-btn:hover {
    border-color: rgba(46, 139, 255, 0.5);
    background: rgba(10, 26, 47, 0.8);
}

.day-btn.active {
    background: rgba(0, 255, 140, 0.2);
    border-color: #00FF8C;
    color: #00FF8C;
    box-shadow: 0 0 16px rgba(0, 255, 140, 0.3);
}

.modal-buttons {
    display: flex;
    gap: 10px;
    margin-top: 25px;
}

.btn-modal {
    flex: 1;
    padding: 12px;
    font-size: 0.7rem;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-radius: 16px;
}

.btn-modal-save {
    background: transparent;
    border: 1px solid rgba(0, 255, 140, 0.4);
    color: #00FF8C;
}

.btn-modal-save:hover {
    border-color: #00FF8C;
    background: rgba(0, 255, 140, 0.15);
    box-shadow: 0 4px 16px rgba(0, 255, 140, 0.2);
}

.btn-modal-cancel {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.8);
}

.btn-modal-cancel:hover {
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.05);
}

/* DRAWER (SIDEBAR) */
.drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    z-index: 9998;
    opacity: 0;
    transition: opacity 0.36s cubic-bezier(0.2, 0.9, 0.2, 1);
    pointer-events: none;
}

.drawer-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(420px, 92vw);
    background: rgba(10, 26, 47, 0.98);
    border-left: 1px solid rgba(46, 139, 255, 0.3);
    box-shadow: -4px 0 40px rgba(46, 139, 255, 0.15);
    z-index: 9999;
    transform: translateX(100%);
    transition: transform 0.36s cubic-bezier(0.2, 0.9, 0.2, 1);
    overflow-y: auto;
    padding: env(safe-area-inset-top, 0) 0 env(safe-area-inset-bottom, 0) 0;
}

.drawer.active {
    transform: translateX(0);
}

@media (prefers-reduced-motion: reduce) {
    .drawer, .drawer-overlay {
        transition-duration: 0.1s;
    }
}

.drawer-header {
    padding: 24px 20px;
    border-bottom: 1px solid rgba(46, 139, 255, 0.2);
    position: sticky;
    top: 0;
    background: rgba(10, 26, 47, 0.98);
    backdrop-filter: blur(20px);
    z-index: 10;
}

.drawer-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.8);
    width: 44px;
    height: 44px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.drawer-close:active {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(0.95);
}

.drawer-nav {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    overflow-x: auto;
    padding-bottom: 10px;
}

.drawer-nav-btn {
    flex-shrink: 0;
    padding: 12px;
    background: transparent;
    border: 1px solid rgba(46, 139, 255, 0.2);
    color: rgba(255, 255, 255, 0.6);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.drawer-nav-btn.active {
    background: rgba(46, 139, 255, 0.2);
    border-color: #2E8BFF;
    color: #2E8BFF;
}

.drawer-page {
    display: none;
    animation: fadeIn 0.3s ease-in-out;
}

.drawer-page.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* PROFILE PAGE */
.profile-card {
    background: rgba(10, 26, 47, 0.8);
    border: 2px solid #2E8BFF;
    border-radius: 20px;
    padding: 28px;
    text-align: center;
    box-shadow: 0 0 30px rgba(46, 139, 255, 0.3);
    margin-bottom: 20px;
}

.profile-avatar-large {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 3px solid #2E8BFF;
    box-shadow: 0 0 30px rgba(46, 139, 255, 0.5);
    margin: 0 auto 20px;
}

.profile-name-large {
    font-size: 1.5rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 8px;
}

.profile-email-large {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 20px;
}

.profile-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 20px;
}

.profile-stat-box {
    background: rgba(46, 139, 255, 0.1);
    border: 1px solid rgba(46, 139, 255, 0.2);
    border-radius: 12px;
    padding: 16px;
    text-align: center;
}

.profile-stat-value {
    font-size: 1.8rem;
    font-weight: 600;
    color: #2E8BFF;
    margin-bottom: 4px;
}

.profile-stat-label {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ACHIEVEMENTS PAGE */
.drawer-achievements {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.drawer-achievement {
    background: rgba(10, 26, 47, 0.8);
    border: 2px solid rgba(46, 139, 255, 0.2);
    border-radius: 16px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.3s ease;
}

.drawer-achievement.unlocked {
    border-color: #00FF8C;
    box-shadow: 0 0 20px rgba(0, 255, 140, 0.2);
}

.drawer-achievement.locked {
    opacity: 0.5;
}

.drawer-achievement-icon {
    font-size: 2.5rem;
    flex-shrink: 0;
}

.drawer-achievement-info {
    flex: 1;
}

.drawer-achievement-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 4px;
}

.drawer-achievement-desc {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 8px;
}

.drawer-achievement-progress {
    height: 6px;
    background: rgba(46, 139, 255, 0.2);
    border-radius: 10px;
    overflow: hidden;
    margin-top: 8px;
}

.drawer-achievement-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #2E8BFF 0%, #00FF8C 100%);
    border-radius: 10px;
    transition: width 0.6s ease;
}

.drawer-achievement-xp {
    font-size: 0.8rem;
    color: #00FF8C;
    font-weight: 600;
    margin-top: 4px;
}

/* SETTINGS PAGE */
.settings-section {
    margin-bottom: 24px;
}

.settings-section-title {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 12px;
}

.settings-item {
    background: rgba(10, 26, 47, 0.6);
    border: 1px solid rgba(46, 139, 255, 0.2);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.settings-item-label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
}

.toggle-switch {
    position: relative;
    width: 48px;
    height: 26px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.toggle-switch.active {
    background: #2E8BFF;
}

.toggle-slider {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.toggle-switch.active .toggle-slider {
    transform: translateX(22px);
}

/* TOAST NOTIFICATION */
.toast {
    position: fixed;
    top: calc(env(safe-area-inset-top, 0) + 20px);
    right: 20px;
    background: rgba(10, 26, 47, 0.98);
    border: 2px solid #00FF8C;
    border-radius: 16px;
    padding: 16px 20px;
    box-shadow: 0 8px 32px rgba(0, 255, 140, 0.3);
    z-index: 10000;
    transform: translateX(400px);
    transition: transform 0.4s cubic-bezier(0.2, 0.9, 0.2, 1);
    max-width: 320px;
}

.toast.show {
    transform: translateX(0);
}

.toast-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #00FF8C;
    margin-bottom: 6px;
}

.toast-message {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 10px;
}

.toast-cta {
    background: transparent;
    border: 1px solid #00FF8C;
    color: #00FF8C;
    padding: 8px 16px;
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.toast-cta:active {
    background: rgba(0, 255, 140, 0.1);
    transform: scale(0.98);
}

/* MENU BUTTON */
.btn-menu {
    position: fixed;
    top: calc(env(safe-area-inset-top, 0) + 20px);
    right: 20px;
    width: 48px;
    height: 48px;
    background: rgba(10, 26, 47, 0.8);
    border: 1px solid rgba(46, 139, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 100;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 16px rgba(46, 139, 255, 0.2);
}

.btn-menu:active {
    transform: scale(0.95);
    background: rgba(10, 26, 47, 0.95);
}

.btn-menu svg {
    width: 24px;
    height: 24px;
    stroke: #2E8BFF;
}

/* ANIMATIONS */
@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.pulse {
    animation: pulse 0.3s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.hidden {
    display: none !important;
}

/* RESPONSIVE */
@media (max-width: 968px) {
    .main-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    h1 {
        font-size: 1.5rem;
        letter-spacing: 8px;
    }

    .stats-row {
        gap: 35px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 15px;
    }

    h1, .login-title {
        font-size: 1.2rem;
        letter-spacing: 6px;
    }

    .quote-container {
        padding: 25px 20px;
    }

    .quote-text {
        font-size: 0.95rem;
    }

    .stat-value {
        font-size: 1.8rem;
    }

    .panel {
        padding: 20px;
    }

    .input-group.with-number {
        grid-template-columns: 1fr;
    }

    input[type="number"] {
        width: 100%;
    }

    .login-box {
        padding: 40px 25px;
    }

    .countdown-time {
        font-size: 1.5rem;
    }

    .days-grid {
        grid-template-columns: repeat(7, 1fr);
        gap: 5px;
    }

    .day-btn {
        padding: 8px 3px;
        font-size: 0.65rem;
    }

    .weekly-chart {
        height: 120px;
        gap: 8px;
    }

    .chart-title {
        font-size: 0.8rem;
    }

    .profile-stats-grid {
        grid-template-columns: 1fr;
    }
    
    .mission-stats-grid {
        flex-direction: column;
        gap: 10px;
    }
}

/* FOCUS MODE TRIGGER BUTTON (in task list) */
.focus-mode-trigger {
    background: transparent;
    border: 1px solid rgba(46, 139, 255, 0.3);
    color: #2E8BFF;
    padding: 6px 12px;
    font-size: 0.7rem;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-left: 8px;
    letter-spacing: 1px;
    white-space: nowrap;
    flex-shrink: 0;
}

.focus-mode-trigger:hover {
    background: rgba(46, 139, 255, 0.1);
    border-color: #2E8BFF;
}

/* FOCUS MODE IMMERSIVE SCREEN (FullScreen Timer) */
.focus-mode-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #0D1B2A; /* Color principal de la app */
    z-index: 10000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.4s ease;
}

.btn-focus-exit {
    position: fixed;
    top: calc(env(safe-area-inset-top, 0) + 20px);
    right: 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10001;
}

.btn-focus-exit:hover {
    background: rgba(255, 255, 255, 0.2);
}

.btn-focus-exit svg {
    width: 24px;
    height: 24px;
    stroke: white;
}

.focus-content {
    text-align: center;
    max-width: 600px;
    width: 100%;
}

.focus-task-name-display { /* Name of the task */
    font-size: 1.5rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 40px;
    letter-spacing: 1px;
    line-height: 1.4;
    text-transform: uppercase;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
}

.focus-timer-display { /* Minimalist white digital clock */
    font-size: 8rem;
    font-weight: 200;
    color: white;
    letter-spacing: 10px;
    font-variant-numeric: tabular-nums;
    text-shadow: 0 0 40px rgba(255, 255, 255, 0.5);
    transition: color 0.4s ease;
}

.focus-timer-display.warning {
    color: #FF7A00;
    text-shadow: 0 0 40px rgba(255, 122, 0, 0.8);
    animation: pulse 1s infinite;
}

/* DAILY REFLECTION (EXISTING) */
.reflection-card-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.3s ease;
}

.reflection-card {
    background: rgba(10, 26, 47, 0.98);
    border: 2px solid #2E8BFF;
    border-radius: 24px;
    padding: 40px;
    max-width: 600px;
    width: 100%;
    box-shadow: 0 0 60px rgba(46, 139, 255, 0.3);
}

/* LONG GOALS STYLES */
.long-goal-item {
    background: rgba(10, 26, 47, 0.6);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.long-goal-item:hover {
    border-color: rgba(0, 212, 255, 0.5);
    background: rgba(10, 26, 47, 0.8);
}

.long-goal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.long-goal-name {
    font-size: 1rem;
    font-weight: 500;
    color: #00D4FF;
    letter-spacing: 0.5px;
}

.long-goal-progress-bar {
    height: 6px;
    background: rgba(0, 212, 255, 0.15);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 8px;
}

.long-goal-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #2E8BFF 0%, #00D4FF 100%);
    border-radius: 10px;
    transition: width 0.6s ease;
}

.long-goal-stats {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
}

/* DISCIPLINE MAP STYLES */
.discipline-map {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    margin-top: 20px;
    width: 100%;
    max-width: 400px; /* Limit width for aesthetics */
    margin-left: auto;
    margin-right: auto;
}

.heatmap-key {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 5px;
}

.heatmap-key span {
    display: inline-block;
}

.heatmap-key .key-low,
.heatmap-key .key-good,
.heatmap-key .key-excellent {
    width: 12px;
    height: 12px;
    border-radius: 3px;
    margin: 0 5px;
}

.heatmap-key .key-low {
    background-color: #FF7A00; /* Orange/Low */
}
.heatmap-key .key-good {
    background-color: #2E8BFF; /* Blue/Good */
}
.heatmap-key .key-excellent {
    background-color: #00FF8C; /* Green/Excellent */
}

.map-cell {
    height: 50px;
    background: rgba(10, 26, 47, 0.6);
    border: 1px solid rgba(46, 139, 255, 0.1);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.8);
    position: relative;
    overflow: hidden;
}

.map-cell:nth-child(1),
.map-cell:nth-child(2),
.map-cell:nth-child(3),
.map-cell:nth-child(4),
.map-cell:nth-child(5),
.map-cell:nth-child(6),
.map-cell:nth-child(7) {
    height: 25px;
    background: transparent;
    border: none;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.6rem;
    text-transform: uppercase;
}

.map-cell.map-fail {
    background-color: rgba(255, 82, 82, 0.3);
}

.map-cell.map-low {
    background-color: rgba(255, 122, 0, 0.3);
    border-color: rgba(255, 122, 0, 0.5);
}

.map-cell.map-good {
    background-color: rgba(46, 139, 255, 0.3);
    border-color: rgba(46, 139, 255, 0.6);
}

.map-cell.map-excellent {
    background-color: rgba(0, 255, 140, 0.3);
    border-color: rgba(0, 255, 140, 0.6);
}

.map-cell-date {
    font-weight: 600;
}

.map-cell-points {
    font-size: 0.55rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 2px;
}
