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

:root {
    --primary-color: #e74c3c;
    --secondary-color: #3498db;
    --success-color: #27ae60;
    --dark-bg: #1a202c;
    --card-bg: #2d3748;
    --text-primary: #ffffff;
    --text-secondary: #a0aec0;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-primary);
    padding: 20px;
}

.container {
    max-width: 600px;
    width: 100%;
}

header {
    text-align: center;
    margin-bottom: 40px;
    animation: fadeInDown 0.6s ease;
}

header h1 {
    font-size: 3em;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.subtitle {
    font-size: 1.1em;
    color: var(--text-secondary);
    font-weight: 300;
}

main {
    background: var(--dark-bg);
    border-radius: 30px;
    padding: 40px;
    box-shadow: var(--shadow);
    animation: fadeInUp 0.6s ease;
}

/* Mode Selector */
.mode-selector {
    display: flex;
    gap: 10px;
    margin-bottom: 40px;
    background: var(--card-bg);
    padding: 8px;
    border-radius: 50px;
}

.mode-btn {
    flex: 1;
    padding: 12px 20px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-family: 'Poppins', sans-serif;
    font-size: 0.95em;
    font-weight: 500;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mode-btn:hover {
    color: var(--text-primary);
}

.mode-btn.active {
    background: var(--primary-color);
    color: var(--text-primary);
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.4);
}

.mode-btn.active[data-mode="break"] {
    background: var(--secondary-color);
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.4);
}

.mode-btn.active[data-mode="long-break"] {
    background: var(--success-color);
    box-shadow: 0 4px 15px rgba(39, 174, 96, 0.4);
}

/* Presets Container */
.presets-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 30px;
    padding: 15px;
    background: var(--card-bg);
    border-radius: 15px;
}

.presets-container label {
    color: var(--text-secondary);
    font-size: 0.95em;
    font-weight: 500;
}

.presets-container select {
    flex: 1;
    padding: 10px 15px;
    border: 2px solid transparent;
    background: var(--dark-bg);
    color: var(--text-primary);
    font-family: 'Poppins', sans-serif;
    font-size: 0.95em;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.presets-container select:hover {
    border-color: var(--primary-color);
}

.presets-container select:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* Timer Container */
.timer-container {
    position: relative;
    width: 350px;
    height: 350px;
    margin: 0 auto 40px;
}

.progress-ring {
    transform: rotate(-90deg);
}

.progress-ring-circle {
    transition: stroke-dashoffset 0.5s ease, stroke 0.3s ease;
    stroke-dasharray: 1005.31;
    stroke-dashoffset: 0;
    stroke-linecap: round;
}

.progress-ring-circle-bg {
    opacity: 0.2;
}

.timer-display {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.time {
    font-size: 4.5em;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.4);
}

.session-count {
    font-size: 1.1em;
    color: var(--text-secondary);
    font-weight: 400;
}

/* Controls */
.controls {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-bottom: 30px;
}

.control-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 15px 30px;
    border: none;
    background: var(--card-bg);
    color: var(--text-primary);
    font-family: 'Poppins', sans-serif;
    font-size: 1em;
    font-weight: 500;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.control-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.control-btn:active:not(:disabled) {
    transform: translateY(0);
}

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

#startBtn:hover:not(:disabled) {
    background: var(--success-color);
}

#pauseBtn:hover:not(:disabled) {
    background: var(--secondary-color);
}

#resetBtn:hover:not(:disabled) {
    background: var(--primary-color);
}

#skipBtn:hover:not(:disabled) {
    background: #f39c12;
}

/* Quick Actions */
.quick-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 20px;
}

.action-btn {
    padding: 10px;
    border: 2px solid var(--card-bg);
    background: transparent;
    color: var(--text-secondary);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.action-btn:hover {
    background: var(--card-bg);
    color: var(--text-primary);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.action-btn.active {
    color: var(--primary-color);
    border-color: var(--primary-color);
    background: rgba(231, 76, 60, 0.1);
}

/* Settings Panel */
.settings-panel {
    margin-bottom: 30px;
}

.settings-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border: 2px solid var(--card-bg);
    background: transparent;
    color: var(--text-primary);
    font-family: 'Poppins', sans-serif;
    font-size: 1em;
    font-weight: 500;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    justify-content: center;
}

.settings-toggle:hover {
    background: var(--card-bg);
    border-color: var(--primary-color);
}

.settings-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
}

