:root {
    --primary-color: #1a1a1a;
    --secondary-color: #333;
    --accent-color: #666;
    --text-color: #fff;
    --border-color: #555;
    --background-color: #0d0d0d;
    --background-style: solid;
    --cursor-trail: false;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--background-color);
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 20px 20px;
    color: var(--text-color);
    font-family: 'IBM Plex Mono', monospace;
    font-size: 14px;
    line-height: 1.5;
    letter-spacing: 0.01em;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    transition: background-color 0.3s ease, background-image 0.3s ease;
}

/* Grid background style */
body.grid-background {
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 20px 20px;
}

/* Solid background style */
body.solid-background {
    background-image: none;
}

/* Cursor trail styles */
.cursor-trail {
    position: fixed;
    width: 4px;
    height: 4px;
    background-color: var(--text-color);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.6;
    animation: cursorTrailFade 0.5s ease-out forwards;
}

@keyframes cursorTrailFade {
    0% {
        opacity: 0.6;
        transform: scale(1);
    }
    100% {
        opacity: 0;
        transform: scale(0.3);
    }
}

/* Customization Settings Grid Layout */
.customization-section {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    margin-top: 20px;
}

.customization-title {
    font-family: 'IBM Plex Mono', monospace;
    color: var(--text-color);
    margin: 0 0 20px 0;
    font-size: 18px;
    font-weight: 600;
    text-align: center;
}

.customization-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.customization-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 0;
    transition: all 0.3s ease;
    overflow: hidden;
}

.customization-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.card-header {
    background: rgba(255, 255, 255, 0.08);
    padding: 15px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.card-title {
    font-family: 'IBM Plex Mono', monospace;
    color: var(--text-color);
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
}

.card-content {
    padding: 20px;
}

.setting-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    gap: 15px;
}

.setting-row:last-child {
    margin-bottom: 0;
}

.setting-label {
    font-family: 'IBM Plex Mono', monospace;
    color: var(--text-color);
    font-size: 14px;
    font-weight: 500;
    min-width: 80px;
    flex-shrink: 0;
}

