:root {
    --bg-dark: #050505;
    --bg-card: #111111;
    --bg-card-hover: #161616;
    --bg-sidebar: #0a0a0a;
    
    --gold-primary: #d4af37;
    --gold-secondary: #c5a028;
    --gold-dim: #8a7020;
    --gold-glow: rgba(212, 175, 55, 0.3);
    
    --text-main: #e0e0e0;
    --text-muted: #888888;
    --text-gold: #f0d060;
    
    --border-color: #333333;
    --border-gold: #554411;
    
    --accent-blue: #3498db;
    --accent-purple: #9b59b6;
    --accent-green: #2ecc71;
    --accent-red: #e74c3c;
    
    --font-heading: 'Cinzel', serif;
    --font-body: 'Raleway', sans-serif;
    
    --sidebar-width: 260px;
    --header-height: 70px;
    
    --transition-speed: 0.3s;
}

/* Drag & Drop Styles */
.drag-handle {
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--text-muted);
    cursor: grab;
    z-index: 15;
    font-size: 1rem;
    opacity: 0.5;
    transition: opacity 0.2s;
}

.drag-handle:hover {
    opacity: 1;
    color: var(--gold-primary);
}

.dragging {
    opacity: 0.5;
    transform: scale(0.98);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.3);
}

.drag-over {
    border: 2px dashed var(--gold-primary) !important;
    background: rgba(212, 175, 55, 0.1) !important;
}

[draggable="true"] {
    cursor: grab;
}

[draggable="true"]:active {
    cursor: grabbing;
}

.mastery-card-enhanced.completed {
    opacity: 0.8;
    border: 1px solid var(--gold-primary);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    overflow-x: hidden;
    min-height: 100vh;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--gold-dim);
}

/* Particle Background */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    background: radial-gradient(circle at 50% 50%, #1a1a1a 0%, #050505 100%);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--gold-primary);
    font-weight: 500;
    letter-spacing: 1px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-speed);
}

/* Buttons */
.btn {
    padding: 10px 20px;
    border-radius: 4px;
    font-family: var(--font-heading);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-speed);
    border: 1px solid transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

.btn-gold {
    background: linear-gradient(135deg, var(--gold-dim), var(--gold-secondary));
    color: #000;
    border: 1px solid var(--gold-primary);
    box-shadow: 0 0 15px var(--gold-glow);
}

.btn-gold:hover {
    background: linear-gradient(135deg, var(--gold-secondary), var(--gold-primary));
    box-shadow: 0 0 25px var(--gold-glow);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--gold-dim);
    color: var(--gold-primary);
}

.btn-outline:hover {
    border-color: var(--gold-primary);
    background: rgba(212, 175, 55, 0.1);
    box-shadow: 0 0 10px var(--gold-glow);
}

.btn-danger {
    background: transparent;
    border: 1px solid var(--accent-red);
    color: var(--accent-red);
}

.btn-danger:hover {
    background: rgba(231, 76, 60, 0.1);
    box-shadow: 0 0 10px rgba(231, 76, 60, 0.3);
}

.btn-sm {
    padding: 5px 10px;
    font-size: 0.75rem;
}

.btn-lg {
    padding: 15px 30px;
    font-size: 1rem;
}

/* Inputs */
.input {
    width: 100%;
    padding: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--text-main);
    font-family: var(--font-body);
    transition: var(--transition-speed);
}

.input:focus {
    outline: none;
    border-color: var(--gold-dim);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.1);
    background: rgba(255, 255, 255, 0.05);
}

.select-input {
    background: var(--bg-card);
    color: var(--text-main);
    border: 1px solid var(--border-color);
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
}

/* Sidebar */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background: var(--bg-sidebar);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    z-index: 100;
    transition: transform var(--transition-speed);
}

.sidebar-header {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--gold-primary);
}

.logo-icon {
    font-size: 1.5rem;
    text-shadow: 0 0 10px var(--gold-glow);
}

.sidebar-toggle {
    display: none; /* Mobile only */
}

