/* Reset and Base Styles */
:root {
    /* Dark Space Theme Colors */
    /* Core palette - default dark glass theme */
    --background-dark: #07070e; /* very dark base */
    --surface-dark: #0f1626; /* dark glass surface base */
    --text-light: #e6eef0; /* Light grey for general text */
    --text-muted: #9aa3aa; /* Muted grey for secondary text */

    /* Accent palettes (choose default via --accent-color) */
    --accent-default: #00d4a6; /* fresh teal */
    --accent-cool:    #3ec5ff; /* cool blue */
    --accent-violet:  #a87bff; /* soft violet */
    --accent-amber:   #ffb86b; /* warm amber */

    --accent-color: var(--accent-default);
    --accent-dark: color-mix(in srgb, var(--accent-color) 75%, black 25%);

    --error: #f56565; /* Red for errors */
    --success: #2dd4bf; /* Green for success */
    --purple: #533483; /* purple accent used sparingly */

    /* Border radius / shape tokens */
    --radius-sm: 0.375rem; /* 6px */
    --radius: 0.75rem; /* 12px */
    --radius-lg: 1.25rem; /* 20px */
    --border-radius: var(--radius); /* legacy alias */

    /* Spacing scale */
    --space-xxs: 0.25rem;
    --space-xs: 0.5rem;
    --space-sm: 0.75rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2.5rem;

    --transition: all 0.28s cubic-bezier(.2,.9,.2,1);

    /* Glassmorphism variables */
    --surface-glass: rgba(255,255,255,0.02); /* subtle translucent surface */
    --glass-border: rgba(255,255,255,0.06); /* faint border to emphasize glass edge */
    --glass-blur: 8px; /* backdrop blur amount for frosted effect */
    --glass-elevation: 0 10px 40px rgba(0,0,0,0.6); /* soft dark shadow */
}

/* Alternative theme presets - switch by adding data-theme attribute on html or body */
html[data-theme="cool"] {
    --accent-color: var(--accent-cool);
    --background-dark: #071025;
    --surface-dark: #0c1320;
}

html[data-theme="violet"] {
    --accent-color: var(--accent-violet);
    --background-dark: #0b0614;
    --surface-dark: #12071f;
}

html[data-theme="amber"] {
    --accent-color: var(--accent-amber);
    --background-dark: #0b0a05;
    --surface-dark: #14120a;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif; /* Using Inter as a modern default */
    line-height: 1.6; /* Slightly increased line height */
    color: var(--text-light); /* Use light text color */
    background-color: var(--background-dark); /* Use dark background color */
    min-height: 100vh; /* Ensure body takes at least full viewport height */
    position: relative; /* Needed for footer positioning */
}

/* Glassy background for the main document */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background: linear-gradient(180deg, rgba(10,10,26,0.85) 0%, rgba(22,18,46,0.85) 100%);
    pointer-events: none;
    z-index: -1;
}

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem; /* Slightly increased padding */
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3; /* Adjusted line height */
    margin-bottom: 1rem;
    color: var(--accent-color); /* Use accent color for headings */
}

h1 { font-size: 2.5rem; } /* Slightly larger headings */
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.3rem; }
h5 { font-size: 1rem; }
h6 { font-size: 0.85rem; }

p {
    margin-bottom: 1rem;
    color: var(--text-muted); /* Muted color for paragraphs */
}

a {
    color: var(--accent-color); /* Accent color for links */
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--accent-dark); /* Darker accent on hover */
    text-decoration: underline;
}


/* Button Styling (already styled in base and register_css, ensure consistency) */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center; /* Center text and icon */
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out, border-color 0.2s ease-in-out;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--accent-color);
    color: var(--background-dark); /* Dark text on accent */
    border: solid 1px var(--accent-dark);
}

.btn-primary:hover {
    background-color: var(--error);
}

.btn-secondary {
    background-color: var(--surface-dark);
    color: var(--accent-color);
    border: 1px solid var(--text-muted);
}

.btn-secondary:hover {
    background-color: #2e2e4f; /* Slightly darker surface */
    border-color: var(--accent-color);
    color: var(--accent-color);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--accent-color);
    color: var(--accent-color);
}

.btn-outline:hover {
    background-color: var(--accent-color);
    color: var(--background-dark);
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem; /* Increased margin */
}

.form-label {
    display: block;
    margin-bottom: 0.75rem; /* Increased margin */
    font-weight: 500;
    font-size: 20px;
    color: var(--accent-color);
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #333355; /* Darker border */
    border-radius: var(--border-radius);
    font-size: 1.5rem;
    transition: var(--transition);
    background-color: var(--surface-dark); /* Dark background */
    color: var(--text-light); /* Light text */
}

.form-control::placeholder {
    color: var(--text-muted); /* Muted placeholder text */
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(0, 255, 163, 0.2); /* Accent color shadow */
}

/* Cards */
.card {
    /* Glassy card */
    background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    border-radius: calc(var(--border-radius) - 0.1rem);
    box-shadow: var(--glass-elevation);
    overflow: hidden;
    color: var(--text-light); /* Light text inside cards */
}

.card-header {
    padding: 1.25rem; /* Increased padding */
    border-bottom: 1px solid #2e2e4f; /* Darker border */
    font-weight: 600;
    color: var(--accent-color); /* Accent color for header */
}

.card-body {
    padding: 1.25rem; /* Increased padding */
}

.card-footer {
    padding: 1.25rem; /* Increased padding */
    border-top: 1px solid #2e2e4f; /* Darker border */
}

/* Grid System */
.grid {
    display: grid;
    gap: 1.5rem; /* Increased gap */
}

.grid-cols-1 { grid-template-columns: repeat(1, 1fr); }
.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid-cols-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 768px) {
    .grid-cols-2, .grid-cols-3, .grid-cols-4 {
        grid-template-columns: repeat(1, 1fr);
    }
}

/* Navigation */
.navbar {
    /* Glassy navbar */
    background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
    backdrop-filter: blur(calc(var(--glass-blur) / 2));
    -webkit-backdrop-filter: blur(calc(var(--glass-blur) / 2));
    border-bottom: 1px solid var(--glass-border);
    box-shadow: 0 6px 18px rgba(0,0,0,0.6);
    padding: 1rem 0;
    position: sticky; /* Make navbar sticky */
    top: 0;
    z-index: 1000; /* Ensure it's above other content */
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-brand {
    max-width: 120px;
    font-size: 1.8rem; /* Slightly larger brand */
    font-weight: 700;
    color: var(--accent-color); /* Accent color for brand */
    text-decoration: none;
}

.site-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 120px;
}

.navbar-nav {
    display: flex;
    gap: 1.5rem; /* Increased gap */
    list-style: none;
}

.nav-link {
    color: var(--text-light); /* Light text for links */
    text-decoration: none;
    transition: var(--transition);
    font-weight: 500;
    position: relative; /* For underline effect */
    align-items: center;
    margin: auto;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: width 0.3s ease-in-out;
}

.nav-link:hover {
    color: var(--accent-color); /* Accent color on hover */
}

.nav-link:hover::after {
    width: 100%;
}

/* Mobile Navigation Toggle */
.nav-toggle {
    display: none; /* Hidden by default */
    font-size: 1.8rem;
    background: none;
    border: none;
    color: var(--purple);
    cursor: pointer;
    padding: 5px;
    transition: var(--transition);
}

.nav-toggle:hover {
    color: var(--accent-color);
}

/* Mobile Dropdown Menu */
.navbar-nav-mobile {
    display: none; /* Hidden by default */
    position: absolute;
    top: 100%; /* Position below the navbar */
    left: 0;
    width: 100%;
    background-color: var(--surface-dark);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    list-style: none;
    flex-direction: column;
    padding: 1rem 1.5rem;
    z-index: 999; /* Below sticky navbar */
}

.navbar-nav-mobile.active {
    display: flex; /* Show when active */
}

.navbar-nav-mobile li {
    margin-bottom: 1rem;
}

.navbar-nav-mobile .nav-link {
    display: block; /* Make links block level */
    padding: 0.5rem 0;
    color: var(--text-light);
}
.navbar-nav-mobile .nav-link:hover {
     color: var(--accent-color);
}
.navbar-nav-mobile .nav-link::after {
    display: none; /* Hide underline effect in dropdown */
}


/* Utilities */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }

.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-8 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-8 { margin-bottom: 2rem; }

.p-1 { padding: 0.25rem; }
.p-2 { padding: 0.5rem; }
.p-4 { padding: 1rem; }
.p-8 { padding: 2rem; }

/* Alerts */
.alert-success {
    background-color: #1a3a2e; /* Darker success background */
    color: var(--success); /* Success text color */
    border: 1px solid var(--success);
    padding: 0.75rem 1rem;
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
}
.alert-error {
    background-color: #3a1a1a; /* Darker error background */
    color: var(--error); /* Error text color */
    border: 1px solid var(--error);
    padding: 0.75rem 1rem;
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
}
.alert-warning {
     background-color: #3a321a; /* Darker warning background */
     color: var(--warning); /* Warning text color */
     border: 1px solid var(--warning);
     padding: 0.75rem 1rem;
     border-radius: var(--border-radius);
     margin-bottom: 1rem;
}

/* Loading States */
.loading {
    display: inline-block;
    width: 1.5rem;
    height: 1.5rem;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--accent-color); /* Accent color spinner */
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem; /* Adjusted padding for smaller screens */
    }

    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.8rem; }
    h3 { font-size: 1.6rem; }

    .hero-title {
        font-size: 1.5rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .search-form {
        flex-direction: column;
        gap: 1rem;
    }

    .search-input {
        font-size: 1rem;
        padding: 0.75rem 1rem;
    }

    /* Mobile Navigation */
    .navbar-nav {
        display: none; /* Hide desktop nav links */
    }

    .nav-toggle {
        display: block; /* Show mobile toggle button */
    }

    /* Footer Responsive */
    .footer-section {
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }

    .grid-cols-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .grid-cols-4 {
        grid-template-columns: 1fr;
    }


}


/* Footer Styles */
.footer {
    /* Glassy footer */
    background: linear-gradient(180deg, rgba(255,255,255,0.01), rgba(0,0,0,0.05));
    backdrop-filter: blur(calc(var(--glass-blur) / 1.5));
    -webkit-backdrop-filter: blur(calc(var(--glass-blur) / 1.5));
    border-top: 1px solid var(--glass-border);
    color: var(--text-light);
    padding: 3rem 0;
    margin-top: auto; /* Push footer to the bottom */
    margin-bottom: 100px;
}

.footer h4 {
    color: var(--accent-color); /* Accent color for footer headings */
    margin-bottom: 1rem;
}

.footer-section {
    background-color: var(--surface-dark);
    margin-bottom: 2rem;
    padding: 20px;
    border: solid 1px var(--accent-color);
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.75rem; /* Increased margin */
}

.footer-links a {
    color: var(--text-muted); /* Muted color for footer links */
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--accent-color); /* Accent color on hover */
    text-decoration: underline;
}

.social-links {
    display: flex;
    gap: 1.5rem; /* Increased gap */
}

.social-link {
    color: var(--text-muted); /* Muted color for social links */
    font-size: 1.8rem; /* Larger icons */
    transition: var(--transition);
}

.social-link:hover {
    color: var(--accent-color); /* Accent color on hover */
}

.footer-bottom {
    border-top: 1px solid #2e2e4f; /* Darker separator */
    padding-top: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 100px;
    text-align: center;
    font-size: 0.9em;
    color: var(--text-muted);
}


/* Dark Theme */
/* Already integrated into base styles */

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { transform: translateY(-20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.alert {
    animation: slideIn 0.4s ease-out; /* Slightly longer animation */
}

/* Beat card animation already exists */

/* Loading Spinner */
.loading-spinner {
    display: inline-block;
    width: 2.5rem; /* Slightly larger spinner */
    height: 2.5rem;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--accent-color); /* Accent color */
    animation: spin 1s ease-in-out infinite;
}

/* Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus Styles */
:focus {
    outline: 3px solid var(--accent-color); /* Accent color focus */
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .navbar,
    .footer,
    .btn,
    .nav-toggle, /* Hide mobile toggle */
    .navbar-nav-mobile /* Hide mobile menu */
     {
        display: none !important; /* Use !important to override display */
    }

    body {
        background: white;
        color: black;
    }

    a {
        text-decoration: underline; /* Add underline for print links */
        color: black;
    }

    .container {
        width: 100%;
        max-width: none;
        padding: 0;
    }

    /* Ensure text is black on white background for print */
    h1, h2, h3, h4, h5, h6, p, .form-label, .form-control, .card, .card-header, .card-body, .card-footer, .beat-card, .beat-card .beat-details, .beat-card .beat-title, .beat-card .producer-name, .beat-card .beat-meta, .beat-card .beat-price, .footer h4, .footer-links a, .social-link, .footer-bottom {
        color: black !important;
    }

    /* Remove background colors for print */
    .hero, .navbar, .card, .beat-card, .footer, .alert {
        background-color: transparent !important;
    }

    /* Remove shadows and borders for print */
    .card, .beat-card, .navbar, .footer, .alert {
        box-shadow: none !important;
        border: none !important;
    }

    .card-header, .card-footer, .beat-card .view-button-grid-container, .beat-card.list-view, .footer-bottom {
        border-color: #ccc !important; /* Light grey border for separators */
    }
}

/* Main content padding */
main.py-8 {
    padding-top: 3rem; /* Increased padding */
    padding-bottom: 3rem; /* Increased padding */
    flex-grow: 1; /* Allow main content to grow and push footer down */
    display: flex; /* Use flex to center content vertically */
    align-items: center; /* Center content vertically */
    justify-content: center; /* Center content horizontally */
    min-height: calc(100vh - var(--navbar-height, 4rem) - var(--footer-height, 0rem)); /* Ensure it takes up remaining height, adjust navbar/footer height variables if needed */
}

/* Centering and max-width for the form card */
.max-w-md {
    max-width: 28rem; /* Equivalent to max-w-md in Tailwind */
    width: 100%; /* Ensure it takes full width up to max-width */
    margin-left: auto;
    margin-right: auto;
}

/* Styling for the registration card */
.max-w-md > div { /* Target the div inside max-w-md */
    background-color: var(--surface-dark); /* Dark surface background */
    border-radius: var(--border-radius);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4); /* Stronger, more modern shadow */
    overflow: hidden;
    color: var(--text-light); /* Light text color */
    border: 1px solid #2e2e4f; /* Subtle border */
}

