/* CASA DO BEAT - ADMIN STYLES */

:root {
    --bg-black: #050505;
    --bg-dark: #0a0a0a;
    --bg-card: #121212;
    --accent-neon: #00ff88;
    --text-primary: #ffffff;
    --text-secondary: #b3b3b3;
    --error: #ff4444;
    --glass: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --transition-smooth: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body.admin-body {
    background: var(--bg-black);
    color: var(--text-primary);
    font-family: 'Poppins', sans-serif;
}

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

.hidden { display: none !important; }

/* --- LOGIN --- */
.admin-login {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at center, #0f1a14 0%, var(--bg-black) 100%);
}

.login-card {
    background: var(--bg-card);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.login-logo {
    width: 80px;
    margin-bottom: 20px;
}

.login-card h2 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2rem;
    margin-bottom: 30px;
    letter-spacing: 1px;
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

input[type="text"],
input[type="password"],
input[type="url"],
input[type="date"],
select {
    width: 100%;
    background: var(--bg-black);
    border: 1px solid var(--glass-border);
    padding: 12px 15px;
    border-radius: 8px;
    color: #fff;
    font-family: inherit;
    transition: var(--transition-smooth);
}

textarea {
    width: 100%;
    background: var(--bg-black);
    border: 1px solid var(--glass-border);
    padding: 12px 15px;
    border-radius: 8px;
    color: #fff;
    font-family: inherit;
    transition: var(--transition-smooth);
    resize: vertical;
}

textarea:focus {
    outline: none;
    border-color: var(--accent-neon);
    box-shadow: 0 0 10px rgba(0, 255, 136, 0.2);
}

input:focus {
    outline: none;
    border-color: var(--accent-neon);
    box-shadow: 0 0 10px rgba(0, 255, 136, 0.2);
}

.error-msg {
    color: var(--error);
    font-size: 0.8rem;
    margin-top: 15px;
}

/* --- BUTTONS --- */
.btn {
    padding: 12px 25px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: var(--transition-smooth);
}

.btn-block { width: 100%; }

.btn-primary {
    background: var(--accent-neon);
    color: var(--bg-black);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 255, 136, 0.3);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: #fff;
}

.btn-outline:hover {
    background: var(--glass);
    border-color: var(--accent-neon);
}

.btn-sm { padding: 8px 15px; font-size: 0.8rem; }

/* --- HEADER --- */
.admin-header {
    background: var(--bg-dark);
    border-bottom: 1px solid var(--glass-border);
    padding: 15px 0;
}

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

.admin-logo-area {
    display: flex;
    align-items: center;
    gap: 15px;
}

.admin-nav-logo { width: 40px; }

.admin-logo-area h1 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.5rem;
}

.badge {
    font-size: 0.7rem;
    background: var(--accent-neon);
    color: var(--bg-black);
    padding: 2px 8px;
    border-radius: 4px;
    margin-left: 5px;
}

/* --- MAIN CONTENT --- */
.admin-main {
    padding-top: 40px;
    padding-bottom: 60px;
}

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

.admin-actions h2 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2.5rem;
}

/* --- TABLE --- */
.table-container {
    background: var(--bg-card);
    border-radius: 15px;
    border: 1px solid var(--glass-border);
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th {
    text-align: left;
    padding: 15px 20px;
    background: rgba(255,255,255,0.02);
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--glass-border);
}

td {
    padding: 15px 20px;
    border-bottom: 1px solid var(--glass-border);
}

.table-cover {
    width: 50px;
    height: 50px;
    border-radius: 6px;
    object-fit: cover;
}

.table-artist-info {
    display: flex;
    flex-direction: column;
}

.table-track-name { font-weight: 600; }
.table-artist-name { font-size: 0.8rem; color: var(--text-secondary); }

.table-actions {
    display: flex;
    gap: 10px;
}

.action-btn {
    background: none;
    border: 1px solid var(--glass-border);
    color: #fff;
    width: 35px;
    height: 35px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.action-btn:hover { border-color: var(--accent-neon); color: var(--accent-neon); }
.action-btn.delete:hover { border-color: var(--error); color: var(--error); }

/* --- MODAL --- */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    background: var(--bg-card);
    width: 90%;
    max-width: 600px;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    padding: 30px;
    z-index: 1;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.modal-header h3 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2rem;
}

.close-modal {
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.checkbox-group {
    display: flex;
    align-items: center;
}

.checkbox-container {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* --- FILE UPLOAD --- */
.hidden-file-input {
    display: none;
}

.file-upload-wrapper {
    background: var(--bg-black);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    overflow: hidden;
}

.upload-controls {
    display: flex;
    align-items: center;
    gap: 0;
}

.btn-upload {
    border-radius: 0;
    border: none;
    border-right: 1px solid var(--glass-border);
    white-space: nowrap;
    min-width: 180px;
    background: var(--bg-dark);
}

.upload-controls input[readonly] {
    border: none;
    background: transparent;
    cursor: default;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    margin-top: 30px;
}

/* --- TOAST --- */
.toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--accent-neon);
    color: var(--bg-black);
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: 600;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    z-index: 3000;
}

/* --- RESPONSIVIDADE --- */
@media (max-width: 768px) {
    .form-row { grid-template-columns: 1fr; }
    .admin-actions { flex-direction: column; align-items: flex-start; gap: 20px; }
    .table-artist-info { max-width: 150px; }
}
