/* HarmoniX Dark Theme Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Remove all browser built-in outlines and styles */
input, textarea, select, button {
    outline: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    border: none;
}

input:focus, textarea:focus, select:focus, button:focus {
    outline: none;
}

/* Custom scrollbars */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: #000000;
    color: #ffffff;
    line-height: 1.6;
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

/* Splash Screen */
.splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000000;
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.splash-screen.splash-fade-in {
    opacity: 1;
}

.splash-screen.splash-fade-out {
    opacity: 0;
}

.splash-content {
    text-align: center;
    transform: scale(0.8);
    transition: transform 0.5s ease-in-out;
}

.splash-screen.splash-fade-in .splash-content {
    transform: scale(1);
}

.splash-logo {
    max-width: 400px;
    max-height: 300px;
    width: auto;
    height: auto;
    object-fit: contain;
}



.app-container.app-fade-in {
    opacity: 1;
}

/* Header Area */
.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 32px;
    border-bottom: 1px solid #ffffff;
    height: 70px;
    box-sizing: border-box;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header-right {
    display: flex;
    align-items: center;
}

.app-logo {
    max-height: 40px;
    width: auto;
    object-fit: contain;
}

.app-tagline {
    font-size: 1rem;
    font-weight: 500;
    color: #ffffff;
    margin: 0;
    white-space: nowrap;
}

/* User Menu */
.user-menu {
    position: relative;
    cursor: pointer;
}

.user-icon {
    width: 40px;
    height: 40px;
    background: transparent;
    border: 1px solid #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    transition: all 0.2s ease;
}

.user-icon:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #cccccc;
}

.user-dropdown {
    position: absolute;
    top: 50px;
    right: 0;
    background: #000000;
    border: 1px solid #ffffff;
    border-radius: 8px;
    min-width: 200px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    z-index: 1000;
}

.user-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-header {
    padding: 16px;
    border-bottom: 1px solid #ffffff;
}

.user-name {
    font-weight: 600;
    color: #ffffff;
    font-size: 0.95rem;
    margin-bottom: 4px;
    text-transform: capitalize;
}

.user-email {
    color: #888;
    font-size: 0.85rem;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: #cccccc;
    cursor: pointer;
    transition: background-color 0.2s ease;
    font-size: 0.9rem;
}

.dropdown-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.dropdown-item svg {
    flex-shrink: 0;
}

.dropdown-divider {
    height: 1px;
    background: #ffffff;
    margin: 4px 0;
}

/* Main Interface */
.main-interface {
    flex: 1;
    padding: 0 60px;
}

/* Home View */
.home-view {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 0;
}

/* Main Input Section */
.main-input-section {
    text-align: center;
    margin-bottom: 80px;
}

.error-message, .success-message {
    padding: 12px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-weight: 500;
}

.error-message {
    background: #ef4444;
    color: white;
}

.success-message {
    background: #10b981;
    color: white;
}

.main-input-form {
    max-width: 800px;
    margin: 0 auto;
}

.input-bar {
    display: flex;
    align-items: center;
    background: transparent;
    border: 2px solid #ffffff;
    border-radius: 50px;
    padding: 4px;
    transition: border-color 0.2s;
}

.input-bar:focus-within {
    border-color: #cccccc;
}

.input-left {
    position: relative;
    margin-left: 16px;
}

.duration-selector {
    margin-left: 8px;
}

.duration-selector .dropdown-toggle {
    background: transparent;
    border: 1px solid #10b981;
    min-width: 60px;
    justify-content: center;
}

.duration-selector .dropdown-toggle:hover {
    background: rgba(16, 185, 129, 0.1);
    border-color: #059669;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: transparent;
    border: 1px solid #ffffff;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    color: #cccccc;
    transition: all 0.2s;
}

.dropdown-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #cccccc;
}

.dropdown-arrow {
    font-size: 0.8rem;
    transition: transform 0.2s;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #000000;
    border: 1px solid #ffffff;
    border-radius: 8px;
    min-width: 120px;
    z-index: 1000;
    margin-top: 4px;
}

.dropdown-option {
    padding: 12px 16px;
    cursor: pointer;
    font-size: 0.9rem;
    color: #cccccc;
    transition: background 0.2s;
}