/* Padding inside the card */
.max-w-md > div .p-6 {
    padding: 2rem; /* Increased padding for a more spacious feel */
}

/* Heading styling */
.max-w-md > div .p-6 h1 {
    color: var(--accent-color); /* Ensure heading uses accent color */
    font-size: 2rem; /* Slightly larger, more prominent title */
    font-weight: 700;
    margin-bottom: 2rem; /* Increased bottom margin */
    text-align: center; /* Center the title */
}

/* Error message styling (already defined in base style.css) */
/* Ensure alert-error uses dark theme colors */
.alert-error {
    background-color: #3a1a1a; /* Darker error background */
    color: var(--error); /* Error text color */
    border: 1px solid var(--error); /* Error border color */
    padding: 1rem 1.25rem; /* Increased padding */
    border-radius: var(--border-radius);
    margin-bottom: 1.5rem; /* Increased bottom margin */
    font-size: 0.95rem;
}


/* Form styling */
.space-y-4 > div {
    margin-bottom: 1.25rem; /* Increased space between form groups */
}

/* Label styling */
.form-label { /* Using the general form-label style */
    display: block;
    text-align: left; /* Ensure labels are left-aligned */
    font-size: 0.9rem; /* Slightly larger font size */
    font-weight: 500;
    color: var(--text-light); /* Light text color */
    margin-bottom: 0.5rem; /* Increased bottom margin */
}

/* Input and Select styling */
.form-control { /* Using the general form-control style */
    width: 100%;
    padding: 0.85rem 1rem; /* Slightly more vertical padding */
    border: 1px solid #333355; /* Darker border */
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: border-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out; /* Smooth transition on focus */
    background-color: #2e2e4f; /* Slightly lighter dark background for inputs */
    color: var(--text-light); /* Light text */
    appearance: none; /* Remove default browser styling for select */
    -webkit-appearance: none;
    -moz-appearance: none;
}

.form-control::placeholder {
    color: var(--text-muted); /* Muted placeholder text */
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(0, 255, 163, 0.25); /* Slightly stronger accent color shadow */
}

/* Custom arrow for select dropdown */
select.form-control {
    background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2220%22%20height%3D%2220%22%20fill%3D%22%23e0e0e0%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M5.293%207.293a1%201%200%20011.414%200L10%2010.586l3.293-3.293a1%201%200%20111.414%201.414l-4%204a1%201%200%2001-1.414%200l-4-4a1%201%200%20010-1.414z%22%20clip-rule%3D%22evenodd%22%20fill-rule%3D%22evenodd%22%3E%3C%2Fpath%3E%3C%2Fsvg%3E');
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1.5em;
    padding-right: 2.5rem; /* Make space for the arrow */
}


/* Password hint text */
.max-w-md > div .p-6 .space-y-4 .text-sm.text-gray-500 {
    margin-top: 0.25rem; /* mt-1 */
    font-size: 0.85rem; /* Slightly smaller hint text */
    color: var(--text-muted); /* Muted text color */
}


/* Checkbox container */
.flex.items-center {
    display: flex;
    align-items: center;
}

/* Checkbox input */
.flex.items-center input[type="checkbox"] {
    height: 1.1rem; /* Slightly larger checkbox */
    width: 1.1rem; /* Slightly larger checkbox */
    color: var(--accent-color); /* Accent color for checked state */
    background-color: #2e2e4f; /* Dark background for unchecked */
    border: 1px solid #333355; /* Dark border */
    border-radius: 0.25rem; /* Slightly more rounded */
    transition: background-color 0.2s ease-in-out, border-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    cursor: pointer;
}

.flex.items-center input[type="checkbox"]:checked {
     background-color: var(--accent-color);
     border-color: var(--accent-color);
}

.flex.items-center input[type="checkbox"]:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 255, 163, 0.25);
}


/* Checkbox label */
.flex.items-center label {
    margin-left: 0.6rem; /* Increased margin */
    display: block;
    font-size: 0.9rem; /* Slightly larger label text */
    color: var(--text-light); /* Light text color */
    line-height: 1.4; /* Improve readability */
}

/* Links within checkbox label */
.flex.items-center label a {
    color: var(--accent-color); /* Accent color for links */
    text-decoration: none;
    transition: color 0.2s ease-in-out;
}

.flex.items-center label a:hover {
    color: var(--accent-dark); /* Darker accent on hover */
    text-decoration: underline;
}


/* Submit button */
.max-w-md > div .p-6 .space-y-4 button[type="submit"] {
    width: 100%; /* w-full */
    background-color: var(--accent-color); /* Accent color background */
    color: var(--background-dark); /* Dark text on accent */
    padding: 0.85rem 1.5rem; /* Increased padding for a larger button */
    border-radius: var(--border-radius);
    transition: background-color 0.2s ease-in-out;
    font-weight: 600;
    font-size: 1.1rem; /* Slightly larger font */
    letter-spacing: 0.05em; /* Add slight letter spacing */
    margin-top: 1rem; /* Add some space above the button */
}

.max-w-md > div .p-6 .space-y-4 button[type="submit"]:hover {
    background-color: var(--accent-dark); /* Darker accent on hover */
}


/* Already have an account section */
.max-w-md > div .p-6 .mt-6.text-center {
    margin-top: 2rem; /* Increased top margin */
    text-align: center;
    font-size: 0.95rem; /* Slightly larger text */
}

/* Text for login link */
.max-w-md > div .p-6 .mt-6.text-center p {
    color: var(--text-muted); /* Muted text color */
    margin-bottom: 0.75rem; /* Increased space below the text */
}

/* Login link */
.max-w-md > div .p-6 .mt-6.text-center a {
    color: var(--accent-color); /* Accent color for link */
    text-decoration: none;
    transition: color 0.2s ease-in-out;
}

.max-w-md > div .p-6 .mt-6.text-center a:hover {
    color: var(--accent-dark); /* Darker accent on hover */
    text-decoration: underline;
}

/* Styles for the sorting section in the search page sidebar */

/* Container for the sort label and select */
.sort-container {
    display: flex; /* Arrange children (label and select) in a row */
    align-items: center; /* Vertically align items */
    gap: 1rem; /* Add space between the label and the select dropdown */
    /* Adjust gap as needed based on your design */
}

/* Style for the sort label */
.sort-container .form-label {
    /* Inherits styles from .form-label, but you can add specific overrides here */
    flex-shrink: 0; /* Prevent the label from shrinking */
    margin-bottom: 0; /* Remove bottom margin if flex container handles spacing */
}

/* Style for the sort select dropdown */
.sort-container .form-control {
    /* Inherits styles from .form-control */
    flex-grow: 1; /* Allow the select dropdown to take up available space */
}

/*
 * Custom CSS for the Beat Details Page (beat.php)
 * Provides unique styling using custom class names.
 * Assumes variables and base styles from dark_space_css are included.
 */

/* Main content area for the beat page */
.beat-page-main {
    padding: 2rem 0; /* Vertical padding */
    background-color: var(--background-dark); /* Dark background */
    color: var(--text-light); /* Default text color */
    font-family: var(--font-family); /* Use defined font family */
}

/* Container (inherits from base container, but can add specific overrides) */
.beat-page-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem; /* Ensure consistent padding */
}

/* Error and Success Alerts (custom classes) */
.beat-alert {
    padding: 1rem;
    border-radius: var(--border-radius);
    margin-bottom: 2rem; /* Increased margin below alerts */
    font-size: 1rem;
}

.beat-alert-error {
    background-color: #3a1a1a; /* Darker error background */
    color: var(--error); /* Error text color */
    border: 1px solid var(--error);
}

.beat-alert-success {
    background-color: #1a3a2e; /* Darker success background */
    color: var(--success); /* Success text color */
    border: 1px solid var(--success);
}

.beat-list-disc {
    list-style: disc;
}

.beat-list-inside {
    list-style-position: inside;
}

.beat-mb-8 { margin-bottom: 2rem; } /* Custom margin bottom */
.beat-mb-4 { margin-bottom: 1rem; } /* Custom margin bottom */
.beat-mb-6 { margin-bottom: 1.5rem; } /* Custom margin bottom */
.beat-mb-2 { margin-bottom: 0.5rem; } /* Custom margin bottom */
.beat-mt-8 { margin-top: 2rem; } /* Custom margin top */
.beat-mt-4 { margin-top: 1rem; } /* Custom margin top */


/* Grid layout for beat details and purchase card/sidebar */
.beat-details-grid {
    display: grid;
    grid-template-columns: 1fr; /* Stack columns by default */
    gap: 2rem; /* Space between columns */
}

@media (min-width: 1024px) { /* Large screens and up */
    .beat-details-grid {
        grid-template-columns: 2fr 1fr; /* Two columns: main details (2/3), sidebar (1/3) */
    }
    /* Main column no longer spans 2 columns on large screens */
    .beat-details-main-column {
        grid-column: span 1 / span 1;
    }
    /* Sidebar column now takes the second column */
    .beat-sidebar-column {
        grid-column: span 1 / span 1;
    }
}

/* Card styling (custom classes) */
.beat-card {
    background-color: var(--surface-dark); /* Dark surface background */
    border-radius: var(--border-radius);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3); /* Shadow */
    border: 1px solid #2e2e4f; /* Subtle border */
    overflow: hidden; /* Ensure content respects border-radius */
}

.wish-card {
    max-width: 180px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 10px;
    gap: 20px;
    background-color: var(--surface-dark); /* Dark surface background */
    border-radius: var(--border-radius);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3); /* Shadow */
    border: 1px solid var(--error); /* Subtle border */
    overflow: hidden; /* Ensure content respects border-radius */
}

.wish-card img {
    max-width: 150px;
}

.beat-card-body {
    padding: 1.5rem; /* Padding inside card body */
}

.beat-card-header {
    padding: 1rem 1.5rem; /* Padding in card header */
    border-bottom: 1px solid var(--border-color); /* Separator */
    background-color: #2e2e4f; /* Slightly lighter background for header */
}

/* Layout for beat info section (image and content) */
.beat-info-layout {
    display: flex;
    flex-direction: column; /* Stack image and content by default */
    gap: 1.5rem; /* Space between image and content */
    align-items: flex-start; /* Align items to the start */
}

@media (min-width: 768px) { /* Medium screens and up */
    .beat-info-layout {
        flex-direction: row; /* Arrange image and content in a row */
        align-items: flex-start; /* Align items to the top */
    }
}

/* Beat cover image and placeholder */
.beat-cover-container {
    align-content: center;
    align-items: center;
    flex-shrink: 0; /* Prevent container from shrinking */
    width: 100%; /* Full width on small screens */
    max-width: 192px; /* Max width similar to original w-48 */
    position: relative; /* Needed for absolute positioning of overlay */
    border-radius: var(--border-radius); /* Apply border radius to container */
    overflow: hidden; /* Hide overflow for rounded corners */
    margin: auto;
}

@media (min-width: 768px) { /* Medium screens and up */
    .beat-cover-container {
        width: 192px; /* Fixed width on medium screens */
        margin-right: 1.5rem; /* Add space to the right of the image */
    }
}

.beat-cover-image {
    display: block; /* Remove extra space below image */
    width: 100%;
    height: 192px; /* Fixed height similar to original h-48 */
    object-fit: cover; /* Crop image */
    /* border-radius handled by container */
}

.beat-cover-placeholder {
    width: 100%;
    height: 192px;
    background-color: #333355; /* Darker placeholder background */
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280; /* Placeholder icon color */
    font-size: 3rem; /* Larger icon size */
}

.beat-placeholder-icon {
    color: #6b7280; /* Placeholder icon color */
    font-size: 3rem; /* Larger icon size */
}

.beat-placeholder-icon-sm {
    color: #6b7280; /* Placeholder icon color */
    font-size: 1.2rem; /* Smaller icon size */
}

/* Play Button Overlay */
.beat-play-button-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5); /* Semi-transparent dark overlay */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0; /* Hidden by default */
    transition: opacity 0.2s ease-in-out;
    z-index: 2; /* Above artwork */
    border-radius: var(--border-radius); /* Match image border radius */
}

.beat-cover-container:hover .beat-play-button-overlay {
    opacity: 1; /* Show on hover */
}

/* Play Button */
.beat-play-button {
    width: 3rem; /* Size of the button */
    height: 3rem;
    border-radius: 50%; /* Round shape */
    background: var(--accent-color); /* Accent color background */
    color: var(--background-dark); /* Dark text color */
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s ease-in-out, background-color 0.2s ease-in-out;
    border: none;
    font-size: 1.5em; /* Icon size */
    flex-shrink: 0;
}

.beat-play-button:hover {
    transform: scale(1.1); /* Slightly larger on hover */
    background: var(--accent-dark); /* Darker accent on hover */
}