.color-input-group {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.color-picker {
    width: 50px;
    height: 35px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s ease;
    background: none;
}

.color-picker:hover {
    transform: scale(1.1);
}

.color-value {
    font-family: 'IBM Plex Mono', monospace;
    color: #ccc;
    font-size: 12px;
    background: rgba(255, 255, 255, 0.1);
    padding: 6px 10px;
    border-radius: 6px;
    min-width: 70px;
    text-align: center;
}

.radio-group {
    display: flex;
    gap: 15px;
    flex: 1;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    flex: 1;
    justify-content: center;
}

.radio-option input[type="radio"] {
    margin: 0;
    width: 16px;
    height: 16px;
    accent-color: var(--accent-color);
}

.radio-label {
    font-family: 'IBM Plex Mono', monospace;
    color: #ccc;
    font-size: 14px;
    transition: color 0.2s ease;
}

.radio-option:hover .radio-label {
    color: var(--text-color);
}

.radio-option input[type="radio"]:checked + .radio-label {
    color: var(--text-color);
    font-weight: 600;
}

.toggle-group {
    display: flex;
    justify-content: flex-end;
    flex: 1;
}

.toggle-option {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.toggle-option input[type="checkbox"] {
    display: none;
}

.toggle-slider {
    position: relative;
    width: 50px;
    height: 24px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.toggle-slider::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.toggle-option input[type="checkbox"]:checked + .toggle-slider {
    background: var(--accent-color);
}

.toggle-option input[type="checkbox"]:checked + .toggle-slider::before {
    transform: translateX(26px);
}

.toggle-label {
    font-family: 'IBM Plex Mono', monospace;
    color: #ccc;
    font-size: 14px;
    transition: color 0.2s ease;
}

.toggle-option:hover .toggle-label {
    color: var(--text-color);
}

.preview-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    flex: 1;
}

.preview-text {
    font-family: 'IBM Plex Mono', monospace;
    color: var(--text-color);
    font-size: 14px;
    font-weight: 500;
}

.preview-icons {
    display: flex;
    gap: 15px;
    color: var(--text-color);
}

.preview-icons svg {
    transition: transform 0.2s ease;
}

.preview-icons svg:hover {
    transform: scale(1.2);
    color: var(--accent-color);
}

/* Mobile-First Responsive Design */
@media (max-width: 768px) {
    /* Hide desktop timer controls on mobile */
    .timer-controls {
        display: none !important;
    }
    
    /* Hide individual control buttons on mobile */
    .control-btn {
        display: none !important;
    }
    
    /* Show screen rotation icon */
    .screen-rotation-icon {
        display: block !important;
    }
    
    /* Body and container adjustments */
    body {
        font-size: 16px;
        padding: 10px;
        min-height: 100vh;
        min-height: -webkit-fill-available;
    }
    
    .container {
        width: 100%;
        max-width: 100%;
        padding: 0 10px;
    }
    
    .main-timer-section {
        max-width: 100%;
        padding: 0 5px;
    }
    
    /* Timer controls mobile optimization */
    .timer-controls {
        gap: 8px;
        flex-wrap: wrap;
        justify-content: center;
        margin-bottom: 15px;
        padding: 0 5px;
    }
    
    .control-btn {
        padding: 12px;
        min-width: 48px;
        min-height: 48px;
        touch-action: manipulation;
    }
    
    .control-btn svg {
        width: 20px;
        height: 20px;
    }
    
    /* Timer display mobile optimization */
    .timer {
        font-size: 2.5rem;
        min-width: 140px;
        margin: 10px 0;
        text-align: center;
    }
    
    /* Progress bar mobile optimization */
    .progress-bar {
        width: 90%;
        max-width: 300px;
        height: 6px;
        margin: 15px auto;
    }
    
    /* Heatmap container mobile optimization */
    .heatmap-container {
        width: 100%;
        max-width: 100%;
        padding: 15px 10px;
        margin-top: 15px;
    }
    
    /* Blurting section mobile optimization */
    .blurting-section {
        margin-top: 20px;
        gap: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .blurting-btn {
        width: 45px;
        height: 45px;
        touch-action: manipulation;
    }
    
    .blurting-btn svg {
        width: 20px;
        height: 20px;
    }
    
    /* Customization grid mobile optimization */
    .customization-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .setting-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .setting-label {
        min-width: auto;
    }
    
    .color-input-group {
        width: 100%;
        justify-content: space-between;
    }
    
    .radio-group {
        width: 100%;
        justify-content: space-around;
    }
    
    .toggle-group {
        justify-content: flex-start;
    }
    
    /* Modal mobile optimization */
    .modal-content {
        width: 95%;
        max-width: 95%;
        margin: 5% auto;
        max-height: 90vh;
        overflow-y: auto;
    }
    
    .modal-header,
    .modal-body {
        padding: 15px;
    }
    
    /* Log container mobile optimization */
    .log-container {
        width: 100%;
        max-width: 100%;
        margin: 0;
    }
    
    .log-header {
        padding: 15px;
        flex-direction: column;
        gap: 10px;
        align-items: stretch;
    }
    
    .log-filters {
        flex-direction: column;
        gap: 8px;
        width: 100%;
    }
    
    .log-filters select {
        width: 100%;
        font-size: 14px;
    }
    
    .log-content {
        max-height: 60vh;
    }
    
    .log-entry {
        padding: 12px 15px;
        flex-direction: column;
        gap: 8px;
    }
    
    .log-entry-info {
        width: 100%;
    }
    
    .log-entry-actions {
        width: 100%;
        justify-content: flex-end;
    }
    
    /* Account actions mobile optimization */
    .account-actions-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .account-actions-buttons button {
        width: 100%;
        padding: 15px;
        font-size: 16px;
    }
    
    /* Analytics mobile optimization */
    .basic-analytics-side-by-side {
        flex-direction: column;
        gap: 20px;
    }
    
    .analytics-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .chart-container {
        padding: 15px;
        margin-bottom: 20px;
    }
    
    .chart-container h3 {
        font-size: 16px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .stat-card {
        padding: 15px;
    }
    
    .stat-card .value {
        font-size: 20px;
    }
    
    /* Music player mobile optimization */
    .music-player {
        bottom: 10px;
        right: 10px;
        left: 10px;
        width: auto;
        max-width: none;
    }
    
    .music-player-content {
        padding: 12px;
    }
    
    .music-cover img,
    .default-cover {
        width: 80px;
        height: 80px;
    }
    
    .song-title {
        font-size: 13px;
    }
    
    .song-artist {
        font-size: 11px;
    }
    
    .music-control-btn {
        width: 36px;
        height: 36px;
    }
    
    .play-pause-btn {
        width: 44px;
        height: 44px;
    }
    
    .music-control-btn svg {
        width: 16px;
        height: 16px;
    }
    
    .play-pause-btn svg {
        width: 20px;
        height: 20px;
    }
    
    /* Playlist modal mobile optimization */
    .playlist-content {
        width: 95%;
        max-width: none;
    }
    
    .playlist-header {
        padding: 12px 16px;
    }
    
    .playlist-item {
        padding: 10px 16px;
    }
    
    .playlist-item-cover,
    .playlist-item-default-cover {
        width: 36px;
        height: 36px;
    }
    
    .playlist-item-title {
        font-size: 13px;
    }
    
    .playlist-item-artist {
        font-size: 11px;
    }
    
    /* Fullscreen mode mobile optimization */
    .container.fullscreen .timer {
        font-size: 3rem;
        margin-bottom: 1.5rem;
    }
    
    .container.fullscreen .timer-controls {
        gap: 1rem;
        margin-bottom: 2rem;
    }
    
    .container.fullscreen .timer-controls button {
        width: 60px;
        height: 60px;
    }
    
    .container.fullscreen .timer-controls button svg {
        width: 24px;
        height: 24px;
    }
    
    .container.fullscreen .progress-bar {
        width: 80%;
        height: 4px;
    }
    
    /* Focus mode mobile optimization */
    .container.focus-mode .timer {
        font-size: 3.5rem;
        margin-bottom: 1.5rem;
    }
    
    .container.focus-mode .timer-controls {
        transform: scale(1.1);
        margin-bottom: 2rem;
    }
    
    .container.focus-mode .progress-bar {
        width: 85%;
        height: 8px;
    }
    
    /* Touch-friendly interactions */
    .control-btn,
    .blurting-btn,
    .music-control-btn {
        -webkit-tap-highlight-color: rgba(255, 255, 255, 0.1);
        touch-action: manipulation;
    }
    
    /* Prevent zoom on input focus */
    input[type="text"],
    input[type="number"],
    input[type="email"],
    input[type="password"],
    input[type="url"],
    input[type="date"],
    textarea,
    select {
        font-size: 16px;
        -webkit-appearance: none;
        appearance: none;
        border-radius: 8px;
    }
    
    /* Button touch targets */
    button {
        min-height: 44px;
        min-width: 44px;
        touch-action: manipulation;
    }
    
    /* Scroll behavior */
    .modal-body,
    .log-content,
    .playlist-body {
        -webkit-overflow-scrolling: touch;
    }
}

/* Extra small devices (phones in portrait) */
@media (max-width: 480px) {
    body {
        padding: 5px;
    }
    
    .container {
        padding: 0 5px;
    }
    
    .timer {
        font-size: 2rem;
    }
    
    .timer-controls {
        gap: 6px;
    }
    
    .control-btn {
        padding: 10px;
        min-width: 44px;
        min-height: 44px;
    }
    
    .control-btn svg {
        width: 18px;
        height: 18px;
    }
    
    .blurting-btn {
        width: 40px;
        height: 40px;
    }
    
    .blurting-btn svg {
        width: 18px;
        height: 18px;
    }
    
    .modal-content {
        width: 98%;
        margin: 2% auto;
    }
    
    .modal-header,
    .modal-body {
        padding: 12px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .chart-container {
        padding: 12px;
    }
    
    .chart-container h3 {
        font-size: 14px;
    }
    
    .music-player {
        bottom: 5px;
        right: 5px;
        left: 5px;
    }
    
    .music-player-content {
        padding: 10px;
    }
    
    .music-cover img,
    .default-cover {
        width: 60px;
        height: 60px;
    }
    
    .music-control-btn {
        width: 32px;
        height: 32px;
    }
    
    .play-pause-btn {
        width: 40px;
        height: 40px;
    }
    
    .music-control-btn svg {
        width: 14px;
        height: 14px;
    }
    
    .play-pause-btn svg {
        width: 18px;
        height: 18px;
    }
    
    .container.fullscreen .timer {
        font-size: 2.5rem;
    }
    
    .container.fullscreen .timer-controls button {
        width: 50px;
        height: 50px;
    }
    
    .container.fullscreen .timer-controls button svg {
        width: 20px;
        height: 20px;
    }
    
    .container.focus-mode .timer {
        font-size: 3rem;
    }
}

/* Landscape orientation optimizations */
@media (max-width: 768px) and (orientation: landscape) {
    .timer {
        font-size: 2rem;
        margin: 5px 0;
    }
    
    .timer-controls {
        margin-bottom: 10px;
    }
    
    .progress-bar {
        width: 70%;
        height: 4px;
        margin: 10px auto;
    }
    
    .heatmap-container {
        padding: 10px;
        margin-top: 10px;
    }
    
    .blurting-section {
        margin-top: 15px;
        gap: 10px;
    }
    
    .modal-content {
        max-height: 95vh;
    }
    
    .music-player {
        bottom: 5px;
        right: 5px;
        left: 5px;
        width: auto;
    }
    
    .music-player-content {
        padding: 8px;
        flex-direction: row;
        align-items: center;
        gap: 10px;
    }
    
    .music-cover {
        margin-bottom: 0;
        margin-right: 10px;
    }
    
    .music-cover img,
    .default-cover {
        width: 50px;
        height: 50px;
    }
    
    .music-info {
        margin-bottom: 0;
        text-align: left;
        flex: 1;
    }
    
    .music-controls {
        margin: 0;
    }
    
    .music-progress {
        margin: 0;
    }
    
    .container.fullscreen .timer {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }
    
    .container.fullscreen .timer-controls {
        margin-bottom: 1rem;
    }
    
    .container.focus-mode .timer {
        font-size: 2.8rem;
        margin-bottom: 1rem;
    }
    
    .container.focus-mode .timer-controls {
        margin-bottom: 1rem;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .control-btn svg,
    .blurting-btn svg,
    .music-control-btn svg {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Dark mode support for mobile */
@media (prefers-color-scheme: dark) {
    body {
        background-color: var(--background-color);
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .cursor-trail {
        display: none;
    }
}

/* Mobile device specific styles */
body.mobile-device {
    padding-top: env(safe-area-inset-top, 0px);
    padding-bottom: env(safe-area-inset-bottom, 0px);
    padding-left: env(safe-area-inset-left, 0px);
    padding-right: env(safe-area-inset-right, 0px);
}

body.mobile-device .container {
    padding-top: 20px;
}

body.mobile-device .timer-controls {
    margin-top: 10px;
}

body.mobile-device .main-timer-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

body.mobile-device .timer {
    font-size: 3rem;
    margin: 20px 0;
}

body.mobile-device .progress-bar {
    width: 100%;
    max-width: 300px;
}

body.mobile-device .screen-rotation-icon {
    display: block !important;
    margin: 20px 0;
}

/* Mobile-specific improvements */
@media (max-width: 768px) {
    /* Ensure proper spacing for mobile devices */
    body.mobile-device .main-timer-section {
        margin-bottom: 30px;
    }
    
    body.mobile-device .heatmap-container {
        margin-bottom: 20px;
    }
    
    body.mobile-device .blurting-section {
        margin-bottom: 20px;
    }
    
    /* Improve modal positioning on mobile */
    body.mobile-device .modal {
        padding: env(safe-area-inset-top, 0px) env(safe-area-inset-right, 0px) env(safe-area-inset-bottom, 0px) env(safe-area-inset-left, 0px);
    }
    
    /* Music player mobile positioning */
    body.mobile-device .music-player {
        bottom: calc(10px + env(safe-area-inset-bottom, 0px));
        right: calc(10px + env(safe-area-inset-right, 0px));
        left: calc(10px + env(safe-area-inset-left, 0px));
    }
    
    /* Fullscreen mode mobile adjustments */
    body.mobile-device .container.fullscreen {
        padding: env(safe-area-inset-top, 0px) env(safe-area-inset-right, 0px) env(safe-area-inset-bottom, 0px) env(safe-area-inset-left, 0px);
    }
    
    /* Focus mode mobile adjustments */
    body.mobile-device .container.focus-mode {
        padding: env(safe-area-inset-top, 0px) env(safe-area-inset-right, 0px) env(safe-area-inset-bottom, 0px) env(safe-area-inset-left, 0px);
    }
}

/* iOS specific fixes */
@supports (-webkit-touch-callout: none) {
    body.mobile-device {
        -webkit-overflow-scrolling: touch;
    }
    
    body.mobile-device .modal-body,
    body.mobile-device .log-content,
    body.mobile-device .playlist-body {
        -webkit-overflow-scrolling: touch;
    }
    
    /* Fix iOS input zoom */
    body.mobile-device input[type="text"],
    body.mobile-device input[type="number"],
    body.mobile-device input[type="email"],
    body.mobile-device input[type="password"],
    body.mobile-device input[type="url"],
    body.mobile-device input[type="date"],
    body.mobile-device textarea,
    body.mobile-device select {
        font-size: 16px;
        transform: translateZ(0);
    }
}

/* Android specific fixes */
@media screen and (-webkit-min-device-pixel-ratio: 0) and (min-resolution: 0.001dpcm) {
    body.mobile-device {
        -webkit-text-size-adjust: 100%;
    }
    
    body.mobile-device input,
    body.mobile-device textarea,
    body.mobile-device select {
        -webkit-appearance: none;
        appearance: none;
        border-radius: 8px;
    }
}

/* Floating Action Button (FAB) Menu Styles */
.fab-menu {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 15px;
}

.fab-main-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #000000;
    border: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.fab-main-btn:hover {
    transform: scale(1.05);
    background: #1a1a1a;
    border-color: rgba(255, 255, 255, 0.3);
}

.fab-main-btn:active {
    transform: scale(0.95);
}

.fab-main-btn.active {
    background: #333333;
    transform: rotate(45deg);
    border-color: rgba(255, 255, 255, 0.4);
}

.fab-main-icon,
.fab-close-icon {
    transition: all 0.3s ease;
    position: absolute;
}

.fab-close-icon {
    opacity: 0;
    transform: rotate(-45deg);
}

.fab-main-btn.active .fab-main-icon {
    opacity: 0;
    transform: rotate(-45deg);
}

.fab-main-btn.active .fab-close-icon {
    opacity: 1;
    transform: rotate(0deg);
}

.fab-menu-items {
    display: flex;
    flex-direction: column;
    gap: 12px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.8);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.fab-menu-items.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    pointer-events: all;
}

.fab-menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #000000;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    padding: 12px 16px;
    color: white;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: none;
    box-shadow: none;
    min-width: 120px;
    justify-content: flex-start;
    transform: translateX(20px);
    opacity: 0;
}

.fab-menu-items.active .fab-menu-item {
    transform: translateX(0);
    opacity: 1;
}

.fab-menu-items.active .fab-menu-item:nth-child(1) {
    transition-delay: 0.05s;
}

.fab-menu-items.active .fab-menu-item:nth-child(2) {
    transition-delay: 0.1s;
}

.fab-menu-items.active .fab-menu-item:nth-child(3) {
    transition-delay: 0.15s;
}

.fab-menu-items.active .fab-menu-item:nth-child(4) {
    transition-delay: 0.2s;
}

.fab-menu-items.active .fab-menu-item:nth-child(5) {
    transition-delay: 0.25s;
}

.fab-menu-items.active .fab-menu-item:nth-child(6) {
    transition-delay: 0.3s;
}

.fab-menu-item:hover {
    background: #1a1a1a;
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateX(-5px);
}

.fab-menu-item:active {
    transform: translateX(-2px) scale(0.95);
}

.fab-menu-item svg {
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.fab-menu-item:hover svg {
    transform: scale(1.1);
}

.fab-label {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    transition: color 0.2s ease;
}

.fab-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(2px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: -1;
}

.fab-backdrop.active {
    opacity: 1;
    visibility: visible;
}

/* Mobile-specific FAB adjustments */
@media (max-width: 768px) {
    .fab-menu {
        bottom: calc(20px + env(safe-area-inset-bottom, 0px));
        right: calc(20px + env(safe-area-inset-right, 0px));
    }
    
    .fab-main-btn {
        width: 60px;
        height: 60px;
        box-shadow: none;
    }
    
    .fab-menu-item {
        min-width: 140px;
        padding: 14px 18px;
        border-radius: 30px;
    }
    
    .fab-label {
        font-size: 15px;
    }
    
    .fab-menu-item svg {
        width: 22px;
        height: 22px;
    }
}

/* Extra small devices */
@media (max-width: 480px) {
    .fab-menu {
        bottom: calc(15px + env(safe-area-inset-bottom, 0px));
        right: calc(15px + env(safe-area-inset-right, 0px));
    }
    
    .fab-main-btn {
        width: 56px;
        height: 56px;
    }
    
    .fab-menu-item {
        min-width: 130px;
        padding: 12px 16px;
    }
    
    .fab-label {
        font-size: 14px;
    }
}

/* Landscape orientation FAB adjustments */
@media (max-width: 768px) and (orientation: landscape) {
    .fab-menu {
        display: none !important;
    }
}

/* Hide FAB on desktop */
@media (min-width: 769px) {
    .fab-menu {
        display: none;
    }
}

/* Vertical Heatmap for Mobile */
@media (max-width: 768px) {
    .heatmap-container {
        width: 100%;
        max-width: 100%;
        padding: 15px;
        margin: 15px 0;
        border-radius: 12px;
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(255, 255, 255, 0.1);
        display: flex;
        flex-direction: column;
    }
    
    /* Force vertical layout for heatmap content */
    .heatmap-content {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
    }
    
    /* Ensure heatmap grid is vertical */
    .heatmap-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 8px !important;
        width: 100% !important;
    }
    
    .heatmap-header h3 {
        font-size: 18px;
        margin-bottom: 20px;
        color: white;
        font-weight: 500;
    }
    
    .heatmap-content {
        width: 100%;
    }
    
    /* Vertical heatmap grid */
    .heatmap-grid {
        display: flex;
        flex-direction: column;
        gap: 8px;
        width: 100%;
    }
    
    .heatmap-week {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 8px 12px !important;
        background: rgba(255, 255, 255, 0.03) !important;
        border-radius: 8px !important;
        border: 1px solid rgba(255, 255, 255, 0.1) !important;
        width: 100% !important;
        margin-bottom: 4px !important;
    }
    
    .heatmap-week-label {
        font-family: 'IBM Plex Mono', monospace;
        font-size: 12px;
        color: #ccc;
        min-width: 60px;
        text-align: left;
    }
    
    .heatmap-week-days {
        display: flex !important;
        gap: 4px !important;
        flex: 1 !important;
        justify-content: flex-end !important;
        align-items: center !important;
    }
    
    .heatmap-day {
        width: 12px;
        height: 12px;
        border-radius: 2px;
        background: rgba(255, 255, 255, 0.1);
        border: 1px solid rgba(255, 255, 255, 0.2);
        transition: all 0.2s ease;
    }
    
    .heatmap-day:hover {
        transform: scale(1.2);
        border-color: rgba(255, 255, 255, 0.4);
    }
    
    .heatmap-day.level-1 {
        background: rgba(0, 122, 255, 0.3);
        border-color: rgba(0, 122, 255, 0.5);
    }
    
    .heatmap-day.level-2 {
        background: rgba(0, 122, 255, 0.5);
        border-color: rgba(0, 122, 255, 0.7);
    }
    
    .heatmap-day.level-3 {
        background: rgba(0, 122, 255, 0.7);
        border-color: rgba(0, 122, 255, 0.9);
    }
    
    .heatmap-day.level-4 {
        background: rgba(0, 122, 255, 0.9);
        border-color: #007AFF;
    }
    
    .heatmap-legend {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 15px;
        margin-top: 15px;
        padding: 10px;
        background: rgba(255, 255, 255, 0.03);
        border-radius: 8px;
        border: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .heatmap-legend-item {
        display: flex;
        align-items: center;
        gap: 6px;
        font-family: 'IBM Plex Mono', monospace;
        font-size: 11px;
        color: #ccc;
    }
    
    .heatmap-legend-color {
        width: 10px;
        height: 10px;
        border-radius: 2px;
        border: 1px solid rgba(255, 255, 255, 0.2);
    }
    
    .heatmap-legend-color.level-1 {
        background: rgba(0, 122, 255, 0.3);
    }
    
    .heatmap-legend-color.level-2 {
        background: rgba(0, 122, 255, 0.5);
    }
    
    .heatmap-legend-color.level-3 {
        background: rgba(0, 122, 255, 0.7);
    }
    
    .heatmap-legend-color.level-4 {
        background: rgba(0, 122, 255, 0.9);
    }
    
    /* Screen Rotation Icon Styling */
    .screen-rotation-icon {
        display: flex;
        justify-content: center;
        align-items: center;
        margin: 20px 0;
        padding: 15px;
        background: rgba(255, 255, 255, 0.05);
        border-radius: 12px;
        border: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .screen-rotation-icon svg {
        opacity: 0.7;
        transition: opacity 0.3s ease;
    }
    
    .screen-rotation-icon:hover svg {
        opacity: 1;
    }
    
    .rotation-text {
        color: #ccc !important;
        font-family: 'IBM Plex Mono', monospace !important;
        font-size: 12px !important;
        margin-top: 8px !important;
        margin-bottom: 0 !important;
        opacity: 0.8;
        transition: opacity 0.3s ease;
    }
    
    .screen-rotation-icon:hover .rotation-text {
        opacity: 1;
    }
}

.container {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    transition: all 0.5s ease;
}

.main-timer-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

.timer-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.music-btn-container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}



/* Simple New Badge Animation */
.new-badge-simple {
    animation: gentlePulse 2s ease-in-out infinite;
}

@keyframes gentlePulse {
    0%, 100% {
        opacity: 1;
        transform: translateX(-50%) scale(1);
    }
    50% {
        opacity: 0.8;
        transform: translateX(-50%) scale(1.05);
    }
}



.container.fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #0f0f0f;
    z-index: 100;
    justify-content: center;
    align-items: center;
    animation: focusEnter 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes focusEnter {
    0% {
        opacity: 0.8;
        transform: scale(0.95);
    }
    50% {
        opacity: 0.95;
        transform: scale(0.98);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.container.fullscreen .timer-controls {
    transform: scale(1.5);
    margin-bottom: 50px;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 10;
}

.container.fullscreen .timer {
    font-size: 72px;
    margin-bottom: 30px;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 10;
}

.container.fullscreen .progress-bar {
    width: 450px;
    height: 12px;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 10;
}

.timer-controls, .timer, .progress-bar {
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.container.fullscreen .heatmap-container {
    opacity: 0;
    transform: scale(0.8) translateY(20px);
    pointer-events: none;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    position: absolute;
    z-index: -1;
}

.container.fullscreen .log-container {
    opacity: 0;
    transform: scale(0.8) translateY(20px);
}

/* Copy button styling */
.copy-btn {
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 4px !important;
    padding: 8px 12px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    color: white !important;
    font-family: 'IBM Plex Mono', monospace !important;
    font-size: 12px !important;
    min-width: 60px !important;
}

.copy-btn:hover {
    background: rgba(255, 255, 255, 0.2) !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
    transform: translateY(-1px) !important;
}

.copy-btn:active {
    transform: translateY(0) !important;
}

.heatmap-container, .log-container {
    opacity: 1;
    transform: scale(1) translateY(0);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.timer-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}

.control-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    border-radius: 50%;
    transition: background-color 0.2s;
    color: var(--text-color);
}

.control-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.timer {
    font-size: 48px;
    font-weight: 400;
    font-family: 'IBM Plex Mono', monospace;
    min-width: 120px;
    cursor: pointer;
    user-select: none;
    color: var(--text-color);
    transition: all 0.2s ease;
}

.timer:hover {
    color: #ccc;
    transform: scale(1.02);
}

.timer:active {
    transform: scale(0.98);
}

.progress-bar {
    width: 300px;
    height: 8px;
    background-color: #333;
    border-radius: 4px;
    margin: 0 auto 30px;
}

.heatmap-container {
    margin-top: 20px;
    padding: 20px;
    border-radius: 8px;
    width: 800px;
    text-align: center;
    overflow: visible;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #0f0f0f;
}

.heatmap-header {
    width: 100%;
    text-align: center;
    margin-bottom: 15px;
}

.heatmap-content {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}



/* IBM Plex Mono specific improvements */
input, button, textarea {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 14px;
}

.control-btn svg {
    transition: transform 0.2s ease;
}

.control-btn:hover svg {
    transform: scale(1.1);
}

/* Header and logout styles */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    margin-bottom: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.user-info {
    display: flex;
    align-items: center;
}

.header-buttons {
    display: flex;
    gap: 10px;
    align-items: center;
}

.refresh-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.refresh-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.refresh-btn:active {
    transform: translateY(0);
}

.logout-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logout-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.logout-btn:active {
    transform: translateY(0);
}

/* Modal Styles */
.modal {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: #1a1a1a;
    border: 1px solid #333;
    border-radius: 8px;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #333;
}

.close-btn {
    background: none;
    border: none;
    color: #ccc;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.close-btn:hover {
    background-color: #333;
    color: white;
    transform: scale(1.1);
}

/* Special styling for shortcuts help modal close button */
#shortcutsHelpModal .shortcut-close-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 20px;
    font-weight: bold;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    transition: all 0.3s ease;
    cursor: pointer;
}

#shortcutsHelpModal .shortcut-close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    color: #fff;
}

.modal-body {
    padding: 20px;
}

.setting-group {
    margin-bottom: 20px;
}

.setting-group label {
    font-weight: 500;
    margin-bottom: 8px;
}

.setting-group input,
.setting-group select {
    transition: border-color 0.2s;
}

.setting-group input:focus,
.setting-group select:focus {
    outline: none;
    border-color: #666;
}

#saveSettings:hover {
    background-color: #777;
}

/* Analytics Modal Specific Styles */
#analyticsModal .modal-content {
    max-width: 1200px;
    max-height: 90vh;
    overflow-y: auto;
}

/* Settings Modal Specific Styles */
#settingsModal .modal-content {
    max-width: 500px;
    width: 90%;
}

/* Edit Session Modal Specific Styles */
#editSessionModal .modal-content {
    max-width: 600px;
    width: 90%;
}

/* Account Modal Specific Styles */
#accountModal .modal-content {
    max-width: 400px;
    width: 90%;
}

/* Account Action Buttons */
.account-actions-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.account-actions-buttons button {
    flex: 1;
    padding: 12px 20px;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 14px;
    font-weight: 500;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: white;
}

.account-actions-buttons .logout-btn {
    background: #4b4b4b;
}

.account-actions-buttons .logout-btn:hover {
    background: #4a4a4a;
}

.account-actions-buttons .delete-account-btn {
    background: #dc3545;
}

.account-actions-buttons .delete-account-btn:hover {
    background: #c82333;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

/* Pomodoro Timer Display */
#timer.pomodoro-mode {
    text-align: center;
    line-height: 1.2;
}

#timer.pomodoro-mode .pomodoro-phase {
    font-size: 0.8em;
    color: #888;
    margin-bottom: 5px;
    font-family: 'IBM Plex Mono', monospace;
}

#timer.pomodoro-mode .pomodoro-time {
    font-size: 1.2em;
    font-weight: bold;
}

/* Pomodoro Progress Bar Colors */
.progress-bar.pomodoro-study {
    background: linear-gradient(to right, #ff9800 var(--progress), #333 var(--progress));
}

.progress-bar.pomodoro-break {
    background: linear-gradient(to right, #4CAF50 var(--progress), #333 var(--progress));
}

.progress-bar.pomodoro-long-break {
    background: linear-gradient(to right, #2196F3 var(--progress), #333 var(--progress));
}

/* Fullscreen Timer Mode */
.container.fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #1a1a1a;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    text-align: center;
    box-sizing: border-box;
}

.container.fullscreen .timer {
    font-size: 4rem;
    font-weight: 300;
    text-align: center;
    margin-bottom: 2rem;
    color: white;
    font-family: 'IBM Plex Mono', monospace;
    line-height: 1;
    margin-left: 0;
    margin-right: 0;
    padding: 0;
}

.container.fullscreen .timer-controls {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    align-items: center;
    position: relative;
    width: auto;
    margin: 0;
    flex-wrap: nowrap;
}

.container.fullscreen .timer-controls button {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #333;
    position: relative;
    margin: 0;
    padding: 0;
    line-height: 1;
    vertical-align: middle;
    flex-shrink: 0;
    flex-grow: 0;
}

.container.fullscreen .timer-controls button svg {
    width: 24px;
    height: 24px;
    color: white;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin: 0;
    padding: 0;
    display: block;
    pointer-events: none;
}



/* Ensure buttons are perfectly aligned horizontally */
.container.fullscreen .timer-controls button {
    flex: 0 0 70px;
    height: 70px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #333;
    position: relative;
    top: 0;
    left: 0;
    margin: 0;
    padding: 0;
    line-height: 1;
    vertical-align: middle;
}

.container.fullscreen .play-btn {
    background: #4CAF50;
}

.container.fullscreen .play-btn:hover {
    background: #45a049;
    transform: scale(1.05);
}

.container.fullscreen .pause-btn {
    background: #ff9800;
}

.container.fullscreen .pause-btn:hover {
    background: #f57c00;
    transform: scale(1.05);
}

.container.fullscreen .progress-bar {
    width: 40%;
    height: 3px;
    background: #333;
    border-radius: 2px;
    margin-top: 1.5rem;
    margin-left: auto;
    margin-right: auto;
    overflow: hidden;
}

.container.fullscreen .progress-bar::before {
    content: '';
    display: block;
    height: 100%;
    background: #4CAF50;
    transition: width 0.3s ease;
    width: var(--progress, 0%);
}

/* Fullscreen mode - minimal design */
.container.fullscreen {
    overflow: hidden;
}

/* Ensure timer controls are properly sized in fullscreen */
.container.fullscreen .timer-controls button svg {
    width: 28px;
    height: 28px;
    color: white;
}

/* Responsive fullscreen for smaller screens */
@media (max-width: 768px) {
    .container.fullscreen .timer {
        font-size: 2.5rem;
        margin-bottom: 1.5rem;
    }
    
    .container.fullscreen .timer-controls {
        gap: 1rem;
    }
    
    .container.fullscreen .timer-controls button {
        width: 50px;
        height: 50px;
    }
    
    .container.fullscreen .timer-controls button svg {
        width: 20px;
        height: 20px;
    }
    
    .container.fullscreen .progress-bar {
        width: 70%;
        height: 2px;
    }
}

/* Responsive design for account action buttons */
@media (max-width: 600px) {
    .account-actions-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .account-actions-buttons button {
        width: 100%;
    }
}

/* Delete Account Button Styles */
.delete-account-btn {
    background: #dc3545 !important;
    border: 2px solid #dc3545 !important;
    transition: all 0.3s ease !important;
}

.delete-account-btn:hover {
    background: #c82333 !important;
    border-color: #c82333 !important;
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

.delete-account-btn:active {
    transform: translateY(0);
}

/* Basic Analytics Side by Side */
.basic-analytics-side-by-side {
    display: flex;
    gap: 40px;
    margin-bottom: 20px;
}

.analytics-text-column {
    flex: 1;
}

/* Toggle Analytics Button */
.toggle-analytics-btn {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.2), rgba(76, 175, 80, 0.1));
    border: 2px solid rgba(76, 175, 80, 0.5);
    border-radius: 25px;
    color: #4CAF50;
    padding: 15px 30px;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;

}

.toggle-analytics-btn:hover {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.3), rgba(76, 175, 80, 0.2));
    border-color: rgba(76, 175, 80, 0.7);
}