.dropdown-option:hover {
    background: rgba(255, 255, 255, 0.1);
}

.dropdown-option.selected {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

.main-input {
    flex: 1;
    background: transparent;
    color: #ffffff;
    font-size: 1.1rem;
    padding: 16px 24px;
    border: none;
}

.main-input::placeholder {
    color: #888888;
}

.generate-button {
    background: transparent;
    color: #ffffff;
    border: 1px solid #ffffff;
    padding: 16px 32px;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    margin-right: 4px;
}

.generate-button:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #cccccc;
}

.btn-loading {
    display: none;
}

/* Recent Projects */
.recent-projects {
    text-align: left;
}

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

.projects-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #ffffff;
}

.show-more-link {
    background: none;
    color: #888888;
    font-size: 0.9rem;
    cursor: pointer;
    transition: color 0.2s;
}

.show-more-link:hover {
    color: #cccccc;
}

.projects-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.empty-projects {
    text-align: center;
    padding: 80px 20px;
}

.music-note-icon {
    font-size: 4rem;
    margin-bottom: 16px;
    opacity: 0.5;
}

.empty-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 8px;
}

.empty-subtitle {
    color: #888888;
    font-size: 1rem;
}

.project-entry {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    background: transparent;
    border: 1px solid #ffffff;
    border-radius: 12px;
    cursor: pointer;
    transition: background 0.2s;
    position: relative;
}

.project-entry:hover {
    background: rgba(255, 255, 255, 0.1);
}

.project-icon {
    font-size: 1.5rem;
    margin-right: 16px;
    opacity: 0.7;
}

.project-details {
    flex: 1;
}

.project-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 4px;
}

.project-timestamp {
    font-size: 0.9rem;
    color: #888888;
}

.project-menu {
    padding: 8px;
    cursor: pointer;
    border-radius: 4px;
    transition: background 0.2s;
    position: relative;
}

.project-menu:hover {
    background: rgba(255, 255, 255, 0.1);
}

.project-menu-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: #000000;
    border: 1px solid #ffffff;
    border-radius: 8px;
    min-width: 140px;
    z-index: 1000;
    margin-top: 4px;
}

.menu-item {
    padding: 12px 16px;
    cursor: pointer;
    font-size: 0.9rem;
    color: #cccccc;
    transition: background 0.2s;
}

.menu-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.menu-item.delete-item {
    color: #ef4444;
}

.menu-item.delete-item:hover {
    background: #ef4444;
    color: #ffffff;
}

/* Song Editing View */
.song-view {
    display: flex;
    flex-direction: column;
    height: 100vh;
    padding: 20px 0;
}

.song-layout {
    display: flex;
    flex: 1;
    gap: 20px;
    margin-bottom: 20px;
}

.song-main {
    flex: 1;
    padding: 0 20px;
}

.song-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 24px;
}

.back-button {
    background: transparent;
    color: #ffffff;
    border: 1px solid #ffffff;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
}

.back-button:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #cccccc;
}

.song-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: #ffffff;
}

.style-filters {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.include-styles, .exclude-styles {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.style-tag {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.include-tag {
    background: #ffffff;
    color: #000000;
}

.exclude-tag {
    background: transparent;
    color: #ffffff;
    border: 1px solid #ef4444;
}

.edit-styles-btn {
    background: transparent;
    color: #ffffff;
    border: 1px solid #ffffff;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
}

.edit-styles-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #cccccc;
}

.lyrics-section {
    max-height: 400px;
    overflow-y: auto;
    padding-right: 16px;
}

.lyrics-header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #ffffff;
}

.lyrics-header-bar h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
}

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

.lyrics-controls button {
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.edit-lyrics-btn {
    background: #333;
    color: #fff;
}

.edit-lyrics-btn:hover {
    background: #444;
}

.save-lyrics-btn {
    background: #4CAF50;
    color: white;
}

.save-lyrics-btn:hover {
    background: #45a049;
}

.regenerate-lyrics-btn {
    background: #2196F3;
    color: white;
}

.regenerate-lyrics-btn:hover {
    background: #1976D2;
}

.cancel-lyrics-btn {
    background: transparent;
    color: white;
    border: 1px solid #ffffff;
}

.cancel-lyrics-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #cccccc;
}

.lyrics-content {
    position: relative;
}