/* Beat info content area */
.beat-info-content {
    flex-grow: 1;
    width: 90%;
}

/* Beat Title */
.beat-info-content
.beat-title h1 {
    font-size: 8rem; /* Title size */
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 2rem; /* Space below title */
}

/* Metadata grid (Genre, BPM, Key) */
.beat-metadata-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(60px, 1fr)); /* Responsive grid for metadata */
    gap: 1rem; /* Space between metadata items */
    margin-bottom: 0.75rem; /* Space below metadata grid */
}

.beat-metadata-item {
    background-color: #2e2e4f; /* Dark surface color */
    padding: 10px;
    border-radius: var(--border-radius);
    text-align: center;
    border: 1px solid var(--success); /* Subtle border */
}

.beat-metadata-label {
    font-size: 0.85rem;
    color: var(--text-muted); /* Muted text color */
    margin-bottom: 0.25rem;
}

.beat-metadata-value {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-light); /* Light text color */
}

/* Beat Description */
.beat-description {
    color: var(--text-light); /* Light text color for description */
    line-height: 1.6;
    /* You might want to style specific elements within .prose if you keep it */
}

/* Purchase Card */
.beat-purchase-card {
    /* Inherits from .beat-card, .beat-mb-8 */
}

.beat-purchase-title {
    font-size: 1.5rem; /* Purchase title size */
    font-weight: 600;
    color: var(--text-light);
}

.beat-purchase-body {
    padding: 1.5rem; /* Padding inside purchase card body */
}

/* Purchase options/prompts */
.beat-purchase-login-prompt,
.beat-purchase-success,
.beat-purchase-options {
    text-align: center;
    padding: 1.5rem 0; /* Vertical padding */
}

/* Purchase price display */
.beat-price-display {
    font-size: 2.5rem; /* Larger price size */
    font-weight: 700;
    color: var(--success); /* Use success color for price */
    margin-bottom: 0.5rem;
}

/* Insufficient balance message */
.beat-insufficient-balance {
    margin-bottom: 1rem; /* Space below message */
}

.beat-text-red-500 { color: var(--error); } /* Custom error text color */
.beat-text-green-500 { color: var(--success); } /* Custom success text color */
.beat-text-gray-700 { color: var(--text-light); } /* Custom text color */
.beat-text-gray-500 { color: var(--text-muted); } /* Custom text color */
.beat-text-blue-700 { color: var(--accent-color); } /* Custom text color */
.beat-underline { text-decoration: underline; } /* Custom underline */
.beat-text-4xl { font-size: 2.5rem; } /* Custom font size */
.beat-text-sm { font-size: 0.875rem; } /* Custom font size */


/* Button styling (custom classes) */
.beat-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center; /* Center text and icon */
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out, border-color 0.2s ease-in-out;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.beat-btn-primary {
    background-color: var(--accent-color);
    color: var(--background-dark);
}

.beat-btn-primary:hover {
    background-color: var(--accent-dark);
}

.beat-btn-secondary {
    background-color: var(--surface-light); /* Lighter surface for secondary */
    color: var(--text-light);
    border: 1px solid var(--accent-color);
}

.beat-btn-secondary:hover {
    background-color: #4f4f6f; /* Slightly lighter hover */
    border-color: var(--accent-color);
    color: var(--accent-color);
}


.beat-w-full { width: 100%; } /* Custom full width */

/* Actions Container (Like, Dislike, Wishlist buttons) */
.beat-actions-container {
    /* Inherits from .beat-card, .beat-mt-8 */
}

.beat-actions-body {
    /* Inherits from .beat-card-body */
}

.beat-action-buttons-row {
    display: flex;
    flex-wrap: wrap; /* Allow buttons to wrap on small screens */
    gap: 1rem; /* Space between buttons */
    justify-content: center; /* Center buttons horizontally */
}

/* Styling for Like, Dislike, and Wishlist Buttons */
.beat-like-button,
.beat-dislike-button,
.beat-wishlist-button {
    /* Inherit base styles from .beat-btn and .beat-btn-secondary */
    flex-grow: 1; /* Allow buttons to grow to fill space */
    min-width: 100px; /* Ensure a minimum width */
}

/* Active state for Like button */
.beat-like-button.active {
    background-color: var(--success); /* Success color when active */
    color: var(--background-dark); /* Dark text when active */
    border-color: var(--success); /* Match border color */
}

/* Active state for Dislike button */
.beat-dislike-button.active {
    background-color: var(--error); /* Error color when active */
    color: var(--background-dark); /* Dark text when active */
    border-color: var(--error); /* Match border color */
}

/* Active state for Wishlist button */
.beat-wishlist-button.active {
    background-color: var(--accent-color); /* Accent color when active */
    color: var(--background-dark); /* Dark text when active */
    border-color: var(--accent-color); /* Match border color */
}


/* Utility-like classes for spacing (custom to this page) */
.beat-mb-8 { margin-bottom: 2rem; }
.beat-mt-8 { margin-top: 2rem; }
.beat-mt-4 { margin-top: 1rem; }
/* Add other spacing classes as needed, e.g., beat-mt-4, beat-mr-2, etc. */
.beat-sr-only { /* For visually hidden labels */
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}


/* Ensure icons from Font Awesome are styled if used */
.fas {
    /* Basic icon styling if needed, otherwise rely on parent text color */
}

/* --- Sidebar Widget Styles --- */

/* Container for the sidebar column */
.beat-sidebar-column {
    display: flex;
    flex-direction: column; /* Stack widgets vertically */
    gap: 2rem; /* Space between widgets */
}

/* Widget Title */
.beat-widget-title {
    font-size: 1.25rem; /* Widget title size */
    font-weight: 600;
    color: var(--text-light);
}

/* Producer Widget */
.beat-producer-widget {
    /* Inherits from .beat-card, .beat-mb-8 */
}

.beat-producer-widget-body {
    /* Inherits from .beat-card-body */
}

.beat-producer-widget-info {
    display: flex;
    align-items: center; /* Vertically align avatar and details */
    gap: 0.12rem; /* Space between avatar and details */
}

.beat-producer-widget-avatar {
    width: 60px; /* Larger avatar size for widget */
    height: 60px;
    border-radius: 50%;
    object-fit: contain;
    border: solid var(--purple);
}

.beat-producer-widget-avatar-placeholder {
    width: 60px;
    height: 60px;
    background-color: var(--text-muted);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: start;
    color: #6b7280;
    font-size: 2em; /* Adjust icon size */
    flex-shrink: 0;
}

.beat-producer-widget-details {
    flex-grow: 1;
    margin-left: 20px;
}

.beat-producer-widget-name-link {
    font-size: 1.125rem; /* Producer name size */
    font-weight: 500;
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.2s ease-in-out;
    display: block; /* Make the link a block element */
    margin-bottom: 0.25rem; /* Space below name */
}

.beat-producer-widget-name-link:hover {
    color: var(--accent-dark);
    text-decoration: underline;
}

.beat-producer-widget-bio {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.beat-producer-widget-actions {
    text-align: center; /* Center the button */
}


/* Related Beats Widget */
.beat-related-beats-widget {
    /* Inherits from .beat-card */
}

.beat-related-beats-widget-body {
    /* Inherits from .beat-card-body */
}

.beat-related-beats-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.beat-related-beat-item {
    display: flex;
    align-items: center; /* Vertically align items */
    gap: 1rem; /* Space between items */
    padding: 0.75rem 0; /* Vertical padding for list items */
    border-bottom: 1px solid var(--border-color); /* Separator between items */
}

.beat-related-beat-item:last-child {
    border-bottom: none; /* No border for the last item */
}

.beat-related-beat-info {
    display: flex;
    align-items: center;
    gap: 0.75rem; /* Space between artwork and details */
    flex-grow: 1; /* Allow info to take space */
    overflow: hidden; /* Hide overflowing text */
}

.beat-related-beat-artwork-container {
    width: 40px; /* Smaller artwork size for related beats */
    height: 40px;
    border-radius: var(--border-radius-sm); /* Small border radius */
    overflow: hidden;
    flex-shrink: 0; /* Prevent shrinking */
    position: relative; /* Needed for play overlay */
}

.beat-related-beat-artwork,
.beat-related-beat-artwork-placeholder {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.beat-related-beat-artwork-placeholder {
    background-color: #333355;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    font-size: 1.2em;
}

/* Play overlay for related beat artwork */
.beat-related-beat-play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s ease-in-out;
    z-index: 1; /* Above artwork, below main play overlay */
    border-radius: var(--border-radius-sm);
}

.beat-related-beat-artwork-container:hover .beat-related-beat-play-overlay {
    opacity: 1;
}

/* Small play button for related beats */
.beat-play-button-sm {
    width: 2rem; /* Smaller button size */
    height: 2rem;
    font-size: 1em; /* Smaller icon size */
}


.beat-related-beat-details {
    flex-grow: 1;
    overflow: hidden;
}

.beat-related-beat-title-link {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-light);
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block; /* Make link a block element */
}

.beat-related-beat-title-link:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

.beat-related-beat-producer {
    font-size: 0.85rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block; /* Make producer name a block element */
}

.beat-related-beat-producer a {
    color: var(--text-muted);
    text-decoration: none;
}

.beat-related-beat-producer a:hover {
    color: var(--accent-color);
    text-decoration: underline;
}


.beat-related-beat-price {
    font-size: 1rem;
    font-weight: 600;
    color: var(--success);
    flex-shrink: 0; /* Prevent price from shrinking */
}

.beat-form-group {
    margin-bottom: 1rem; /* Space below form group */
}

.beat-form-label {
    display: block; /* Label on its own line */
    margin-bottom: 0.5rem; /* Space below label */
    font-weight: 500;
    color: var(--text-light);
}

.beat-form-textarea {
    width: 100%; /* Full width */
    padding: 0.75rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--accent-color);
    background-color: var(--surface-dark); /* Dark background */
    color: var(--text-light); /* Light text */
    resize: vertical; /* Allow vertical resizing */
    font-family: var(--font-family);
    font-size: 1rem;
    margin-bottom: 5px;
}

.beat-form-textarea:focus {
    outline: none;
    border-color: var(--accent-color); /* Highlight on focus */
    box-shadow: 0 0 0 3px rgba(var(--accent-color-rgb), 0.3); /* Subtle glow */
}


.beat-comment-item {
    display: flex;
    gap: 1rem; /* Space between avatar and comment content */
    padding: 1rem 0; /* Vertical padding for comment items */
    border-bottom: 1px solid var(--border-color); /* Separator between comments */
}

.beat-comment-item:last-child {
    border-bottom: none; /* No border for the last comment */
}

