/* ZenAxon Screen Specific Styling */

/* Flow steps in left panel */
.flow-section-title {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-dim);
    margin: 16px 0 8px 0;
    font-weight: 600;
}
.flow-steps {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-grow: 1;
}
.flow-step {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid transparent;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    cursor: pointer;
}
.panel-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}
.panel-header h2 {
    font-size: 1.1rem;
    font-weight: 700;
    font-family: var(--font-display);
    color: white;
}
.panel-header p {
    font-size: 0.75rem;
    color: var(--text-muted);
}
.panel-logo {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 4px 10px rgba(139, 92, 246, 0.2);
}

.flow-step .step-num {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: bold;
    color: var(--text-muted);
    transition: all 0.3s;
}
.flow-step .step-text {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}
.flow-step .check-icon {
    margin-left: auto;
    color: var(--success);
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.3s;
}
.flow-step.active {
    background: rgba(139, 92, 246, 0.1);
    border-color: rgba(139, 92, 246, 0.3);
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.05);
}
.flow-step.active .step-num {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 0 10px var(--primary-glow);
}
.flow-step.active .step-text {
    color: #fff;
    font-weight: 600;
}
.flow-step.completed {
    background: rgba(52, 211, 153, 0.05);
}
.flow-step.completed .step-num {
    background: var(--success);
    color: #fff;
}
.flow-step.completed .step-text {
    color: var(--text-muted);
    text-decoration: line-through;
    opacity: 0.7;
}
.flow-step.completed .check-icon {
    opacity: 1;
    transform: scale(1);
}

/* OOBE 1: Login Screen */
.logo-container {
    text-align: center;
    margin: 40px 0 20px 0;
}
.logo-img {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    margin-bottom: 12px;
    box-shadow: 0 8px 25px var(--primary-glow);
}
.app-title-display {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, #fff, var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 4px;
}
.app-subtitle-display {
    font-size: 0.8rem;
    color: var(--text-muted);
}
.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
    text-align: left;
}
.form-group label {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
}
.input-control {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    padding: 12px 16px;
    border-radius: 12px;
    color: #fff;
    font-size: 0.9rem;
    outline: none;
    transition: all 0.3s;
    width: 100%;
}
.input-control:focus {
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.08);
}
input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(1);
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s;
}
input[type="date"]::-webkit-calendar-picker-indicator:hover {
    opacity: 1;
}
.login-footer-links {
    margin-top: auto;
    margin-bottom: 20px;
    text-align: center;
    font-size: 0.75rem;
    color: var(--text-dim);
}
.login-footer-links a {
    color: var(--primary);
    text-decoration: none;
}

/* OOBE 2: Device Scan Screen */
.scan-container {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 20px;
    height: 100%;
    position: relative;
}
.scan-radar-bg {
    position: absolute;
    top: 45%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 260px;
    height: 260px;
    border-radius: 50%;
    border: 1px dashed rgba(139, 92, 246, 0.1);
    pointer-events: none;
    opacity: 0.25;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}
.radar-ring {
    position: absolute;
    border-radius: 50%;
    border: 2px solid var(--primary);
    top: 0; left: 0; right: 0; bottom: 0;
    animation: ripple 2.5s linear infinite;
    opacity: 0;
}
.radar-ring:nth-child(2) { animation-delay: 0.8s; }
.radar-ring:nth-child(3) { animation-delay: 1.6s; }

.scan-center-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary);
    font-size: 1.1rem;
    animation: pulse 2s infinite;
}
@keyframes ripple {
    0% { transform: scale(0.4); opacity: 0; }
    50% { opacity: 0.6; }
    100% { transform: scale(1.1); opacity: 0; }
}