/* XP System in Sidebar */
.user-level-container {
    background: rgba(255, 255, 255, 0.03);
    padding: 10px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
}

.level-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
    font-size: 0.85rem;
}

.level-text {
    color: var(--gold-primary);
    font-family: var(--font-heading);
}

.xp-bar-container {
    width: 100%;
    height: 6px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 5px;
}

.xp-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--gold-dim), var(--gold-primary));
    box-shadow: 0 0 10px var(--gold-glow);
    transition: width 0.5s ease;
}

.xp-text {
    font-size: 0.7rem;
    color: var(--text-muted);
    display: block;
    text-align: right;
}

.nav-scroll {
    flex: 1;
    overflow-y: auto;
    padding: 20px 0;
}

.nav-section {
    margin-bottom: 25px;
}

.nav-label {
    padding: 0 20px;
    font-size: 0.7rem;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 1px;
    margin-bottom: 10px;
    display: block;
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 10px 20px;
    color: var(--text-main);
    border-left: 3px solid transparent;
    transition: all 0.2s;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.03);
    color: var(--gold-primary);
}

.nav-item.active {
    background: rgba(212, 175, 55, 0.05);
    color: var(--gold-primary);
    border-left-color: var(--gold-primary);
}

.nav-icon {
    width: 24px;
    margin-right: 10px;
    text-align: center;
}

/* Astro Widgets in Sidebar */
.astro-widgets {
    padding: 20px;
    border-top: 1px solid var(--border-color);
    background: rgba(0, 0, 0, 0.2);
}

.moon-phase-widget, .planetary-hour-widget {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.planetary-hour-widget {
    margin-bottom: 0;
}

.moon-icon, .planet-icon {
    font-size: 1.5rem;
    color: var(--gold-primary);
    filter: drop-shadow(0 0 5px var(--gold-glow));
}

.moon-details, .planet-details {
    display: flex;
    flex-direction: column;
}

.moon-text, .planet-name {
    font-size: 0.9rem;
    color: var(--text-main);
}

.moon-sign, .planet-label {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Main Content */
.main-content {
    margin-left: var(--sidebar-width);
    padding: 30px;
    min-height: 100vh;
}

.page {
    display: none;
    animation: fadeIn 0.5s ease;
}

.page.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 20px;
}

.page-title {
    font-size: 2rem;
    text-shadow: 0 0 20px rgba(212, 175, 55, 0.2);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.current-date {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Cards */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
}

.card:hover {
    border-color: var(--border-gold);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
}

.card-header {
    padding: 15px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-header h2, .card-header h3 {
    font-size: 1.1rem;
    margin: 0;
}

.card-content {
    padding: 20px;
}

/* Dashboard Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: var(--bg-card);
    padding: 20px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
    overflow: hidden;
}

.stat-icon {
    font-size: 2rem;
    color: var(--gold-dim);
}

.stat-content {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
    font-family: var(--font-heading);
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.stat-glow {
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

/* Streak Flame */
.streak-card {
    background: linear-gradient(135deg, #1a1a1a, #0a0a0a);
    border-color: var(--gold-dim);
}

.streak-flame-container {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.streak-flame {
    width: 20px;
    height: 20px;
    background: #ff5722;
    border-radius: 50% 0 50% 50%;
    transform: rotate(-45deg);
    box-shadow: 0 0 10px #ff5722, 0 0 20px #ff9800;
    animation: flicker 1s infinite alternate;
}

@keyframes flicker {
    0% { transform: rotate(-45deg) scale(1); opacity: 0.9; }
    100% { transform: rotate(-45deg) scale(1.1); opacity: 1; box-shadow: 0 0 15px #ff5722, 0 0 25px #ff9800; }
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

/* Empty States */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    text-align: center;
    color: var(--text-muted);
}

.empty-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    opacity: 0.3;
}

.empty-state h3 {
    margin-bottom: 10px;
    color: var(--text-main);
}

.empty-state p {
    margin-bottom: 20px;
    font-size: 0.9rem;
}

/* Quick Actions */
.quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
}

.quick-action {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.2s;
    color: var(--text-main);
}

.quick-action:hover {
    background: rgba(212, 175, 55, 0.1);
    border-color: var(--gold-dim);
    transform: translateY(-2px);
}

.qa-icon {
    font-size: 1.5rem;
}

.qa-text {
    font-size: 0.85rem;
}

/* Flows Page */
.flows-tabs, .workings-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
}

.tab-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 8px 16px;
    cursor: pointer;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    position: relative;
}

.tab-btn.active {
    color: var(--gold-primary);
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -11px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--gold-primary);
    box-shadow: 0 0 10px var(--gold-glow);
}

.flows-grid, .workings-grid, .templates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.flow-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s;
    cursor: pointer;
}