.toggle-analytics-btn:active {
    transform: translateY(0);
}

.toggle-analytics-btn.expanded {
    background: linear-gradient(135deg, rgba(244, 67, 54, 0.2), rgba(244, 67, 54, 0.1));
    border-color: rgba(244, 67, 54, 0.5);
    color: #f44336;
    box-shadow: 0 4px 15px rgba(244, 67, 54, 0.2);
}

.toggle-analytics-btn.expanded:hover {
    background: linear-gradient(135deg, rgba(244, 67, 54, 0.3), rgba(244, 67, 54, 0.2));
    border-color: rgba(244, 67, 54, 0.7);
    box-shadow: 0 6px 20px rgba(244, 67, 54, 0.3);
}

.toggle-icon {
    font-size: 18px;
    transition: transform 0.3s ease;
}

.toggle-analytics-btn:hover .toggle-icon {
    transform: scale(1.1);
}

.toggle-text {
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* PWA Install Button */
#installAppBtn {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

/* Timer paused state */
.timer-controls.paused .timer {
    opacity: 0.7;
    color: #888;
}

.timer-controls.paused .control-btn:not(#pauseBtn) {
    opacity: 0.5;
}

#installAppBtn:hover {
    background: #45a049 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

#installAppBtn:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(76, 175, 80, 0.3);
}