.device-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    width: 100%;
    z-index: 2;
    margin-top: 10px;
    margin-bottom: 24px;
}
.device-card {
    background: rgba(30, 37, 56, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 16px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    transform: translateY(20px);
    animation: cardAppear 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
.device-card:hover {
    border-color: var(--primary);
    background: rgba(139, 92, 246, 0.15);
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(139, 92, 246, 0.15);
}
.device-card-icon {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--secondary);
    margin-bottom: 2px;
}
.device-card-name {
    font-size: 0.8rem;
    font-weight: 700;
    color: white;
}
.device-card-rssi {
    font-size: 0.65rem;
    color: var(--success);
    font-weight: 500;
}
.device-card-action {
    font-size: 0.75rem;
    color: var(--primary);
    font-weight: 600;
    margin-top: 6px;
}
@keyframes cardAppear {
    to { opacity: 1; transform: translateY(0); }
}

/* OOBE 3: Questionnaire Screen */
.question-container {
    text-align: left;
    display: flex;
    flex-direction: column;
    height: 100%;
}
.quest-progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
    margin-top: 10px;
    margin-bottom: 24px;
    overflow: hidden;
}
.quest-progress-inner {
    height: 100%;
    background: var(--primary);
    width: 25%;
    transition: width 0.3s;
}
.question-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.4;
}
.question-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 30px;
}
.q-option {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 16px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 12px;
}
.q-option::before {
    content: '';
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid var(--text-dim);
    display: inline-block;
    flex-shrink: 0;
    transition: all 0.2s;
}
.q-option.selected {
    border-color: var(--primary);
    background: rgba(139, 92, 246, 0.08);
}
.q-option.selected::before {
    border-color: var(--primary);
    background: var(--primary);
    box-shadow: inset 0 0 0 3px var(--bg-card-solid);
}

/* OOBE 4: Algorithm Screen */
.algo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    height: 100%;
    padding-top: 40px;
}
.brain-loader {
    width: 120px;
    height: 120px;
    position: relative;
    margin: 30px 0;
}
.brain-loader svg {
    width: 100%;
    height: 100%;
    animation: pulse 2s infinite ease-in-out;
}
.brain-loader .pulse-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid var(--primary);
    animation: brainRipple 2.5s infinite ease-out;
}
@keyframes pulse {
    0%, 100% { transform: scale(1); filter: drop-shadow(0 0 10px rgba(139, 92, 246, 0.2)); }
    50% { transform: scale(1.05); filter: drop-shadow(0 0 25px rgba(139, 92, 246, 0.6)); }
}
@keyframes brainRipple {
    0% { transform: scale(0.8); opacity: 0.8; }
    100% { transform: scale(1.5); opacity: 0; }
}
.loader-progress-text {
    font-size: 1.4rem;
    font-weight: bold;
    font-family: var(--font-display);
    margin-bottom: 8px;
    color: #fff;
}
.loader-sub {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 24px;
}

/* Screen Modals & Overlays */
.screen-modal {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(9, 13, 25, 0.85);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    z-index: 1100;
}
.modal-box {
    background: var(--bg-card-solid);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 24px;
    text-align: center;
    width: 100%;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
}
.modal-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    margin: 0 auto 16px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}
.modal-icon.error {
    background: rgba(248, 113, 113, 0.15);
    color: var(--danger);
}
.modal-icon.success {
    background: rgba(52, 211, 153, 0.15);
    color: var(--success);
}
.modal-box h4 {
    margin-bottom: 8px;
    font-size: 1.1rem;
    color: white;
}
.modal-box p {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

/* TAB 1: Home Tab */
.home-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-top: 10px;
}
.home-header .user-info {
    display: flex;
    align-items: center;
    gap: 10px;
}
.avatar-tiny {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    display: flex;
    align-items: center;
    justify-content: center;
}
.home-header h4 {
    font-size: 0.9rem;
    font-weight: 700;
}
.home-header .dev-status-badge {
    background: rgba(52, 211, 153, 0.15);
    color: var(--success);
    font-size: 0.65rem;
    padding: 4px 8px;
    border-radius: 10px;
    font-weight: 600;
}

.dashboard-card {
    background: linear-gradient(135deg, rgba(30, 27, 75, 0.7), rgba(15, 23, 42, 0.7));
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 20px;
    padding: 20px;
    position: relative;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}
.dashboard-card::before {
    content: '';
    position: absolute;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.15), transparent 70%);
    top: -50px; right: -50px;
}
.dashboard-title {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--secondary);
    font-weight: 700;
    margin-bottom: 12px;
}
.dashboard-score-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}
.dashboard-score {
    font-family: var(--font-display);
    font-size: 2.2rem;
    font-weight: 800;
    color: #fff;
}
.dashboard-score span {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-muted);
}
.dashboard-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.section-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}
.section-header-row h3 {
    font-size: 0.95rem;
    font-family: var(--font-display);
    font-weight: 700;
}
.section-header-row a {
    font-size: 0.7rem;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.course-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.course-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 10px;
    display: flex;
    gap: 12px;
    align-items: center;
    transition: all 0.2s;
}
.course-item:hover {
    background: rgba(255,255,255,0.05);
    border-color: var(--secondary);
}
.course-img {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    background: var(--bg-card-solid);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    flex-shrink: 0;
}
.course-info {
    text-align: left;
}
.course-title {
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 2px;
    color: white;
}
.course-duration {
    font-size: 0.65rem;
    color: var(--text-dim);
}