.lyrics-display {
    min-height: 200px;
}

.lyrics-editor {
    width: 100%;
    min-height: 300px;
    background: transparent;
    color: #ffffff;
    border: 1px solid #ffffff;
    border-radius: 8px;
    padding: 16px;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.6;
    resize: vertical;
}

.lyrics-editor:focus {
    border-color: #4CAF50;
    box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.2);
}

.lyrics-placeholder {
    text-align: center;
    color: #888;
    padding: 40px 20px;
}

.lyrics-placeholder p {
    margin-bottom: 8px;
}

.lyrics-part {
    margin-bottom: 24px;
}

.lyrics-header {
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 8px;
}

.lyrics-text {
    color: #ffffff;
    line-height: 1.6;
    white-space: pre-line;
}

/* Prompt Sidebar */
.prompt-sidebar {
    width: 280px;
    background: transparent;
    border: 1px solid #ffffff;
    border-radius: 12px;
    padding: 20px;
}

.last-prompt {
    margin-bottom: 24px;
}

.prompt-label {
    font-size: 0.9rem;
    color: #888888;
    margin-bottom: 8px;
}

.prompt-text {
    color: #cccccc;
    font-size: 0.9rem;
    line-height: 1.5;
}

.audio-preview {
    background: transparent;
    border: 1px solid #ffffff;
    border-radius: 8px;
    padding: 16px;
}

.preview-header {
    font-size: 0.9rem;
    color: #ffffff;
    margin-bottom: 12px;
    font-weight: 600;
}

.preview-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.preview-play-btn {
    background: transparent;
    color: #ffffff;
    border: 1px solid #ffffff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.preview-play-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #cccccc;
}

.mini-waveform {
    display: flex;
    align-items: end;
    gap: 2px;
    flex: 1;
}

.wave-bar {
    width: 3px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    animation: wave 1.5s ease-in-out infinite;
}

.wave-bar:nth-child(1) { height: 12px; animation-delay: 0s; }
.wave-bar:nth-child(2) { height: 20px; animation-delay: 0.1s; }
.wave-bar:nth-child(3) { height: 16px; animation-delay: 0.2s; }
.wave-bar:nth-child(4) { height: 24px; animation-delay: 0.3s; }
.wave-bar:nth-child(5) { height: 18px; animation-delay: 0.4s; }

@keyframes wave {
    0%, 100% { transform: scaleY(1); }
    50% { transform: scaleY(0.5); }
}

/* App Container Layout */
.app-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    opacity: 1;
    transition: opacity 0.5s ease-in-out;
}

.main-interface {
    flex: 1;
    padding-bottom: 80px; /* Space for bottom toolbar */
}

/* Bottom Toolbar (Visible only in song view) */
.bottom-toolbar {
    position: fixed;
    bottom: 60px; /* Space for footer */
    left: 0;
    right: 0;
    background: #0f0f12; /* closer to screenshot */
    border-top: 1px solid #1f1f23;
    padding: 8px 14px;
    display: none; /* Hidden by default */
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
}

/* Show toolbar when song view is active */
.bottom-toolbar.show { display: flex; }