.settings-content.active {
    max-height: none;
    padding-top: 20px;
}

.settings-content h3 {
    font-size: 1.2em;
    margin-bottom: 15px;
    color: var(--primary-color);
}

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

.setting-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-secondary);
    font-size: 0.95em;
}

.setting-group input[type="number"],
.setting-group select {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--card-bg);
    background: var(--card-bg);
    color: var(--text-primary);
    font-family: 'Poppins', sans-serif;
    font-size: 1em;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.setting-group input[type="number"]:focus,
.setting-group select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.setting-group input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-right: 10px;
    cursor: pointer;
}

.volume-control {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.volume-control input[type="range"] {
    flex: 1;
    height: 6px;
    border-radius: 3px;
    background: var(--card-bg);
    outline: none;
    -webkit-appearance: none;
}

.volume-control input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
}

.volume-control input[type="range"]::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
    border: none;
}

#volumeValue {
    min-width: 45px;
    text-align: right;
}

.music-note {
    margin-top: 10px;
    font-size: 0.85em;
    color: var(--text-secondary);
    font-style: italic;
}

.save-settings-btn {
    width: 100%;
    padding: 15px;
    border: none;
    background: var(--primary-color);
    color: var(--text-primary);
    font-family: 'Poppins', sans-serif;
    font-size: 1em;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.save-settings-btn:hover {
    background: #c0392b;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.4);
}

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

/* Stats */
.stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    padding: 20px;
    background: var(--card-bg);
    border-radius: 20px;
}

.stat-item {
    text-align: center;
}

.stat-value {
    font-size: 2em;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.9em;
    color: var(--text-secondary);
}

/* Footer */
footer {
    text-align: center;
    margin-top: 30px;
    padding: 20px;
    color: var(--text-secondary);
    font-size: 0.9em;
    animation: fadeIn 1s ease;
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.time.pulsing {
    animation: pulse 1s ease-in-out infinite;
}

/* Responsive Design */
@media (max-width: 600px) {
    header h1 {
        font-size: 2em;
    }

    main {
        padding: 25px;
    }

    .timer-container {
        width: 280px;
        height: 280px;
    }

    .progress-ring {
        width: 280px;
        height: 280px;
    }

    .progress-ring-circle,
    .progress-ring-circle-bg {
        r: 130;
        cx: 140;
        cy: 140;
    }

    .time {
        font-size: 3em;
    }

    .controls {
        flex-direction: column;
    }

    .control-btn {
        width: 100%;
    }

    .mode-selector {
        flex-direction: column;
    }

    .stats {
        grid-template-columns: 1fr;
    }
}

/* Music player indicator */
.music-indicator {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--card-bg);
    padding: 15px 20px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: var(--shadow);
    animation: fadeInUp 0.3s ease;
    transition: all 0.3s ease;
    z-index: 1000;
    border: 2px solid var(--primary-color);
}

.music-indicator:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(231, 76, 60, 0.3);
}

.music-indicator span {
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.9em;
    transition: opacity 0.15s ease;
}

.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--card-bg);
    padding: 20px 30px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    animation: slideInRight 0.5s ease;
    z-index: 1000;
}

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

/* Fullscreen mode styles */
body.fullscreen {
    background: var(--dark-bg);
}