.flow-card:hover {
    border-color: var(--gold-dim);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.flow-image {
    height: 120px;
    background-color: #222;
    background-size: cover;
    background-position: center;
    position: relative;
}

.flow-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent, var(--bg-card));
}

.flow-content {
    padding: 15px;
}

.flow-title {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: var(--text-main);
}

.flow-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
    display: flex;
    justify-content: space-between;
}

/* Modals */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.modal.active {
    display: flex;
    opacity: 1;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: var(--bg-card);
    border: 1px solid var(--gold-dim);
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    z-index: 1001;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.8);
    transform: scale(0.95);
    transition: transform 0.3s;
    display: flex;
    flex-direction: column;
}

.modal.active .modal-content {
    transform: scale(1);
}

.modal-content.large {
    max-width: 800px;
}

.modal-content.small {
    max-width: 350px;
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-close {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
}

.modal-close:hover {
    color: var(--text-main);
}

.modal-body {
    padding: 20px;
    flex: 1;
    overflow-y: auto;
}

.modal-footer {
    padding: 20px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.form-row {
    display: flex;
    gap: 15px;
}

.form-row .form-group {
    flex: 1;
}

/* Flow Builder Components */
.components-builder {
    margin-top: 20px;
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
}

.components-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.components-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 100px;
    background: rgba(0, 0, 0, 0.2);
    padding: 10px;
    border-radius: 4px;
}

.component-item {
    background: var(--bg-card-hover);
    border: 1px solid var(--border-color);
    padding: 10px;
    border-radius: 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Flow Runner */
.flow-runner {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    background: #000;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.flow-runner.active {
    display: flex;
}

.runner-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, #1a1a1a 0%, #000 100%);
    z-index: -1;
}

.runner-exit {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 2rem;
    cursor: pointer;
    z-index: 10;
}

.runner-progress {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: rgba(255, 255, 255, 0.1);
}

.runner-progress-bar {
    height: 100%;
    background: var(--gold-primary);
    width: 0%;
    transition: width 0.3s;
    box-shadow: 0 0 10px var(--gold-glow);
}

.runner-progress-text {
    position: absolute;
    top: 15px;
    left: 20px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.runner-content {
    text-align: center;
    max-width: 800px;
    padding: 20px;
    width: 100%;
}

.runner-timer {
    font-size: 5rem;
    font-family: var(--font-heading);
    color: var(--gold-primary);
    text-shadow: 0 0 30px var(--gold-glow);
    margin: 20px 0;
}

.runner-instruction {
    font-size: 1.5rem;
    margin-bottom: 30px;
    color: var(--text-main);
}

.runner-controls {
    margin-top: 30px;
    display: flex;
    gap: 20px;
}

/* Breathing Visualizer */
.breathing-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    background: radial-gradient(circle at center, rgba(20, 10, 40, 0.98), rgba(0, 0, 0, 0.99));
    backdrop-filter: blur(20px);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 30px;
    overflow: hidden;
}

.breathing-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.breathing-particle {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    animation: particle-float 8s infinite ease-in-out;
    opacity: 0;
}

@keyframes particle-float {
    0% {
        transform: translateY(100vh) scale(0);
        opacity: 0;
    }
    10% {
        opacity: 0.8;
    }
    90% {
        opacity: 0.8;
    }
    100% {
        transform: translateY(-100px) scale(1);
        opacity: 0;
    }
}

@keyframes particle-pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.6;
    }
    50% {
        transform: scale(1.5);
        opacity: 1;
    }
}

