/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Saturated Cloud Background */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    line-height: 1.6;
    margin: 0;
    padding: 13px; /* Reduced from 20px */
    min-height: 100vh;

    /* Saturated blue and white floating clouds background */
    background: #0077FF; /* Saturated base blue */
    background-image: 
        radial-gradient(circle at 15% 15%, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0) 25%),
        radial-gradient(circle at 85% 75%, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0) 30%),
        radial-gradient(circle at 50% 40%, rgba(255, 255, 255, 0.85) 0%, rgba(255, 255, 255, 0) 35%),
        radial-gradient(circle at 25% 80%, rgba(255, 255, 255, 0.7) 0%, rgba(255, 255, 255, 0) 20%),
        radial-gradient(circle at 70% 20%, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0) 20%);
    background-size: 200% 200%;
    animation: moveClouds 20s linear infinite;
    background-attachment: fixed;
}

/* Container adjustments */
.container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    background-color: rgba(255, 255, 255, 0.98);
    min-height: calc(100vh - 26px); /* Adjusted for new body padding */
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(15px);
    border: 2px solid rgba(255, 255, 255, 0.4);
    overflow: hidden;
    padding: 0;
}

/* Updated Header - Full Width Logo */
.header {
    width: 100%;
    margin: 0;
    padding: 0;
    border-bottom: 3px solid #4285F4;
    background: linear-gradient(135deg, #87CEEB 0%, #4285F4 100%);
    position: relative;
    overflow: hidden;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 336px; /* Reduced by 30% from 480px */
    position: relative;
    padding: 13px; /* Reduced from 20px */
    box-sizing: border-box;
}

/* Hide the h1 text completely */
.logo h1 {
    display: none;
}

/* Make logo image span full width */
.logo-img {
    width: 100%;
    max-width: 800px;
    height: auto;
    max-height: 320px; /* Increased 4x from 80px */
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
    transition: transform 0.3s ease;
}

.logo-img:hover {
    transform: scale(1.02);
}

/* Add subtle sky-like animation */
@keyframes skyShimmer {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.6; }
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(255, 255, 255, 0.1) 50%,
        transparent 70%
    );
    animation: skyShimmer 4s ease-in-out infinite;
    pointer-events: none;
}

.intro-section h1 {
    text-align: center;
    margin: 0 auto 15px auto;
}

/* Ensure main content has proper spacing */
.main-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
    padding: 13px; /* Reduced from 20px */
}

/* Guitar Tab Section - Fixed Containers */
.guitar-tab-section {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(3px);
    border: 1px solid rgba(66, 133, 244, 0.15);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(66, 133, 244, 0.08);
    padding: 13px; /* Reduced from 20px */
}

.guitar-tab-section h2 {
    color: #2c3e50;
    margin-bottom: 15px;
    text-align: center;
    font-size: 1.8rem;
    font-weight: bold;
}

.guitar-tab-display {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 10px;
    margin-top: 20px;
    overflow-x: auto;
    overflow-y: visible;
    padding-bottom: 10px;
    scroll-behavior: smooth;
}

/* Fixed Tab Position - Prevent Expansion */
.tab-position {
    background: white;
    border: 2px solid #ddd;
    border-radius: 8px;
    padding: 3px;
    min-height: 200px;
    max-height: 200px;
    min-width: 120px;
    width: 100%;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    overflow: visible;
    position: relative;
    flex-shrink: 0;
}

.tab-position * {
    text-align: left !important;
}

/* Support Section */
.support-section {
    text-align: center;
    margin: 10px 0 20px 0;
}

.support-content p {
    font-size: 14px;
    color: #666;
    margin: 0;
}

.coffee-link {
    color: #e67e22;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.coffee-link:hover {
    color: #d35400;
    text-decoration: underline;
}

.chord-inversion-dropdown {
    width: 100%;
    padding: 1px; /* Reduced from 2px */
    margin-bottom: 2px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 10px;
    flex-shrink: 0;
}

/* Fixed Guitar Tab Container */
.guitar-tab-container {
    display: flex;
    flex-direction: column;
    flex: 1;
    width: 100%;
    padding: 10px 0 0 5px;
    text-align: left;
    min-height: 0;
    overflow: visible;
    margin: 0;
}