body.fullscreen .container {
    max-width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

body.fullscreen header,
body.fullscreen footer {
    display: none;
}

body.fullscreen main {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Light theme */
body.light-theme {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
}

body.light-theme .container {
    color: #2d3748;
}

body.light-theme main {
    background: #ffffff;
    color: #2d3748;
}

body.light-theme .mode-selector,
body.light-theme .presets-container,
body.light-theme .control-btn,
body.light-theme .stats,
body.light-theme .settings-content input[type="number"],
body.light-theme .settings-content select {
    background: #f7fafc;
    color: #2d3748;
}

body.light-theme .mode-btn,
body.light-theme .time,
body.light-theme .session-count {
    color: #2d3748;
}

body.light-theme .mode-btn.active {
    color: #ffffff;
}

body.light-theme .progress-ring-circle-bg {
    stroke: #e2e8f0;
}

body.light-theme .action-btn {
    color: #2d3748;
    border-color: #e2e8f0;
}

body.light-theme .settings-toggle {
    color: #2d3748;
    border-color: #e2e8f0;
}

body.light-theme .settings-content h3 {
    color: var(--primary-color);
}

body.light-theme .setting-group label {
    color: #4a5568;
}

/* Task Management Styles */
.task-container {
    margin-bottom: 30px;
    padding: 20px;
    background: var(--card-bg);
    border-radius: 15px;
    animation: fadeInUp 0.5s ease;
}

.task-input-section label {
    display: block;
    margin-bottom: 10px;
    color: var(--text-secondary);
    font-size: 0.95em;
    font-weight: 500;
}

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

.task-input-group input {
    flex: 1;
    padding: 12px 15px;
    border: 2px solid transparent;
    background: var(--dark-bg);
    color: var(--text-primary);
    font-family: 'Poppins', sans-serif;
    font-size: 1em;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.task-input-group input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.task-input-group input::placeholder {
    color: var(--text-secondary);
}

.task-btn {
    padding: 12px;
    border: 2px solid var(--primary-color);
    background: transparent;
    color: var(--primary-color);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.task-btn:hover {
    background: var(--primary-color);
    color: var(--text-primary);
    transform: translateY(-2px);
}

.task-btn.primary {
    background: var(--primary-color);
    color: var(--text-primary);
    border-color: var(--primary-color);
}

.task-btn.primary:hover {
    background: #c0392b;
    border-color: #c0392b;
}

.task-edit-btn {
    padding: 8px;
    border: 2px solid var(--text-secondary);
    background: transparent;
    color: var(--text-secondary);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.task-edit-btn:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--text-primary);
    transform: translateY(-2px);
}

.current-task-display {
    margin-top: 15px;
    padding: 15px;
    background: rgba(231, 76, 60, 0.1);
    border: 2px solid var(--primary-color);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.task-content {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.task-label {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 0.9em;
}

.task-text {
    color: var(--text-primary);
    font-size: 1em;
    flex: 1;
}

/* Task History Styles */
.task-history-container {
    margin-top: 30px;
    padding: 20px;
    background: var(--card-bg);
    border-radius: 15px;
    animation: fadeInUp 0.5s ease;
}

.task-history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.task-history-header h3 {
    font-size: 1.2em;
    color: var(--text-primary);
    margin: 0;
}

.clear-history-btn {
    padding: 8px;
    border: 2px solid var(--text-secondary);
    background: transparent;
    color: var(--text-secondary);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.clear-history-btn:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--text-primary);
}

.task-history-list {
    max-height: 200px;
    overflow-y: auto;
}

.no-tasks {
    text-align: center;
    color: var(--text-secondary);
    font-style: italic;
    padding: 20px;
}

.task-history-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    margin-bottom: 8px;
    background: var(--dark-bg);
    border-radius: 10px;
    border-left: 4px solid var(--primary-color);
    animation: fadeInUp 0.3s ease;
}

.task-history-item:last-child {
    margin-bottom: 0;
}

.task-history-text {
    flex: 1;
    color: var(--text-primary);
    font-size: 0.95em;
}

.task-history-time {
    color: var(--text-secondary);
    font-size: 0.85em;
    font-weight: 500;
}

.task-history-duration {
    color: var(--success-color);
    font-size: 0.85em;
    font-weight: 600;
    margin-left: 10px;
}

/* Light theme task styles */
body.light-theme .task-container,
body.light-theme .task-history-container {
    background: #f7fafc;
}

body.light-theme .task-input-group input,
body.light-theme .task-history-item {
    background: #ffffff;
    color: #2d3748;
}

body.light-theme .task-text,
body.light-theme .task-history-text {
    color: #2d3748;
}

body.light-theme .task-input-group input::placeholder {
    color: #a0aec0;
}

body.light-theme .task-edit-btn {
    border-color: #a0aec0;
    color: #a0aec0;
}

body.light-theme .task-edit-btn:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--text-primary);
}

/* Custom Music Upload Styles */
.custom-music-upload {
    margin-top: 20px;
    padding: 15px;
    background: var(--dark-bg);
    border-radius: 10px;
    border: 2px dashed var(--text-secondary);
}

.custom-music-upload label {
    display: block;
    margin-bottom: 10px;
    color: var(--text-secondary);
    font-size: 0.95em;
    font-weight: 500;
}

.upload-area {
    position: relative;
    padding: 20px;
    text-align: center;
    border: 2px dashed var(--primary-color);
    border-radius: 10px;
    background: rgba(231, 76, 60, 0.05);
    cursor: pointer;
    transition: all 0.3s ease;
}

.upload-area:hover {
    background: rgba(231, 76, 60, 0.1);
    border-color: var(--primary-color);
}

.upload-area.dragover {
    background: rgba(231, 76, 60, 0.15);
    border-color: var(--primary-color);
    transform: scale(1.02);
}

.upload-area input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.upload-text span {
    display: block;
    color: var(--text-primary);
    font-size: 1em;
    margin-bottom: 5px;
}

.upload-text small {
    color: var(--text-secondary);
    font-size: 0.85em;
}

.custom-music-list {
    margin-top: 15px;
    max-height: 200px;
    overflow-y: auto;
}

.custom-music-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    margin-bottom: 8px;
    background: var(--card-bg);
    border-radius: 8px;
    border-left: 4px solid var(--secondary-color);
    animation: fadeInUp 0.3s ease;
}