.toolbar-left, .toolbar-center, .toolbar-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Time stamps and transport play */
.toolbar-time {
    color: #d0d0d7;
    font-variant-numeric: tabular-nums;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    min-width: 50px;
    text-align: center;
}
.transport-play {
    width: 46px; height: 46px; border-radius: 999px;
    background: #151519;
    color: #f5f5f7; border: 1px solid #2a2a2f;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 16px; /* crisper play icon */
    cursor: pointer; transition: background .2s, border-color .2s, transform .05s, color .2s;
    box-shadow: 0 0 0 1px rgba(255,255,255,0.05) inset;
}
.transport-play:hover { background: #1a1a20; border-color: #3a3a3f; color: #ffffff; }
.transport-play:active { transform: translateY(1px); }

/* Zoom controls */
.zoom-btn {
    background: transparent; color: #babac4;
    border: 1px solid #2a2a2e; border-radius: 8px; width: 28px; height: 28px;
    display: inline-flex; align-items: center; justify-content: center;
    cursor: pointer; transition: background .2s, border-color .2s, color .2s;
}
.zoom-btn:hover { background: #15151a; border-color: #3a3a3a; color: #fff; }

.zoom-slider {
    width: 140px; height: 4px; background: transparent;
    border: 1px solid #2a2a2e; border-radius: 999px; cursor: pointer;
}

/* Icon-only buttons on right */
.icon-btn {
    background: transparent; color: #bdbdc7;
    border: 1px solid #2a2a2e; border-radius: 8px; width: 32px; height: 32px;
    display: inline-flex; align-items: center; justify-content: center;
    cursor: pointer; transition: background .2s, border-color .2s, color .2s;
}
.icon-btn:hover { background: #15151a; border-color: #3a3a3a; color: #fff; }

/* Pill buttons (Share/Download) */
.share-btn, .download-btn {
    background: #151519; color: #ededf3;
    border: 1px solid #2a2a2e; border-radius: 10px;
    padding: 8px 14px; font-size: 0.92rem; font-weight: 600; cursor: pointer;
    transition: background .2s, border-color .2s, transform .05s;
}
.share-btn:hover, .download-btn:hover { background: #1a1a20; border-color: #3a3a3f; }
.share-btn:active, .download-btn:active { transform: translateY(1px); }

/* App Footer */
.app-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #000000;
    border-top: 1px solid #333333;
    padding: 8px 20px;
    z-index: 999;
}

.app-footer p {
    color: #888888 !important;
    font-size: 11px !important;
    margin: 0 !important;
}

/* Timeline Editor */
.timeline-editor {
    background: transparent;
    border: 1px solid #ffffff;
    border-radius: 12px;
    padding: 20px;
    margin-top: 20px;
}

.timeline-controls {
    text-align: center;
    margin-bottom: 16px;
}

.timeline-play-btn {
    background: transparent;
    color: #ffffff;
    border: 1px solid #ffffff;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 1.2rem;
}

.timeline-play-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #cccccc;
}

/* Time Scale */
.time-scale {
    position: relative;
    height: 30px;
    background: transparent;
    border-bottom: 1px solid #ffffff;
    margin-bottom: 8px;
    overflow: hidden;
}

.time-marker {
    position: absolute;
    top: 0;
    height: 100%;
    border-left: 1px solid #888888;
    font-size: 0.7rem;
    color: #888888;
    padding-left: 4px;
    display: flex;
    align-items: flex-end;
    padding-bottom: 4px;
}

.time-marker.major {
    border-left-color: #ffffff;
    color: #ffffff;
}

.timeline-track {
    position: relative;
    height: 80px; /* Increased height for waveforms */
    background: transparent;
    border: 1px solid #ffffff;
    border-radius: 8px;
    margin-bottom: 16px;
    overflow: hidden;
}

.timeline-sections {
    display: flex;
    height: 100%;
}

.timeline-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-right: 1px solid #ffffff;
    background: transparent;
    transition: background 0.2s;
    cursor: pointer;
    min-width: 60px;
}

.timeline-section:hover {
    background: rgba(255, 255, 255, 0.1);
}

.timeline-section.modified {
    background: rgba(255, 204, 0, 0.2);
    border-color: #ffcc00;
}

/* Section Waveform */
.section-waveform {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 1px;
    padding: 0 4px;
    opacity: 0.6;
}

.waveform-bar {
    background: #ffffff;
    width: 2px;
    min-height: 2px;
    border-radius: 1px;
    transition: all 0.2s;
}

.timeline-section:hover .waveform-bar {
    background: #cccccc;
}

.timeline-section.modified .waveform-bar {
    background: #ffcc00;
}

/* Drag Handles */
.drag-handle {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 8px;
    background: transparent;
    cursor: ew-resize;
    z-index: 10;
    transition: background 0.2s;
}

.drag-handle:hover {
    background: rgba(255, 255, 255, 0.3);
}

.drag-handle.left {
    left: -4px;
}

.drag-handle.right {
    right: -4px;
}

.drag-handle::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 2px;
    height: 20px;
    background: #ffffff;
    border-radius: 1px;
    opacity: 0;
    transition: opacity 0.2s;
}

.drag-handle:hover::after {
    opacity: 1;
}

.section-label {
    font-size: 0.8rem;
    color: #cccccc;
    font-weight: 500;
}