.guitar-tab-placeholder {
    color: #999;
    text-align: left;
    font-style: italic;
    font-size: 12px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

/* Fixed Tab Content - Prevent Overflow */
.guitar-tab {
    font-family: 'Courier New', monospace;
    font-size: 11px;
    line-height: 1.2;
    white-space: pre;
    text-align: left;
    background: #f8f8f8;
    padding: 2px;
    border-radius: 3px;
    border: 1px solid #ddd;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: visible;
    display: block;
    box-sizing: border-box;
    margin: 0;
}

/* Tab Content Structure */
.tab-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
    max-width: 100%;
    overflow: visible;
}
.tab-title {
    font-weight: bold;
    font-size: 10px;
    margin: 0 0 1px 0;
    color: #2c3e50;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
    display: block;
}

.tab-diagram {
    font-family: 'Courier New', monospace;
    font-size: 19px;
    line-height: 1.1;
    white-space: pre;
    margin: 5px 0 1px -3px;
    display: block;
    text-align: left;
}

/* Tab content structure improvements */
.tab-spacer {
    flex-grow: 1;
    min-height: 10px;
}

/* Ensure tab diagram takes more space on mobile */
@media (max-width: 768px) {
    .tab-diagram {
        font-size: 0.7rem !important;
        line-height: 1.2 !important;
        margin: 2px 0 !important;
        flex: 1;
        display: flex;
        align-items: flex-start;
    }
    
    .tab-title {
        font-size: 0.6rem !important;
        margin-bottom: 3px !important;
        flex-shrink: 0;
    }
    
    .tab-spacer {
        min-height: 5px;
    }
}

@media (max-width: 480px) {
    .tab-diagram {
        font-size: 0.5rem !important;
        line-height: 1.1 !important;
    }
    
    .tab-title {
        font-size: 0.5rem !important;
    }
}

/* Control Panel */
.control-group {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-shrink: 0; /* Prevent the group from shrinking too much */
    min-width: fit-content;
}

.control-group {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: nowrap;
    justify-content: center;
    min-width: 0; /* Allow items to shrink */
}

.control-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    flex-shrink: 1;
    min-width: 0;
}