.custom-music-item:last-child {
    margin-bottom: 0;
}

.custom-music-info {
    flex: 1;
}

.custom-music-name {
    color: var(--text-primary);
    font-size: 0.95em;
    font-weight: 500;
    margin-bottom: 2px;
}

.custom-music-size {
    color: var(--text-secondary);
    font-size: 0.8em;
}

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

.custom-music-btn {
    padding: 6px 8px;
    border: 1px solid var(--text-secondary);
    background: transparent;
    color: var(--text-secondary);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.8em;
    display: flex;
    align-items: center;
    justify-content: center;
}

.custom-music-btn:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--text-primary);
}

.custom-music-btn.delete:hover {
    background: #e74c3c;
    border-color: #e74c3c;
}

.upload-progress {
    margin-top: 10px;
    padding: 10px;
    background: var(--card-bg);
    border-radius: 8px;
    display: none;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: var(--dark-bg);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 5px;
}

.progress-fill {
    height: 100%;
    background: var(--primary-color);
    border-radius: 3px;
    transition: width 0.3s ease;
    width: 0%;
}

.progress-text {
    font-size: 0.85em;
    color: var(--text-secondary);
    text-align: center;
}

/* Light theme custom music styles */
body.light-theme .custom-music-upload {
    background: #ffffff;
    border-color: #e2e8f0;
}

body.light-theme .custom-music-item {
    background: #f7fafc;
}

body.light-theme .custom-music-name {
    color: #2d3748;
}

body.light-theme .upload-progress {
    background: #f7fafc;
}

body.light-theme .progress-bar {
    background: #e2e8f0;
}

/* YouTube Music Player Styles */
.youtube-music-section {
    margin-top: 20px;
    padding: 15px;
    background: var(--dark-bg);
    border-radius: 10px;
    border: 2px dashed var(--text-secondary);
}

.youtube-section-header {
    margin-bottom: 10px;
}

.youtube-section-toggle {
    width: 100%;
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 12px 16px;
    color: var(--text-primary);
    font-family: 'Poppins', sans-serif;
    font-size: 0.95em;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.youtube-section-toggle:hover {
    border-color: var(--primary-color);
    background: var(--hover-bg);
}

.youtube-section-toggle .toggle-icon {
    transition: transform 0.3s ease;
    transform: rotate(-90deg); /* Point right when closed */
}

.youtube-section-toggle.active .toggle-icon {
    transform: rotate(0deg); /* Point down when open */
}

.youtube-section-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
}

.youtube-section-content.active {
    max-height: 800px;
    padding-top: 15px;
}

.youtube-music-section label {
    display: block;
    margin-bottom: 10px;
    color: var(--text-secondary);
    font-size: 0.95em;
    font-weight: 500;
}