.beat-comment-avatar {
    justify-content: center;
    align-items: center;
    align-content: center;
    flex-shrink: 0; /* Prevent avatar from shrinking */
    width: 60px; /* Avatar size */
    height: 60px;
    border-radius: 50%;
    border: 2px solid var(--accent-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    object-fit: cover;
    margin-left: 4px;
    Z-index: 1;
}


.beat-comment-avatar-img {
    object-fit: cover;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    z-index: 0;
    margin: auto;
}

.beat-comment-avatar-placeholder {
    width: 100%;
    height: 100%;
    background-color: #333355;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    font-size: 1.5em;
}

.beat-comment-content {
    flex-grow: 1; /* Allow content to take space */
}

.beat-comment-meta {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem; /* Space below meta info */
}

.beat-comment-author {
    font-weight: 600;
    color: var(--accent-color); /* Accent color for author name */
    margin-right: 0.5rem; /* Space between author and date */
}

.beat-comment-date {
    /* Inherits color from .beat-comment-meta */
}

.beat-comment-text {
    font-size: 1rem;
    color: var(--text-light);
    line-height: 1.5;
    word-wrap: break-word; /* Prevent long words from overflowing */
}


/* Responsive adjustments for play button overlay */
@media (max-width: 767px) { /* Apply on screens smaller than 768px */
    .beat-play-button-overlay {
         position: relative; /* Change positioning on small screens */
         opacity: 1; /* Always visible on small screens */
         background: none; /* Remove background overlay */
         display: flex;
         justify-content: center;
         align-items: center;
         height: auto; /* Auto height */
         margin-top: 1rem; /* Space below the image */
    }
    
    .beat-info-layout {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .beat-play-button {
        /* Keep button size and appearance */
    }

    /* Adjust layout for action buttons on small screens */
    .beat-action-buttons-row {
        flex-direction: column; /* Stack buttons vertically */
        gap: 0.75rem; /* Adjust gap */
    }

    .beat-like-button,
    .beat-dislike-button,
    .beat-wishlist-button {
        width: 100%; /* Full width on small screens */
        flex-grow: 0; /* Prevent growing */
    }

    /* Adjust sidebar column layout on small screens */
    .beat-sidebar-column {
        gap: 1.5rem; /* Adjust gap between widgets on small screens */
    }

    /* Adjust related beat item layout on small screens */
    .beat-related-beat-item {
        flex-direction: column; /* Stack related beat items vertically */
        align-items: flex-start; /* Align items to the start */
        gap: 0.5rem; /* Adjust gap */
        padding: 0.75rem 0;
    }

    .beat-related-beat-info {
        width: 100%; /* Full width */
        gap: 0.5rem;
    }

    .beat-related-beat-artwork-container {
        width: 60px; /* Slightly larger artwork for related beats on small screens */
        height: 60px;
    }

     .beat-related-beat-play-overlay {
         opacity: 1; /* Always visible on small screens */
         background: none;
         position: relative;
         width: auto;
         height: auto;
         display: flex;
         justify-content: center;
         align-items: center;
         margin-left: 0.5rem; /* Add space after artwork */
         border-radius: 0; /* Remove border radius */
     }

    .beat-play-button-sm {
        width: 2.5rem; /* Slightly larger small play button */
        height: 2.5rem;
        font-size: 1.2em;
    }

    .beat-related-beat-details {
        width: 100%; /* Full width */
        text-align: left; /* Align text to the left */
        overflow: hidden;
    }

    .beat-related-beat-title-link,
    .beat-related-beat-producer {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .beat-related-beat-price {
        width: 100%; /* Full width */
        text-align: left; /* Align price to the left */
    }

    /* Adjust comment item layout on small screens */
    .beat-comment-item {
        flex-direction: column; /* Stack avatar and content vertically */
        align-items: flex-start; /* Align items to the start */
        gap: 0.75rem; /* Adjust gap */
    }

    .beat-comment-avatar-placeholder {
         font-size: 1.2em; /* Adjust icon size */
    }


    .beat-comment-content {
        width: 100%; /* Full width */
    }

    .beat-comment-meta {
        font-size: 0.9rem; /* Keep the same font size */
        color: var(--text-muted); /* Keep the same color */
        margin-bottom: 0.5rem; /* Keep the same margin */
    }

    .beat-comment-author {
        font-weight: 600; /* Keep the same font weight */
        color: var(--accent-color); /* Keep the same color */
        margin-right: 0.5rem; /* Keep the same margin */
    }

    .beat-comment-date {
        /* Inherits color from .beat-comment-meta */
    }

    .beat-comment-text {
        font-size: 1rem; /* Keep the same font size */
        color: var(--text-light); /* Keep the same color */
        line-height: 1.5; /* Keep the same line height */
        word-wrap: break-word; /* Keep the same word wrap */
    }
}

/* Custom CSS for the Register Page */

/* Main container for the registration page */
.register-main {
    padding-top: 2rem; /* py-8 */
    padding-bottom: 2rem; /* py-8 */
    /* Assuming background color and text color are handled by a global body style or similar */
    background-color: var(--background-dark);
    color: var(--text-light);
}

/* Container for centering content */
.register-container {
    width: 100%; /* mx-auto, px-4 */
    max-width: 1200px; /* mx-auto */
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem; /* px-4 */
    padding-right: 1rem; /* px-4 */
}

/* Wrapper for the card, applies max-width and centering */
.register-card-wrapper {
    max-width: 28rem; /* max-w-md (448px) */
    margin-left: auto; /* mx-auto */
    margin-right: auto; /* mx-auto */
}

/* Card styling */
.register-card {
    background-color: var(--surface-dark);
    border-radius: 0.5rem; /* rounded-lg */
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); /* shadow-lg */
    overflow: hidden; /* overflow-hidden */
}

/* Card body padding */
.register-card-body {
    padding: 1.5rem; /* p-6 */
}

/* Title styling */
.register-title {
    font-size: 1.5rem; /* text-2xl */
    font-weight: 700; /* font-bold */
    margin-bottom: 1.5rem; /* mb-6 */
    /* Assuming text color is handled by global styles, e.g., text-gray-900 */
}

/* Alert styling (error) */
.register-alert {
    padding: 0.75rem 1rem; /* px-4 py-3 */
    border-radius: 0.25rem; /* rounded */
    margin-bottom: 1rem; /* mb-4 */
    /* Assuming text color is handled by the specific alert class */
}

.register-alert-error {
    background-color: #fee2e2; /* bg-red-100 */
    border: 1px solid #f87171; /* border border-red-400 */
    color: #b91c1c; /* text-red-700 */
}

/* Form styling */
.register-form {
    display: flex;
    flex-direction: column;
    gap: 1rem; /* space-y-4 */
}


/* Form group for checkbox */
.form-group-checkbox {
    display: flex; /* flex items-center */
    align-items: center; /* items-center */
}

/* Form input (text, email, password) */
.form-input {
    width: 100%; /* w-full */
    padding: 0.5rem 1rem; /* px-4 py-2 */
    border: 1px solid #d1d5db; /* border border-gray-300 */
    border-radius: 0.25rem; /* rounded-lg */
    outline: none; /* focus:outline-none */
    /* Assuming text color is handled by global styles */
}

.form-input:focus {
    border-color: #3b82f6; /* focus:ring-blue-500 (border color) */
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.5); /* focus:ring-2 focus:ring-blue-500 */
}

/* Form select */
.form-select {
    width: 100%; /* w-full */
    padding: 0.5rem 1rem; /* px-4 py-2 */
    border: 1px solid #d1d5db; /* border border-gray-300 */
    border-radius: 0.25rem; /* rounded-lg */
    outline: none; /* focus:outline-none */
    /* Assuming text color and background are handled by global styles */
}

.form-select:focus {
    border-color: #3b82f6; /* focus:ring-blue-500 (border color) */
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.5); /* focus:ring-2 focus:ring-blue-500 */
}


/* Form help text (e.g., password requirements) */
.form-help-text {
    margin-top: 0.25rem; /* mt-1 */
    font-size: 0.975rem; /* text-sm */
    /* Assuming text color is handled by global styles, e.g., text-gray-500 */
}

/* Form checkbox */
.form-checkbox {
    height: 1rem; /* h-4 */
    width: 1rem; /* w-4 */
    color: #2563eb; /* text-blue-600 */
    border-color: #d1d5db; /* border-gray-300 */
    border-radius: 0.25rem; /* rounded */
    /* Assuming focus ring is handled by browser defaults or a global focus style */
}

.form-checkbox:focus {
     box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.5); /* focus:ring-blue-500 */
}


/* Form checkbox label */
.form-checkbox-label {
    margin-left: 0.5rem; /* ml-2 */
    display: block; /* block */
    font-size: 0.875rem; /* text-sm */
    /* Assuming text color is handled by global styles, e.g., text-gray-700 */
}

/* Form links (Terms, Privacy, Login) */
.form-link {
    color: #2563eb; /* text-blue-600 */
    text-decoration: none; /* Remove default underline */
    transition: color 0.2s ease-in-out; /* transition duration-200 */
}

.form-link:hover {
    color: #1d4ed8; /* hover:text-blue-700 */
    text-decoration: underline; /* Add underline on hover */
}

/* Full width utility class */
.w-full {
    width: 100%;
}

/* Footer text below the form */
.register-footer-text {
    margin-top: 1.5rem; /* mt-6 */
    text-align: center; /* text-center */
    /* Assuming text color is handled by global styles, e.g., text-gray-600 */
}

/* Style for the paragraph within footer text */
.register-footer-text p {
    /* Inherits color from parent */
}

/* Custom CSS for the Login Page */

/* Main container for the login page */
.login-main {
    padding-top: 2rem; /* py-8 */
    padding-bottom: 2rem; /* py-8 */
}

/* Container for centering content */
.login-container {
    width: 100%; /* mx-auto, px-4 */
    max-width: 1200px; /* mx-auto */
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem; /* px-4 */
    padding-right: 1rem; /* px-4 */
}

/* Wrapper for the card, applies max-width and centering */
.login-card-wrapper {
    max-width: 28rem; /* max-w-md (448px) */
    margin-left: auto; /* mx-auto */
    margin-right: auto; /* mx-auto */
}

/* Card styling */
.login-card {
    background-color: var(--surface-dark);
    border-radius: 0.5rem; /* rounded-lg */
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); /* shadow-lg */
    overflow: hidden; /* overflow-hidden */
}

/* Card body padding */
.login-card-body {
    padding: 1.5rem; /* p-6 */
}

/* Title styling */
.login-title {
    font-size: 1.5rem; /* text-2xl */
    font-weight: 700; /* font-bold */
    margin-bottom: 1.5rem; /* mb-6 */
    /* Assuming text color is handled by global styles, e.g., text-gray-900 */
}

/* Alert styling (error) */
.login-alert {
    padding: 0.75rem 1rem; /* px-4 py-3 */
    border-radius: 0.25rem; /* rounded */
    margin-bottom: 1rem; /* mb-4 */
    /* Assuming text color is handled by the specific alert class */
}

.login-alert-error {
    background-color: #fee2e2; /* bg-red-100 */
    border: 1px solid #f87171; /* border border-red-400 */
    color: #b91c1c; /* text-red-700 */
}

/* Form styling */
.login-form {
    display: flex;
    flex-direction: column;
    gap: 1rem; /* space-y-4 */
}


/* Specific styles for the checkbox group in login form */
.form-group-checkbox.justify-between {
    justify-content: space-between; /* justify-between */
}

/* Specific styles for the inner checkbox group in login form */
.form-group-checkbox.items-center {
    align-items: center; /* items-center */
}


/* Footer text below the form */
.login-footer-text {
    margin-top: 1.5rem; /* mt-6 */
    text-align: center; /* text-center */
    /* Assuming text color is handled by global styles, e.g., text-gray-600 */
}

/* Style for the paragraph within footer text */
.login-footer-text p {
    /* Inherits color from parent */
}

/* Legal Pages Styles (Dark Space Theme) */

/* Main container for legal pages */
.legal-container {
    max-width: 1200px; /* Keep max-width */
    margin: 0 auto; /* Center the container */
    padding: 2.5rem 1.5rem; /* Increased padding, similar to py-8 + px-4 */
}

/* Content wrapper (the card-like block) */
.legal-content {
    background-color: var(--surface-dark); /* Use dark surface color */
    border-radius: var(--border-radius); /* Use defined border radius */
    padding: 2.5rem; /* Increased padding */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4); /* Stronger shadow */
    color: var(--text-light); /* Default text color inside content */
}

/* Main title (H1) - Note: General h1 style in style.css might override this if loaded later */
/* Keeping this specific rule for clarity if you need to override the general h1 */
.legal-content h1 {
    font-size: 2.5em; /* Keep size */
    color: var(--accent-color); /* Use accent color for main title */
    margin-bottom: 1rem; /* Keep margin */
}

/* Last updated text */
.last-updated {
    color: var(--text-muted); /* Use muted text color */
    font-style: italic;
    margin-bottom: 2rem; /* Increased margin */
    font-size: 0.9rem; /* Keep size */
}

/* Section spacing */
.legal-content section {
    margin-bottom: 2rem; /* Increased margin between sections */
    padding-bottom: 1.5rem; /* Padding at the bottom of the section */
    border-bottom: 1px solid #2e2e4f; /* Darker separator line */
}

/* Remove border from the last section */
.legal-content section:last-child {
    border-bottom: none;
    padding-bottom: 0;
}


/* Section subtitles (H2) - Note: General h2 style might override */
.legal-content h2 {
    font-size: 1.8em; /* Keep size */
    color: var(--accent-color); /* Use accent color for subtitles */
    margin-bottom: 1.25rem; /* Increased margin */
    padding-bottom: 0.75rem; /* Increased padding */
    border-bottom: 2px solid #333355; /* Darker, slightly thicker border */
}

/* Sub-subtitles (H3) - Note: General h3 style might override */
.legal-content h3 {
    font-size: 1.4em; /* Keep size */
    color: var(--text-light); /* Use light text color */
    margin: 1.5rem 0 0.75rem; /* Increased margins */
}

/* Paragraphs - Note: General p style in style.css should handle most of this */
/* Keeping this specific rule for clarity if you need to override the general p */
.legal-content p {
    line-height: 1.6; /* Keep line height */
    color: var(--text-light); /* Use light text color */
    margin-bottom: 1rem; /* Keep margin */
}

/* Unordered lists */
.legal-content ul {
    list-style-type: disc; /* Keep disc bullets */
    margin-left: 1.5rem; /* Increased indent */
    margin-bottom: 1.5rem; /* Increased margin */
    color: var(--text-light); /* Default color for list items */
}

/* List items */
.legal-content li {
    color: var(--text-light); /* Use light text color */
    line-height: 1.6; /* Keep line height */
    margin-bottom: 0.5rem; /* Keep margin */
}

/* Remove margin from the last list item */
.legal-content li:last-child {
    margin-bottom: 0;
}

/* Links within content paragraphs */
.legal-content p a,
.legal-content li a {
    color: var(--accent-color); /* Use accent color for links */
    text-decoration: none;
    transition: var(--transition); /* Use defined transition */
}

.legal-content p a:hover,
.legal-content li a:hover {
    color: var(--accent-dark); /* Darker accent on hover */
    text-decoration: underline;
}


/* Responsive Design */
@media (max-width: 768px) {
    .legal-container {
        padding: 1.5rem; /* Reduced padding on smaller screens */
    }

    .legal-content {
        padding: 1.5rem; /* Reduced padding on smaller screens */
    }

    /* Adjust heading sizes for smaller screens */
    .legal-content h1 {
        font-size: 2em;
    }

    .legal-content h2 {
        font-size: 1.5em;
    }

    .legal-content h3 {
        font-size: 1.2em;
    }

    /* Adjust spacing on smaller screens */
    .legal-content section {
        margin-bottom: 1.5rem; /* Reduced margin */
        padding-bottom: 1rem; /* Reduced padding */
    }

    .last-updated {
        margin-bottom: 1.5rem; /* Reduced margin */
    }

    .legal-content ul {
        margin-left: 1rem; /* Reduced indent */
        margin-bottom: 1rem; /* Reduced margin */
    }

    .legal-content li {
        margin-bottom: 0.25rem; /* Reduced margin */
    }
}

/* About Page Styles (Dark Space Theme) */

/* Main container for about page */
.about-container {
    max-width: 1200px; /* Keep max-width */
    margin: 0 auto; /* Center the container */
    padding: 2.5rem 1.5rem; /* Increased padding, similar to py-8 + px-4 */
}