.breathing-overlay.active {
    display: flex;
}

.breathing-container {
    position: relative;
    width: 400px;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.breathing-circle {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.3), rgba(138, 43, 226, 0.2));
    box-shadow: 0 0 50px rgba(212, 175, 55, 0.6), 0 0 100px rgba(138, 43, 226, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    transition: all 4s ease-in-out;
    position: relative;
}

.breathing-timer {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -80%);
    font-size: 3rem;
    font-weight: 700;
    color: var(--gold-primary);
    font-family: var(--font-heading);
    text-shadow: 0 0 20px var(--gold-glow), 0 0 40px var(--gold-glow);
    z-index: 10;
}

.breathing-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, 50%);
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--text-main);
    font-family: var(--font-heading);
    text-shadow: 0 0 15px rgba(0, 0, 0, 0.8);
    text-transform: uppercase;
    letter-spacing: 3px;
}

.breathing-controls-top {
    position: absolute;
    top: 100px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.breathing-controls-bottom {
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    z-index: 10;
}

.breathing-instruction {
    position: absolute;
    bottom: -80px;
    left: 50%;
    transform: translateX(-50%);
    max-width: 450px;
    text-align: center;
    color: #ffffff;
    font-size: 1.05rem;
    font-weight: 500;
    line-height: 1.6;
    padding: 18px 25px;
    background: rgba(15, 15, 30, 0.85);
    border-radius: 12px;
    border: 2px solid rgba(212, 175, 55, 0.4);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.3), 0 0 40px rgba(138, 43, 226, 0.2);
    min-height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

.input-transparent {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--gold-primary);
    color: var(--text-main);
    padding: 12px 20px;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.input-transparent:hover {
    background: rgba(212, 175, 55, 0.1);
    box-shadow: 0 0 10px var(--gold-glow);
}

.input-transparent:focus {
    outline: none;
    border-color: var(--gold-primary);
    box-shadow: 0 0 15px var(--gold-glow);
}

.overlay-close {
    position: absolute;
    top: 30px;
    right: 30px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid var(--gold-primary);
    color: var(--gold-primary);
    font-size: 2rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.overlay-close:hover {
    background: rgba(212, 175, 55, 0.2);
    box-shadow: 0 0 15px var(--gold-glow);
    transform: rotate(90deg);
}

/* Pomodoro */
.pomodoro-container {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 30px;
}

.pomodoro-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.pomodoro-mode {
    display: flex;
    gap: 10px;
    margin-bottom: 40px;
    background: rgba(0, 0, 0, 0.3);
    padding: 5px;
    border-radius: 30px;
}

.mode-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 8px 20px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s;
}

.mode-btn.active {
    background: var(--gold-dim);
    color: #fff;
}

.pomodoro-timer {
    position: relative;
    width: 300px;
    height: 300px;
    margin-bottom: 40px;
}

.timer-ring {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.timer-ring-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.05);
    stroke-width: 8;
}

.timer-ring-progress {
    fill: none;
    stroke: var(--gold-primary);
    stroke-width: 8;
    stroke-dasharray: 565;
    stroke-dashoffset: 0;
    transition: stroke-dashoffset 1s linear;
    filter: drop-shadow(0 0 10px var(--gold-glow));
}

.timer-display {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.timer-time {
    font-size: 4rem;
    font-family: var(--font-heading);
    display: block;
    line-height: 1;
}

.timer-label {
    font-size: 1rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Badges */
.badges-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 15px;
}

.badge-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    opacity: 0.5;
    filter: grayscale(1);
    transition: all 0.3s;
}

.badge-item.unlocked {
    opacity: 1;
    filter: grayscale(0);
    border-color: var(--gold-dim);
    background: radial-gradient(circle at center, rgba(212, 175, 55, 0.1), transparent);
}

