/* ========================= */
/* 🎯 VARIABLES */
/* ========================= */
:root {
    --bg: #0f0f0f;
    --bg-secondary: #1a1a1a;
    --bg-hover: #222;
    --text: #e5e5e5;
    --text-muted: #aaa;
    --accent: #8B0000;
    --accent-hover: #b22222;
    --border: #2a2a2a;
}

/* ========================= */
/* 🧱 BASE */
/* ========================= */
* {
    box-sizing: border-box;
}

body {
    font-family: "Inter", Arial, sans-serif;
    margin: 0;
    background-color: var(--bg);
    color: var(--text);
}

h1 {
    font-size: 32px;
    font-weight: 600;
    margin: 0 0 20px;
}

/* ========================= */
/* 🧭 LAYOUT */
/* ========================= */
.sidebar {
    width: 260px;
    background: var(--bg-secondary);
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    padding: 20px;
    border-right: 1px solid var(--border);
    overflow-y: auto;
}

.sidebar h2 {
    margin: 0 0 15px;
    font-size: 18px;
}

.content {
    margin-left: 280px;
    padding: 40px;
}

/* ========================= */
/* 🔎 SEARCH */
/* ========================= */
/* INPUT */
.search-box {
    flex: 1;

    padding: 10px;
    border: 1px solid var(--border);
    border-right: none;

    background: #121212;
    color: var(--text);

    border-radius: 6px 0 0 6px;
    outline: none;

    font-size: 14px;

    transition: 0.2s;
}



.search-box:focus {
    border-color: var(--accent);
}

/* ========================= */
/* 🔎 SEARCH FORM */
/* ========================= */

.search-form {
    display: flex;
    width: 100%;
}

.search-box {
    flex: 1;
}

/* BOTÓN */
.search-btn {
    width: 36px;
    height: 36px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    background: var(--accent);
    color: white;

    border: 1px solid var(--accent);
    border-radius: 0 6px 6px 0;

    font-size: 14px;
    cursor: pointer;

    padding: 0;

    /* 🔥 coherencia con .btn */
    transition: 0.2s;
    box-shadow: 0 0 8px rgba(139, 0, 0, 0.25);
}

.search-btn:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
    box-shadow: 0 0 12px rgba(178, 34, 34, 0.5);
}

.search-btn:active {
    transform: scale(0.95);

}
/* ========================= */
/* 📋 LISTAS */
/* ========================= */
ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

li {
    margin-bottom: 8px;
}

a {
    display: block;
    padding: 8px;
    border-radius: 6px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    transition: 0.2s;
}

a:hover {
    background: rgba(139, 0, 0, 0.2);
    color: white;
}

/* ========================= */
/* 🔘 BOTONES */
/* ========================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    height: 38px;
    padding: 0 16px;

    background: var(--accent);
    color: white;
    border: none;
    border-radius: 6px;

    font-size: 14px;
    cursor: pointer;
    transition: 0.2s;

    box-shadow: 0 0 10px rgba(139, 0, 0, 0.3);
}

.btn:hover {
    background: var(--accent-hover);
    box-shadow: 0 0 15px rgba(178, 34, 34, 0.6);
}

/* Variantes */
.btn.secondary {
    background: #2a2a2a;
}

.btn.secondary:hover {
    background: #3a3a3a;
}

.btn.danger {
    background: #5a0000;
}

.btn.danger:hover {
    background: #8B0000;
}

/* ========================= */
/* 🧩 CARDS */
/* ========================= */
.card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    transition: 0.2s;
}

.card:hover {
    border-color: var(--accent);
}

/* ========================= */
/* 🎵 SONG VIEW */
/* ========================= */
.song-container {
    max-width: 800px;
    margin: 40px auto;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 30px;
}

.song-title {
    text-align: center;
    margin-bottom: 25px;
    font-size: 28px;
    font-weight: 600;
}

