/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

.container {
    max-width: 1500px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3 {
    margin-bottom: 1rem;
    line-height: 1.2;
}

h1 {
    font-size: 3rem;
    font-weight: 700;
    color: #2c3e50;
}

h2 {
    font-size: 2.5rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 2rem;
    color: #2c3e50;
}

h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #34495e;
}

p {
    margin-bottom: 1rem;
    color: #666;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.3);
}

.btn-secondary {
    background: transparent;
    color: #3498db;
    border: 2px solid #3498db;
}

.btn-secondary:hover {
    background: #3498db;
    color: white;
}

.btn-outline {
    background: transparent;
    color: #666;
    border: 2px solid #ddd;
}

.btn-outline:hover {
    border-color: #3498db;
    color: #3498db;
}

.btn-tertiary {
    background: linear-gradient(135deg, #90ee90, #7ec97e);
    color: white;
}

.btn-tertiary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(144, 238, 144, 0.3);
}

.btn-large {
    padding: 16px 32px;
    font-size: 1.1rem;
    border-radius: 12px;
}

.btn-icon {
    margin-right: 8px;
    font-size: 1.2em;
}

/* Header/Hero Section */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 80px 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-content {
    text-align: left;
}

.hero-nologo {
    width: auto;
    height: auto;
    display: block;
    margin-bottom: 20px;
}

