/* --- THEME VARIABLES --- */
:root {
    /* COLOR PICKER: https://htmlcolorcodes.com/ */
    --primary-color: #333;
    --secondary-color: #769476;/* #c2c2Ae;/* #27ae60;*/
    --bg-color: #f4f4f4;
    --card-bg: #ffffff;
    --text-color: #333;
    --error-color: #e74c3c;
    --border-radius: 8px;
}

/*  update full width header */ 
/* Ensure the body doesn't push the header away from the edges */

/* Modern Action Buttons */
.btn-action {
    display: inline-block;
    background-color: var(--secondary-color);
    color: white !important; /* Overriding default link color */
    padding: 4px 10px;
    border-radius: 6px; /* Rounded corners */
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.btn-action:hover {
    background-color: var(--primary-color);
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(0,0,0,0.15);
}

/* Red version for Delete/Stop actions */
.btn-danger {
    background-color: var(--error-color);
}

.btn-danger:hover {
    background-color: #c0392b;
}

li {
    margin-bottom: 12px; /* Adds space outside the element */
    list-style-position: inside; /* Keeps bullets aligned if text wraps */
}

/* Optional: Remove the margin from the very last item so it doesn't add extra space at the bottom of the container */
li:last-child {
    margin-bottom: 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px; /* Consistent height for the bar */
    width: 100%; 
    max-width: 1200px; /* Optional: keeps logo/hamburger from being too far apart on ultra-wide screens */
    margin: 0 auto;
}

/* THE MOBILE MENU BOX */
/* FOR MENU COLLAPSE*/
/* Styling the compact Admin group in the Nav */
.admin-nav-bundle {
    display: flex;
    gap: 5px;
    padding: 10px 0;
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: 5px;
}

.btn-nav-action {
    background: var(--secondary-color);
    color: white !important;
    font-size: 0.75rem !important;
    padding: 4px 8px !important;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    flex: 1; /* Makes them equal width on mobile */
    text-align: center;
}

.btn-nav-action:hover {
    filter: brightness(1.2);
}

@media (min-width: 768px) {
    .admin-nav-bundle {
        border-top: none;
        border-left: 1px solid rgba(255,255,255,0.3);
        padding: 0 0 0 15px;
        margin: 0 0 0 10px;
    }
    .btn-nav-action {
        flex: none; /* Let buttons be their natural size on desktop */
    }
}
/* collapse specific */
@media (max-width: 768px) {
    .main-nav {
        display: none; /* Hide by default on mobile */
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 60px; /* Adjust based on your header height */
        left: 0;
        background: #fff;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
        z-index: 1000;
    }

    /* This is what the JavaScript toggles */
    .main-nav.active {
        display: flex; 
    }

    /* Optional: Animate the hamburger icon if you use spans */
    .menu-toggle.is-active .bar:nth-child(2) { opacity: 0; }
    .menu-toggle.is-active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .menu-toggle.is-active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
}
/**/

/* Reset padding for the rest of your content */
.container {
    width: 100%;
   /* max-width: 1000px;  RWD : ? */
    margin: 20px auto;
    padding: 20px;
}
/* end full width header ------------------------------------------------   */




/* --- BASE STYLES --- */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0px;
}

/* --- COMPONENTS --- */
/* .container {
    width: 100%;
    max-width: 600px;
    background: var(--card-bg);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
} */

h1, h2 { color: var(--primary-color); }

input, textarea, select {
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    box-sizing: border-box;
}

button {
    width: 100%;
    padding: 12px;
    background: var(--secondary-color);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
}

button:hover {
    filter: brightness(90%);
}

.error { color: var(--error-color); font-size: 0.9rem; }
.nav-link { margin-top: 20px; display: block; text-decoration: none; color: var(--primary-color); }

.dashboard-nav {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.nav-group {
    background: #fff;
    padding: 15px;
    border-radius: var(--border-radius);
    border: 1px solid #ddd;
}

.nav-group h3 {
    margin-top: 0;
    font-size: 1.1rem;
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: 5px;
}

.nav-group ul { list-style: none; padding: 0; }
.nav-group li { margin: 10px 0; }

.btn-primary {
    display: inline-block;
    background: var(--secondary-color);
    color: white;
    padding: 10px 15px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
}

.badge {
    background: var(--error-color);
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.8rem;
    margin-left: 5px;
}
/* MOBILE RWD  append ---------------------------------------------------------------   */
/* :root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --success-color: #27ae60;
    --error-color: #e74c3c;
    --bg-color: #f4f7f6;
    --text-color: #333;
    --border-radius: 8px;
} */

* { box-sizing: border-box; }

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    background-color: var(--bg-color);
    color: var(--text-color);
    margin: 0;
    padding: 0px; /* Small padding for mobile edges */
}

/* .container {
    max-width: 1000px;
    margin: 0 auto;
    background: #fff;
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
} */