#installAppGroup {
    border-top: 1px solid #444;
    padding-top: 20px;
    margin-top: 20px;
}



/* Log Container Styles */
.log-container {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 8px;
    overflow: hidden;
}

.log-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: #222;
    border-bottom: 1px solid #333;
}

.log-filters {
    display: flex;
    gap: 10px;
    align-items: center;
}

.log-content {
    max-height: 500px;
    overflow-y: auto;
    padding: 0;
}

.log-entry {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 15px 20px;
    border-bottom: 1px solid #333;
    transition: background-color 0.2s ease;
}

.log-entry:hover {
    background: #222;
}

.log-entry:last-child {
    border-bottom: none;
}

.log-entry-info {
    flex: 1;
    text-align: left;
}

.log-entry-date {
    font-weight: 600;
    color: #fff;
    margin-bottom: 5px;
    font-family: 'IBM Plex Mono', monospace;
}

.log-entry-duration {
    color: #ccc;
    font-size: 14px;
    font-family: 'IBM Plex Mono', monospace;
}

.log-entry-time {
    color: #888;
    font-size: 12px;
    font-family: 'IBM Plex Mono', monospace;
}

.log-entry-description {
    color: #fff;
    font-size: 14px;
    margin-top: 8px;
    font-family: 'IBM Plex Mono', monospace;
    font-style: italic;
}

.log-entry-notes {
    color: #ccc;
    font-size: 13px;
    margin-top: 6px;
    font-family: 'IBM Plex Mono', monospace;
    white-space: pre-wrap;
    max-width: 400px;
}

.log-entry-image {
    margin-top: 8px;
}

.log-entry-actions {
    display: flex;
    gap: 8px;
}

.log-entry-actions button {
    padding: 4px 8px;
    background: #333;
    color: #ccc;
    border: 1px solid #555;
    border-radius: 4px;
    cursor: pointer;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 11px;
    transition: all 0.2s ease;
}

.log-entry-actions button:hover {
    background: #444;
    color: white;
}

.log-entry-actions button.delete-session-btn {
    background: #5a1a1a;
    border-color: #7a2a2a;
}

.log-entry-actions button.delete-session-btn:hover {
    background: #7a2a2a;
}

.empty-log {
    text-align: center;
    padding: 40px 20px;
    color: #666;
    font-family: 'IBM Plex Mono', monospace;
}

.empty-log svg {
    width: 48px;
    height: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}



/* Shortcuts Help Modal */
.shortcuts-help-content {
    max-width: 600px;
    width: 90%;
    margin: 0 auto;
    position: relative;
}

.shortcuts-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    margin: 20px 0;
}

.shortcut-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.shortcut-item kbd {
    background: #333;
    border: 1px solid #666;
    border-radius: 4px;
    padding: 8px 12px;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 12px;
    color: #fff;
    min-width: 60px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.shortcut-item span {
    font-family: 'IBM Plex Mono', monospace;
    color: #fff;
    font-size: 14px;
}



/* Responsive shortcuts grid */
@media (min-width: 768px) {
    .shortcuts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Ensure shortcuts help modal is perfectly centered */
#shortcutsHelpModal .modal-content {
    margin: auto;
    max-height: 90vh;
    overflow-y: auto;
}

#shortcutsHelpModal .modal-content {
    margin: auto;
    margin-top: 100px;
    max-height: 90vh;
    overflow-y: auto;
}

/* Detailed Analytics Styles */
#detailedAnalyticsSection {
    margin-top: 50px;
    padding: 30px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.chart-container {
    margin-bottom: 40px;
    background: rgba(255, 255, 255, 0.05);
    padding: 25px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.chart-container:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.chart-container h3 {
    color: white;
    font-family: 'IBM Plex Mono', monospace;
    margin-bottom: 20px;
    font-size: 18px;
    text-align: center;
    border-bottom: 2px solid rgba(76, 175, 80, 0.5);
    padding-bottom: 10px;
}

.chart-container canvas {
    max-height: 300px;
    margin: 0 auto;
    display: block;
}

.analytics-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 30px;
}

.chart-container.full-width {
    grid-column: 1 / -1;
}