.logo {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.hero h1 {
    color: white;
    font-size: 4rem;
    margin-bottom: 0.5rem;
}

.tagline {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: #ecf0f1;
    font-weight: 300;
}

.subtitle {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: #bdc3c7;
    line-height: 1.6;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    margin-top: 2rem;
}

.hero-image {
    text-align: center;
}

.screenshot {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    border: 3px solid rgba(255,255,255,0.1);
}

/* Make main-image1.jpg twice as big for better readability */
.hero-image {
    text-align: center;
    overflow: visible;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 600px;
    padding: 10px 0;
}

.hero-image img[src*="main-image1.jpg"] {
    transform: scale(1);
    transform-origin: center;
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    border: 3px solid rgba(255,255,255,0.1);
}

/* Features Section */
.features {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.feature {
    background: white;
    padding: 40px 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
}

.feature:hover {
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.feature h3 {
    margin-bottom: 15px;
    color: #2c3e50;
}

.feature p {
    color: #666;
    line-height: 1.7;
}

/* Screenshots Section */
.screenshots {
    padding: 80px 0;
    background: white;
}

.screenshot-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

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

.screenshot-item img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    margin-bottom: 15px;
}

.screenshot-item p {
    color: #666;
    font-weight: 500;
}

/* Download Section */
.download {
    padding: 80px 0;
    background: linear-gradient(135deg, #2c3e50, #34495e);
    color: white;
}

.download h2 {
    color: white;
    margin-bottom: 40px;
}

.download-card {
    background: white;
    border-radius: 16px;
    padding: 40px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    margin-bottom: 60px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.download-info h3 {
    color: #2c3e50;
    font-size: 2rem;
    margin-bottom: 10px;
}

.download-info p {
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.requirements {
    list-style: none;
    padding: 0;
}

.requirements li {
    padding: 8px 0;
    color: #666;
    position: relative;
    padding-left: 25px;
}

.requirements li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #27ae60;
    font-weight: bold;
}

.download-action {
    text-align: center;
}

.download-note {
    margin-top: 15px;
    color: #999;
    font-size: 0.9rem;
}

.source-info {
    text-align: center;
    background: rgba(255,255,255,0.1);
    padding: 30px;
    border-radius: 12px;
}

.source-info h3 {
    color: white;
    margin-bottom: 15px;
}

.source-info p {
    color: #ecf0f1;
    margin-bottom: 20px;
}

/* Installation Section */
.installation {
    padding: 80px 0;
    background: white;
}

.installation-steps {
    max-width: 900px;
    margin: 0 auto;
}

.installation-steps h3 {
    margin-bottom: 25px;
    color: #2c3e50;
}

.installation-steps ol {
    margin-left: 30px;
    margin-bottom: 40px;
    color: #666;
}

.installation-steps ol li {
    margin-bottom: 15px;
    line-height: 1.8;
}

.warning-box {
    background: #fff3cd;
    border: 2px solid #ffc107;
    border-radius: 12px;
    padding: 30px;
    margin: 40px 0;
}

.warning-box h4 {
    color: #856404;
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.warning-box p {
    color: #856404;
    margin-bottom: 15px;
    line-height: 1.7;
}

.warning-box blockquote {
    background: white;
    padding: 15px 20px;
    border-left: 4px solid #ffc107;
    margin: 20px 0;
    font-style: italic;
    color: #666;
}

.warning-box ol {
    margin-left: 30px;
    color: #856404;
}

.warning-box ol li {
    margin-bottom: 10px;
    line-height: 1.6;
}

.warning-box .note {
    font-size: 0.95rem;
    margin-top: 20px;
    font-style: italic;
}

.alternative-box {
    background: #d1ecf1;
    border: 2px solid #0c5460;
    border-radius: 12px;
    padding: 30px;
    margin: 40px 0;
}

.alternative-box h4 {
    color: #0c5460;
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.alternative-box p {
    color: #0c5460;
    margin-bottom: 15px;
    line-height: 1.7;
}

.alternative-box ol {
    margin-left: 30px;
    color: #0c5460;
}

.alternative-box ol li {
    margin-bottom: 10px;
    line-height: 1.6;
}

.alternative-box a {
    color: #004085;
    font-weight: 600;
}

.alternative-box a:hover {
    color: #002752;
    text-decoration: underline;
}

/* FAQ Section */
.faq {
    padding: 80px 0;
    background: #f8f9fa;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.faq-item {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.faq-item h3 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.faq-item p {
    color: #666;
    line-height: 1.7;
}

/* Footer */
.footer {
    background: #2c3e50;
    color: white;
    padding: 40px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 40px;
    align-items: center;
    margin-bottom: 30px;
}

.footer-brand h3 {
    color: white;
    margin-bottom: 5px;
}

.footer-brand p {
    color: #bdc3c7;
}

.footer-links {
    display: flex;
    gap: 30px;
}

.footer-links a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #3498db;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #34495e;
}

.footer-bottom p {
    color: #95a5a6;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }
    
    .hero-content {
        order: 1;
    }
    
    .hero-image {
        order: 2;
    }
    
    .hero-image img[src*="main-image1.jpg"] {
        transform: scale(1);
        max-width: 100%;
    }
    
    .hero h1 {
        font-size: 3rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .download-card {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 20px;
    }
    
    .footer-links {
        justify-content: center;
    }
    
    .screenshot-gallery {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .hero {
        padding: 60px 0;
    }
    
    .features,
    .screenshots,
    .download,
    .installation,
    .faq {
        padding: 60px 0;
    }
    
    .warning-box,
    .alternative-box {
        padding: 20px;
        margin: 30px 0;
    }
}

/* Additional styles for very narrow screens (360px and below) */
@media (max-width: 360px) {
    .container {
        padding: 0 0px;
    }
    
    /* Typography adjustments */
    .hero h1 {
        font-size: 2rem;
        line-height: 1.2;
    }
    
    h2 {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    h3 {
        font-size: 1.2rem;
    }
    
    .tagline {
        font-size: 1.2rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    /* Hero section adjustments */
    .hero {
        padding: 0px 0;
        min-height: auto;
    }
    
    .hero-content {
        text-align: center;
    }
    
    /* CTA buttons - ensure they stack properly */
    .cta-buttons {
        flex-direction: column;
        gap: 12px;
        margin-top: 1.5rem;
    }
    
    .cta-buttons .btn {
        width: 100%;
        padding: 10px 20px;
        font-size: 0.95rem;
    }
    
    /* PayPal donation form adjustment */
    .hero-content div[style*="height: 200px"] {
        height: auto !important;
        margin-top: 20px;
    }
    
    /* Features grid adjustments */
    .features-grid {
        gap: 20px;
        margin-top: 30px;
    }
    
    .feature {
        padding: 25px 20px;
    }
    
    .feature-icon {
        font-size: 2.5rem;
        margin-bottom: 15px;
    }
    
    .feature h3 {
        font-size: 1.1rem;
        margin-bottom: 10px;
    }
    
    .feature p {
        font-size: 0.9rem;
    }
    
    /* Screenshots section */
    .screenshot-gallery {
        gap: 20px;
        margin-top: 30px;
    }
    
    .screenshot-item p {
        font-size: 0.9rem;
        padding: 0 10px;
    }
    
    /* Download section */
    .download {
        padding: 40px 0;
    }
    
    .download-card {
        padding: 25px 20px;
        gap: 25px;
    }
    
    .download-info h3 {
        font-size: 1.5rem;
    }
    
    .download-info p {
        font-size: 1rem;
    }
    
    .requirements li {
        font-size: 0.9rem;
        padding: 6px 0;
    }
    
    .btn-large {
        padding: 12px 20px;
        font-size: 1rem;
    }
    
    .btn-icon {
        font-size: 1.1em;
    }
    
    .download-note {
        font-size: 0.85rem;
    }
    
    /* Installation section */
    .installation,
    .features,
    .screenshots,
    .faq {
        padding: 40px 0;
    }
    
    .installation-steps h3 {
        font-size: 1.2rem;
        margin-bottom: 20px;
    }
    
    .installation-steps ol {
        margin-left: 20px;
        font-size: 0.9rem;
    }
    
    .warning-box,
    .alternative-box {
        padding: 15px;
        margin: 20px 0;
    }
    
    .warning-box h4,
    .alternative-box h4 {
        font-size: 1.1rem;
        margin-bottom: 15px;
    }
    
    .warning-box p,
    .alternative-box p {
        font-size: 0.9rem;
        margin-bottom: 10px;
    }
    
    .warning-box blockquote {
        padding: 10px 15px;
        font-size: 0.85rem;
    }
    
    .warning-box ol,
    .alternative-box ol {
        margin-left: 20px;
        font-size: 0.9rem;
    }
    
    /* FAQ section */
    .faq-grid {
        gap: 20px;
        margin-top: 30px;
    }
    
    .faq-item {
        padding: 20px 15px;
    }
    
    .faq-item h3 {
        font-size: 1rem;
    }
    
    .faq-item p {
        font-size: 0.9rem;
    }
    
    /* Footer adjustments */
    .footer {
        padding: 30px 0 15px;
    }
    
    .footer-brand h3 {
        font-size: 1.2rem;
    }
    
    .footer-brand p,
    .footer-links a {
        font-size: 0.9rem;
    }
    
    .footer-links {
        gap: 20px;
    }
    
    .footer-bottom p {
        font-size: 0.85rem;
    }
    
    /* Modal adjustments */
    .modal-content {
        max-width: 95%;
    }
    
    .close {
        top: 10px;
        right: 20px;
        font-size: 30px;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Clickable Image */
.clickable-image {
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.clickable-image:hover {
    opacity: 0.9;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.9);
    cursor: pointer;
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    animation: zoom 0.3s;
}

@keyframes zoom {
    from {transform: scale(0.5)}
    to {transform: scale(1)}
}

.close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
}

.close:hover,
.close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

/* Loading animation for images */
img {
    transition: opacity 0.3s ease;
}

img:not([src]) {
    opacity: 0;
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}
/* ========================================
   APPLICATION INTERFACE STYLES
   ======================================== */

/* Application Header */
.app-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.app-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header-left .logo {
    height: 40px;
}

.header-left h1 {
    font-size: 1.5rem;
    color: white;
    margin: 0;
}

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

.auth-buttons, .user-menu {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

#username-display {
    margin-right: 1rem;
    font-weight: 500;
}

/* Welcome Section */
.welcome-section {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 4rem 0;
    text-align: center;
}

.welcome-content h2 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

.welcome-content p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: #555;
}

.feature-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.highlight {
    background: white;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    font-weight: 500;
}

/* Main Application */
.app-main {
    min-height: calc(100vh - 80px);
    background: #f8f9fa;
    padding: 2rem 0;
}

/* Application Navigation */
.app-nav {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 1rem;
}

.nav-btn {
    background: transparent;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    color: #666;
    transition: all 0.2s ease;
}

.nav-btn:hover {
    background: #e9ecef;
    color: #333;
}

.nav-btn.active {
    background: #667eea;
    color: white;
}

/* Application Sections */
.app-section {
    display: none;
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.app-section.active {
    display: block;
}

.app-section h2 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
    text-align: left;
}

/* Search Bar */
.search-bar {
    margin-bottom: 2rem;
}

.search-bar input {
    width: 100%;
    max-width: 400px;
    padding: 0.75rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
}

.search-bar input:focus {
    outline: none;
    border-color: #667eea;
}

/* Songs List */
.songs-list {
    display: grid;
    gap: 1rem;
}

.song-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    background: #fafafa;
    transition: all 0.2s ease;
}

.song-item:hover {
    border-color: #667eea;
    box-shadow: 0 2px 10px rgba(102, 126, 234, 0.1);
}

.song-info h3 {
    margin: 0 0 0.25rem 0;
    color: #2c3e50;
    font-size: 1.1rem;
}

.song-info .artist {
    margin: 0 0 0.25rem 0;
    color: #666;
    font-weight: 500;
}

.song-info .album {
    margin: 0;
    color: #888;
    font-size: 0.9rem;
}

.song-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

/* Form Styles */
.song-form {
    max-width: 600px;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #333;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.2s ease;
}

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

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

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 2rem;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    color: #aaa;
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: #333;
}

.form-footer {
    text-align: center;
    margin-top: 1rem;
    color: #666;
}

.form-footer a {
    color: #667eea;
    text-decoration: none;
}

.form-footer a:hover {
    text-decoration: underline;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 3rem;
    color: #666;
}

.empty-state a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
}

.empty-state a:hover {
    text-decoration: underline;
}

/* Message Notifications */
.message {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 1rem 1.5rem;
    border-radius: 6px;
    color: white;
    font-weight: 500;
    z-index: 1100;
    max-width: 400px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.message-success {
    background: #28a745;
}

.message-error {
    background: #dc3545;
}

.message-info {
    background: #17a2b8;
}

/* Responsive Design */
@media (max-width: 768px) {
    .app-header .container {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .song-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .song-actions {
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .app-nav {
        flex-direction: column;
    }

    .nav-btn {
        text-align: center;
    }

    .feature-highlights {
        grid-template-columns: 1fr;
    }
}

/* Desktop Download Section */
.desktop-download-section {
    margin-top: 3rem;
    padding-top: 2rem;
    text-align: center;
}

.section-divider {
    width: 50%;
    margin: 0 auto 2rem auto;
    border: none;
    height: 2px;
    background: linear-gradient(90deg, transparent, #667eea, transparent);
}

.desktop-download-section h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.desktop-download-section p {
    color: #666;
    margin-bottom: 1.5rem;
}

.desktop-download-section .btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    font-weight: 600;
}

/* Field Error Styles */
.form-group input.error,
.form-group textarea.error,
.form-group select.error {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.field-error {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: block;
}

.form-group .field-error {
    margin-bottom: 0;
}

/* Resource Finder Styles */
.resource-finder-section {
    margin-bottom: 1rem;
}

.resource-finder-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    padding: 0.5rem;
    background-color: #f8f9fa;
    border-radius: 0.25rem;
    border: 1px solid #e9ecef;
}

.resource-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
}

.resource-icon {
    font-size: 1.1rem;
}

.resource-label {
    font-weight: 500;
    color: #495057;
}

.resource-link {
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
}

.resource-link:hover {
    text-decoration: underline;
}

.no-resource {
    color: #6c757d;
    font-style: italic;
}

.btn-find-resource {
    margin-left: 1rem;
    white-space: nowrap;
}

/* Resource Search Modal */
.resource-search-modal .modal-content {
    max-width: 500px;
}

.resource-search-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin: 1rem 0;
}

.resource-search-link {
    display: block;
    padding: 0.75rem 1rem;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 0.25rem;
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
}

.resource-search-link:hover {
    background-color: #e9ecef;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.search-tip {
    background-color: #d1ecf1;
    border: 1px solid #bee5eb;
    border-radius: 0.25rem;
    padding: 0.75rem;
    margin-top: 1rem;
    font-size: 0.9rem;
    color: #0c5460;
}

/* Setlist Styles */
.setlists-row {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.setlist-controls-left {
    flex: 1;
    min-width: 0;
}

.setlist-memberships-right {
    flex: 1;
    min-width: 0;
}

.setlist-add-control {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.setlist-add-label,
.setlist-memberships-label {
    font-weight: 500;
    color: #495057;
    font-size: 0.9rem;
}

.setlist-add-wrapper {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.setlist-add-dropdown {
    flex: 1;
    padding: 0.375rem 0.75rem;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    background-color: #fff;
    font-size: 0.875rem;
}

.setlist-add-dropdown:focus {
    outline: 0;
    border-color: #80bdff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.setlist-add-dropdown:disabled {
    background-color: #e9ecef;
    opacity: 0.6;
}

.setlists-container {
    margin-top: 0.5rem;
}

.song-setlist-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0.75rem;
    margin-bottom: 0.5rem;
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 0.25rem;
}

.setlist-name {
    font-weight: 500;
    color: #495057;
}

.remove-from-setlist {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 0.25rem;
    color: #dc3545;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.remove-from-setlist:hover {
    opacity: 1;
    background-color: rgba(220, 53, 69, 0.1);
}

.no-setlists-message {
    color: #6c757d;
    font-style: italic;
    padding: 0.5rem 0;
}

.loading-setlists {
    color: #6c757d;
    padding: 0.5rem 0;
}

.setlists-error {
    color: #dc3545;
    padding: 0.5rem 0;
    font-style: italic;
}

/* Responsive design for setlists */
@media (max-width: 768px) {
    .setlists-row {
        flex-direction: column;
        gap: 1rem;
    }
}

/* Desktop App Button Styles */
.action-btn {
    padding: 8px 16px;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    background: white;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.action-btn:hover {
    background: #f8f9fa;
}

.action-btn.primary {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

.action-btn.primary:hover {
    background: #0056b3;
}

.action-btn.secondary {
    background: #6c757d;
    color: white;
    border-color: #6c757d;
}

.action-btn.secondary:hover {
    background: #5a6268;
}

/* Song Actions Layout */
.song-actions {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.song-actions .action-btn {
    min-width: 100px;
}

/* Responsive action buttons */
@media (max-width: 640px) {
    .song-actions {
        flex-direction: column;
    }

    .song-actions .action-btn {
        width: 100%;
        justify-content: center;
    }
}

/* Settings Modal Enhancements */
.setting-group {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e9ecef;
}

.setting-group:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.setting-description {
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

/* Setlists List */
.setlists-list {
    margin-bottom: 1rem;
    min-height: 60px;
}

.setlist-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 0.25rem;
}

.setlist-text {
    flex: 1;
    min-width: 0;
}

.setlist-text strong {
    display: block;
    color: #495057;
    font-weight: 600;
}

.setlist-text small {
    color: #6c757d;
    font-size: 0.85rem;
}

.setlist-count {
    color: #007bff;
    font-weight: 500;
    margin-left: 0.5rem;
}

.remove-setlist {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 0.25rem;
    color: #dc3545;
    opacity: 0.7;
    transition: opacity 0.2s ease;
    margin-left: 0.75rem;
}

.remove-setlist:hover {
    opacity: 1;
    background-color: rgba(220, 53, 69, 0.1);
}

.empty-setlists {
    color: #6c757d;
    font-style: italic;
    text-align: center;
    padding: 1rem;
}

/* Profile Section */
.profile-info {
    margin-bottom: 1rem;
}

.profile-info p {
    margin-bottom: 0.5rem;
}

.profile-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.profile-actions .action-btn {
    min-width: 120px;
}

/* Setting Item Checkbox */
.setting-item {
    display: flex;
    align-items: center;
    cursor: pointer;
    margin-bottom: 0.5rem;
}

.setting-item input[type="checkbox"] {
    margin-right: 0.75rem;
    transform: scale(1.2);
}

.setting-help {
    margin-top: 0.5rem;
    margin-bottom: 0;
}

/* Responsive settings */
@media (max-width: 640px) {
    .profile-actions {
        flex-direction: column;
    }

    .profile-actions .action-btn {
        width: 100%;
        justify-content: center;
    }
}

/* Message styles */
.error-message {
    background-color: #fee;
    color: #c00;
    border: 1px solid #fcc;
    border-radius: 4px;
    padding: 0.75rem;
    margin: 1rem 0;
    font-size: 0.9rem;
}

.success-message {
    background-color: #efe;
    color: #060;
    border: 1px solid #cfc;
    border-radius: 4px;
    padding: 0.75rem;
    margin: 1rem 0;
    font-size: 0.9rem;
}

/* Forgot password container */
.forgot-password-container {
    text-align: center;
    margin: 1rem 0;
}

.forgot-password-container a {
    color: #3498db;
    text-decoration: none;
    font-size: 0.9rem;
}

.forgot-password-container a:hover {
    text-decoration: underline;
}

/* Form help text */
.form-help {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.875rem;
    color: #666;
    line-height: 1.4;
}

/* Screenshot Carousel Styles */
.screenshot-carousel {
    margin: 2rem auto;
    max-width: 900px;
}

.carousel-container {
    position: relative;
    width: 100%;
    background: #f5f5f5;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.carousel-image {
    display: none;
    width: 100%;
    height: auto;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.carousel-image.active {
    display: block;
    opacity: 1;
}

/* Navigation Arrows */
.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 16px;
    cursor: pointer;
    font-size: 18px;
    transition: background-color 0.3s;
    z-index: 10;
}

.carousel-arrow:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.carousel-arrow.prev {
    left: 10px;
    border-radius: 0 3px 3px 0;
}

.carousel-arrow.next {
    right: 10px;
    border-radius: 3px 0 0 3px;
}

/* Dot Indicators */
.carousel-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background-color 0.3s;
}

.dot:hover {
    background-color: rgba(255, 255, 255, 0.8);
}

.dot.active {
    background-color: rgba(255, 255, 255, 1);
}

/* Responsive */
@media (max-width: 768px) {
    .screenshot-carousel {
        max-width: 100%;
        margin: 1.5rem 0;
    }

    .carousel-arrow {
        padding: 12px;
        font-size: 14px;
    }

    .dot {
        width: 10px;
        height: 10px;
    }
}

/* Basic Chords Section */
.basic-chords-control-row {
    display: flex;
    gap: 0.75rem;
    align-items: stretch;
    margin-bottom: 1.5rem;
}

.basic-chords-input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    font-size: 13px;
    font-family: inherit;
    transition: border-color 0.2s;
    height: auto;
    min-height: 36px;
    display: flex;
    align-items: center;
}

.basic-chords-input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.basic-chords-control-row .action-btn {
    flex-shrink: 0;
    white-space: nowrap;
}

.btn-chords-save,
.btn-chord-edit {
    padding: 8px 16px;
}

/* Chord Display Grid - wraps horizontally */
.chords-display-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 1rem;
}

.chord-container {
    flex-shrink: 0;
}

/* Modal divider line */
.modal-divider {
    margin: 12px 0;
    border: none;
    border-top: 1px solid #e9ecef;
}