/* --- RESPONSIVE FORMS --- */
input, select, textarea, button {
    width: 100%; /* Full width on mobile */
    padding: 12px;
    margin: 8px 0;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px; /* Prevents iOS auto-zoom on focus */
}

button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s;
}

button:hover { background-color: var(--secondary-color); }

/* --- DASHBOARD GRID --- */
.dashboard-nav {
    display: flex;
    flex-direction: column; /* Stacked on mobile */
    gap: 15px;
    margin-bottom: 20px;
}

.nav-group {
    border: 1px solid #ddd;
    padding: 15px;
    border-radius: var(--border-radius);
}

/* --- TABLE RESPONSIVENESS --- */
/* Forces tables to scroll horizontally on small screens */
.table-wrapper {
    overflow-x: auto;
    width: 100%;
}

table {
    width: 100%;
   /* min-width: 600px;  WAS BREAKING: Ensures table doesn't squash too much */
}

/* --- MEDIA QUERIES (The RWD Magic) --- */

/* For Tablets and Desktops */
@media (min-width: 768px) {
    body { padding: 0px 0px; }
    
    .dashboard-nav {
        flex-direction: row; /* Side-by-side on desktop */
        justify-content: space-between;
    }

    .nav-group {
        flex: 1;
    }
}

/* Specific fix for the Bio page images */
.band-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

@media (min-width: 600px) {
    .band-header {
        flex-direction: row;
        text-align: left;
    }
    .band-header img {
        margin-right: 20px;
    }
}

/* Header Styling */
.main-header {
   
    background: var(--primary-color);
    color: white;
    width: 100%; /* Force full width */
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 0 15px; /* Add internal horizontal padding for mobile breathing room */
    margin:0;
}



.logo { font-size: 1.5rem; font-weight: bold; }
.logo span { color: var(--secondary-color); }

/* Navigation Links */

.main-nav {
    display: none; 
    flex-direction: column;
    position: absolute;
    top: 70px; /* Matches header height */
    left: 0;
    width: 100vw; /* Viewport Width: forces it to the absolute edge of the screen */
    background: var(--primary-color);
    padding: 20px;
    /*border-top: 1px solid rgba(255,255,255,0.1);*/
}


.main-nav.active { display: flex; } /* Toggled by JS */

.main-nav a {
    color: white;
    text-decoration: none;
    padding: 10px 0;
    /*border-bottom: 1px solid rgba(255,255,255,0.1);*/
}

/* Hamburger Icon bars */
.menu-toggle {
    display: flex;
    flex-direction: column;
    width: 30px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.bar {
    height: 3px;
    width: 100%;
    background-color: white;
    margin: 3px 0;
    transition: 0.4s;
}

/* Desktop Styles */
@media (min-width: 768px) {
    .menu-toggle { display: none; } /* Hide hamburger on desktop */
    
    .main-nav {
        display: flex;
        flex-direction: row;
        position: static;
        width: auto;
        padding: 0;
        background: none;
    }

    .main-nav a {
        margin-left: 20px;
        border: none;
    }
}
/*-------------------- audio */
audio {
    width: 100%; /* Ensures player doesn't overflow container */
    height: 35px; /* Compact height for mobile */
}

.song-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 15px;
}

@media (min-width: 600px) {
    .song-item {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}
/*-------------------- audio */

/* swipe css ? */ 
/* Mobile-First To-Do Items */
.todo-item {
    display: flex;
    flex-direction: column; /* Stack details on very small screens */
    background: #fff;
    border: 1px solid #ddd;
    margin-bottom: 10px;
    padding: 15px;
    border-radius: var(--border-radius);
}

.todo-text {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.todo-actions {
    display: flex;
    gap: 10px;
    border-top: 1px solid #eee;
    padding-top: 10px;
}

.todo-actions a {
    flex: 1; /* Make buttons equal width */
    text-align: center;
    padding: 10px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
}

.btn-done { background: #d4edda; color: #155724; }
.btn-del { background: #f8d7da; color: #721c24; }

/* Desktop Adjustment */
@media (min-width: 600px) {
    .todo-item {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    .todo-text { margin-bottom: 0; }
    .todo-actions { border: none; padding: 0; flex: 0; min-width: 150px; }
}


/* ------------------------------------ */

/* Role Badges for Admin Table */
.badge-level {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
    color: white;
}

.bg-level-1 { background-color: #c0392b; } /* Admin - Red */
.bg-level-2 { background-color: #8e44ad; } /* Manager - Purple */
.bg-level-3 { background-color: #2980b9; } /* Artist - Blue */
.bg-level-4 { background-color: #d35400; } /* Venue - Orange */
.bg-level-5 { background-color: #7f8c8d; } /* Fan - Gray */

/* ------------------------------------ */
.phone-link {
    color: #007bff;
    text-decoration: none;
    font-weight: bold;
}

.phone-link:hover {
    text-decoration: underline;
    color: #0056b3;
}