/* BLE Overlay screen */
.ble-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at 50% 30%, #1e1b4b 0%, #060913 80%);
    z-index: 1200;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px;
    animation: fadeIn 0.4s;
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.ble-spinner-container {
    width: 150px;
    height: 150px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
}
.ble-radar-wave {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid var(--secondary);
    animation: pulse 1.5s infinite;
}
.ble-icon-center {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    box-shadow: 0 0 25px var(--primary-glow);
    z-index: 5;
}

/* TAB 2: Report Tab */
.report-container {
    display: flex;
    flex-direction: column;
    height: 100%;
}
.tab-select-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    background: rgba(255,255,255,0.05);
    padding: 2px;
    border-radius: 10px;
    margin-bottom: 16px;
}
.tab-select-btn {
    background: none;
    border: none;
    padding: 6px 0;
    font-size: 0.75rem;
    color: var(--text-muted);
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.2s;
    font-weight: 500;
}
.tab-select-btn.active {
    background: var(--bg-card-solid);
    color: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.chart-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 16px;
}
.chart-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
}
.chart-header h4 {
    font-size: 0.8rem;
    font-weight: 600;
}
.chart-header span {
    font-size: 0.75rem;
    color: var(--accent);
    font-weight: 700;
}
.trend-chart-placeholder {
    height: 120px;
    position: relative;
    margin-top: 10px;
}
.trend-chart-placeholder svg {
    width: 100%;
    height: 100%;
}

.report-summary-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 16px;
}
.summary-box {
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 12px;
}
.summary-box .label {
    font-size: 0.65rem;
    color: var(--text-dim);
    margin-bottom: 4px;
}
.summary-box .val {
    font-size: 1rem;
    font-weight: 700;
    font-family: var(--font-display);
}

.history-section h4 {
    font-size: 0.85rem;
    margin-bottom: 10px;
    color: var(--text-main);
    text-align: left;
}
.history-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.history-item {
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 10px 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s;
}
.history-item:hover {
    border-color: var(--primary);
    background: rgba(139,92,246,0.05);
}
.history-meta {
    text-align: left;
}
.history-date {
    font-size: 0.75rem;
    font-weight: 600;
    color: white;
}
.history-dur {
    font-size: 0.65rem;
    color: var(--text-dim);
}
.history-score {
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--secondary);
}

/* TAB 3: Music Tab */
.music-container {
    display: flex;
    flex-direction: column;
    height: 100%;
}
.category-chips {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 8px;
    margin-bottom: 16px;
}
.cat-chip {
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border-color);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    white-space: nowrap;
    cursor: pointer;
    font-weight: 500;
}
.cat-chip.active {
    background: rgba(139, 92, 246, 0.15);
    border-color: var(--primary);
    color: white;
}

.music-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 20px;
}
.music-album-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 10px;
    text-align: left;
    cursor: pointer;
    transition: all 0.3s;
}
.music-album-card:hover {
    transform: translateY(-2px);
    border-color: var(--primary);
}
.album-art {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 10px;
    background: linear-gradient(135deg, #4c1d95, #0f172a);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 1.8rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}
.album-title {
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: white;
}
.album-track-count {
    font-size: 0.6rem;
    color: var(--text-dim);
}

.player-overlay {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--border-color);
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 1001;
    box-shadow: 0 -4px 15px rgba(0,0,0,0.5);
    animation: slideUp 0.3s;
}
@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

.player-art {
    width: 36px;
    height: 36px;
    border-radius: 6px;
    background: var(--primary-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}
.player-info {
    flex-grow: 1;
    text-align: left;
}
.player-title {
    font-size: 0.75rem;
    font-weight: 600;
    color: white;
}
.player-sub {
    font-size: 0.6rem;
    color: var(--text-dim);
}
.player-controls {
    display: flex;
    gap: 12px;
    align-items: center;
}
.player-play-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.75rem;
}

/* TAB 4: Profile Tab */
.profile-container {
    display: flex;
    flex-direction: column;
    height: 100%;
}
.profile-header-card {
    text-align: center;
    margin-bottom: 16px;
    padding-top: 10px;
}
.avatar-large {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    margin: 0 auto 12px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: white;
    box-shadow: 0 4px 15px var(--primary-glow);
}
.profile-name {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 4px;
    color: white;
}
.profile-id {
    font-size: 0.7rem;
    color: var(--text-dim);
}

.dev-embed-card {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.08), rgba(255,255,255,0.02));
    border: 1px solid rgba(139, 92, 246, 0.25);
    border-radius: 16px;
    padding: 14px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.dev-embed-info {
    text-align: left;
}
.dev-embed-name {
    font-size: 0.8rem;
    font-weight: 600;
    color: white;
}
.dev-embed-status {
    font-size: 0.65rem;
    color: var(--success);
    font-weight: 500;
}
.btn-unbind {
    background: rgba(248, 113, 113, 0.15);
    color: var(--danger);
    border: none;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.7rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}