/* Content wrapper (the card-like block) */
.about-content {
    background-color: var(--surface-dark); /* Use dark surface color */
    border-radius: var(--border-radius); /* Use defined border radius */
    padding: 2.5rem; /* Increased padding */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4); /* Stronger shadow */
    color: var(--text-light); /* Default text color inside content */
}

/* Hero Section */
.hero-section {
    text-align: center;
    margin-bottom: 3.75rem; /* Increased margin-bottom (60px) */
}

/* Hero Section Title (H1) - Note: General h1 style in style.css might override */
.hero-section h1 {
    font-size: 3em; /* Keep size */
    color: var(--accent-color); /* Use accent color */
    margin-bottom: 1.25rem; /* Increased margin-bottom (20px) */
}

/* Hero Section Tagline */
.hero-section .tagline {
    font-size: 1em; /* Keep size */
    color: var(--text-muted); /* Use muted text color */
}

/* Mission Section */
.mission-section {
    text-align: center;
    margin-bottom: 3.75rem; /* Increased margin-bottom (60px) */
}

/* Mission Section Title (H2) - Note: General h2 style might override */
.mission-section h2 {
    font-size: 2em; /* Keep size */
    color: var(--accent-color); /* Use accent color */
    margin-bottom: 1.25rem; /* Increased margin-bottom (20px) */
}

/* Mission Section Paragraph */
.mission-section p {
    font-size: 1.1em; /* Keep size */
    line-height: 1.6; /* Keep line height */
    color: var(--text-light); /* Use light text color */
    max-width: 800px; /* Keep max-width */
    margin: 0 auto; /* Center the paragraph */
}

/* Features Section */
.features-section {
    margin-bottom: 3.75rem; /* Increased margin-bottom (60px) */
}

/* Features Section Title (H2) - Note: General h2 style might override */
.features-section h2 {
    text-align: center;
    font-size: 2em; /* Keep size */
    color: var(--accent-color); /* Use accent color */
    margin-bottom: 2.5rem; /* Increased margin-bottom (40px) */
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.875rem; /* Increased gap (30px) */
}

/* Feature Card */
.feature-card {
    background-color: #2e2e4f; /* Slightly lighter dark surface */
    padding: 1.875rem; /* Increased padding (30px) */
    border-radius: var(--border-radius); /* Use defined border radius */
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* Added box-shadow transition */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); /* Subtle initial shadow */
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4); /* Stronger shadow on hover */
}

/* Feature Card Title (H3) - Note: General h3 style might override */
.feature-card h3 {
    font-size: 1.4em; /* Keep size */
    color: var(--accent-color); /* Use accent color */
    margin-bottom: 0.9375rem; /* Increased margin-bottom (15px) */
}

/* Feature Card Paragraph */
.feature-card p {
    color: var(--text-light); /* Use light text color */
    line-height: 1.6; /* Keep line height */
}

/* Team Section */
.team-section {
    margin-bottom: 3.75rem; /* Increased margin-bottom (60px) */
}

/* Team Section Title (H2) - Note: General h2 style might override */
.team-section h2 {
    text-align: center;
    font-size: 2em; /* Keep size */
    color: var(--accent-color); /* Use accent color */
    margin-bottom: 2.5rem; /* Increased margin-bottom (40px) */
}

/* Team Grid */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem; /* Increased gap (40px) */
}

/* Team Member */
.team-member {
    text-align: center;
}

/* Team Photo */
.team-photo {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1.25rem; /* Increased margin-bottom (20px) */
    border: 5px solid var(--surface-dark); /* Use dark surface color for border */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3); /* Added shadow to photo */
}

/* Team Member Name (H3) - Note: General h3 style might override */
.team-member h3 {
    font-size: 1.4em; /* Keep size */
    color: var(--text-light); /* Use light text color */
    margin-bottom: 0.3125rem; /* Increased margin-bottom (5px) */
}

/* Team Member Position */
.team-member .position {
    color: var(--text-muted); /* Use muted text color */
    font-size: 1.1em; /* Keep size */
    margin-bottom: 0.9375rem; /* Increased margin-bottom (15px) */
}

/* Team Member Bio */
.team-member .bio {
    color: var(--text-light); /* Use light text color */
    line-height: 1.6; /* Keep line height */
}

/* Values Section */
.values-section {
    margin-bottom: 3.75rem; /* Increased margin-bottom (60px) */
}

/* Values Section Title (H2) - Note: General h2 style might override */
.values-section h2 {
    text-align: center;
    font-size: 2em; /* Keep size */
    color: var(--accent-color); /* Use accent color */
    margin-bottom: 2.5rem; /* Increased margin-bottom (40px) */
}

/* Values Grid */
.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.875rem; /* Increased gap (30px) */
}

/* Value Card */
.value-card {
    background-color: #2e2e4f; /* Slightly lighter dark surface */
    padding: 1.875rem; /* Increased padding (30px) */
    border-radius: var(--border-radius); /* Use defined border radius */
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); /* Added subtle shadow */
}

/* Value Card Title (H3) - Note: General h3 style might override */
.value-card h3 {
    font-size: 1.4em; /* Keep size */
    color: var(--accent-color); /* Use accent color */
    margin-bottom: 0.9375rem; /* Increased margin-bottom (15px) */
}

/* Value Card Paragraph */
.value-card p {
    color: var(--text-light); /* Use light text color */
    line-height: 1.6; /* Keep line height */
}

/* Contact Section */
.contact-section {
    text-align: center;
}

/* Contact Section Title (H2) - Note: General h2 style might override */
.contact-section h2 {
    font-size: 2em; /* Keep size */
    color: var(--accent-color); /* Use accent color */
    margin-bottom: 1.25rem; /* Increased margin-bottom (20px) */
}

/* Contact Section Paragraph */
.contact-section p {
    color: var(--text-light); /* Use light text color */
    margin-bottom: 1.875rem; /* Increased margin-bottom (30px) */
}

/* Contact Info Grid */
.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.875rem; /* Increased gap (30px) */
    margin-top: 2.5rem; /* Increased margin-top (40px) */
}

/* Contact Item */
.contact-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.9375rem; /* Increased gap (15px) */
}

/* Contact Item Icon */
.contact-item i {
    font-size: 1.5em; /* Keep size */
    color: var(--accent-color); /* Use accent color for icons */
}

/* Contact Item Paragraph */
.contact-item p {
    margin: 0; /* Remove default margin */
    color: var(--text-light); /* Use light text color */
}

/* Responsive Design */
@media (max-width: 768px) {
    .about-container {
        padding: 1.5rem; /* Reduced padding on smaller screens */
    }

    .about-content {
        padding: 1.5rem; /* Reduced padding on smaller screens */
    }

    /* Adjust team photo size */
    .team-photo {
        width: 150px;
        height: 150px;
    }

    /* Stack contact info items */
    .contact-info {
        grid-template-columns: 1fr;
    }
}

/* Contact Page Styles (Dark Space Theme) */

/* Main container for contact page */
.contact-container {
    max-width: 1200px; /* Keep max-width */
    margin: 0 auto; /* Center the container */
    padding: 2.5rem 1.5rem; /* Increased padding, similar to py-8 + px-4 */
}

/* Content wrapper (the card-like block) */
.contact-content {
    background-color: var(--surface-dark); /* Use dark surface color */
    border-radius: var(--border-radius); /* Use defined border radius */
    padding: 2.5rem; /* Increased padding */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4); /* Stronger shadow */
    color: var(--text-light); /* Default text color inside content */
}

/* Contact Header */
.contact-header {
    text-align: center;
    margin-bottom: 2.5rem; /* Increased margin-bottom (40px) */
}

/* Contact Header Title (H1) - Note: General h1 style in style.css might override */
.contact-header h1 {
    font-size: 2.5em; /* Keep size */
    color: var(--accent-color); /* Use accent color */
    margin-bottom: 0.9375rem; /* Increased margin-bottom (15px) */
}

/* Contact Header Paragraph */
.contact-header p {
    font-size: 1.1em; /* Keep size */
    color: var(--text-muted); /* Use muted text color */
}

/* Contact Grid */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Keep 2 columns on larger screens */
    gap: 2.5rem; /* Increased gap (40px) */
    margin-bottom: 3.75rem; /* Increased margin-bottom (60px) */
}

/* Contact Info */
.contact-info h2 {
    font-size: 1.8em; /* Keep size */
    color: var(--accent-color); /* Use accent color */
    margin-bottom: 1.875rem; /* Increased margin-bottom (30px) */
}

/* Info Items Grid */
.info-items {
    display: grid;
    gap: 1.875rem; /* Increased gap (30px) */
}

/* Info Item */
.info-item {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem; /* Increased gap (20px) */
}

/* Info Item Icon */
.info-item i {
    font-size: 1.5em; /* Keep size */
    color: var(--accent-color); /* Use accent color */
    margin-top: 0.3125rem; /* Keep margin-top (5px) */
}

/* Info Item Title (H3) - Note: General h3 style might override */
.info-item h3 {
    font-size: 1.2em; /* Keep size */
    color: var(--text-light); /* Use light text color */
    margin-bottom: 0.3125rem; /* Increased margin-bottom (5px) */
}

/* Info Item Paragraph */
.info-item p {
    color: var(--text-light); /* Use light text color */
    line-height: 1.6; /* Keep line height */
    margin: 0; /* Remove default margin */
}

/* Contact Form */
.contact-form {
    background-color: #2e2e4f; /* Slightly lighter dark surface for form */
    padding: 1.875rem; /* Increased padding (30px) */
    border-radius: var(--border-radius); /* Use defined border radius */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); /* Added subtle shadow */
}

/* Contact Form Title (H2) - Note: General h2 style might override */
.contact-form h2 {
    font-size: 1.8em; /* Keep size */
    color: var(--accent-color); /* Use accent color */
    margin-bottom: 1.875rem; /* Increased margin-bottom (30px) */
}

/* Form Group */
.form-group {
    margin-bottom: 1.25rem; /* Increased margin-bottom (20px) */
}

/* Form Group Label */
.form-group label {
    display: block;
    font-size: 1em; /* Keep size */
    color: var(--text-light); /* Use light text color */
    margin-bottom: 0.5rem; /* Increased margin-bottom (8px) */
    font-weight: 500; /* Add some weight */
}

/* Form Group Input and Textarea */
.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem; /* Increased padding (12px) */
    border: 1px solid #333355; /* Darker border */
    border-radius: 0.25rem; /* Keep border-radius */
    font-size: 1em; /* Keep size */
    color: var(--text-light); /* Use light text color */
    transition: border-color 0.3s ease, box-shadow 0.3s ease; /* Added box-shadow transition */
    background-color: var(--background-dark); /* Use dark background for inputs */
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--accent-color); /* Accent color on focus */
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 255, 163, 0.2); /* Accent color shadow */
}

.form-group textarea {
    resize: vertical;
    min-height: 120px; /* Keep min-height */
}

/* Alerts - Note: General alert styles in style.css should handle this */
/* Keeping these specific rules for clarity if you need to override */
.alert {
    padding: 0.9375rem; /* Increased padding (15px) */
    border-radius: 0.25rem; /* Keep border-radius */
    margin-bottom: 1.25rem; /* Increased margin-bottom (20px) */
    font-weight: 500; /* Add some weight */
}

.alert-success {
    background-color: #1a3a2e; /* Darker success background */
    color: var(--success); /* Use success color */
    border: 1px solid var(--success); /* Use success color for border */
}

.alert-danger {
    background-color: #3a1a1a; /* Darker error background */
    color: var(--error); /* Use error color */
    border: 1px solid var(--error); /* Use error color for border */
}

/* FAQ Section */
.faq-section {
    margin-top: 3.75rem; /* Increased margin-top (60px) */
}

/* FAQ Section Title (H2) - Note: General h2 style might override */
.faq-section h2 {
    text-align: center;
    font-size: 2em; /* Keep size */
    color: var(--accent-color); /* Use accent color */
    margin-bottom: 2.5rem; /* Increased margin-bottom (40px) */
}

/* FAQ Grid */
.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.875rem; /* Increased gap (30px) */
}

/* FAQ Item */
.faq-item {
    background-color: #2e2e4f; /* Slightly lighter dark surface */
    padding: 1.5625rem; /* Increased padding (25px) */
    border-radius: var(--border-radius); /* Use defined border radius */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); /* Added subtle shadow */
}

/* FAQ Item Title (H3) - Note: General h3 style might override */
.faq-item h3 {
    font-size: 1.2em; /* Keep size */
    color: var(--accent-color); /* Use accent color */
    margin-bottom: 0.9375rem; /* Increased margin-bottom (15px) */
}

/* FAQ Item Paragraph */
.faq-item p {
    color: var(--text-light); /* Use light text color */
    line-height: 1.6; /* Keep line height */
    margin: 0; /* Remove default margin */
}

/* Responsive Design */
@media (max-width: 768px) {
    .contact-container {
        padding: 1.5rem; /* Reduced padding on smaller screens */
    }

    .contact-content {
        padding: 1.5rem; /* Reduced padding on smaller screens */
    }

    /* Stack contact grid columns */
    .contact-grid {
        grid-template-columns: 1fr;
    }

    /* Adjust contact header title size */
    .contact-header h1 {
        font-size: 2em;
    }

    /* Adjust info items gap */
    .info-items {
        gap: 1.25rem; /* Reduced gap (20px) */
    }

    /* Stack FAQ grid columns */
    .faq-grid {
        grid-template-columns: 1fr;
    }
}

/* Homepage Styles (Dark Space Theme) */

/* Main padding for sections */
.homepage-main .homepage-section {
    padding-top: 2rem; /* py-8 */
    padding-bottom: 2rem; /* py-8 */
}

