/* Standard Light Theme Variables */
:root {
    --bg-color: #f4f4f9; /* Light background */
    --panel-bg: #ffffff; /* White panels */
    --primary: #b71c1c; /* TocaRaul Red */
    --secondary: #333333; /* Dark Grey */
    --accent: #2e7d32; /* Green for success/accent */
    --text-main: #222222;
    --text-muted: #555555;
    --border-color: #d5d5d5;
    --input-bg: #ffffff; /* White inputs */
    --shadow-glow: 0 4px 6px rgba(0,0,0,0.1); /* Soft shadow */
}

/* Reset and Base Styles */
body {
    background: var(--bg-color);
    font-family: 'Segoe UI', Arial, sans-serif;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Auth Panel - Standardized Access Screens (Login, Register, Recovery) */
.container, .guest-panel, .auth-panel {
    max-width: 800px; /* Default wider for Admin/Lists */
    margin: 40px auto;
    padding: 40px; /* XPON Standard */
    background: var(--panel-bg);
    border-radius: 20px; /* XPON Standard */
    box-shadow: var(--shadow-glow);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Specific override for Auth Panel to ensure 420px width */
.guest-panel, .auth-panel {
    max-width: 420px !important;
}

/* Logo Standard */
.logo-image {
    max-width: 180px; /* XPON Standard */
    height: auto;
    border-radius: 10px; /* XPON Standard */
    margin: 0 auto 20px auto;
    display: block;
}

/* Dashboard Panel (Wider) */
.dj-panel, .painel {
    max-width: 600px;
    margin: 32px auto;
    padding: 32px 24px;
    background: var(--panel-bg);
    border-radius: 12px;
    box-shadow: var(--shadow-glow);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 2px;
}

/* Typography */
h1, h2, h3 {
    color: var(--primary);
    margin-bottom: 14px;
    font-weight: 800;
    letter-spacing: 1px;
    text-align: center;
    text-transform: uppercase;
}

.welcome-text {
    text-align: center;
    margin-bottom: 24px;
    color: var(--text-muted);
    line-height: 1.5;
}

/* Forms */
form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

label {
    font-weight: 500;
    color: var(--primary);
    margin-bottom: 4px;
}

input[type="text"],
input[type="password"],
input[type="file"],
input[type="email"],
input[type="number"],
input[type="date"],
input[type="time"],
select,
textarea {
    width: 100%;
    padding: 12px;
    background: var(--input-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-main);
    font-size: 1rem;
    box-sizing: border-box;
    transition: all 0.3s ease;
}
::placeholder {
    color: var(--text-muted);
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(183, 28, 28, 0.1);
}

/* Buttons */
button, .btn {
    width: 100%;
    padding: 14px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s, background 0.2s;
    text-align: center;
    text-decoration: none;
    display: inline-block;
}

button:hover, .btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
}

button:active, .btn:active {
    transform: translateY(0);
}

/* Secondary Button */
.btn-secondary {
    background: var(--secondary);
    color: #fff;
}

/* Status Badges */
.status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: bold;
    color: #fff;
}

/* Utility */
.text-center { text-align: center; }
.mt-2 { margin-top: 8px; }
.mt-4 { margin-top: 16px; }
.mb-2 { margin-bottom: 8px; }
.mb-4 { margin-bottom: 16px; }

/* Responsive */
@media (max-width: 480px) {
    .container, .guest-panel, .auth-panel, .dj-panel {
        margin: 10px;
        padding: 20px;
    }
}