.playhead {
    position: absolute;
    top: 0;
    left: 0;
    width: 2px;
    height: 100%;
    background: #ffffff;
    border-radius: 1px;
    transition: left 0.1s;
    z-index: 20;
}

/* Regenerate Section */
.regenerate-section {
    text-align: center;
    margin-top: 16px;
    padding: 16px;
    background: rgba(255, 204, 0, 0.1);
    border: 1px solid #ffcc00;
    border-radius: 8px;
}

.regenerate-btn {
    background: #ffcc00;
    color: #000000;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.regenerate-btn:hover {
    background: #ffdd33;
    transform: translateY(-1px);
}

.timeline-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.timeline-left, .timeline-center, .timeline-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.zoom-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.zoom-label {
    font-size: 0.9rem;
    color: #cccccc;
}

.zoom-slider {
    width: 80px;
    height: 4px;
    background: transparent;
    border: 1px solid #ffffff;
    border-radius: 2px;
    cursor: pointer;
}

.undo-btn, .redo-btn, .share-btn, .download-btn, .thumbs-up-btn, .thumbs-down-btn {
    background: transparent;
    color: #ffffff;
    border: 1px solid #ffffff;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
}

.undo-btn:hover, .redo-btn:hover, .share-btn:hover, .download-btn:hover, 
.thumbs-up-btn:hover, .thumbs-down-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #cccccc;
}

/* Style Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.modal-content {
    background: #000000;
    border: 1px solid #ffffff;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    overflow-y: auto;
}

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

.modal-header h3 {
    color: #ffffff;
    font-size: 1.3rem;
    font-weight: 600;
}

.modal-close {
    background: none;
    color: #888888;
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.2s;
}

.modal-close:hover {
    color: #ffffff;
}

.modal-body {
    padding: 20px;
}

.style-group {
    margin-bottom: 24px;
}

.style-group h4 {
    color: #ffffff;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.style-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.style-tag-option {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
}

.include-tags .style-tag-option {
    background: transparent;
    color: #cccccc;
    border: 1px solid #ffffff;
}

.include-tags .style-tag-option:hover,
.include-tags .style-tag-option.selected {
    background: #ffffff;
    color: #000000;
}

.exclude-tags .style-tag-option {
    background: transparent;
    color: #cccccc;
    border: 1px solid #ef4444;
}

.exclude-tags .style-tag-option:hover,
.exclude-tags .style-tag-option.selected {
    background: #ef4444;
    color: #ffffff;
}

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

.modal-btn {
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}

.cancel-btn {
    background: transparent;
    color: #ffffff;
    border: 1px solid #ffffff;
}

.cancel-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #cccccc;
}

.save-btn {
    background: #ffffff;
    color: #000000;
}

.save-btn:hover {
    background: #e0e0e0;
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #000000;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3000;
}

.loading-container {
    text-align: center;
    max-width: 400px;
    padding: 40px;
}

.loading-title {
    font-size: 2rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 16px;
}

.loading-subtitle {
    font-size: 1.1rem;
    color: #cccccc;
    margin-bottom: 32px;
}

.progress-container {
    margin-bottom: 32px;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: transparent;
    border: 1px solid #ffffff;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
}

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

.progress-text {
    font-size: 0.9rem;
    color: #888888;
}

.loading-steps {
    display: flex;
    justify-content: space-between;
    gap: 16px;
}

.loading-step {
    flex: 1;
    text-align: center;
    opacity: 0.3;
    transition: opacity 0.3s;
}

.loading-step.active {
    opacity: 1;
}

.loading-step.completed {
    opacity: 0.7;
}

.step-icon {
    font-size: 2rem;
    margin-bottom: 8px;
}

.step-text {
    font-size: 0.8rem;
    color: #cccccc;
}

/* Message Toast */
.message-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 12px 20px;
    border-radius: 8px;
    color: white;
    font-weight: 500;
    z-index: 10000;
    max-width: 400px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
    .app-header {
        padding: 20px 30px;
        flex-direction: column;
        gap: 20px;
    }
    
    .main-interface {
        padding: 0 30px;
    }
    
    .home-view {
        padding: 30px 0;
    }
    
    .input-bar {
        flex-direction: column;
        border-radius: 16px;
        padding: 16px;
        gap: 16px;
    }
    
    .input-left {
        margin: 0;
    }
    
    .duration-selector {
        margin-left: 0;
        margin-top: 8px;
    }
    
    .input-bar .input-left {
        display: flex;
        gap: 12px;
        flex-wrap: wrap;
    }
    
    .main-input {
        padding: 12px 0;
    }
    
    .generate-button {
        margin: 0;
        width: 100%;
        border-radius: 12px;
    }
    
    .song-layout {
        flex-direction: column;
    }
    
    .prompt-sidebar {
        width: 100%;
    }
    
    .timeline-bottom {
        flex-direction: column;
        gap: 16px;
    }
    
    /* Mobile adjustments for new layout */
    .bottom-toolbar {
        padding: 8px 12px;
        flex-direction: column;
        gap: 8px;
        height: auto;
        bottom: 40px; /* Adjust for smaller footer */
    }
    
    .toolbar-left, .toolbar-center, .toolbar-right {
        justify-content: center;
        gap: 8px;
    }

    .transport-play { width: 44px; height: 44px; }
    .zoom-slider { width: 160px; }
    
    .app-footer {
        padding: 4px 12px;
    }
    
    .main-interface {
        padding-bottom: 120px; /* More space for stacked toolbar */
    }
    
    .time-scale {
        height: 25px;
    }
    
    .time-marker {
        font-size: 0.6rem;
    }
    
    .timeline-track {
        height: 60px; /* Smaller on mobile */
    }
    
    .section-waveform {
        height: 30px;
    }
    
    .drag-handle {
        width: 12px; /* Larger touch targets */
    }
    
    .drag-handle.left {
        left: -6px;
    }
    
    .drag-handle.right {
        right: -6px;
    }
    
    .loading-steps {
        flex-direction: column;
        gap: 24px;
    }
}