/* Dark background section */
.homepage-main .homepage-section-dark {
    background-color: var(--surface-dark); /* Use dark surface color */
}

/* Section title (reusing general h2 style but with custom margin class) */
.hero {
    padding: 50px;
    align-content: center;
    align-items: center;
    text-align: center;
}

.hero {
    width: 100%;
    height: 100%;
    background-image: url('https://avbeats.bantuplay.com/assets/images/BG5b.jpg'); /* Border image */
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
}

.hero-subtitle {
    font-size: 20px;
    color: var(--text-light);
}

.search {
    max-width: 250px;
    align-content: center;
    margin: auto;
}

/* Latest Beats List (flex layout) */
.homepage-main .latest-beats-list {
    display: flex;
    flex-direction: column;
    gap: 1rem; /* space-y-4 */
}

/* Top Producers Grid (specific column layout handled by grid-cols-4) */
.homepage-main .top-producers-grid {
    /* gap is handled by general grid class */
    /* column count is handled by grid-cols-4 */
}

/* Producer Card (reusing general card style) */
.homepage-main .producer-card {
    background: var(--surface-dark);
}

/* Producer Avatar */
.homepage-main .producer-avatar {
    width: 100%; /* Ensure image fills card width */
    height: auto; /* Maintain aspect ratio */
    object-fit: cover;
    border-top-left-radius: var(--border-radius); /* Match card border radius */
    border-top-right-radius: var(--border-radius);
    display: block; /* Remove extra space below image */
}

/* Producer Name (reusing general h3 style but with custom class for clarity) */
.homepage-main .producer-name {
    /* Inherits font-size, font-weight, color from general h3 */
    /* margin-bottom is handled by general h3 margin */
}

/* Producer Stats */
.homepage-main .producer-stats {
    font-size: 0.9em;
    color: var(--text-muted); /* Use muted text color */
    margin-bottom: 1rem; /* Space below stats */
}

/* Responsive adjustments */
@media (max-width: 1024px) { /* Adjust grid columns for medium screens */
    .homepage-main .featured-beats-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columns on medium screens */
    }
    .homepage-main .top-producers-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columns on medium screens */
    }
}

@media (max-width: 768px) { /* Adjust grid columns for small screens */
    .homepage-main .featured-beats-grid,
    .homepage-main .top-producers-grid {
        grid-template-columns: repeat(1, 1fr); /* 1 column on small screens */
    }

    /* Adjust padding on smaller screens */
    .homepage-main .homepage-section {
        padding-top: 1.5rem;
        padding-bottom: 1.5rem;
    }

    /* Adjust search form gap on small screens */
    .hero .search-form {
        flex-direction: column;
        gap: 1rem;
    }
}

/* Basic table styling */
.table {
    width: 100%;
    border-collapse: collapse; /* Remove space between borders */
    margin-top: 1rem;
    font-size: 0.9rem;
    color: var(--text-light); /* Default text color */
}

.table th,
.table td {
    padding: 12px 15px; /* Padding inside cells */
    text-align: left; /* Align text to the left */
    border-bottom: 1px solid var(--accent-dark); /* Bottom border for rows */
}

.table th {
    background: linear-gradient(90deg, rgba(0,255,163,0.08), rgba(0,204,132,0.06));
    font-weight: 700;
    color: var(--text-light); /* Header text color */
    text-transform: uppercase; /* Uppercase header text */
    font-size: 0.75rem;
}

.table tbody tr:hover {
    background-color: var(--text-muted); /* Highlight row on hover */
}

/* Optional: Stripe rows */
.table tbody tr:nth-child(even) {
    background-color: var(--background-dark); /* Lighter background for even rows */
}

/* Style for the action buttons column */
.table td:last-child {
    white-space: nowrap; /* Prevent buttons from wrapping */
}

/* Responsive table */
.overflow-x-auto {
    overflow-x: auto; /* Add horizontal scroll on small screens */
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on touch devices */
}

/* Adjust padding for smaller screens */
@media (max-width: 768px) {
    .table th,
    .table td {
        padding: 8px 10px;
    }
    .table {
        font-size: 0.8rem;
    }
     .table th {
         font-size: 0.7rem;
     }
}

/* Badge styling (assuming you have a .badge class) */
.badge {
    display: inline-block;
    padding: 0.25em 0.5em;
    font-size: 75%;
    font-weight: 700;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: 0.25rem;
    color: var(--text-light); /* Default badge text color */
}

.badge-success {
    background-color: var(--success); /* Green */
}

.badge-warning {
    background-color: #ffc107; /* Yellow */
    color: var(--text-muted); /* Dark text for yellow badge */
}

.badge-secondary {
    background-color: var(--text-muted); /* Gray */
}

.badge-danger {
    background-color: var(--error); /* Red */
}

.btn-danger {
    color: #fff;
    background-color: #dc3545;
    border-color: #dc3545;
}

.btn-danger:hover {
    color: #fff;
    background-color: #c82333;
    border-color: #bd2130;
}

.btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
    line-height: 1.5;
    border-radius: 0.2rem;
}

/* Styles for the Edit Beat Page */
.grid-cols-1 {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 1rem; /* gap-4 */
}

@media (min-width: 768px) { /* md breakpoint */
    .md-grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
     .md-grid-cols-3 {
         grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.file-upload-shrink {
    flex-shrink: 0;
}

.artwork-preview {
    height: 5rem; /* h-20 */
    width: 5rem; /* w-20 */
    object-fit: cover;
    border-radius: 0.375rem; /* rounded-md */
    border: solid 1px var(--accent-dark);
}

.form-control::file-selector-button {
    margin-right: 1rem; /* file:mr-4 */
    padding: 0.5rem 1rem; /* file:py-2 file:px-4 */
    border-radius: 0.375rem; /* file:rounded-md */
    border: 0; /* file:border-0 */
    font-size: 0.875rem; /* file:text-sm */
    font-weight: 600; /* file:font-semibold */
    background-color: var(--accent-dark); /* file:bg-blue-50 */
    color: var(--text-muted); /* file:text-blue-700 */
    cursor: pointer;
    transition: background-color 0.15s ease-in-out;
}

.form-control::file-selector-button:hover {
    background-color: var(--error); /* hover:file:bg-blue-100 */
}

.file-info {
    margin-top: 0.25rem; /* mt-1 */
    font-size: 0.875rem; /* text-sm */
    color: #718096; /* text-gray-500 */
}

.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-3xl { font-size: 1.875rem; }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mt-8 { margin-top: 2rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.text-gray-500 { color: #6b7280; }
.text-gray-600 { color: #4b5563; }
.text-center { text-align: center; }
.space-y-4 > :not([hidden]) ~ :not([hidden]) { margin-top: 1rem; }
.flex { display: flex; }
.justify-between { justify-content: space-between; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.border-b { border-bottom-width: 1px; border-color: #e5e7eb; }
.pb-4 { padding-bottom: 1rem; }
.last\:border-0:last-child { border-bottom-width: 0; }
.last\:pb-0:last-child { padding-bottom: 0; }
.overflow-x-auto { overflow-x: auto; }

/* Basic styling for the producer navigation bar */
.producer-navbar {
    background-color: #533483; /* Dark background */
    padding: 1rem 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.producer-navbar .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    justify-content: center; /* Center the nav items */
    align-items: center;
    flex-wrap: wrap; /* Allow items to wrap on smaller screens */
    gap: 1rem; /* Space between nav items */
}

.producer-nav-link {
    color: var(--text-light); /* Light text color */
    text-decoration: none;
    padding: 6px 8px;
    border-radius: 0.25rem;
    transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.3rem; /* Space between icon and text */
}

.producer-nav-link:hover {
    background-color: var(--success); /* Slightly lighter dark background on hover */
    color: var(--text-light);
}

.producer-nav-link.active {
    background-color: var(--accent-color); /* Accent color for active link */
    color: var(--background-dark);
}

/* Responsive adjustments for the navigation bar */
@media (max-width: 768px) {
    .producer-navbar .container {
        flex-direction: column; /* Stack items vertically on small screens */
        align-items: stretch; /* Stretch items to full width */
        padding: 0 0.5rem;
    }
    .producer-nav-link {
        justify-content: center; /* Center text and icon in stacked layout */
        padding: 0.75rem 1rem;
    }
}

/* Styles based on the user profile page example */
.profile-page-container {
    max-width: 1200px; /* Adjust as needed */
    width: 80%;
    margin: 0 auto;
    padding: 2rem 1rem; /* py-8 px-4 */
}

.profile-stats-item p:first-child {
    font-size: 0.875rem; /* text-sm */
    color: #4b5563; /* text-gray-600 */
}

.profile-stats-item p:last-child {
    font-size: 1.5rem; /* text-2xl */
    font-weight: bold;
}

/* Basic styling for the user navigation bar */
.user-navbar {
    background-color: #2c5282; /* A different color from producer header */
    padding: 1rem 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.user-navbar .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    justify-content: center; /* Center the nav items */
    align-items: center;
    flex-wrap: wrap; /* Allow items to wrap on smaller screens */
    gap: 1rem; /* Space between nav items */
}

.user-nav-link {
    color: var(--text-light); /* Light text color */
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 0.25rem;
    transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem; /* Space between icon and text */
}

.user-nav-link:hover {
    background-color: var(--success); /* Slightly lighter blue on hover */
    color: var(--background-dark);
}

.user-nav-link.active {
    background-color: var(--error); /* Accent color for active link */
    color: var(--background-dark);
}

/* Responsive adjustments for the navigation bar */
@media (max-width: 768px) {
    .user-navbar .container {
        flex-direction: column; /* Stack items vertically on small screens */
        align-items: stretch; /* Stretch items to full width */
        padding: 0 0.5rem;
    }
    .user-nav-link {
        justify-content: center; /* Center text and icon in stacked layout */
        padding: 0.75rem 1rem;
    }
}

/* Styling for the Recent Beats section */
.mt-8 {
    margin-top: 2rem; /* Equivalent to Tailwind's mt-8 */
}

.mb-4 {
    margin-bottom: 1rem; /* Equivalent to Tailwind's mb-4 */
}

.grid {
    display: grid;
}

.grid-cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr)); /* Equivalent to Tailwind's grid-cols-4 */
}

.gap-8 {
    gap: 2rem; /* Equivalent to Tailwind's gap-8 */
}

/* Responsive adjustments for the grid */
@media (max-width: 1024px) { /* Adjust breakpoint as needed, e.g., for 'lg' */
    .grid-cols-4 {
        grid-template-columns: repeat(3, minmax(0, 1fr)); /* 3 columns on medium screens */
    }
}

@media (max-width: 768px) { /* Adjust breakpoint as needed, e.g., for 'md' */
    .grid-cols-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr)); /* 2 columns on smaller screens */
    }
}

@media (max-width: 480px) { /* Adjust breakpoint as needed, e.g., for small screens */
    .grid-cols-4 {
        grid-template-columns: repeat(1, minmax(0, 1fr)); /* Single column on very small screens */
    }
     .gap-8 {
        gap: 1rem; /* Reduce gap on small screens */
    }
}


/* Styling for individual beat cards */
.beat-card:hover {
    transform: translateY(-5px); /* Lift card slightly on hover */
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.15); /* Enhance shadow on hover */
}

.beat-card-image {
    width: 100%; /* Make image fill the card width */
    height: 150px; /* Fixed height for consistency, adjust as needed */
    object-fit: cover; /* Cover the area without distorting aspect ratio */
}

.beat-card-content {
    padding: 1rem; /* Padding around content */
    flex-grow: 1; /* Allow content area to grow */
    display: flex;
    flex-direction: column;
}

.beat-card-title {
    font-size: 1.125rem; /* text-lg */
    font-weight: 600; /* font-semibold */
    margin-bottom: 0.5rem; /* mb-2 */
    white-space: nowrap; /* Prevent title from wrapping */
    overflow: hidden; /* Hide overflowing text */
    text-overflow: ellipsis; /* Add ellipsis for overflowing text */
}

.beat-card-producer {
    font-size: 0.875rem; /* text-sm */
    color: #4a5568; /* text-gray-700 */
    margin-bottom: 1rem; /* mb-4 */
}

.text-success {
    color: #28a745; /* Example green color */
    font-weight: bold;
}

.text-muted {
    color: #6c757d; /* Example muted color */
}

.beat-card-footer {
    margin-top: auto; /* Push footer to the bottom */
    display: flex;
    gap: 0.5rem; /* Space between buttons */
    flex-wrap: wrap; /* Allow buttons to wrap on smaller cards */
}

/* Custom CSS for Producer Public Profile */

/* Main container styling */
.producer-profile-container {
    padding-top: 2rem; /* py-8 */
    padding-bottom: 2rem; /* py-8 */
    max-width: 1400px; /* mx-auto */
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem; /* px-4 */
    padding-right: 1rem; /* px-4 */
}

/* Producer Header Card */
.producer-header-card {
    background-color: var(--surface-dark); /* bg-white */
    border-radius: 0.5rem; /* rounded-lg */
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); /* shadow-lg */
    margin-bottom: 2rem; /* mb-8 */
}

/* Header background */
.producer-header-background {
    background: linear-gradient(to right, rgba(83, 52, 131, 0.7), rgba(255, 0, 0, 0.7)), url('/assets/images/BG5b.jpg');
    background-size: cover;
    background-position: center;
    height: 12rem; /* h-48 */
}

/* Content area within header */
.producer-header-content {
    padding: 1.5rem 1.5rem; /* px-6 py-8 */
}

/* Flex container for avatar and info */
.producer-info-container {
    display: flex; /* flex */
    align-items: center; /* items-center */
    gap: 1.5rem; /* gap-6 */
}