.badge-icon {
    font-size: 2rem;
    margin-bottom: 10px;
}

.badge-name {
    font-size: 0.8rem;
    color: var(--text-main);
}

/* Heatmap */
.heatmap-container {
    overflow-x: auto;
    padding-bottom: 10px;
}

.heatmap {
    display: grid;
    grid-template-rows: repeat(7, 12px);
    grid-auto-flow: column;
    gap: 4px;
}

.heatmap-cell {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 2px;
}

.heatmap-cell[data-level="1"] { background: rgba(212, 175, 55, 0.2); }
.heatmap-cell[data-level="2"] { background: rgba(212, 175, 55, 0.4); }
.heatmap-cell[data-level="3"] { background: rgba(212, 175, 55, 0.6); }
.heatmap-cell[data-level="4"] { background: rgba(212, 175, 55, 0.8); }
.heatmap-cell[data-level="5"] { background: var(--gold-primary); box-shadow: 0 0 5px var(--gold-glow); }

/* Responsive */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
    }
    
    .sidebar.active {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
        padding: 15px;
    }
    
    .sidebar-toggle {
        display: block;
        background: transparent;
        border: none;
        cursor: pointer;
        width: 30px;
        height: 20px;
        position: relative;
    }
    
    .sidebar-toggle span {
        display: block;
        width: 100%;
        height: 2px;
        background: var(--gold-primary);
        margin-bottom: 5px;
    }
    
    .dashboard-grid, .pomodoro-container {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }
}
/* Enhanced Inputs & Controls */

/* General Input Styling */
.input, select, textarea {
    width: 100%;
    padding: 12px;
    background: rgba(20, 20, 20, 0.8);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-main);
    font-family: var(--font-body);
    transition: all var(--transition-speed);
    font-size: 0.95rem;
}

.input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--gold-dim);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.15);
    background: rgba(30, 30, 30, 0.9);
}

/* Fix for Select Dropdowns */
select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d4af37' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 16px;
    padding-right: 40px;
}

select option {
    background-color: var(--bg-card);
    color: var(--text-main);
    padding: 10px;
}

/* Range Sliders */
input[type="range"] {
    -webkit-appearance: none;
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    outline: none;
    margin: 10px 0;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--gold-primary);
    cursor: pointer;
    box-shadow: 0 0 10px var(--gold-glow);
    transition: transform 0.2s;
}

input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

/* Custom Checkboxes / Toggles */
.toggle {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
}

.toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.1);
    transition: .4s;
    border-radius: 34px;
    border: 1px solid var(--border-color);
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: var(--text-muted);
    transition: .4s;
    border-radius: 50%;
}

input:checked + .toggle-slider {
    background-color: rgba(212, 175, 55, 0.2);
    border-color: var(--gold-dim);
}

input:checked + .toggle-slider:before {
    transform: translateX(24px);
    background-color: var(--gold-primary);
    box-shadow: 0 0 10px var(--gold-glow);
}

/* Mood Selector Styling */
.mood-selector {
    display: flex;
    justify-content: space-between;
    background: rgba(0,0,0,0.2);
    padding: 10px;
    border-radius: 8px;
}

.mood-option {
    cursor: pointer;
    transition: transform 0.2s;
}

.mood-option input {
    display: none;
}

.mood-option span {
    font-size: 1.8rem;
    opacity: 0.5;
    transition: all 0.3s;
    display: block;
}

.mood-option:hover span {
    opacity: 0.8;
    transform: scale(1.1);
}

.mood-option input:checked + span {
    opacity: 1;
    transform: scale(1.2);
    text-shadow: 0 0 15px var(--gold-glow);
}

/* Activity Log Styling */
.activity-log {
    max-height: 300px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 6px;
    border-left: 2px solid var(--border-color);
}

.activity-item.flow { border-left-color: var(--accent-blue); }
.activity-item.working { border-left-color: var(--accent-purple); }
.activity-item.task { border-left-color: var(--accent-green); }