.btn-unbind:hover {
    background: var(--danger);
    color: white;
}

.menu-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.menu-item {
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s;
}
.menu-item:hover {
    background: rgba(255,255,255,0.04);
}
.menu-left {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}
.menu-left i {
    color: var(--secondary);
    width: 16px;
}
.menu-item .fa-chevron-right {
    font-size: 0.7rem;
    color: var(--text-dim);
}

/* Subscreen Navigation & Layout Styles */
.subscreen-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0 16px 0;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 16px;
}
.subscreen-header h3 {
    font-size: 1rem;
    font-family: var(--font-display);
    font-weight: 700;
    color: white;
}
.back-btn {
    background: none;
    border: none;
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border-radius: 8px;
    transition: all 0.2s;
}
.back-btn:hover {
    background: rgba(139, 92, 246, 0.1);
}
.menu-item.no-hover {
    cursor: default;
}
.menu-item.no-hover:hover {
    background: rgba(255,255,255,0.02);
}
.faq-arrow {
    transition: transform 0.3s;
}
.faq-arrow.open {
    transform: rotate(180deg);
}

/* Back-end simulator controls styling */
.simulation-controls {
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}
.simulation-controls h3 {
    font-size: 0.8rem;
    color: var(--text-main);
    margin-bottom: 8px;
}
.control-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 8px;
    text-align: left;
}
.control-group label {
    font-size: 0.7rem;
    color: var(--text-muted);
}
.toggle-switch {
    display: flex;
    align-items: center;
    gap: 10px;
}
.toggle-switch input[type="checkbox"] {
    display: none;
}
.toggle-switch label {
    width: 38px;
    height: 18px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 9px;
    position: relative;
    cursor: pointer;
    transition: background 0.3s;
}
.toggle-switch label::after {
    content: '';
    position: absolute;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: white;
    top: 2px;
    left: 2px;
    transition: left 0.3s;
}
.toggle-switch input[type="checkbox"]:checked + label {
    background: var(--danger);
}
.toggle-switch input[type="checkbox"]:checked + label::after {
    left: 22px;
}
.toggle-label {
    font-size: 0.7rem;
    font-weight: 600;
}

/* Calendar Widget Styles */
.calendar-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 14px 16px;
    margin-bottom: 16px;
}
.calendar-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}
.calendar-header-row h4 {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
}
.calendar-header-row .btn-more {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 0.8rem;
    cursor: pointer;
}
.calendar-scroll-container {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    display: flex;
    gap: 10px;
    padding-bottom: 6px;
    scrollbar-width: none; /* Hide scrollbar Firefox */
}
.calendar-scroll-container::-webkit-scrollbar {
    display: none; /* Hide scrollbar Chrome/Safari */
}
.calendar-week {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
    width: 100%;
    flex-shrink: 0;
    scroll-snap-align: start;
}
.day-btn-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}
.day-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}
.day-circle.today {
    background: var(--primary);
    color: white;
    font-weight: bold;
    box-shadow: 0 0 10px var(--primary-glow);
}
.day-circle.completed::after {
    content: '';
    position: absolute;
    bottom: -2px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--success);
}
.day-btn-wrapper.active .day-circle {
    background: rgba(139, 92, 246, 0.4);
    border: 1px solid var(--primary);
    color: white;
}
.day-num {
    font-size: 0.7rem;
    color: var(--text-dim);
}
.day-btn-wrapper.active .day-num {
    color: white;
    font-weight: bold;
}

/* Avatar Select Buttons */
.avatar-select-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s;
}
.avatar-select-btn:hover, .avatar-select-btn.active {
    background: rgba(139, 92, 246, 0.15);
    border-color: var(--primary);
    color: white;
    box-shadow: 0 0 10px var(--primary-glow);
}