/* Avatar image */
.producer-avatar {
    width: 8rem; /* w-32 */
    height: 8rem; /* h-32 */
    border-radius: 9999px; /* rounded-full */
    border: 4px solid var(--accent-dark); /* border-4 border-white */
    margin-top: -4rem; /* -mt-16 */
    object-fit: cover; /* object-cover */
}

/* Producer name (H1) */
.producer-name {
    font-size: 1.875rem; /* text-3xl */
    font-weight: bold;
    margin-bottom: 0.5rem; /* mb-2 */
}

/* Producer bio (P) */
.producer-bio {
    color: var(--text-muted); /* text-gray-600 */
}

/* Stats Grid */
.producer-stats-grid {
    display: grid; /* grid */
    grid-template-columns: repeat(3, minmax(0, 1fr)); /* grid-cols-3 */
    gap: 1rem; /* gap-4 */
    margin-top: 2rem; /* mt-8 */
}

/* Individual Stat Item */
.producer-stat-item {
    text-align: center; /* text-center */
}

/* Stat Value (P) */
.producer-stat-value {
    font-size: 1.5rem; /* text-2xl */
    font-weight: bold;
    color: var(--accent-color); /* text-blue-600 */
}

/* Stat Label (P) */
.producer-stat-label {
    font-size: 1.2rem;
    color: #533483; /* text-gray-600 */
}

/* Social Links Container */
.producer-social-links {
    display: flex; /* flex */
    gap: 1rem; /* gap-4 */
    margin-top: 2rem; /* mt-8 */
}

/* Individual Social Link */
.producer-social-link {
    color: #533483; /* text-gray-600 */
    text-decoration: none; /* Remove default underline */
    transition: color 0.2s ease-in-out; /* transition duration-200 */
}

.producer-social-link:hover {
    color: var(--error); /* hover:text-blue-600 */
}

/* Beats Grid */
.producer-beats-grid {
    display: grid; /* grid */
    grid-template-columns: repeat(1, minmax(0, 1fr)); /* grid-cols-1 */
    gap: 1.5rem; /* gap-6 */
}

@media (min-width: 768px) { /* md breakpoint */
    .producer-beats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)); /* md:grid-cols-2 */
    }
}

@media (min-width: 1024px) { /* lg breakpoint */
    .producer-beats-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr)); /* lg:grid-cols-3 */
    }
}


/* No Beats Message Container */
.no-beats-message {
    text-align: center; /* text-center */
    padding-top: 3rem; /* py-12 */
    padding-bottom: 3rem; /* py-12 */
}

/* No Beats Message Text */
.no-beats-text {
    color: #533483; /* text-gray-600 */
}

/* Custom CSS for Search Page Layout */

/* Container for the entire search page content */
.search-page-container {
    padding-top: 2rem; /* py-8 */
    padding-bottom: 2rem; /* py-8 */
}

/* Container for the filter section */
.filter-section {
    padding-top: 1rem; /* py-4 */
    padding-bottom: 1rem; /* py-4 */
    background-color: #533483; /* bg-gray-100 */
    border-bottom: 1px solid var(--error); /* border-b border-gray-200 */
}

/* Container for the filter form elements (row layout on medium screens and up) */
.filter-form {
    display: flex;
    flex-direction: column; /* flex-col */
    align-items: center; /* items-center */
    gap: 1rem; /* gap-4 */
}

@media (min-width: 768px) { /* md breakpoint */
    .filter-form {
        flex-direction: row; /* md:flex-row */
    }
}

/* Container for each filter group (label and input/select) */
.filter-group {
    display: flex;
    flex-direction: column; /* flex-col */
    width: 100%; /* w-full */
}

@media (min-width: 768px) { /* md breakpoint */
    .filter-group {
        width: auto; /* md:w-auto */
        flex: 1; /* flex-1 */
    }
}

/* Style for filter labels */
.filter-label {
    display: block; 
    font-size: 1.475rem; 
    font-weight: 500; 
    color: var(--background-dark); 
    margin-bottom: 0.25rem;
}

.filter-group select,
.filter-group input {
    padding: 10px;
    border: 1px solid var(--surface-dark);
    border-radius: 4px;
    background-color: #1a1a1a;
    color: #ffffff;
}

/* Specific style for price range inputs within the flex container */
.price-range-inputs {
    display: flex; /* flex */
    gap: 0.5rem; /* gap-2 */
}

.price-range-inputs .form-input {
    width: 50%; /* w-1/2 */
}

/* Container for the submit button */
.filter-submit-container {
    display: flex; /* flex */
    align-items: flex-end; /* items-end */
    width: 100%; /* w-full */
}

@media (min-width: 768px) { /* md breakpoint */
     .filter-submit-container {
        width: auto; /* md:w-auto */
    }
}

/* --- Main Content Area (Two Columns) --- */
.main-content-section {
    padding-top: 2rem; /* py-8 */
    padding-bottom: 2rem; /* py-8 */
}

.main-content-layout {
    display: flex;
    flex-direction: column; /* flex-col */
    gap: 2rem; /* gap-8 */
}

@media (min-width: 1024px) { /* lg breakpoint */
    .main-content-layout {
        flex-direction: row; /* lg:flex-row */
    }
}

/* Left Column: Beats Section */
.beats-section {
    flex: 1; /* flex-1 */
}

/* Right Column: Widget Section */
.widget-section {
    width: 100%; /* w-full */
    flex-shrink: 0; /* flex-shrink-0 */
}

@media (min-width: 1024px) { /* lg breakpoint */
    .widget-section {
        width: 16rem; /* lg:w-64 */
     }
}

/* --- Beats Display --- */

/* Container for Featured or Filtered Beats Grid */
.beats-grid {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr)); /* grid-cols-1 */
    gap: 1.5rem; /* gap-6 */
}

@media (min-width: 768px) { /* md breakpoint */
    .beats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)); /* md:grid-cols-2 */
    }
}

@media (min-width: 1024px) { /* lg breakpoint */
    .beats-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr)); /* lg:grid-cols-3 */
    }
}

/* Container for Latest Beats List (Column Layout) */
.beats-list {
    display: flex;
    flex-direction: column; /* flex-col */
    gap: 1rem; /* space-y-4 */
}

/* --- Widget Styling (Top Producers) --- */
.widget-card {
    background-color: #533483; /* bg-white */
    border-radius: 0.5rem; /* rounded-lg */
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06); /* shadow-md */
    padding: 1rem; /* p-4 */
}

.widget-title {
    font-size: 1.25rem; /* text-xl */
    font-weight: bold;
    margin-bottom: 1rem; /* mb-4 */
}

.producer-list {
    display: flex;
    flex-direction: column; /* flex-col */
    gap: 1rem; /* space-y-4 */
}

.producer-list-item {
    display: flex; /* flex */
    align-items: center; /* items-center */
    gap: 0.75rem; /* gap-3 */
    padding: 0.5rem; /* p-2 */
    border-radius: 0.375rem; /* rounded-md */
    transition: background-color 0.2s ease-in-out; /* transition duration-200 */
    text-decoration: none; /* Remove default link underline */
    color: inherit; /* Inherit text color */
}

.producer-list-item:hover {
    background-color: #f3f4f6; /* hover:bg-gray-100 */
}

.producer-avatar-small {
    width: 3.5rem; /* w-10 */
    height: 3.5rem; /* h-10 */
    border-radius: 9999px; /* rounded-full */
    object-fit: cover; /* object-cover */
}

.producer-username {
    color: var(--background-dark); /* text-gray-800 */
    font-weight: 500; /* font-medium */
    font-size: 1.275rem; /* text-sm */
}

.no-results-message {
    text-align: center; /* text-center */
    padding-top: 3rem; /* py-12 */
    padding-bottom: 3rem; /* py-12 */
}

.no-results-text {
    color: #533483; /* text-gray-600 */
}

/* --- Pagination Styling --- */
.pagination-container {
    display: flex; /* flex */
    justify-content: center; /* justify-center */
    margin-top: 2rem; /* mt-8 */
}

.pagination-links {
    display: flex; /* flex */
    gap: 0.5rem; /* gap-2 */
}

.pagination-link {
    padding: 0.5rem 1rem; /* px-4 py-2 */
    border: 1px solid var(--accent-dark); /* border */
    border-radius: 0.25rem; /* rounded */
    text-decoration: none; /* Remove underline */
    transition: background-color 0.2s ease-in-out; /* hover:bg-gray-100 transition duration-200 */
    color: #374151; /* Default text color */
}

.pagination-link:hover {
    background-color: #533483; /* hover:bg-gray-100 */
}

.pagination-link.active {
    background-color: var(--success); /* bg-blue-600 */
    color: #ffffff; /* text-white */
    border-color: #533483; /* border-blue-600 */
}

.pagination-ellipsis {
    padding: 0.5rem 1rem; /* px-4 py-2 */
    color: #4b5563; /* text-gray-600 */
}

/* --- "Become a Producer" Section --- */
.become-producer-section {
    padding-top: 3rem; /* py-12 */
    padding-bottom: 3rem; /* py-12 */
    background-image: url('https://avbeats.bantuplay.com/assets/images/BG5b.jpg'); /* Border image */
    background-size: cover;
    background-position: center;
    color: var(--surface-dark); /* text-white */
}

.become-producer-section .container {
    max-width: 1200px; /* mx-auto */
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem; /* px-4 */
    padding-right: 1rem; /* px-4 */
    text-align: center; /* text-center */
}

.become-producer-title {
    font-size: 1.875rem; /* text-3xl */
    font-weight: bold;
    margin-bottom: 1rem; /* mb-4 */
}

.become-producer-text {
    font-size: 1.125rem; /* text-lg */
    margin-bottom: 2rem; /* mb-8 */
}

/* Custom CSS for All Producers Page */

/* Main container styling */
.producers-page-container {
    padding-top: 2rem; /* py-8 */
    padding-bottom: 2rem; /* py-8 */
    max-width: 1200px; /* mx-auto */
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem; /* px-4 */
    padding-right: 1rem; /* px-4 */
}

/* Page title */
.producers-page-title {
    font-size: 2.25rem; /* text-3xl */
    font-weight: bold;
    margin-bottom: 2rem; /* mb-8 */
    text-align: center; /* Center the title */
}

/* Grid for displaying producer cards */
.producer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); /* Responsive grid, min width 200px */
    gap: 1.5rem; /* gap-6 */
}

/* Individual producer card */
.producer-card {
    background-color: var(--surface-dark);
    border-radius: 0.5rem; /* rounded-lg */
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06); /* shadow-md */
    overflow: hidden; /* overflow-hidden */
    display: flex;
    flex-direction: column; /* Stack content vertically */
    align-items: center; /* Center content horizontally */
    padding: 1.5rem; /* p-6 */
    text-align: center; /* Center text */
    text-decoration: none; /* Remove underline from the link */
    color: inherit; /* Inherit text color */
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out; /* Smooth hover effect */
}

.producer-card:hover {
    transform: translateY(-5px); /* Lift card slightly on hover */
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.15); /* Enhance shadow on hover */
}

/* Producer avatar in the card */
.producer-card-avatar {
    width: 5rem; /* w-20 */
    height: 5rem; /* h-20 */
    border-radius: 9999px; /* rounded-full */
    object-fit: cover; /* object-cover */
    margin-bottom: 1rem; /* mb-4 */
}

/* Producer username in the card */
.producer-card-username {
    font-size: 1.125rem; /* text-xl */
    font-weight: 600; /* font-semibold */
    margin-bottom: 0.5rem; /* mb-2 */
    color: var(--accent-dark); /* text-gray-800 */
}

/* Producer bio snippet in the card */
.producer-card-bio {
    font-size: 0.975rem; /* text-sm */
    color: var(--purple); /* text-gray-600 */
    display: -webkit-box;
    -webkit-line-clamp: 2; /* Limit to 2 lines */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 0; /* Remove default margin */
}

/* Message when no producers are found */
.no-producers-message {
    text-align: center; /* text-center */
    padding-top: 3rem; /* py-12 */
    padding-bottom: 3rem; /* py-12 */
}

.no-producers-text {
    color: var(--purple); /* text-gray-600 */
}

/* Profile Page Header (New Header Navigation) */
.profile-page-header {
    background-color: var(--surface-dark); /* Dark surface background for header */
    border-bottom: 1px solid var(--border-color); /* Subtle border */
    padding: 1rem 0; /* Vertical padding */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2); /* Subtle shadow */
}

.profile-header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap; /* Allow items to wrap on smaller screens */
    gap: 1rem; /* Space between header sections */
}

.profile-header-title {
    color: var(--accent-color); /* Accent color for title */
    font-size: 1.5rem; /* Larger title */
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.profile-nav-buttons ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap; /* Allow buttons to wrap */
    gap: 0.5rem; /* Space between buttons */
}

.profile-nav-buttons li.active a {
     /* Style for the active navigation button */
     background-color: var(--accent-color);
     color: var(--background-dark);
     font-weight: 600;
}

.profile-header-actions {
    display: flex;
    flex-wrap: wrap; /* Allow action buttons to wrap */
    gap: 0.5rem; /* Space between action buttons */
}

/* Profile Page Title within Main Content */
.profile-page-title {
    margin-bottom: 2rem; /* Space below the main title */
}

.profile-page-title h1 {
    font-size: 2rem; /* Main page title size */
    font-weight: 700;
    color: var(--text-light); /* Light text color */
    margin: 0 0 1rem; /* Space below the title */
}