.control-label {
    font-size: 11px;
    font-weight: 500;
    color: #2c3e50;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.control-btn {
    background: linear-gradient(135deg, #4285F4, #1E90FF);
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 2px 8px rgba(66, 133, 244, 0.3);
    color: white;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 1em;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    flex-shrink: 1;
}

.control-btn:hover {
    background: linear-gradient(135deg, #1E90FF, #0000FF);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(66, 133, 244, 0.4);
}

.control-btn:active {
    transform: scale(0.95);
}

.control-item {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 180px; /* Ensure consistent width */
}

.control-item label {
    font-weight: 500;
    color: #2c3e50;
    min-width: 60px; /* Consistent label width */
}

.control-item input[type="range"] {
    width: 120px;
    flex: 1;
}

.control-item span {
    min-width: 35px; /* Consistent value display width */
    font-size: 12px;
    color: #2c3e50;
    text-align: center;
}

.play-btn {
    background: linear-gradient(135deg, #4285F4, #1E90FF);
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 2px 8px rgba(66, 133, 244, 0.3);
    width: 60px;
    height: 60px;
    font-size: 24px;
}

.play-btn:hover {
    background: linear-gradient(135deg, #1E90FF, #0000FF);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(66, 133, 244, 0.4);
}

.play-btn.playing {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
}

.mode-toggle {
    width: auto;
    padding: 7px 10px; /* Reduced from 10px 15px */
    border-radius: 25px;
    position: relative;
    background: linear-gradient(135deg, #93bee9, #83b0dd);
}

.mode-toggle .mode-guitar,
.mode-toggle .mode-piano {
    display: block;
    font-size: 12px;
    transition: opacity 0.2s ease;
}

.mode-toggle.piano-mode .mode-guitar {
    opacity: 0.5;
}

.mode-toggle.guitar-mode .mode-piano {
    opacity: 0.5;
}

.strum-icon {
    font-size: 20px;
}

/* Piano Timeline Section */
.piano-timeline-section {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(3px);
    border: 1px solid rgba(66, 133, 244, 0.15);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(66, 133, 244, 0.08);
    padding: 13px; /* Reduced from 20px */
}

.timeline-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 20px;
    padding: 13px; /* Reduced from 20px */
    background: #fff;
    border-radius: 8px;
    border: 3px solid #2c3e50;
}

.timeline-container.eight-chord {
    grid-template-columns: repeat(8, 1fr);
}

.timeline-slot {
    background: #fff;
    border: 3px dashed #999;
    border-radius: 8px;
    padding: 13px; /* Reduced from 20px */
    min-height: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.2s ease;
    cursor: pointer;
}

.timeline-slot:hover {
    border-color: #3498db;
    background: #f0f8ff;
}

.timeline-slot.has-chord {
    border: 3px solid #27ae60;
    background: #e8f5e8;
}

.timeline-slot.drag-over {
    border-color: #3498db;
    background: #e3f2fd;
    transform: scale(1.05);
}

.slot-placeholder {
    color: #999;
    font-style: italic;
    text-align: center;
}

.chord-in-slot {
    background: #3498db;
    color: white;
    padding: 7px; /* Reduced from 10px */
    border-radius: 6px;
    font-weight: bold;
    text-align: center;
    width: 100%;
    cursor: grab;
}

.chord-in-slot:active {
    cursor: grabbing;
}

.remove-chord-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    background: #e74c3c;
    color: white;
    border: none;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 14px;
    cursor: pointer;
    line-height: 1;
}

.remove-chord-btn:hover {
    background: #c0392b;
}

/* Audio Controls */
.audio-controls {
    display: flex;
    align-items: center;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    padding: 10px; /* Reduced from 15px */
    background: white;
    border-radius: 6px;
    margin-bottom: 20px;
}

.control-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.control-item label {
    font-weight: 500;
    color: #2c3e50;
}

.control-item input[type="range"] {
    width: 120px;
}

.export-btn {
    background: linear-gradient(135deg, #4285F4, #000080);
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 2px 8px rgba(66, 133, 244, 0.3);
    color: white;
    padding: 7px 13px; /* Reduced from 10px 20px */
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}

.export-btn:hover {
    background: linear-gradient(135deg, #1E90FF, #000080);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(66, 133, 244, 0.4);
}

/* Chord Library */
.chord-library {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(3px);
    border: 1px solid rgba(66, 133, 244, 0.15);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(66, 133, 244, 0.08);
    padding: 13px; /* Reduced from 20px */
}

.chord-library h2 {
    color: #2c3e50;
    margin-bottom: 20px;
    text-align: center;
}

.chord-section {
    margin-bottom: 30px;
}

.chord-section h3 {
    color: #34495e;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.chord-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 10px;
}

.chord-btn {
    padding: 8px 5px; /* Reduced from 12px 8px */
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
    color: white;
    text-align: center;
    position: relative;
    user-select: none;
}

.chord-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.chord-btn:active {
    transform: translateY(0);
}

/* Chord button colors */
.chord-btn.major {
    background: #3498db;
}

.chord-btn.minor {
    background: #9b59b6;
}

.chord-btn.seventh {
    background: #e74c3c;
}

.chord-btn.major-seventh {
    background: #e67e22;
}

.chord-btn.minor-seventh {
    background: #8e44ad;
}

/* Drag and drop styles */
.chord-btn.dragging {
    opacity: 0.5;
    transform: rotate(5deg);
}

.chord-btn[draggable="true"] {
    cursor: grab;
}

.chord-btn[draggable="true"]:active {
    cursor: grabbing;
}

/* Modal Styles */
.modal {
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: #fff;
    padding: 13px; /* Reduced from 20px */
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.close {
    position: absolute;
    right: 15px;
    top: 15px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: #999;
}

.close:hover {
    color: #333;
}

.modal-body {
    margin-top: 20px;
}

/* Tempo Control Modal */
.tempo-control {
    text-align: center;
}

.tempo-display {
    font-size: 2rem;
    font-weight: bold;
    color: #2c3e50;
    margin: 20px 0;
}

.tempo-slider {
    width: 100%;
    margin: 20px 0;
}

.tempo-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.tempo-btn {
    background: #3498db;
    color: white;
    border: none;
    padding: 7px 13px; /* Reduced from 10px 20px */
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
}

.tempo-btn:hover {
    background: #2980b9;
}

/* Strum Control Modal */
.strum-control {
    text-align: center;
}

.strum-options {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    margin: 20px 0;
}

.strum-option {
    background: #95a5a6;
    color: white;
    border: none;
    padding: 10px; /* Reduced from 15px */
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    font-size: 16px;
    transition: all 0.2s ease;
}

.strum-option:hover {
    background: #7f8c8d;
}

.strum-option.active {
    background: #27ae60;
}

/* Responsive Design */
@media (max-width: 1400px) {
    body {
        padding: 13px; /* Reduced from 20px */
    }
}

/* Control Panel Base Responsive */
.control-panel {
    overflow-x: auto;
    min-width: 0;
}

.control-group {
    flex-wrap: nowrap;
    min-width: fit-content;
}

.control-item {
    flex-shrink: 1;
    min-width: 0;
}

/* Medium screens */
@media (max-width: 900px) {
    .control-group {
        gap: 15px !important;
    }
}

@media (max-width: 768px) {
    body {
        padding: 7px; /* Reduced from 10px */
    }
    
    .main-content {
        padding: 7px; /* Reduced from 10px */
    }
    
    .logo {
        height: 224px; /* Reduced by 30% from 320px */
        padding: 10px; /* Reduced from 15px */
    }
    
    .logo-img {
        max-height: 200px; /* Increased 4x from 50px */
    }
    
    .guitar-tab-display {
        grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
        gap: 8px;
        min-width: 400px;
        overflow-x: auto;
        overflow-y: visible;
        padding-bottom: 10px;
        scroll-behavior: smooth;
    }
    
    .tab-position {
        min-height: 160px;
        max-height: 160px;
        padding: 5px 4px; /* Reduced from 8px 6px */
        min-width: 100px;
        flex-shrink: 0;
    }
    
    .guitar-tab {
        font-size: 0.7rem;
        padding: 2px;
        overflow-x: auto;
        overflow-y: visible;
        white-space: pre;
        flex: 1;
        display: flex;
        align-items: flex-start;
    }
    
    .tab-title {
        font-size: 0.6rem;
        margin-bottom: 3px;
        flex-shrink: 0;
    }
    
    .tab-description {
        font-size: 5px;
        max-height: 30px;
    }
    
    .control-group {
        gap: 12px !important;
    }
    
    .control-btn {
        width: 3.5rem !important;
        height: 3.5rem !important;
        font-size: 0.9em !important;
        min-width: 0;
        flex-shrink: 1;
    }
    
    .play-btn {
        width: 4rem !important;
        height: 4rem !important;
        font-size: 1.2em !important;
    }
    
    .control-label {
        font-size: 0.65rem !important;
        white-space: nowrap;
    }
    
    .timeline-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        padding: 7px; /* Reduced from 10px */
    }
    
    .timeline-container.eight-chord {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .chord-grid {
        grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
        gap: 8px;
    }
    
    .chord-btn {
        padding: 5px 3px; /* Reduced from 8px 4px */
        font-size: 12px;
    }
    
    .audio-controls {
        flex-direction: column;
        gap: 15px;
    }
    
    /* Guitar tab section horizontal scroll */
    .guitar-tab-section {
        overflow-x: auto;
    }
    
    /* Custom scrollbar styling for guitar tabs */
    .guitar-tab-display::-webkit-scrollbar {
        height: 8px;
    }
    
    .guitar-tab-display::-webkit-scrollbar-track {
        background: #f1f1f1;
        border-radius: 4px;
    }
    
    .guitar-tab-display::-webkit-scrollbar-thumb {
        background: #888;
        border-radius: 4px;
    }
    
    .guitar-tab-display::-webkit-scrollbar-thumb:hover {
        background: #555;
    }
}

/* Mobile phones - improved control spacing */
@media (max-width: 580px) {
    .guitar-tab-display {
        min-width: 300px;
        grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
    }
    
    .control-group {
        gap: 8px !important;
    }
    
    .control-btn {
        width: 3rem !important;
        height: 3rem !important;
        font-size: 0.8em !important;
    }
    
    .play-btn {
        width: 3.5rem !important;
        height: 3.5rem !important;
        font-size: 1.1em !important;
    }
    
    .control-label {
        font-size: 0.6rem !important;
    }
}

@media (max-width: 480px) {
    body {
        padding: 3px;
    }
    
    .main-content {
        padding: 3px;
    }
    
    .logo {
        height: 168px;
        padding: 7px;
    }
    
    .logo-img {
        max-height: 160px;
    }
    
    .guitar-tab-display {
        grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
        gap: 6px;
        min-width: 250px;
    }
    
    .tab-position {
        min-height: 140px;
        max-height: 140px;
        padding: 4px 3px;
        min-width: 75px;
    }
    
    .guitar-tab {
        font-size: 0.5rem;
        padding: 1px;
        line-height: 1.1;
    }
    
    .tab-title {
        font-size: 0.5rem;
    }
    
    .tab-description {
        font-size: 4px;
        max-height: 25px;
    }
    
    .chord-inversion-dropdown {
        font-size: 9px;
        padding: 2px;
    }
    
    .control-group {
        gap: 6px !important;
    }
    
    .control-btn {
        width: 2.5rem !important;
        height: 2.5rem !important;
        font-size: 0.7em !important;
    }
    
    .play-btn {
        width: 3rem !important;
        height: 3rem !important;
        font-size: 1em !important;
    }
    
    .control-label {
        font-size: 0.5rem !important;
    }
}

/* Very small screens */
@media (max-width: 400px) {
    .control-group {
        gap: 4px !important;
    }
    
    .control-btn {
        width: 32px !important;
        height: 32px !important;
        font-size: 10px !important;
    }
    
    .play-btn {
        width: 36px !important;
        height: 36px !important;
        font-size: 14px !important;
    }
    
    .control-label {
        font-size: 7px !important;
    }
}

/* Extra small screens */
@media (max-width: 360px) {
    .control-group {
        gap: 3px !important;
    }
    
    .control-btn {
        width: 28px !important;
        height: 28px !important;
        font-size: 9px !important;
    }
    
    .play-btn {
        width: 32px !important;
        height: 32px !important;
        font-size: 12px !important;
    }
    
    .control-label {
        font-size: 6px !important;
    }
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    border: 2px solid #3498db;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    transform: translate(-50%, -50%);
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Playback indicator */
.timeline-playhead {
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: #e74c3c;
    border-radius: 2px;
    transition: left 0.1s ease;
    z-index: 10;
}

/* Success/Error states */
.success {
    background-color: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

.error {
    background-color: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}

/* Utility classes */
.hidden {
    display: none !important;
}

.fade-in {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.pulse {
    animation: pulse 0.5s ease;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Added for new background effect */
@keyframes moveClouds {
    0% { background-position: 0% 0%; }
    50% { background-position: 100% 100%; }
    100% { background-position: 0% 0%; }
}

/* Generic Button Styles for Modals */
.btn {
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    font-size: 14px;
    transition: all 0.2s ease;
    text-align: center;
    text-decoration: none;
    display: inline-block;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.btn:active {
    transform: translateY(0);
}

.btn-primary {
    background: #3498db;
    color: white;
}

.btn-primary:hover {
    background: #2980b9;
}

.btn-secondary {
    background: #95a5a6;
    color: white;
}

.btn-secondary:hover {
    background: #7f8c8d;
}

/* Modal Button Container */
.modal-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
    flex-wrap: wrap;
}

/* Preset Button Styling */
.preset-btn {
    background: #95a5a6;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    font-size: 12px;
    margin: 2px;
    transition: all 0.2s ease;
}

.preset-btn:hover {
    background: #7f8c8d;
}

.preset-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 5px;
    margin: 10px 0;
}

.tempo-presets h4 {
    margin: 15px 0 10px 0;
    color: #2c3e50;
}

.ad-container-top,
.ad-container-mid,
.ad-container-timeline,
.ad-container-bottom {
    /* Keep these for layout and spacing */
    width: 100%;
    margin: 10px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    
    /* Crucial for preventing content jump (CLS) */
    min-height: 90px; 
    
    /* --- Remove these in production --- */
    /* background-color: #f0f0f0; */
    /* border-radius: 8px; */
    /* border: 1px solid #ddd; */
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .ad-container-top,
    .ad-container-mid,
    .ad-container-timeline,
    .ad-container-bottom {
        min-height: 60px;
        margin: 8px 0;
    }
}