.activity-time {
    font-size: 0.75rem;
    color: var(--text-muted);
    min-width: 60px;
}

.activity-details {
    flex: 1;
}

.activity-title {
    font-size: 0.9rem;
    color: var(--text-main);
}

.activity-xp {
    font-size: 0.8rem;
    color: var(--gold-dim);
}
/* Day Selector Styling */
.day-selector {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}

.day-selector label {
    flex: 1;
    text-align: center;
    padding: 8px 5px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.8rem;
    user-select: none;
}

.day-selector label:hover {
    background: rgba(255, 255, 255, 0.1);
}

.day-selector input[type="checkbox"] {
    display: none;
}

.day-selector label:has(input:checked) {
    background: var(--gold-primary);
    color: #000;
    border-color: var(--gold-glow);
    box-shadow: 0 0 10px var(--gold-glow);
    font-weight: bold;
}
/* Mobile Responsiveness Improvements */

@media (max-width: 768px) {
    /* Sidebar & Navigation */
    .sidebar {
        position: fixed;
        left: 0;
        top: 0;
        height: 100vh;
        width: 280px;
        z-index: 1000;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        box-shadow: 5px 0 15px rgba(0,0,0,0.5);
    }

    .sidebar.active {
        transform: translateX(0);
    }

    /* Overlay when sidebar is open */
    .sidebar.active::before {
        content: '';
        position: fixed;
        top: 0;
        left: 280px;
        width: 100vw;
        height: 100vh;
        background: rgba(0,0,0,0.5);
        z-index: 999;
    }

    .main-content {
        margin-left: 0;
        padding: 15px;
        padding-top: 80px; /* Space for mobile header */
        width: 100%;
    }

    /* Mobile Header */
    .mobile-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 60px;
        background: var(--bg-card);
        border-bottom: 1px solid var(--border-color);
        padding: 0 20px;
        z-index: 900;
    }

    .sidebar-toggle {
        display: flex;
        flex-direction: column;
        justify-content: space-around;
        width: 30px;
        height: 20px;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 0;
    }

    .sidebar-toggle span {
        width: 100%;
        height: 2px;
        background: var(--gold-primary);
        border-radius: 2px;
        transition: all 0.3s;
    }

    /* Grid Adjustments */
    .dashboard-grid, 
    .stats-grid, 
    .quick-actions-grid,
    .flows-grid,
    .mastery-grid {
        grid-template-columns: 1fr !important;
        gap: 15px;
    }

    /* Card Adjustments */
    .card, .stat-card, .flow-card {
        padding: 15px;
    }

    /* Typography */
    h1.page-title {
        font-size: 1.5rem;
    }

    /* Modal Adjustments */
    .modal-content {
        width: 95%;
        max-height: 90vh;
        padding: 20px;
    }
    
    /* Flow Runner Mobile */
    .runner-content {
        padding: 10px;
    }
    
    .runner-timer {
        font-size: 3rem;
    }
}

/* Desktop: Hide Mobile Header */
@media (min-width: 769px) {
    .mobile-header {
        display: none;
    }
}
/* Mastery Color Picker Fix */
.color-picker {
    display: flex;
    gap: 10px;
    margin-top: 5px;
}

.color-option {
    position: relative;
    cursor: pointer;
}

.color-option input {
    display: none;
}

.color-option span {
    display: block;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 2px solid transparent;
    transition: all 0.2s;
}

.color-option input:checked + span {
    border-color: #fff;
    box-shadow: 0 0 10px var(--gold-glow);
    transform: scale(1.1);
}

/* Enhanced Task UI */
.task-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.2s;
}

.task-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--gold-dim);
}

.task-check {
    width: 24px;
    height: 24px;
    border: 2px solid var(--text-muted);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.task-check:hover {
    border-color: var(--gold-primary);
}

.task-check.checked {
    background: var(--gold-primary);
    border-color: var(--gold-primary);
}

.task-check.checked::after {
    content: '✓';
    color: #000;
    font-size: 14px;
    font-weight: bold;
}

.task-content {
    flex: 1;
}

.task-title {
    font-size: 1rem;
    color: var(--text-main);
    margin-bottom: 4px;
}

.task-meta {
    font-size: 0.75rem;
    color: var(--text-muted);
    display: flex;
    gap: 10px;
}

.task-badge {
    padding: 2px 6px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.1);
    font-size: 0.7rem;
}