/* Login/Register Page Styles */
.container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: #000000;
}

.auth-form {
    background: transparent;
    border: 1px solid #ffffff;
    border-radius: 12px;
    padding: 40px;
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.auth-logo {
    margin-bottom: 32px;
}

.auth-logo-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: transparent;
    border: 1px solid #ffffff;
    display: inline-block;
}

.auth-form h2 {
    color: #ffffff;
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 32px;
}

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

.form-row {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
}

.form-row .form-group {
    flex: 1;
    margin-bottom: 0;
}

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

.form-group input {
    width: 100%;
    background: transparent;
    border: 1px solid #ffffff;
    border-radius: 8px;
    padding: 12px 16px;
    color: #ffffff;
    font-size: 1rem;
    transition: border-color 0.2s;
}

.form-group input:focus {
    border-color: #cccccc;
    outline: none;
}

.form-group input::placeholder {
    color: #888888;
}

.form-group input:disabled {
    background: transparent;
    color: #666;
    border-color: #666;
    cursor: not-allowed;
}

.form-group select {
    width: 100%;
    background: transparent;
    border: 1px solid #ffffff;
    border-radius: 8px;
    padding: 12px 16px;
    color: #ffffff;
    font-size: 1rem;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.form-group select:focus {
    border-color: #cccccc;
    outline: none;
}

.form-group small {
    display: block;
    color: #888888;
    font-size: 0.8rem;
    margin-top: 4px;
}

/* Settings Page Styles */
.settings-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
}

.settings-header {
    text-align: center;
    margin-bottom: 40px;
}

.settings-header h2 {
    color: #ffffff;
    font-size: 2rem;
    margin-bottom: 8px;
}

.settings-header p {
    color: #cccccc;
    font-size: 1.1rem;
}

.settings-form {
    background: transparent;
    border: 1px solid #ffffff;
    border-radius: 12px;
    padding: 32px;
}

.settings-section {
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid #ffffff;
}

.settings-section:last-of-type {
    border-bottom: none;
    margin-bottom: 24px;
}

.settings-section h3 {
    color: #ffffff;
    font-size: 1.3rem;
    margin-bottom: 16px;
    font-weight: 600;
}

.checkbox-group {
    margin-bottom: 16px;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    color: #cccccc;
    font-size: 1rem;
    line-height: 1.4;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin: 0;
    accent-color: #4CAF50;
}

.checkbox-label small {
    margin-top: 4px;
    margin-left: 24px;
}