.chart-container.half-width {
    grid-column: span 1;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.stat-card h4 {
    color: #4CAF50;
    margin: 0 0 10px 0;
    font-size: 16px;
}

.stat-card .value {
    color: white;
    font-size: 24px;
    font-weight: bold;
    margin: 0;
}



/* Responsive chart containers */
@media (max-width: 768px) {
    .chart-container {
        padding: 20px 15px;
        margin-bottom: 30px;
    }
    
    .chart-container h3 {
        font-size: 16px;
    }
    
    #detailedAnalyticsSection {
        padding: 20px 15px;
        margin-top: 30px;
    }
    
    .analytics-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .basic-analytics-side-by-side {
        flex-direction: column;
        gap: 20px;
    }
    
    .toggle-analytics-btn {
        padding: 12px 24px;
        font-size: 13px;
    }
}

@media (max-width: 1200px) {
    .analytics-grid {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }
}









/* Blurting Method Button Styles */
.blurting-section {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.blurting-btn {
    width: 50px;
    height: 50px;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #0f0f0f;
    border: 0.2px solid #333;
    margin: 0;
    position: relative;
}

.blurting-btn:hover {
    background: #2f2f2f;
    transform: scale(1.05);
}

.blurting-btn svg {
    width: 24px;
    height: 24px;
}

.blurting-btn .tooltip {
    position: absolute;
    bottom: -35px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    z-index: 1000;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.blurting-btn .tooltip::before {
    content: '';
    position: absolute;
    top: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-bottom: 5px solid rgba(0, 0, 0, 0.9);
}

.blurting-btn:hover .tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-5px);
}