/* Profile Section Styling */
.profile-section {
    background-color: var(--surface-dark); /* Dark surface background */
    border-radius: var(--border-radius);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3); /* Shadow */
    padding: 1rem;
    margin: 1.5rem;
    border: 1px solid #2e2e4f; /* Subtle border */
}

.profile-section h2 {
    font-size: 1.5rem; /* Section title size */
    font-weight: 600;
    color: var(--text-light); /* Light text color */
    margin-bottom: 1.5rem; /* Space below section title */
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-color); /* Separator line */
}


/* Error Message Styling */
.error-message {
    display: block;
    color: var(--error); /* Error text color */
    font-size: 0.85rem;
    margin-top: 0.25rem;
}

/* Profile Image Upload Section */
.profile-image-upload {
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* Align items to the start */
    margin-bottom: 1.5rem; /* Space below the upload section */
}

.profile-image-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem; /* Space between image and button */
    margin-top: 0.5rem; /* Space below label */
}

.profile-image-preview {
    width: 80px; /* Size of the preview image */
    height: 80px;
    object-fit: cover; /* Crop image to fit */
    border-radius: 50%; /* Make it round */
    border: 2px solid var(--accent-color); /* Accent border */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    flex-shrink: 0;
}

/* Recent Orders List */
.orders-list {
    display: flex;
    flex-direction: column;
    gap: 1rem; /* Space between order items */
}

.order-item {
    background-color: var(--surface-light); /* Lighter surface for list items */
    border-radius: var(--border-radius);
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap; /* Allow items to wrap on small screens */
    gap: 0.75rem; /* Space between info, total, and button */
    border: 1px solid #333355; /* Subtle border */
}

.order-info h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-light);
    margin: 0 0 0.25rem;
}

.order-date, .order-items {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0;
}

.order-total {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--accent-color);
}

/* Wishlist Grid */
.wishlist-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); /* Responsive grid */
    gap: 1.5rem; /* Space between beat cards */
}

/* No Data Message */
.no-data {
    color: var(--text-muted);
    text-align: center;
    padding: 1.5rem;
    font-style: italic;
}

.beat-cover {
    margin-top: 15px;
    margin: auto;
    padding: 5px;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .profile-header-container {
        flex-direction: column; /* Stack header sections on small screens */
        align-items: flex-start; /* Align items to the left */
    }

    .profile-nav-buttons ul,
    .profile-header-actions {
        width: 100%; /* Full width for navigation and actions */
        justify-content: flex-start; /* Align buttons to the left */
    }

    .profile-nav-buttons ul {
        margin-top: 1rem; /* Space above navigation buttons */
    }

    .profile-header-actions {
         margin-top: 0.5rem; /* Space above action buttons */
    }

    .profile-grid {
        grid-template-columns: 1fr; /* Always stack sections on small screens */
    }

    .profile-section {
        padding: 1rem; /* Reduce padding on small screens */
        margin: 1rem;
    }

    .profile-section h2 {
        font-size: 1.3rem; /* Smaller section titles on small screens */
        margin-bottom: 1rem;
        padding-bottom: 0.5rem;
    }

    .form-group {
        margin-bottom: 1rem; /* Reduce space between form groups */
    }

    .form-control {
        padding: 0.6rem 0.8rem; /* Reduce padding on inputs */
    }

    .btn {
        padding: 0.6rem 1.2rem; /* Reduce padding on buttons */
        font-size: 0.95rem;
    }

    .btn-sm {
        padding: 0.4rem 0.8rem; /* Reduce padding on small buttons */
        font-size: 0.85rem;
    }

    .profile-image-container {
        flex-direction: column; /* Stack image and button vertically */
        align-items: flex-start; /* Align items to the left */
        gap: 0.75rem; /* Reduce space */
    }

    .profile-image-preview {
        width: 60px; /* Smaller image preview */
        height: 60px;
    }

    .order-item {
        flex-direction: column; /* Stack order item details */
        align-items: flex-start;
        gap: 0.5rem;
    }

    .order-total {
        width: 100%; /* Full width for total */
        text-align: left;
    }

    .order-item .btn {
        width: auto; /* Auto width for view details button */
    }

    .wishlist-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); /* Adjust grid for smaller screens */
        gap: 1rem;
    }

    .beat-cover {
        height: 150px; /* Smaller cover image height */
    }

    .beat-info {
        padding: 0.75rem; /* Reduce padding */
    }

    .beat-info h3 {
        font-size: 1rem; /* Smaller beat title */
    }

    .beat-price {
        font-size: 0.9rem; /* Smaller price */
        margin-bottom: 0.75rem;
    }

    .beat-actions {
        flex-direction: column; /* Stack beat action buttons */
        gap: 0.5rem;
    }

     .beat-actions .btn {
        width: 100%; /* Full width for beat action buttons */
     }
}


/* Basic Styling for Notifications */
.notifications-dropdown {
    position: relative;
    display: inline-block;
}

.notifications-toggle {
    position: relative;
    background: none;
    border: none;
    color: var(--purple);
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0.5rem;
    margin-left: 80px;
    transition: color 0.2s;
}

.notifications-toggle:hover {
    color: var(--success);
}

.notification-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--error);
    color: white;
    font-size: 0.75rem;
    padding: 2px 2px;
    border-radius: 1rem;
    min-width: 1.5rem;
    text-align: center;
}

.notifications-menu {
    position: absolute;
    top: 100%;
    right: 0;
    width: 320px;
    background: var(--surface-dark);
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    margin-top: 0.5rem;
    display: none;
    z-index: 1000;
}

@media (max-width: 768px){
    .notifications-menu {
        width: 280px;
    }
}

.notifications-menu.show {
    display: block;
}

.notifications-header {
    padding: 1rem;
    border-bottom: 1px solid var(--accent-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.notifications-header h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
}

.mark-all-read {
    background: none;
    border: none;
    color: var(--success);
    font-size: 0.875rem;
    cursor: pointer;
}

.notifications-list {
    max-height: 400px;
    overflow-y: auto;
}

.notification-item {
    padding: 1rem;
    border-bottom: 1px solid var(--accent-color);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    transition: background-color 0.2s;
}

.notification-item i {
    margin-right: 10px;
    color: var(--accent-dark);
}

.notification-item:hover {
    background-color: var(--purple);
}

.notification-content {
    flex: 1;
    margin-right: 0.5rem;
}

.notification-message {
    margin: 0 0 0.25rem;
    font-size: 0.875rem;
    color: var(--text-light);
}

.notification-time {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.notification-delete {
    background: none;
    border: none;
    color: var(--error);
    cursor: pointer;
    padding: 0.25rem;
    transition: color 0.2s;
}

.notification-delete:hover {
    color: #ef4444;
}

.notification-actions i {
    margin: auto;
    padding: 10px;
    border: solid 1px var(--accent-color);
    border-radius: 5px;
}

.no-notifications {
    padding: 2rem;
    text-align: center;
    color: var(--accent-dark);
}

.no-notifications i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.no-notifications p {
    margin: 0;
    font-size: 0.875rem;
}

.navbar-mobile-controls {
    display: flex;
    justify-content: end;
    gap: 5px;
}

/* Add this CSS to your style.css or a dedicated download.css file */

.download-page-main {
    padding: 2rem 0; /* py-8 equivalent */
}

.download-card-container {
    max-width: 1000px; /* max-w-2xl equivalent */
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem; /* px-4 equivalent */
    padding-right: 1rem; /* px-4 equivalent */
}

.download-card {
    background-color: var(--purple); /* bg-white */
    border-radius: 0.5rem; /* rounded-lg */
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); /* shadow-lg */
    overflow: hidden;
    padding: 1.5rem; /* p-6 equivalent */
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-title {
    font-size: 1.5rem; /* text-2xl */
    font-weight: bold;
    margin-bottom: 1.5rem; /* mb-6 */
    text-align: center; /* Added for better layout */
}

.beat-preview-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem; /* gap-4 */
    margin-bottom: 1.5rem; /* mb-6 */
    border-bottom: 1px solid var(--accent-color); /* border-t pt-6 equivalent visually */
    padding-bottom: 1.5rem; /* Added padding to match visual separation */
    margin: auto;
}



.beat-artwork img {
    width: 400px;
    height: 400px;
    border-radius: 0.25rem; /* rounded */
    padding: 10px;
    margin: auto;
}

.beat-details {
    margin: auto;
    text-align: center;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem; /* Space between detail rows */
    font-size: 0.875rem; /* text-sm */
}

.detail-label {
    font-weight: bold;
    margin-right: 1rem; /* Space between label and value */
}

.detail-value {
    color: var(--text-muted); /* text-gray-700 */
}


.action-buttons {
    margin-top: 1.5rem; /* mt-6 */
    display: flex; /* Arrange buttons in a row */
    flex-direction: column; /* Stack buttons on small screens */
    gap: 1rem; /* Space between buttons */
    margin-bottom: 30px;
    align-items: center; /* Center buttons when stacked */
}

.back-link {
    margin-top: 1rem; /* mt-4 */
    text-align: center;
    margin: auto;
}

@media (max-width: 720px) { /* Tailwind's sm breakpoint */
    .action-buttons {
        flex-direction: column; /* Arrange buttons in a row on larger screens */
        justify-content: center; /* Center the row of buttons */
    }
    
    .beat-artwork img {
        width: 250px; /* w-24 */
        height: 250px; /* h-24 */
    }
}

/* Add styles for the global player if needed, ensuring it's positioned correctly */
/* (Assuming global player CSS is handled elsewhere) */

/* Basic styling for the purchases page layout */

.purchases-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.purchase-item {
    background-color: var(--surface-dark);
    border: 1px solid var(--accent-color);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.my-beat-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
}


.purchase-item img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
}

      
.purchase-item .no-image {
    width: 80px;
    height: 80px;
    background-color: var(--purple);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--error);
    flex-shrink: 0;
}

.purchase-details {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.purchase-details h3 {
    font-size: 1.2rem;
    margin-bottom: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.purchase-details p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.purchase-meta {
    font-size: 0.8rem;
    color: var(--error);
    display: flex;
    gap: 0.75rem;
    margin: auto;
}

.purchase-price {
    font-weight: bold;
    color: var(--accent-dark); /* Example color */
    flex-shrink: 0;
    margin-left: 1rem;
}

.purchase-date {
     font-size: 0.8rem;
     color: var(--text-muted);
     flex-shrink: 0;
     margin-left: 1rem;
}

.purchase-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-shrink: 0;
    margin-left: 1rem;
}

.action-button {
    background-color: var(--accent-color);
    color: white;
    border: none;
    border-radius: 4px;
    padding: 0.5rem 1rem;
    cursor: pointer;
    font-size: 0.9rem;
    text-decoration: none;
    transition: background-color 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.action-button:hover {
    background-color: #0056b3;
}

.action-button.play-button {
    background-color: #28a745; /* Green for play */
}

.action-button.play-button:hover {
    background-color: #218838;
}

.action-button.download-button {
    background-color: #ffc107; /* Yellow for download */
    color: #212529;
}

.action-button.download-button:hover {
    background-color: #e0a800;
}

.action-button.view-button {
    background-color: #6c757d; /* Gray for view */
}

.action-button.view-button:hover {
    background-color: #5a6268;
}

.empty-state {
    text-align: center;
    padding: 3rem;
    color: var(--error);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .purchase-item {
        flex-direction: column;
        align-items: center;
    }
    .purchase-details,
    .purchase-price,
    .purchase-date,
    .purchase-actions {
        width: 100%;
        margin-left: 0;
        text-align: center;
        justify-content: center; /* Center content horizontally */
    }
    .purchase-actions {
        flex-direction: column; /* Stack buttons vertically on small screens */
        gap: 0.25rem;
    }
    .action-button {
        width: 100%; /* Full width buttons */
        justify-content: center;
    }
}



/* Sticky Bottom Navigation Bar */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--surface-dark);
    color: var(--text-muted);
    box-shadow: 0 -4px 6px -1px rgba(0, 0, 0, 0.1), 0 -2px 4px -1px rgba(0, 0, 0, 0.06);
    z-index: 50;
    border-top-left-radius: 0.5rem; 
    border-top-right-radius: 0.5rem;
    border-top: solid 1px var(--error);
}

.bottom-nav-container {
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 4rem;
    padding-left: 1rem;
    padding-right: 1rem; 
}

/* Base styling for all navigation links */
.bottom-nav-link {
    display: flex; 
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease-in-out;
    border-radius: 0.5rem;
    flex-grow: 1;
    text-align: center;
}

/* Hover effect for navigation links */
.bottom-nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--accent-dark);
}

/* Styling for the active navigation link */
.bottom-nav-link.active {
    background-color: var(--background-dark);
    color: var(--error);
    box-shadow: 0 2px 8px rgba(74, 144, 226, 0.4);
}

/* Styling for icons within navigation links */
.bottom-nav-link i {
    margin-bottom: 0.25rem;
    font-size: 1.2rem;
    color: var(--accent-color);
}

/* Active icon color */
.bottom-nav-link.active i {
    color: var(--error);
}

/* Media query for mobile screens (max-width 767px) */
@media (max-width: 767px) {
    .bottom-nav-link span {
        display: none;
    }
    .bottom-nav-link {
        padding: 0.5rem 0.25rem; 
        font-size: 0.75rem;
    }
    .bottom-nav-link i {
        margin-bottom: 0;
    }
}

/* Media query for larger screens (min-width 768px) */
@media (min-width: 768px) {
    .bottom-nav-link {
        flex-direction: row;
        padding: 0.75rem 1rem;
        font-size: 0.875rem;
    }
    .bottom-nav-link span {
        display: inline;
    }
    .bottom-nav-link i {
        margin-right: 0.5rem;
        margin-bottom: 0;
    }
}