.settings-actions {
    display: flex;
    gap: 16px;
    justify-content: flex-end;
    padding-top: 24px;
    border-top: 1px solid #333;
}

.btn-secondary {
    background: transparent;
    color: #ffffff;
    border: 1px solid #ffffff;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.2s ease;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #cccccc;
}

.btn-primary {
    width: 100%;
    background: #10b981;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 14px 20px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    margin-bottom: 24px;
}

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

.auth-links {
    text-align: center;
}

.auth-links p {
    color: #cccccc;
    font-size: 0.9rem;
    margin: 0;
}

.auth-links a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.auth-links a:hover {
    color: #cccccc;
}

/* Admin Panel Styles */
.admin-interface {
    padding: 40px;
    max-width: 1400px;
    margin: 0 auto;
}

.admin-container {
    width: 100%;
}

.admin-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 40px;
    text-align: center;
}

.admin-nav {
    display: flex;
    align-items: center;
    margin-right: 20px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: transparent;
    color: #cccccc;
    text-decoration: none;
    border: 1px solid #ffffff;
    border-radius: 8px;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border-color: #cccccc;
}

.admin-badge {
    background: #10b981;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-top: 4px;
}

/* Admin Stats */
.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    background: transparent;
    border: 1px solid #ffffff;
    border-radius: 12px;
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.stat-icon {
    font-size: 2rem;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid #ffffff;
    border-radius: 12px;
}

.stat-content {
    flex: 1;
}

.stat-number {
    font-size: 1.8rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1;
}

.stat-label {
    color: #888888;
    font-size: 0.9rem;
    margin-top: 4px;
}

/* Admin Sections */
.admin-sections {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.admin-section {
    background: transparent;
    border: 1px solid #ffffff;
    border-radius: 12px;
    overflow: hidden;
}

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

.section-header h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #ffffff;
    margin: 0;
}

.btn-secondary {
    background: transparent;
    color: #cccccc;
    border: 1px solid #ffffff;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border-color: #cccccc;
}

/* Tables */
.users-table, .tracks-table {
    width: 100%;
}

.table-header, .table-row {
    display: grid;
    grid-template-columns: 60px 200px 150px 80px 80px 120px 150px;
    gap: 16px;
    padding: 16px 24px;
    align-items: center;
}

.table-header {
    background: rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid #ffffff;
    font-weight: 600;
    color: #cccccc;
    font-size: 0.9rem;
}

.table-row {
    border-bottom: 1px solid #ffffff;
    transition: background 0.2s;
}

.table-row:hover {
    background: rgba(255, 255, 255, 0.05);
}

.table-cell {
    font-size: 0.9rem;
    color: #cccccc;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.track-title {
    font-weight: 500;
    color: #ffffff;
}

.admin-status {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-align: center;
}

.admin-yes {
    background: #10b981;
    color: white;
}

.admin-no {
    background: transparent;
    border: 1px solid #ef4444;
    color: #ef4444;
}

.action-buttons {
    display: flex;
    gap: 8px;
}

.btn-small {
    background: transparent;
    color: #cccccc;
    border: 1px solid #ffffff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-small:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border-color: #cccccc;
}

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

.btn-danger:hover {
    background: #b91c1c;
}

/* System Info */
.system-info {
    padding: 24px;
}

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

.info-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.info-label {
    color: #888888;
    font-size: 0.9rem;
}

.info-value {
    color: #ffffff;
    font-weight: 600;
    font-size: 1.1rem;
}

/* Responsive Admin Styles */
@media (max-width: 768px) {
    .admin-interface {
        padding: 20px;
    }
    
    .admin-title {
        font-size: 2rem;
        margin-bottom: 30px;
    }
    
    .admin-stats {
        grid-template-columns: 1fr;
    }
    
    .stat-card {
        padding: 20px;
    }
    
    .table-header, .table-row {
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 12px 16px;
    }
    
    .table-cell {
        padding: 4px 0;
        white-space: normal;
    }
    
    .action-buttons {
        flex-wrap: wrap;
    }
    
    .admin-nav {
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    .app-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .app-header {
        padding: 16px 20px;
    }
    
    .main-interface {
        padding: 0 20px;
    }
    
    .app-name {
        font-size: 2rem;
    }
    
    .projects-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .auth-form {
        padding: 30px 20px;
    }
}