.lyrics {
    white-space: pre-line;
    font-size: 18px;
    line-height: 1.8;
    max-width: 600px;
    margin: 0 auto;
    letter-spacing: 0.3px;
}

.actions {
    margin-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.link {
    color: var(--text-muted);
}

.link:hover {
    color: var(--accent);
}

/* ========================= */
/* ✍️ FORMULARIOS */
/* ========================= */
.form-container {
    max-width: 700px;
    margin: 40px auto;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 30px;
}

.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 18px;
}

.form-group label {
    margin-bottom: 6px;
    font-size: 14px;
    color: var(--text-muted);
}

input,
select,
textarea {
    background: #121212;
    border: 1px solid var(--border);
    color: var(--text);
    padding: 10px;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: 0.2s;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--accent);
}

textarea {
    resize: none;
    min-height: 200px;
    line-height: 1.6;
    font-family: inherit;
}

form .btn {
    width: 100%;
    margin-top: 10px;
}

/* ========================= */
/* 🎵 LISTA DE CANCIONES */
/* ========================= */
.song-list {
    margin-top: 20px;
}

.song-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.song-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.song-actions form {
    margin: 0;
    display: inline-flex;
}

/* ========================= */
/* 🔙 UTILIDADES */
/* ========================= */
.return-button {
    margin-top: 30px;
}

/* ========================= */
/* 🖱️ SCROLL */
/* ========================= */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}

/* ========================= */
/* 📱 RESPONSIVE */
/* ========================= */
@media (max-width: 768px) {

    .sidebar {
        position: relative;
        width: 100%;
        height: auto;
        border-right: none;
        border-bottom: 1px solid var(--border);
    }

    .content {
        margin-left: 0;
        padding: 20px;
    }

    h1 {
        font-size: 24px;
    }

    .btn {
        width: 100%;
    }

    .song-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .song-actions {
        width: 100%;
        justify-content: space-between;
    }

    .song-actions .btn {
        flex: 1;
    }

    .song-container,
    .form-container {
        margin: 20px;
        padding: 20px;
    }

    .actions {
        flex-direction: column;
        gap: 10px;
        align-items: stretch;
    }
}

@media (max-width: 480px) {

    .sidebar {
        padding: 15px;
    }

    .content {
        padding: 15px;
    }

    .search-box,
    a {
        font-size: 13px;
        padding: 8px;
    }
}
/* ========================= */
/* 🎸 BAND DELETE */
/* ========================= */

.band-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.delete-band-btn {
    width: 24px;
    height: 24px;

    background: transparent;
    color: var(--text-muted);
    border: none;
    border-radius: 4px;

    cursor: pointer;
    font-size: 14px;
}

.delete-band-btn:hover {
    color: var(--accent);
    background: rgba(139, 0, 0, 0.2);
}

/* ========================= */
/* 🧱 MODAL */
/* ========================= */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    background: rgba(0,0,0,0.7);
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal {
    background: var(--bg-secondary);
    padding: 20px;
    border-radius: 10px;
    border: 1px solid var(--border);
    max-width: 300px;
    width: 90%;
    text-align: center;
}

.modal-actions {
    margin-top: 15px;
    display: flex;
    gap: 10px;
    justify-content: center;
}

.modal-danger {
    background: #5a0000;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
}

.modal-danger:hover {
    background: #8B0000;
}

.modal-cancel {
    background: #2a2a2a;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
}

.hidden {
    display: none;
}

.login-form {
    width: 100%;
    max-width: 400px;

    margin: 80px auto;
    padding: 20px;

    display: flex;
    flex-direction: column;
    gap: 12px;

    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 10px;
}
.input {
    width: 100%;

    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 6px;

    background: #121212;
    color: var(--text);

    font-size: 14px;
}
footer {
    position: fixed;
    bottom: 20px;
    right: 20px;
}
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0px 1000px #121212 inset;
    -webkit-text-fill-color: var(--text);
    border-color: var(--border);
    transition: background-color 5000s ease-in-out 0s;
}