/* Enhanced Mastery UI */
.mastery-card-enhanced {
    background: linear-gradient(145deg, rgba(20,20,20,0.9), rgba(10,10,10,0.95));
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    position: relative;
    overflow: hidden;
}

.mastery-card-enhanced::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--card-color, var(--gold-primary));
}

.mastery-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.mastery-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-main);
}

.mastery-stats {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.mastery-progress-bg {
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.mastery-progress-fill {
    height: 100%;
    background: var(--card-color, var(--gold-primary));
    border-radius: 4px;
    transition: width 0.5s ease;
}

/* Mobile Sidebar Close Button */
.sidebar-close-btn {
    display: none;
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
}

@media (max-width: 768px) {
    .sidebar-close-btn {
        display: block;
    }
}

/* Pomodoro Stats */
.pomodoro-stats {
    display: flex;
    justify-content: space-around;
    width: 100%;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.pomo-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.pomo-stat-value {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--gold-primary);
}

.pomo-stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Settings Row */
.settings-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.setting-info {
    display: flex;
    flex-direction: column;
}

.setting-title {
    font-size: 1rem;
    color: var(--text-main);
}

.setting-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Hide sidebar toggle inside sidebar */
.sidebar .sidebar-toggle {
    display: none !important;
}


/* Calendar Styles */
.calendar-container {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 20px;
}

.calendar-grid {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
}

.calendar-header {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    margin-bottom: 10px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
}

.calendar-day {
    min-height: 80px;
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 4px;
    padding: 5px;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

.calendar-day:hover {
    background: rgba(255,255,255,0.05);
    border-color: var(--gold-dim);
}

.calendar-day.empty {
    background: transparent;
    border: none;
    cursor: default;
}

.day-indicator {
    width: 6px;
    height: 6px;
    background: var(--gold-primary);
    border-radius: 50%;
    box-shadow: 0 0 5px currentColor;
    flex-shrink: 0;
}

.calendar-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.calendar-day-detail {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    flex: 1;
}

@media (max-width: 768px) {
    .calendar-container {
        grid-template-columns: 1fr;
    }
}


/* Improved Task UI */
.task-card {
    background: linear-gradient(145deg, rgba(30,30,30,0.9), rgba(20,20,20,0.95));
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.2s;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.task-card:hover {
    border-color: var(--gold-dim);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

/* Enhanced Task UI */
.column-header {
    background: rgba(255, 255, 255, 0.05);
    padding: 10px 15px;
    border-radius: 6px;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid transparent;
}

.column-title {
    font-size: 1rem;
    margin: 0;
    color: var(--text-main);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: var(--font-heading);
    font-weight: 600;
}

.column-count {
    background: rgba(0, 0, 0, 0.3);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Column Specific Colors */
.tasks-column:nth-child(1) .column-header { border-bottom-color: var(--accent-blue); }
.tasks-column:nth-child(2) .column-header { border-bottom-color: var(--gold-primary); }
.tasks-column:nth-child(3) .column-header { border-bottom-color: var(--accent-green); }

.task-title {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-main);
    margin-bottom: 8px;
    line-height: 1.4;
}

.task-meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.task-badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

/* Flow Completion Checkboxes */
.flow-check {
    width: 32px;
    height: 32px;
    border: 2px solid var(--gold-primary);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.2rem;
    color: var(--gold-primary);
}

.flow-check:hover {
    background: rgba(212, 175, 55, 0.2);
    box-shadow: 0 0 10px var(--gold-glow);
    transform: scale(1.1);
}

.flow-check.checked {
    background: var(--gold-primary);
    color: var(--bg-primary);
    box-shadow: 0 0 15px var(--gold-glow);
}

.flow-check-inline {
    width: 24px;
    height: 24px;
    border: 2px solid var(--gold-primary);
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    color: var(--gold-primary);
    flex-shrink: 0;
}

.flow-check-inline:hover {
    background: rgba(212, 175, 55, 0.2);
    box-shadow: 0 0 8px var(--gold-glow);
}

.flow-check-inline.checked {
    background: var(--gold-primary);
    color: var(--bg-primary);
    box-shadow: 0 0 10px var(--gold-glow);
}

/* Quick Add Buttons for Mastery */
.quick-add-btn {
    padding: 8px 12px !important;
    font-size: 0.85rem;
    border-color: var(--gold-primary) !important;
    color: var(--gold-primary);
    transition: all 0.3s ease;
}

.quick-add-btn:hover {
    background: rgba(212, 175, 55, 0.2) !important;
    box-shadow: 0 0 8px var(--gold-glow);
    transform: translateY(-2px);
}

/* Badge Colors */
.task-badge:nth-child(1) { /* Category */
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
}

.task-badge:nth-child(2) { /* Priority */
    background: rgba(212, 175, 55, 0.15);
    color: var(--gold-primary);
    border: 1px solid rgba(212, 175, 55, 0.3);
}

/* Pomodoro Sliders */
.pomodoro-settings input[type="range"] {
    -webkit-appearance: none;
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    outline: none;
    margin: 15px 0;
    border: 1px solid var(--border-color);
}

.pomodoro-settings input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--gold-primary);
    cursor: pointer;
    box-shadow: 0 0 10px var(--gold-glow);
    transition: transform 0.2s;
    border: 2px solid #000;
}

.pomodoro-settings input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    background: #fff;
}

/* Settings Improvements */
.settings-section {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 25px;
}

.settings-section h3 {
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 1.2rem;
}

.settings-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.settings-row:last-child {
    border-bottom: none;
}

/* Remove Outlines */
*:focus {
    outline: none !important;
}

.input:focus, select:focus, textarea:focus, button:focus {
    border-color: var(--gold-dim);
    box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.2);
}

/* Calendar Improvements */
.calendar-day {
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.05);
    transition: all 0.2s ease;
}