.youtube-input-group {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 15px;
}

.youtube-input-group input {
    flex: 1;
    padding: 12px 15px;
    border: 2px solid transparent;
    background: var(--card-bg);
    color: var(--text-primary);
    font-family: 'Poppins', sans-serif;
    font-size: 0.95em;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.youtube-input-group input:focus {
    outline: none;
    border-color: #ff0000;
}

.youtube-input-group input::placeholder {
    color: var(--text-secondary);
}

.youtube-btn {
    padding: 12px;
    border: 2px solid #ff0000;
    background: #ff0000;
    color: white;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.youtube-btn:hover {
    background: #cc0000;
    border-color: #cc0000;
    transform: translateY(-2px);
}

.youtube-player-container {
    background: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid #ff0000;
    animation: fadeInUp 0.3s ease;
}

.youtube-player-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: rgba(255, 0, 0, 0.1);
    border-bottom: 1px solid rgba(255, 0, 0, 0.2);
}

.youtube-title {
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.95em;
}

.youtube-controls {
    display: flex;
    gap: 8px;
}

.youtube-control-btn {
    padding: 6px;
    border: 1px solid var(--text-secondary);
    background: transparent;
    color: var(--text-secondary);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.youtube-control-btn:hover {
    background: #ff0000;
    border-color: #ff0000;
    color: white;
}

.youtube-player-wrapper {
    position: relative;
    background: #000;
}

.youtube-player-wrapper.collapsed {
    display: none;
}

#youtubePlayer {
    border-radius: 0 0 8px 8px;
}

/* YouTube Queue Styles */
.youtube-queue {
    margin-top: 15px;
    background: var(--card-bg);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.queue-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 15px;
    background: var(--dark-bg);
    border-bottom: 1px solid var(--border-color);
}

.queue-header h4 {
    margin: 0;
    font-size: 0.9em;
    color: var(--text-primary);
    font-weight: 500;
}

.queue-controls {
    display: flex;
    gap: 8px;
}

.queue-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 6px 8px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.queue-btn:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.queue-list {
    max-height: 200px;
    overflow-y: auto;
}

.queue-item {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    border-bottom: 1px solid var(--border-color);
    transition: background 0.2s ease;
    cursor: pointer;
}

.queue-item:last-child {
    border-bottom: none;
}

.queue-item:hover {
    background: var(--hover-bg);
}

.queue-item.current {
    background: rgba(231, 76, 60, 0.1);
    border-left: 3px solid var(--primary-color);
}

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

.queue-item-title {
    font-size: 0.85em;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.queue-item-duration {
    font-size: 0.75em;
    color: var(--text-secondary);
}

.queue-item-actions {
    display: flex;
    gap: 5px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

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

.queue-item-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.queue-item-btn:hover {
    background: var(--primary-color);
    color: white;
}

/* Light theme YouTube styles */
body.light-theme .youtube-music-section {
    background: #ffffff;
    border-color: #e2e8f0;
}

body.light-theme .youtube-input-group input {
    background: #f7fafc;
    color: #2d3748;
}

body.light-theme .youtube-input-group input::placeholder {
    color: #a0aec0;
}

body.light-theme .youtube-player-container {
    background: #f7fafc;
}

body.light-theme .youtube-title {
    color: #2d3748;
}

body.light-theme .youtube-section-toggle {
    background: #ffffff;
    border-color: #e2e8f0;
    color: #2d3748;
}

body.light-theme .youtube-section-toggle:hover {
    background: #f7fafc;
}

body.light-theme .youtube-queue {
    background: #ffffff;
    border-color: #e2e8f0;
}

body.light-theme .queue-header {
    background: #f7fafc;
    border-color: #e2e8f0;
}

body.light-theme .queue-item {
    border-color: #e2e8f0;
}

body.light-theme .queue-item:hover {
    background: #f7fafc;
}

body.light-theme .queue-btn {
    border-color: #e2e8f0;
    color: #4a5568;
}

body.light-theme .queue-item-btn {
    color: #4a5568;
}

/* Wellness Features Styles */
.setting-description {
    display: block;
    color: var(--text-secondary);
    font-size: 0.8em;
    margin-top: 5px;
    font-style: italic;
}

/* Wellness Modal Styles */
.wellness-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: 10000;
    animation: fadeIn 0.3s ease;
}

.wellness-modal-content {
    background: var(--dark-bg);
    border-radius: 20px;
    padding: 0;
    max-width: 500px;
    width: 90%;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: slideInUp 0.4s ease;
}

.wellness-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px 20px;
    border-bottom: 2px solid var(--card-bg);
}

.wellness-modal-header h3 {
    margin: 0;
    color: var(--text-primary);
    font-size: 1.4em;
    font-weight: 600;
}

.wellness-modal-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 2em;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.wellness-modal-close:hover {
    background: var(--card-bg);
    color: var(--text-primary);
}

.wellness-modal-body {
    padding: 30px;
    text-align: center;
    flex: 1;
    overflow-y: auto;
    min-height: 0;
}

.wellness-icon {
    font-size: 4em;
    margin-bottom: 20px;
    animation: pulse 2s ease-in-out infinite;
}

.wellness-message {
    font-size: 1.2em;
    color: var(--text-primary);
    margin-bottom: 25px;
    line-height: 1.6;
}

.wellness-tips {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    text-align: left;
}

.wellness-tips ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.wellness-tips li {
    color: var(--text-secondary);
    font-size: 0.95em;
    margin-bottom: 10px;
    padding-left: 25px;
    position: relative;
}

.wellness-tips li:last-child {
    margin-bottom: 0;
}

.wellness-tips li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success-color);
    font-weight: bold;
}