/* Focus Mode - Hide study icons when timer is running */
.container.focus-mode .blurting-section {
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.container.focus-mode .heatmap-container {
    opacity: 0;
    transform: scale(0.9) translateY(20px);
    pointer-events: none;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Enhanced timer in focus mode */
.container.focus-mode .timer {
    font-size: 5rem;
    font-weight: 300;
    margin-bottom: 2rem;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.container.focus-mode .timer-controls {
    transform: scale(1.2);
    margin-bottom: 3rem;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.container.focus-mode .progress-bar {
    width: 500px;
    height: 12px;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Focus mode background effect */
.container.focus-mode {
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.05) 0%, rgba(0, 0, 0, 0.8) 100%);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Log Focus Mode - Only hide study icons without affecting timer */
.container.log-focus-mode .blurting-section {
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Responsive Design for Blurting */
@media (max-width: 768px) {
    .blurting-modal .modal-content {
        width: 95vw;
        height: 95vh;
    }
    
    .blurting-btn .tooltip {
        font-size: 11px;
        padding: 5px 10px;
        bottom: -30px;
    }
    
    .container.focus-mode .timer {
        font-size: 3rem;
    }
    
    .container.focus-mode .timer-controls {
        transform: scale(1.1);
    }
    
    .container.focus-mode .progress-bar {
        width: 80%;
    }
    
    .container.log-focus-mode .blurting-section {
        opacity: 0;
        transform: translateY(15px);
    }
}

.note-header {
    flex-direction: column;
    align-items: stretch;
}
    
    .note-title-input {
        min-width: auto;
    }
    
    .note-tools {
        justify-content: center;
    }
    
    .blurting-controls {
        flex-direction: column;
        align-items: center;
    }
    
    .note-actions {
        flex-direction: column;
        align-items: center;
    }


/* Blurting Page Styles */
.blurting-page {
    background: black;
    color: white;
    min-height: 100vh;
}

.back-btn {
    position: fixed;
    top: 20px;
    left: 20px;
    background: transparent;
    color: white;
    border: 0.2px solid #333;
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-family: inherit;
    font-size: 14px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    z-index: 100;
}

.back-btn:hover {
    border-color: #666;
    background: rgba(255, 255, 255, 0.02);
}

.notes-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    margin-top: 80px;
}

.notes-list {
    margin-bottom: 30px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
}

.note-item {
    background: transparent;
    border: 0.2px solid #333;
    border-radius: 8px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.note-item:hover {
    border-color: #666;
    background: rgba(255, 255, 255, 0.02);
}

.note-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: white;
    text-align: left;
}

.note-date {
    font-size: 0.9rem;
    color: #999;
    font-weight: 300;
    text-align: left;
}

.note-actions {
    position: absolute;
    top: 15px;
    right: 15px;
    display: flex;
    gap: 10px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.note-item:hover .note-actions {
    opacity: 1;
}

.action-btn {
    background: transparent;
    border: 0.2px solid #333;
    color: #999;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.action-btn:hover {
    border-color: #666;
    color: white;
}

.action-btn.delete {
    border-color: #ff4444;
    color: #ff4444;
}

.action-btn.delete:hover {
    background: #ff4444;
    color: white;
}

.new-note-btn {
    width: 100%;
    background: transparent;
    border: 0.2px solid #333;
    color: white;
    padding: 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    font-weight: 400;
    margin-bottom: 30px;
    text-align: center;
}

.new-note-btn:hover {
    border-color: #666;
    background: rgba(255, 255, 255, 0.02);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: black;
    border: 0.2px solid #333;
    border-radius: 12px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.modal-header {
    padding: 20px 25px;
    border-bottom: 0.2px solid #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 400;
    color: white;
}

.close-btn {
    background: transparent;
    border: none;
    color: #999;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease;
}

.close-btn:hover {
    color: white;
}

.modal-body {
    padding: 25px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: white;
    font-weight: 400;
}

.form-group input,
.form-group textarea {
    width: 100%;
    background: transparent;
    border: 0.2px solid #333;
    border-radius: 6px;
    padding: 12px 15px;
    color: white;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #666;
}

.form-group textarea {
    min-height: 200px;
    resize: vertical;
    line-height: 1.6;
}

.formula-help {
    margin-top: 25px;
    padding: 20px;
    border: 0.2px solid #333;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.02);
}

.formula-help h4 {
    margin: 0 0 15px 0;
    color: white;
    font-weight: 400;
    font-size: 1rem;
}

.formula-examples {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.formula-btn {
    background: transparent;
    border: 0.2px solid #333;
    color: #999;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    font-family: inherit;
}

.formula-btn:hover {
    border-color: #666;
    color: white;
    background: rgba(255, 255, 255, 0.02);
}

.modal-footer {
    padding: 20px 25px;
    border-top: 0.2px solid #333;
    display: flex;
    justify-content: flex-end;
    gap: 15px;
}

.btn {
    padding: 10px 20px;
    border: 0.2px solid #333;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 400;
    transition: all 0.3s ease;
    font-family: inherit;
}

.btn-secondary {
    background: transparent;
    color: #999;
}

.btn-secondary:hover {
    border-color: #666;
    color: white;
}

.btn-primary {
    background: white;
    color: black;
    border-color: white;
}

.btn-primary:hover {
    background: #f0f0f0;
}

.btn-danger {
    background: transparent;
    color: #ff4444;
    border-color: #ff4444;
}

.btn-danger:hover {
    background: #ff4444;
    color: white;
}

.delete-modal .modal-content {
    max-width: 500px;
}

.delete-modal .modal-body p {
    margin: 0 0 10px 0;
    color: #999;
    line-height: 1.5;
}

.delete-modal .modal-body p:first-child {
    color: white;
    font-weight: 500;
}

/* MathJax Styling */
.MathJax {
    color: white !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .notes-container {
        max-width: 100%;
        padding: 0 15px;
        margin-top: 70px;
    }
    
    .notes-list {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .note-item {
        min-height: 100px;
        padding: 15px;
    }
    
    .modal-content {
        width: 95%;
        margin: 20px;
    }
    
    .modal-header,
    .modal-body,
    .modal-footer {
        padding: 20px;
    }
    
    .formula-examples {
        flex-direction: column;
    }
    
    .formula-btn {
        text-align: center;
    }
    
    .modal-footer {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
    
    .new-note-btn {
        padding: 15px;
        font-size: 1rem;
        margin-bottom: 20px;
    }
}

/* Preview Modal Styles */
.preview-modal .modal-content {
    max-width: 900px;
    max-height: 80vh;
}

.note-preview-content {
    color: white;
    line-height: 1.8;
    font-size: 1rem;
}

.note-preview-content h1,
.note-preview-content h2,
.note-preview-content h3,
.note-preview-content h4,
.note-preview-content h5,
.note-preview-content h6 {
    color: white;
    margin: 20px 0 10px 0;
    font-weight: 600;
}

.note-preview-content h1 { font-size: 1.8rem; }
.note-preview-content h2 { font-size: 1.6rem; }
.note-preview-content h3 { font-size: 1.4rem; }
.note-preview-content h4 { font-size: 1.2rem; }

.note-preview-content p {
    margin: 15px 0;
    color: #e0e0e0;
}

.note-preview-content ul,
.note-preview-content ol {
    margin: 15px 0;
    padding-left: 25px;
    color: #e0e0e0;
}

.note-preview-content li {
    margin: 8px 0;
}

.note-preview-content blockquote {
    border-left: 3px solid #666;
    margin: 20px 0;
    padding-left: 20px;
    color: #ccc;
    font-style: italic;
}

.note-preview-content code {
    background: rgba(255, 255, 255, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    color: #fff;
}

.note-preview-content pre {
    background: rgba(255, 255, 255, 0.05);
    padding: 15px;
    border-radius: 6px;
    overflow-x: auto;
    border: 0.2px solid #333;
}

.note-preview-content pre code {
    background: none;
    padding: 0;
}

/* MathJax Styling for Preview */
.note-preview-content .MathJax {
    color: white !important;
    margin: 10px 0;
}

.note-preview-content .MathJax_Display {
    margin: 20px 0;
}

.note-preview-content .MathJax_Display .MathJax {
    margin: 0;
}

/* Active Recall Page Styles */
.active-recall-page {
    background: black;
    color: white;
    min-height: 100vh;
}

.active-recall-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
    margin-top: 80px;
    text-align: center;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 300;
    margin-bottom: 20px;
    color: white;
}

.page-description {
    font-size: 1.1rem;
    color: #999;
    margin-bottom: 60px;
    line-height: 1.6;
}

/* Flashcard Tabs */
.flashcard-tabs {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    display: flex;
    justify-content: center;
    gap: 10px;
    background: rgba(30, 30, 30, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid #333;
    border-radius: 12px;
    padding: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.tab-btn {
    background: transparent;
    border: none;
    color: #666;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.tab-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

.tab-btn.active {
    color: #fff;
    background: rgba(255, 255, 255, 0.15);
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -21px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 2px;
    background: #007AFF;
    border-radius: 1px;
}

/* Tab Content */
.tab-content {
    display: none;
    text-align: left;
    margin-top: 80px;
    padding-top: 20px;
}

.tab-content.active {
    display: block;
}

/* Deck Controls */
.deck-controls {
    margin-bottom: 30px;
    text-align: center;
}

/* Decks Grid */
.decks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.deck-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid #333;
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.deck-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: #555;
    transform: translateY(-2px);
}

.deck-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.deck-header h3 {
    font-size: 1.3rem;
    font-weight: 500;
    color: white;
    margin: 0;
    flex: 1;
}

.deck-actions {
    display: flex;
    gap: 8px;
}

.btn-icon {
    background: transparent;
    border: none;
    color: #666;
    padding: 6px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-icon:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
}

.deck-description {
    color: #999;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 20px;
    min-height: 40px;
}

.deck-stats {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    font-size: 12px;
    color: #666;
}

.deck-buttons {
    display: flex;
    gap: 10px;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.empty-icon {
    margin-bottom: 20px;
    color: #444;
}

.empty-state h3 {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 10px;
    color: #999;
}

.empty-state p {
    font-size: 1rem;
    line-height: 1.6;
}

/* Loading State */
.loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 20px;
    color: #666;
    min-height: 300px;
    width: 100%;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top: 3px solid #007AFF;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-state p {
    font-size: 1rem;
    color: #999;
    margin: 0;
    font-weight: 400;
}

/* Database Setup Message */
.database-setup-message {
    text-align: center;
    padding: 60px 40px;
    color: #fff;
    background: rgba(255, 149, 0, 0.1);
    border: 1px solid rgba(255, 149, 0, 0.3);
    border-radius: 12px;
    margin: 20px;
}

.setup-icon {
    margin-bottom: 20px;
}

.database-setup-message h3 {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 15px;
    color: #FF9500;
}

.database-setup-message p {
    font-size: 1rem;
    color: #ccc;
    margin-bottom: 25px;
    line-height: 1.6;
}

.setup-steps {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 20px;
    margin: 25px 0;
    text-align: left;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.setup-steps ol {
    margin: 0;
    padding-left: 20px;
}

.setup-steps li {
    font-size: 0.95rem;
    color: #ddd;
    margin-bottom: 10px;
    line-height: 1.5;
}

.setup-steps code {
    background: rgba(255, 255, 255, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.9rem;
    color: #00C6FF;
}

/* Review Controls */
.review-controls {
    position: fixed;
    top: 140px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 999;
    background: rgba(30, 30, 30, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid #333;
    border-radius: 12px;
    padding: 16px;
    display: flex;
    gap: 12px;
    align-items: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    flex-wrap: wrap;
    justify-content: center;
    max-width: 90vw;
}

.form-select {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid #333;
    border-radius: 8px;
    color: white;
    padding: 12px 16px;
    font-size: 14px;
    min-width: 200px;
}

.form-select:focus {
    outline: none;
    border-color: #007AFF;
}

.form-select option {
    background: #1a1a1a;
    color: white;
}

/* Review Session */
.review-session {
    width: 100%;
    max-width: 800px;
    margin: 120px auto 0;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: calc(100vh - 200px);
    justify-content: center;
}

.progress-info {
    width: 100%;
    margin-bottom: 30px;
    text-align: center;
}

.progress-info span {
    display: block;
    margin-bottom: 10px;
    color: #999;
    font-size: 14px;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: #007AFF;
    border-radius: 3px;
    transition: width 0.3s ease;
    width: 0%;
}

/* Flashcard */
.flashcard {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid #333;
    border-radius: 20px;
    padding: 60px;
    margin: 30px 0;
    min-height: 400px;
    width: 100%;
    max-width: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.3s ease;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    cursor: pointer;
}

.flashcard:hover {
    border-color: #666;
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.card-front, .card-back {
    text-align: center;
    width: 100%;
    position: relative;
}

.card-front::after {
    content: "Click to reveal answer";
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.9rem;
    color: #888;
    opacity: 0.7;
    font-style: italic;
    white-space: nowrap;
}

.card-front.hide-hint::after {
    display: none;
}

.card-content {
    font-size: 1.4rem;
    line-height: 1.8;
    color: white;
    word-wrap: break-word;
    font-weight: 400;
    text-align: center;
}

.card-back {
    color: #00C6FF;
}

.card-back::after {
    display: none;
}

/* Card Controls */
.card-controls {
    text-align: center;
    margin-top: 20px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.card-controls .btn {
    min-width: 140px;
    white-space: nowrap;
}

.difficulty-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 20px;
    flex-wrap: wrap;
    width: 100%;
    max-width: 400px;
}

.btn-difficulty {
    padding: 12px 16px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    flex: 1;
    min-width: 80px;
    max-width: 90px;
}

.btn-difficulty[data-difficulty="again"] {
    background: #FF3B30;
    color: white;
}

.btn-difficulty[data-difficulty="hard"] {
    background: #FF9500;
    color: white;
}

.btn-difficulty[data-difficulty="good"] {
    background: #34C759;
    color: white;
}

.btn-difficulty[data-difficulty="easy"] {
    background: #007AFF;
    color: white;
}

.btn-difficulty:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Goal Setting Styles */
.goal-setting-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.goal-tabs {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    display: flex;
    justify-content: center;
    gap: 10px;
    background: rgba(30, 30, 30, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid #333;
    border-radius: 12px;
    padding: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.goal-tabs .tab-btn {
    padding: 10px 20px;
    background: transparent;
    border: none;
    color: #ccc;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 14px;
}

.goal-tabs .tab-btn.active {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.goal-tabs .tab-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    color: white;
}

.goal-tabs .tab-content {
    display: none;
    margin-top: 120px;
}

.goal-tabs .tab-content.active {
    display: block;
}

.goals-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.goals-header h2 {
    margin: 0;
    color: white;
    font-family: 'IBM Plex Mono', monospace;
}

.goals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(450px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.goal-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid #333;
    border-radius: 16px;
    padding: 25px;
    transition: all 0.3s ease;
    position: relative;
    min-height: 280px;
    display: flex;
    flex-direction: column;
}

.goal-card:hover {
    border-color: #555;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.goal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    flex-shrink: 0;
}

.goal-title {
    margin: 0;
    color: white;
    font-size: 1.3rem;
    font-weight: 600;
    flex: 1;
    margin-right: 15px;
    line-height: 1.4;
}

.goal-actions {
    display: flex;
    gap: 8px;
}

.action-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    padding: 6px;
    cursor: pointer;
    color: #ccc;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.action-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.action-btn.delete:hover {
    background: rgba(255, 68, 68, 0.2);
    border-color: #ff4444;
    color: #ff4444;
}

.goal-description {
    color: #ccc;
    margin-bottom: 25px;
    line-height: 1.6;
    font-size: 1rem;
    flex-grow: 1;
}

.goal-progress {
    margin-bottom: 25px;
    flex-shrink: 0;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.progress-text {
    color: #ccc;
}

.progress-percentage {
    color: #4CAF50;
    font-weight: 600;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #4CAF50, #45a049);
    transition: width 0.3s ease;
    border-radius: 4px;
}

.goal-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.update-progress-btn {
    background: rgba(76, 175, 80, 0.2);
    border: 1px solid #4CAF50;
    border-radius: 6px;
    padding: 8px 12px;
    cursor: pointer;
    color: #4CAF50;
    transition: all 0.2s ease;
    font-size: 0.8rem;
    font-weight: 500;
    margin-left: auto;
    margin-right: 10px;
}

.update-progress-btn:hover {
    background: rgba(76, 175, 80, 0.3);
    color: #66BB6A;
}

.goal-type {
    color: #888;
    background: rgba(255, 255, 255, 0.1);
    padding: 4px 8px;
    border-radius: 4px;
}

.goal-priority {
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.7rem;
}

.priority-low {
    background: rgba(76, 175, 80, 0.2);
    color: #4CAF50;
}

.priority-medium {
    background: rgba(255, 152, 0, 0.2);
    color: #FF9800;
}

.priority-high {
    background: rgba(244, 67, 54, 0.2);
    color: #f44336;
}

.goal-dates {
    color: #888;
    font-size: 0.8rem;
    margin-bottom: 15px;
    text-align: center;
    flex-shrink: 0;
}

.goal-status {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status-active {
    background: rgba(76, 175, 80, 0.2);
    color: #4CAF50;
}

.status-completed {
    background: rgba(33, 150, 243, 0.2);
    color: #2196F3;
}

.status-paused {
    background: rgba(255, 152, 0, 0.2);
    color: #FF9800;
}

.status-cancelled {
    background: rgba(244, 67, 54, 0.2);
    color: #f44336;
}

.create-goal-form {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
}

.create-goal-form h2 {
    color: white;
    margin-bottom: 30px;
    text-align: center;
    font-family: 'IBM Plex Mono', monospace;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    color: #ccc;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.checkbox-label input[type="checkbox"] {
    margin-right: 10px;
    width: 16px;
    height: 16px;
    accent-color: #4CAF50;
}

.checkbox-label:hover {
    color: white;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.progress-header h2 {
    margin: 0;
    color: white;
    font-family: 'IBM Plex Mono', monospace;
}

.progress-filters {
    display: flex;
    gap: 15px;
}

.progress-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.progress-charts {
    margin-top: 30px;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.empty-icon {
    margin-bottom: 20px;
}

.empty-state h3 {
    color: #ccc;
    margin-bottom: 10px;
}

.empty-state p {
    margin-bottom: 20px;
}

.database-setup-message {
    text-align: center;
    padding: 40px 20px;
    max-width: 600px;
    margin: 0 auto;
}

.setup-icon {
    margin-bottom: 20px;
}

.database-setup-message h3 {
    color: white;
    margin-bottom: 15px;
}

.database-setup-message p {
    color: #ccc;
    margin-bottom: 20px;
}

.setup-steps {
    text-align: left;
    margin: 20px 0;
}

.setup-steps ol {
    color: #ccc;
    line-height: 1.6;
}

.setup-steps pre {
    background: #333;
    padding: 15px;
    border-radius: 6px;
    margin: 15px 0;
    font-size: 12px;
    overflow-x: auto;
    color: #fff;
    border: 1px solid #555;
}

/* Enhanced Statistics */
.stats-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid #333;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: #4CAF50;
    transform: translateY(-2px);
}

.stat-card h3 {
    font-size: 0.9rem;
    font-weight: 500;
    color: #999;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-number {
    font-size: 2.2rem;
    font-weight: 600;
    color: #007AFF;
    margin-bottom: 5px;
    line-height: 1;
}

.stat-description {
    font-size: 0.8rem;
    color: #666;
    margin-top: 5px;
}

.stat-trend {
    font-size: 0.75rem;
    margin-top: 5px;
    padding: 2px 6px;
    border-radius: 4px;
    display: inline-block;
}

.stat-trend.positive {
    background: rgba(76, 175, 80, 0.2);
    color: #4CAF50;
}

.stat-trend.negative {
    background: rgba(244, 67, 54, 0.2);
    color: #f44336;
}

/* Charts Section */
.stats-charts {
    margin: 40px 0;
}

.chart-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.chart-container {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid #333;
    border-radius: 12px;
    padding: 25px;
    position: relative;
    min-height: 300px;
}

.chart-container h3 {
    color: #ccc;
    font-size: 1.1rem;
    margin-bottom: 20px;
    text-align: center;
    font-weight: 500;
}

.chart-container canvas {
    max-height: 250px;
}

/* Detailed Statistics */
.detailed-stats {
    margin-top: 40px;
}

.stats-section {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid #333;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
}

.stats-section h3 {
    color: #ccc;
    font-size: 1.2rem;
    margin-bottom: 20px;
    font-weight: 500;
}

/* Progress Stats */
.progress-stats {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.progress-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.progress-label {
    color: #999;
    font-size: 0.9rem;
    min-width: 120px;
}

.progress-bar {
    flex: 1;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #4CAF50, #45a049);
    transition: width 0.3s ease;
    width: 0%;
}

.progress-value {
    color: #ccc;
    font-size: 0.9rem;
    min-width: 60px;
    text-align: right;
}

.velocity-indicator {
    color: #007AFF;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Review Stats Grid */
.review-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 20px;
}

.review-stat {
    text-align: center;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.review-stat-number {
    font-size: 1.8rem;
    font-weight: 600;
    color: #007AFF;
    margin-bottom: 5px;
}

.review-stat-label {
    font-size: 0.8rem;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Modals */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 16px;
    margin: 5% auto;
    padding: 0;
    width: 90%;
    max-width: 500px;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 500;
    color: white;
}

.modal-close {
    background: transparent;
    border: none;
    color: #666;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.modal-close:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
}

.modal-body {
    padding: 24px;
}

.modal-footer {
    padding: 20px 24px;
    border-top: 1px solid #333;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

/* Form Elements */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #ccc;
    font-size: 14px;
    font-weight: 500;
}

.form-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid #333;
    border-radius: 8px;
    color: white;
    padding: 12px 16px;
    font-size: 14px;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.form-input:focus {
    outline: none;
    border-color: #007AFF;
    background: rgba(255, 255, 255, 0.15);
}

.form-input::placeholder {
    color: #666;
}

textarea.form-input {
    min-height: 100px;
    resize: vertical;
}

/* Buttons */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-primary {
    background: #007AFF;
    color: white;
}

.btn-primary:hover:not(:disabled) {
    background: #0056CC;
    transform: translateY(-1px);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid #333;
}

.btn-secondary:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.15);
    border-color: #555;
}

.btn-danger {
    background: #FF3B30;
    color: white;
}

.btn-danger:hover:not(:disabled) {
    background: #CC2E26;
}

/* Deck Info and Actions */
.deck-info {
    margin-bottom: 30px;
}

.deck-info p {
    color: #999;
    line-height: 1.6;
    margin-bottom: 20px;
}

.deck-stats {
    display: flex;
    gap: 20px;
    font-size: 14px;
    color: #666;
}

.deck-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* Notifications */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 16px 20px;
    color: white;
    font-size: 14px;
    z-index: 1001;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    max-width: 300px;
}

.notification.show {
    transform: translateX(0);
}

.notification-success {
    border-color: #34C759;
    background: rgba(52, 199, 89, 0.1);
}

.notification-error {
    border-color: #FF3B30;
    background: rgba(255, 59, 48, 0.1);
}

.notification-info {
    border-color: #007AFF;
    background: rgba(0, 122, 255, 0.1);
}

/* Responsive Design */
@media (max-width: 768px) {
    .active-recall-container {
        margin-top: 70px;
        padding: 0 15px;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    .flashcard-tabs {
        position: fixed;
        top: 60px;
        left: 50%;
        transform: translateX(-50%);
        width: calc(100% - 20px);
        max-width: 400px;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 6px;
        padding: 6px;
    }
    
    .tab-btn {
        padding: 10px 16px;
        font-size: 13px;
        flex: 1;
        min-width: 80px;
    }
    
    .tab-content {
        margin-top: 100px;
        padding-top: 15px;
    }
    
    .decks-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .deck-card {
        padding: 16px;
    }
    
    .review-controls {
        position: fixed;
        top: 120px;
        left: 50%;
        transform: translateX(-50%);
        width: calc(100% - 20px);
        max-width: 400px;
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        padding: 12px;
    }
    
    .form-select {
        min-width: auto;
    }
    
    .review-session {
        margin-top: 180px;
        padding: 15px;
        min-height: calc(100vh - 250px);
        max-width: 100%;
        width: calc(100% - 30px);
    }
    
    .flashcard {
        padding: 30px 20px;
        min-height: 250px;
    }
    
    .difficulty-buttons {
        max-width: 100%;
        gap: 8px;
    }
    
    .btn-difficulty {
        min-width: 70px;
        max-width: 80px;
        padding: 10px 12px;
        font-size: 12px;
    }
    
    .card-content {
        font-size: 1.1rem;
    }
    
    .difficulty-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-difficulty {
        width: 200px;
    }
    
    .stats-overview {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .chart-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .progress-item {
        flex-direction: column;
    }
    
    .goals-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .goal-card {
        min-height: 250px;
        padding: 20px;
    }
    
    .goal-meta {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
    
    .update-progress-btn {
        margin-left: 0;
        margin-right: 0;
        width: 100%;
    }
    
    .progress-label {
        min-width: auto;
        text-align: center;
    }
    
    .review-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stat-number {
        font-size: 1.8rem;
    }
    
    .modal-content {
        width: 95%;
        margin: 10% auto;
    }
    
    .modal-header,
    .modal-body,
    .modal-footer {
        padding: 16px 20px;
    }
    
    .deck-buttons {
        flex-direction: column;
    }
    
    .deck-actions {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .stats-overview {
        grid-template-columns: 1fr;
    }
    
    .review-stats-grid {
        grid-template-columns: 1fr;
    }
    
    .deck-stats {
        flex-direction: column;
        gap: 10px;
    }
    
    .notification {
        right: 10px;
        left: 10px;
        max-width: none;
    }
}

/* Plan Tab - Calendar */
.plan-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    align-items: start;
}

.calendar-section {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid #333;
    border-radius: 12px;
    padding: 24px;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.calendar-nav-group {
    display: flex;
    gap: 4px;
}

.calendar-title {
    font-size: 1.3rem;
    font-weight: 500;
    color: white;
    margin: 0;
}

.calendar-nav {
    background: transparent;
    border: 1px solid #444;
    border-radius: 6px;
    color: #ccc;
    padding: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.calendar-nav:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #666;
    color: white;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    background: #333;
    border-radius: 8px;
    overflow: hidden;
}

.calendar-day-header {
    background: #2a2a2a;
    color: #999;
    padding: 12px 8px;
    text-align: center;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
}

.calendar-day {
    background: #1a1a1a;
    color: #ccc;
    padding: 12px 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.calendar-day:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.calendar-day.other-month {
    color: #555;
    background: #161616;
}

.calendar-day.today {
    background: #007AFF;
    color: white;
    font-weight: 600;
}

.calendar-day.selected {
    background: #00C6FF;
    color: white;
    font-weight: 600;
}

.calendar-day.has-cards {
    border: 2px solid #FF9500;
}

.calendar-day.due-today {
    background: #FF3B30;
    color: white;
    font-weight: 600;
}

.calendar-day.due-soon {
    background: #FF9500;
    color: white;
}

.calendar-day.due-later {
    background: #34C759;
    color: white;
}

.calendar-day-count {
    position: absolute;
    top: 2px;
    right: 2px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.calendar-legend {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 20px;
    flex-wrap: wrap;
    position: relative;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #ccc;
}

.legend-color {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.legend-color.due-today {
    background: #FF3B30;
}

.legend-color.due-soon {
    background: #FF9500;
}

.legend-color.due-later {
    background: #34C759;
}

.smart-scheduling-info {
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: help;
    color: #999;
    transition: color 0.2s ease;
    padding: 4px;
    border-radius: 4px;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
}

.smart-scheduling-info:hover {
    color: #4CAF50;
}

.smart-scheduling-info svg {
    pointer-events: none;
}

/* Knowledge Overview */
.knowledge-overview {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid #333;
    border-radius: 12px;
    padding: 24px;
}

.knowledge-overview h3 {
    font-size: 1.2rem;
    font-weight: 500;
    color: white;
    margin-bottom: 20px;
}

.deck-knowledge-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid #444;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 12px;
    transition: all 0.2s ease;
}

.deck-knowledge-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: #666;
}

.deck-name {
    font-size: 1rem;
    font-weight: 500;
    color: white;
    margin-bottom: 8px;
}

.deck-info {
    margin-bottom: 12px;
}

.deck-progress {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-size: 12px;
    color: #999;
}

.mastery-level {
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mastery-level.not-started {
    background: rgba(156, 163, 175, 0.2);
    color: #9CA3AF;
}

.mastery-level.learning {
    background: rgba(239, 68, 68, 0.2);
    color: #EF4444;
}

.mastery-level.developing {
    background: rgba(245, 158, 11, 0.2);
    color: #F59E0B;
}

.mastery-level.proficient {
    background: rgba(59, 130, 246, 0.2);
    color: #3B82F6;
}

.mastery-level.mastered {
    background: rgba(34, 197, 94, 0.2);
    color: #22C55E;
}

.knowledge-bar {
    position: relative;
    width: 100%;
    height: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
}

.knowledge-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.3s ease;
}

.knowledge-fill.not-started {
    background: #6B7280;
}

.knowledge-fill.learning {
    background: #DC2626;
}

.knowledge-fill.developing {
    background: #D97706;
}

.knowledge-fill.proficient {
    background: #2563EB;
}

.knowledge-fill.mastered {
    background: #16A34A;
}

.knowledge-percentage {
    position: absolute;
    right: 8px;
    color: white;
    font-size: 0.75rem;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

.deck-stats-mini {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: #666;
}

/* Date Info */
.date-info {
    grid-column: 1 / -1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid #333;
    border-radius: 12px;
    padding: 24px;
    margin-top: 20px;
}

.date-info h4 {
    font-size: 1.1rem;
    font-weight: 500;
    color: white;
    margin-bottom: 16px;
}

.date-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}

.date-card-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid #444;
    border-radius: 6px;
    padding: 12px;
    font-size: 14px;
}

.card-deck-name {
    font-size: 12px;
    color: #007AFF;
    font-weight: 500;
    margin-bottom: 4px;
}

.card-content-preview {
    color: #ccc;
    line-height: 1.4;
}

/* Plan Tab Responsive */
@media (max-width: 768px) {
    .plan-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .calendar-section,
    .knowledge-overview {
        padding: 16px;
    }
    
    .calendar-grid {
        gap: 0;
    }
    
    .calendar-day {
        padding: 8px 4px;
        min-height: 32px;
        font-size: 12px;
    }
    
    .calendar-legend {
        gap: 15px;
    }
    
    .smart-scheduling-info {
        position: static;
        transform: none;
        margin-top: 10px;
    }
    
    .date-cards {
        grid-template-columns: 1fr;
    }
}

/* Beta Notification Styling */
.beta-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #ffd700;
    color: #000000;
    border-radius: 12px;
    padding: 16px 20px;
    box-shadow: 0 8px 32px rgba(255, 215, 0, 0.4);
    z-index: 1000;
    max-width: 350px;
    animation: slideInRight 0.5s ease-out;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.beta-notification-content {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.beta-notification-icon {
    font-size: 24px;
    flex-shrink: 0;
    margin-top: 2px;
}

.beta-notification-text {
    flex: 1;
}

.beta-notification-text strong {
    display: block;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 4px;
    color: #000000;
}

.beta-notification-text p {
    font-size: 12px;
    margin: 0;
    color: #333333;
    line-height: 1.4;
}

.beta-notification-close {
    background: none;
    border: none;
    color: #000000;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.beta-notification-close:hover {
    background-color: rgba(0, 0, 0, 0.1);
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

.beta-notification.hide {
    animation: slideOutRight 0.3s ease-in forwards;
}

/* Beta Notification Responsive */
@media (max-width: 768px) {
    .beta-notification {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
        padding: 12px 16px;
    }
    
    .beta-notification-icon {
        font-size: 20px;
    }
    
    .beta-notification-text strong {
        font-size: 13px;
    }
    
    .beta-notification-text p {
        font-size: 11px;
    }
}

/* Music Player Styles */
.music-player {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 350px;
    background: rgba(0, 0, 0, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    animation: slideInUp 0.3s ease-out;
}

@keyframes slideInUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.music-player-content {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.music-cover {
    display: flex;
    justify-content: center;
    margin-bottom: 8px;
}

.music-cover img {
    width: 120px;
    height: 120px;
    border-radius: 12px;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.default-cover {
    width: 120px;
    height: 120px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.music-info {
    text-align: center;
    margin-bottom: 8px;
}

.song-title {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 14px;
    font-weight: 500;
    color: white;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.song-artist {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 12px;
    color: #888;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.music-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin: 8px 0;
}

.music-control-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: white;
}

.music-control-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

.play-pause-btn {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.play-pause-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.1);
}

.music-progress {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 8px 0;
}

.time-display {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 11px;
    color: #888;
    min-width: 35px;
    text-align: center;
}

.progress-container {
    flex: 1;
    position: relative;
}

.progress-slider {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    outline: none;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
}

.progress-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 12px;
    height: 12px;
    background: white;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
}

.progress-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
}

.progress-slider::-moz-range-thumb {
    width: 12px;
    height: 12px;
    background: white;
    border-radius: 50%;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
}

.progress-slider::-moz-range-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
}

.music-volume-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.volume-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: white;
}

.volume-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

.volume-slider-container {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: 8px;
    background: rgba(0, 0, 0, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 12px 8px;
    backdrop-filter: blur(10px);
}

.volume-slider-vertical {
    width: 4px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    outline: none;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    writing-mode: bt-lr; /* IE */
    -webkit-appearance: slider-vertical; /* WebKit */
}

.volume-slider-vertical::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 12px;
    height: 12px;
    background: white;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
}

.volume-slider-vertical::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
}

.volume-slider-vertical::-moz-range-thumb {
    width: 12px;
    height: 12px;
    background: white;
    border-radius: 50%;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
}

.volume-slider-vertical::-moz-range-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
}

.close-music-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: white;
}

.close-music-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

/* Music Player Responsive */
@media (max-width: 768px) {
    .music-player {
        bottom: 10px;
        right: 10px;
        left: 10px;
        width: auto;
        max-width: none;
    }
    
    .music-player-content {
        padding: 12px;
    }
    
    .song-title {
        font-size: 13px;
    }
    
    .song-artist {
        font-size: 11px;
    }
    
    .music-control-btn {
        width: 36px;
        height: 36px;
    }
    
    .play-pause-btn {
        width: 44px;
        height: 44px;
    }
}

/* Playlist Modal Styles */
.playlist-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    backdrop-filter: blur(5px);
}

.playlist-content {
    background: rgba(0, 0, 0, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    width: 90%;
    max-width: 400px;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.playlist-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.playlist-title-section {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.playlist-request-text {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 11px;
    color: #888;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: underline;
    text-decoration-color: transparent;
}

.playlist-request-text:hover {
    color: white;
    text-decoration-color: white;
}

.close-playlist-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: white;
}

.close-playlist-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.playlist-body {
    max-height: 60vh;
    overflow-y: auto;
}

.playlist-items {
    padding: 8px 0;
}

.playlist-item {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.playlist-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.playlist-item.active {
    background: rgba(255, 255, 255, 0.1);
    border-left: 3px solid white;
}

.playlist-item-cover {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-right: 12px;
}

.playlist-item-default-cover {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
}

.playlist-item-default-cover svg {
    width: 20px;
    height: 20px;
}

.playlist-item-info {
    flex: 1;
    min-width: 0;
}

.playlist-item-title {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 14px;
    color: white;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.playlist-item-artist {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 12px;
    color: #888;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.playlist-item-duration {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 11px;
    color: #666;
    margin-left: 8px;
}

/* Playlist Modal Responsive */
@media (max-width: 768px) {
    .playlist-content {
        width: 95%;
        max-width: none;
    }
    
    .playlist-header {
        padding: 12px 16px;
    }
    
    .playlist-item {
        padding: 10px 16px;
    }
    
    .playlist-item-cover,
    .playlist-item-default-cover {
        width: 36px;
        height: 36px;
    }
    
    .playlist-item-title {
        font-size: 13px;
    }
    
    .playlist-item-artist {
        font-size: 11px;
    }
    
    .playlist-request-text {
        font-size: 10px;
    }
}

/* ---------------------------------------------------- */
/* NEW FEATURES STYLING (Kanban, Mixer, Gamification) */
/* ---------------------------------------------------- */

/* --- Kanban Board --- */
.kanban-board {
    display: flex;
    gap: 20px;
    height: 100%;
    overflow-x: auto;
    padding-bottom: 10px;
}

.kanban-column {
    flex: 1;
    min-width: 300px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.kanban-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.status-dot.todo { background-color: #ff6b6b; }
.status-dot.doing { background-color: #feca57; }
.status-dot.done { background-color: #48dbfb; }

.kanban-header h4 {
    flex: 1;
    margin: 0;
    color: white;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 16px;
}

.task-count {
    background: rgba(255, 255, 255, 0.1);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 12px;
    color: #ccc;
}

.kanban-tasks {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 100px;
}

.kanban-task-card {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 12px;
    cursor: grab;
    transition: all 0.2s ease;
    position: relative;
}

.kanban-task-card:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.kanban-task-card.dragging {
    opacity: 0.5;
    cursor: grabbing;
}

.task-text {
    color: #eee;
    font-size: 14px;
    margin-bottom: 8px;
    word-break: break-word;
}

.task-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    color: #888;
}

.delete-task-btn {
    background: none;
    border: none;
    color: #ff6b6b;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.2s;
    font-size: 14px;
    padding: 4px;
}

.kanban-task-card:hover .delete-task-btn {
    opacity: 1;
}

.add-task-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px dashed rgba(255, 255, 255, 0.2);
    color: #ccc;
    padding: 10px;
    border-radius: 8px;
    cursor: pointer;
    margin-top: 10px;
    font-family: 'IBM Plex Mono', monospace;
    transition: all 0.2s;
}

.add-task-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border-color: rgba(255, 255, 255, 0.4);
}

.task-input {
    width: 100%;
    background: #333;
    border: 1px solid #555;
    color: white;
    padding: 12px;
    border-radius: 6px;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 16px;
}

/* --- Ambient Mixer --- */
.mixer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    padding: 20px;
}

.mixer-channel {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s;
}

.mixer-channel:hover {
    background: rgba(255, 255, 255, 0.08);
}

.channel-icon {
    font-size: 32px;
    margin-bottom: 5px;
}

.channel-controls {
    width: 100%;
    text-align: center;
}

.channel-controls label {
    display: block;
    margin-bottom: 10px;
    color: #ccc;
    font-size: 14px;
}

.volume-slider {
    width: 100%;
    -webkit-appearance: none;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    outline: none;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    background: white;
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.2s;
}

.volume-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

/* --- Gamification --- */
.level-container {
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid rgba(255,255,255,0.1);
}

.level-info {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 10px;
}

.level-label {
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 12px;
}

.level-number {
    font-size: 32px;
    font-weight: bold;
    color: #fff;
}

.level-progress-bar {
    height: 8px;
    background: rgba(255,255,255,0.1);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
}

.level-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #48dbfb, #0abde3);
    border-radius: 4px;
    transition: width 0.5s ease;
}

.next-level-text {
    text-align: right;
    font-size: 11px;
    color: #888;
    margin: 0;
}

.badges-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 15px;
}

.badge-item {
    background: rgba(0,0,0,0.3);
    border-radius: 8px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    text-align: center;
    opacity: 0.5;
    filter: grayscale(1);
    transition: all 0.3s;
}

.badge-item.unlocked {
    opacity: 1;
    filter: grayscale(0);
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.2);
}

.badge-icon {
    font-size: 24px;
}

.badge-name {
    font-size: 10px;
    color: #ccc;
    line-height: 1.2;
}

.badge-item:hover {
    transform: translateY(-2px);
}