:root {
            
            --primary: #818cf8;       
            --primary-dark: #6366f1;
            --secondary: #f472b6;     
            --bg: #111827;            
            --surface: #1f2937;       
            --text: #f3f4f6;          
            --text-light: #9ca3af;    
            --border: #374151;        
            --success: #34d399;
            --warning: #fbbf24;
            --danger: #f87171;
            --zen: #a78bfa; 
        }

        html { color-scheme: dark; } 

        * { box-sizing: border-box; margin: 0; padding: 0; font-family: 'Segoe UI', system-ui, sans-serif; }
        
        body { background-color: var(--bg); color: var(--text); display: flex; height: 100vh; overflow: hidden; }
/* Increase size of brand icons to match solid icons */
.fab {
    font-size: 1.1em; /* Increases size by 10% */
    vertical-align: -0.05em; /* Slight downward adjustment to keep it centered */
}
        
        .sidebar {
            width: 80px;
            background: var(--surface);
            display: flex;
            flex-direction: column;
            align-items: center;
            padding: 20px 0;
            border-right: 1px solid var(--border);
            transition: width 0.3s;
            z-index: 50;
            flex-shrink: 0;
        }
        
        @media (min-width: 769px) {
            .sidebar:hover { width: 200px; }
            .sidebar:hover .nav-text { display: inline; opacity: 1; }
            .nav-item:hover, .nav-item.active { background-color: #374151; color: var(--primary); border-right: 3px solid var(--primary); }
        }
        
        .logo { font-size: 24px; color: var(--primary); margin-bottom: 40px; }
        
        .nav-item {
            width: 100%;
            padding: 15px 20px;
            cursor: pointer;
            color: var(--text-light);
            display: flex;
            align-items: center;
            transition: 0.2s;
            white-space: nowrap;
        }
        
        .nav-item i { font-size: 20px; min-width: 40px; text-align: center; }
        .nav-text { display: none; opacity: 0; transition: opacity 0.2s; margin-left: 10px; font-weight: 500;}

        
        .main { flex: 1; overflow-y: auto; padding: 30px; position: relative; }
        
        header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; flex-wrap: wrap; gap: 15px; }
        h1 { font-size: 24px; font-weight: 700; color: var(--text); }
        
        .btn {
            background: var(--primary);
            color: #111; 
            border: none;
            padding: 10px 20px;
            border-radius: 8px;
            cursor: pointer;
            font-weight: 600;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            transition: 0.2s;
        }
        .btn:hover { background: var(--primary-dark); transform: translateY(-1px); color: white; }
        .btn-secondary { background: var(--surface); color: var(--text); border: 1px solid var(--border); }
        .btn-secondary:hover { background: var(--border); }

        
        .user-stats {
            display: flex;
            gap: 20px;
            background: var(--surface);
            padding: 10px 20px;
            border-radius: 12px;
            box-shadow: 0 4px 6px rgba(0,0,0,0.3);
            align-items: center;
            border: 1px solid var(--border);
        }
        .stat-item { display: flex; flex-direction: column; align-items: center; }
        .stat-val { font-weight: bold; font-size: 14px; }
        .stat-label { font-size: 10px; color: var(--text-light); text-transform: uppercase; }
        
        .stat-item.clickable { cursor: pointer; transition: 0.2s; }
        .stat-item.clickable:hover { opacity: 0.7; }
        .daily-bar-bg { width: 60px; height: 4px; background: #374151; border-radius: 2px; margin-top: 2px; overflow: hidden;}
        .daily-bar-fill { height: 100%; background: var(--primary); width: 0%; transition: width 0.5s ease; }
        .daily-bar-fill.complete { background: var(--success); }

        
        .view-section { display: none; animation: fadeIn 0.3s ease; }
        .view-section.active { display: block; }
        @keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

        
        .dashboard-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
            gap: 20px;
        }

        .card { background: var(--surface); padding: 20px; border-radius: 16px; border: 1px solid var(--border); box-shadow: 0 4px 6px -1px rgba(0,0,0,0.2); }
        
        
        .goal-card { position: relative; overflow: hidden; border-left: 5px solid var(--primary); display: flex; flex-direction: column; }
        .goal-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 15px; }
        .goal-title { font-weight: 600; font-size: 18px; }
        .goal-tag { font-size: 12px; background: rgba(99, 102, 241, 0.2); color: var(--primary); padding: 2px 8px; border-radius: 10px; }
        
        .section-label { font-size: 11px; text-transform: uppercase; color: var(--text-light); font-weight: 700; margin-bottom: 5px; letter-spacing: 0.5px; }
        
        .progress-container { height: 8px; background: #374151; border-radius: 4px; margin: 0 0 5px; overflow: hidden; }
        .progress-bar { height: 100%; background: var(--secondary); width: 0%; transition: width 0.5s ease; } 
        
        .timer-controls { display: flex; justify-content: space-between; align-items: center; margin-top: 20px; padding-top: 15px; border-top: 1px solid var(--border);}
        .timer-display { font-family: monospace; font-size: 20px; font-weight: 700; color: var(--text); }
        .btn-icon { width: 36px; height: 36px; border-radius: 50%; border: none; cursor: pointer; display: grid; place-items: center; color: white; transition: 0.2s;}
        .btn-play { background: var(--success); color: #000; }
        .btn-stop { background: var(--secondary); }
        .btn-play:hover { transform: scale(1.1); }

        
        .sessions-list ol { list-style: none; counter-reset: session-counter; padding: 0; }
        .session-item {
            display: flex; justify-content: space-between; align-items: flex-start;
            padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 12px; counter-increment: session-counter;
        }
        .session-item::before { content: counter(session-counter) "."; font-weight: bold; color: var(--primary); margin-right: 8px; min-width: 15px; }
        .session-content { flex: 1; }
        .session-date { font-weight: 600; color: var(--text); }
        .session-notes { color: var(--text-light); font-style: italic; margin-top: 2px; display: block;}

       
        .calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; margin-top: 20px; }
        
        
        .calendar-header {
            display: contents; 
        }
        .cal-head-day {
            text-align: center; font-size: 11px; color: var(--text-light); font-weight: bold; padding-bottom: 5px;
        }

        .calendar-day { 
            aspect-ratio: 1; background: var(--bg); border-radius: 4px; 
            display: flex; align-items: center; justify-content: center;
            font-size: 12px; cursor: pointer; position: relative; border: 1px solid var(--border);
            color: var(--text-light);
        }
                    
.calendar-day.level-1 { background: rgba(99, 102, 241, 0.3); border-color: rgba(99, 102, 241, 0.3); color: white; } 
.calendar-day.level-2 { background: rgba(99, 102, 241, 0.6); border-color: rgba(99, 102, 241, 0.5); color: white; } 
.calendar-day.level-3 { background: rgba(99, 102, 241, 1); border-color: var(--primary); color: white; } 
 .calendar-day.level-4 { 
 
background: #4d5eff ; 
    border: 1px solid rgba(255,255,255,0.2);
    color: white; 
}
.calendar-day.level-5 
{ background: var(--primary); border-color: var(--primary-dark); color: white; } 

.calendar-day.level-6 { 
background:  linear-gradient(135deg, var(--primary), #a78bfa);    box-shadow: inset 0 0 8px rgba(255,255,255,0.3);  border: 1px solid rgba(255,255,255,0.2);
	    color: white; 
			border-color: gold;
box-shadow: 0 0 20px #ffffff, 0 0 40px var(--primary);	}


.calendar-day.level-7 { 
background: linear-gradient(135deg, #a78bfa, #f472b6);
    border: 1px solid rgba(255,255,255,0.4);
box-shadow: 0 0 20px #ffffff, 0 0 40px var(--primary);	    color: white; 

border-color: rgba(251, 191, 36, 1);

}


.calendar-day.level-8 { 
    background: linear-gradient(135deg, #6d28d9, #8b5cf6);
    border: 1px solid #a78bfa;
	color: white; 
    box-shadow: 0 0 12px rgba(139, 92, 246, 0.6);
	border-color: gold;
	animation: pulse-gold 2s infinite;
}


@keyframes pulse-gold {
    0% { transform: scale(1); }
    50% { box-shadow: 0 0 25px rgba(251, 191, 36, 1); }
    100% { transform: scale(1); }
}
        .calendar-day:hover { transform: scale(1.1); z-index: 2; box-shadow: 0 0 10px var(--primary); border: 1px solid white; }

        
        .modal {
            position: fixed; top: 0; left: 0; width: 100%; height: 100%;
            background: rgba(0,0,0,0.8); display: none; justify-content: center; align-items: center; z-index: 100;
            backdrop-filter: blur(2px);
        }
       .modal-content { background: var(--surface); padding: 30px; border-radius: 16px; width: 400px; max-width: 90%;  max-height: 100vh; overflow-y: auto; border: 1px solid var(--border); }
        .form-group { margin-bottom: 15px; }
        .form-group label { display: block; margin-bottom: 5px; font-weight: 500; color: var(--text-light); }
        
        .form-control { 
            width: 100%; padding: 10px; 
            background: var(--bg); color: var(--text);
            border: 1px solid var(--border); border-radius: 8px; 
        }
        .form-control:focus { outline: none; border-color: var(--primary); }
        input[type="color"].form-control { padding: 5px; height: 45px; cursor: pointer; }
        textarea.form-control { resize: vertical; min-height: 60px; }
  
.med-quote-box {
    position: absolute;
    top: 13%; 
    width: 80%;
    text-align: center;
    pointer-events: none;
    opacity: 0;
    transition: opacity 1s ease-in-out;
	color: #e5e7eb;
}


@media (min-width: 768px) {
    .med-quote-box {
        top: 8%;
		color: #b8bdc6;
    }
}  
        
        .toast {
            position: fixed; bottom: 80px; right: 20px; left: 20px;
            background: #373d49; color: white; padding: 12px 24px; border-radius: 8px;
            transform: translateY(200px); transition: transform 0.3s; z-index: 200;
            display: flex; align-items: center; gap: 10px; pointer-events: none;
        }
        .toast.show { transform: translateY(0); }
        .toast.achievement { background: var(--warning); color: #000; }

        
        .empty-state { text-align: center; padding: 20px; color: var(--text-light); }

        
        .choice-btn-container { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 20px; }
        .choice-card {
            background: var(--bg); padding: 20px; border-radius: 12px; border: 1px solid var(--border);
            text-align: center; cursor: pointer; transition: 0.2s;
        }
        .choice-card:hover { border-color: var(--primary); transform: translateY(-3px); }
        .choice-card i { font-size: 30px; margin-bottom: 10px; display: block; }

        
        #meditation-overlay {
            position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
            background: #000; z-index: 999; display: none;
            flex-direction: column; justify-content: center; align-items: center;
            user-select: none; touch-action: manipulation;
        }
        .meditation-circle {
            width: 150px; height: 150px; border-radius: 50%;
            background: radial-gradient(circle, #818cf8 0%, transparent 70%);
            display: flex; justify-content: center; align-items: center;
            font-size: 50px; font-weight: bold; color: white;
            pointer-events: none; 
        }

        .med-controls { position: absolute; top: 20px; right: 20px; display: flex; gap: 15px; z-index: 1000; }
        .med-timer-disp { position: absolute; top: 20px; left: 20px; font-size: 24px; font-family: monospace; color: #9ca3af; z-index: 1000;}
        .med-instruction { position: absolute; bottom: 50px; color: #6b7280; font-size: 14px; text-transform: uppercase; letter-spacing: 2px;}

        
        @media (max-width: 768px) {
            body { flex-direction: column; }
            .sidebar {
                width: 100%; height: 65px; position: fixed; bottom: 0; left: 0;
                flex-direction: row; justify-content: space-around; padding: 0;
                border-right: none; border-top: 1px solid var(--border);
                background-color: var(--surface); box-shadow: 0 -4px 10px rgba(0,0,0,0.3);
                overflow-y: auto; min-height: 0;
            }
            .sidebar:hover { width: 100%; }
            .logo { display: none; }
            .nav-item { flex-direction: column; justify-content: center; padding: 5px; font-size: 10px; height: 100%; min-width: 60px; }
            .nav-item i { font-size: 18px; margin-bottom: 3px; }
            .nav-text { display: block; opacity: 1; margin-left: 0; font-size: 10px; }
            .nav-item.active { border-right: none; border-top: 3px solid var(--primary); background: transparent; color: var(--primary); }
            .main { padding: 15px; padding-bottom: 90px; }
            header { flex-direction: column; align-items: flex-start; gap: 10px; }
            .user-stats { width: 100%; padding: 15px; flex-wrap: wrap; justify-content: space-between; }
            .user-stats .btn { width: 100%; margin-top: 10px; justify-content: center; background-color: var(--primary); color: #000; }
            .dashboard-grid { grid-template-columns: 1fr; }
        }
		
	.btn-mode-active {
    background-color: var(--primary) !important;
    color: white !important;
    border-color: var(--primary) !important;
}


input[type=range] {
    -webkit-appearance: none; 
    background: transparent; 
}
input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    height: 16px; width: 16px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
    margin-top: -6px; 
}
input[type=range]::-webkit-slider-runnable-track {
    width: 100%; height: 4px;
    background: #374151;
    border-radius: 2px;
}	


.tag-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
    
    max-height: 83px; 
    overflow-y: auto;
}

.quick-tag {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 5px 12px;
    font-size: 11px;
    cursor: pointer;
    transition: all 0.2s;
    color: var(--text-light);
    user-select: none;
}

.quick-tag:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: translateY(-1px);
}

.quick-tag:active {
    transform: scale(0.95);
}	

.switch-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 15px;
}
.switch {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 22px;
}
.switch input { opacity: 0; width: 0; height: 0; }
.slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #4b5563;
    transition: .4s;
    border-radius: 22px;
}
.slider:before {
    position: absolute;
    content: "";
    height: 16px; width: 16px;
    left: 3px; bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}
input:checked + .slider { background-color: var(--primary); }
input:checked + .slider:before { transform: translateX(18px); }



.mode-grid {
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 10px;
    margin-bottom: 15px;
}

.mode-grid .btn {
    font-size: 13px;
    padding: 8px;
}


#btn-mode-auto.btn-mode-active {
    background: linear-gradient(135deg, var(--primary), var(--zen)) !important;
    border: none !important;
}

:root {
    
    --q-1: #34d399; 
    
    
    --q-2: #60a5fa; 
    
    
    --q-3: #fbbf24; 
    
    
    --q-4: #f87171; 
}


.text-q1 { color: var(--q-1) !important; }
.text-q2 { color: var(--q-2) !important; }
.text-q3 { color: var(--q-3) !important; }
.text-q4 { color: var(--q-4) !important; }

.achievement-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.2);
}


.active-badge-container {
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.2s;
}

.active-badge-container:hover {
    transform: scale(1.05);
}

.badge-display {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    border: 2px solid #c0c0c0; /* Silver border */
    color: #ffffff;
    background: rgba(192, 192, 192, 0.2);
    box-shadow: 0 0 15px rgba(192, 192, 192, 0.4);
}

/* Modal styling for the picker */
.badge-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 15px;
    padding: 20px;
}

.badge-option {
    display: flex;
    flex-direction: column; /* Keeps icon on top, text on bottom */
    align-items: center;    /* Centers children horizontally */
    justify-content: center; /* Centers children vertically */
    
    /* Your existing styles */
    text-align: center;
    cursor: pointer;
    padding: 10px;
    border-radius: 8px;
    background: rgba(255,255,255,0.05);
}

.badge-option.locked {
    opacity: 0.3;
    cursor: not-allowed;
    filter: grayscale(1);
}