.wellness-modal-footer {
    padding: 20px 30px 30px;
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-shrink: 0;
    border-top: 1px solid var(--card-bg);
    margin-top: auto;
}

.wellness-btn {
    padding: 12px 30px;
    border: none;
    border-radius: 50px;
    font-family: 'Poppins', sans-serif;
    font-size: 1em;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
}

.wellness-btn.primary {
    background: var(--success-color);
    color: var(--text-primary);
}

.wellness-btn.primary:hover {
    background: #2ecc71;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(46, 204, 113, 0.4);
}

.wellness-btn.secondary {
    background: transparent;
    color: var(--text-secondary);
    border: 2px solid var(--text-secondary);
}

.wellness-btn.secondary:hover {
    background: var(--text-secondary);
    color: var(--dark-bg);
    transform: translateY(-2px);
}

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

/* Light theme wellness styles */
body.light-theme .wellness-modal-content {
    background: #ffffff;
    color: #2d3748;
}

body.light-theme .wellness-modal-header {
    border-bottom-color: #e2e8f0;
}

body.light-theme .wellness-modal-footer {
    border-top-color: #e2e8f0;
}

body.light-theme .wellness-modal-header h3,
body.light-theme .wellness-message {
    color: #2d3748;
}

body.light-theme .wellness-tips {
    background: #f7fafc;
}

body.light-theme .wellness-tips li {
    color: #4a5568;
}

body.light-theme .setting-description {
    color: #718096;
}

/* Collapsible Settings Sections */
.settings-section {
    margin-bottom: 20px;
}

.settings-section-toggle {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: var(--card-bg);
    border: 2px solid transparent;
    border-radius: 12px;
    color: var(--text-primary);
    font-family: 'Poppins', sans-serif;
    font-size: 1em;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 10px;
}

.settings-section-toggle:hover {
    background: rgba(231, 76, 60, 0.1);
    border-color: var(--primary-color);
}

.settings-section-toggle span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.settings-section-toggle .toggle-icon {
    transition: transform 0.3s ease;
}

.settings-section-toggle.collapsed .toggle-icon {
    transform: rotate(-90deg);
}

.settings-section-content {
    max-height: 1000px;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    padding: 0 10px;
}

.settings-section-content.collapsed {
    max-height: 0;
    padding: 0 10px;
}

/* Light theme collapsible sections */
body.light-theme .settings-section-toggle {
    background: #f7fafc;
    color: #2d3748;
}

body.light-theme .settings-section-toggle:hover {
    background: rgba(231, 76, 60, 0.1);
    border-color: var(--primary-color);
}