.calendar-day:hover {
    background: rgba(212, 175, 55, 0.05);
    border-color: var(--gold-dim);
    transform: scale(1.02);
    z-index: 1;
}

.day-indicator {
    background: var(--gold-primary);
    box-shadow: 0 0 8px var(--gold-glow);
}

/* Fix Modal Overlay Interaction */
.modal {
    pointer-events: none; /* Allow clicks to pass through when hidden */
}

.modal.active {
    pointer-events: auto; /* Capture clicks when active */
}

/* New Styles for Location & Settings */
.settings-section {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.settings-section:last-child {
    border-bottom: none;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-main);
    border: 1px solid var(--border-color);
    padding: 10px 20px;
    border-radius: 4px;
    font-family: var(--font-heading);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-speed);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--text-muted);
    transform: translateY(-2px);
}

/* Ensure inputs in settings look good */
.settings-section .input {
    background: rgba(0, 0, 0, 0.3);
    border-color: var(--border-color);
}

.settings-section .input:focus {
    border-color: var(--gold-dim);
    background: rgba(0, 0, 0, 0.5);
}

.settings-hint {
    font-size: 0.8rem;
    margin-top: 0.5rem;
    color: var(--text-muted);
    font-style: italic;
}


/* Runner Image Styling */
.runner-image {
    width: 100%;
    height: auto;
    max-height: 60vh;
    object-fit: contain;
    margin-bottom: 20px;
    border-radius: 8px;
    background-color: rgba(0,0,0,0.2);
}

/* Progress Circles for Workings */
.progress-circle {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid var(--gold-dim);
    background-color: transparent;
    transition: all 0.3s ease;
}

.progress-circle.filled {
    background-color: var(--gold-primary);
    border-color: var(--gold-primary);
    box-shadow: 0 0 8px var(--gold-glow);
}
