/* --- Fuentes y Tema General --- */
@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap');

html { scroll-behavior: smooth; }
body { background-color: #1a0000; color: #fbebeb; overflow: hidden; }

/* --- Animación de Flote --- */
@keyframes float-animation {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
}

/* --- FUENTE PIXELADA PARA LA INTERFAZ --- */
body, h1, h2, h3, h4, h5, h6, .btn, .form-label, .menu-category, .nav-link, .form-select, .form-control, .page-footer, .landing-wrapper {
    font-family: 'Press Start 2P', cursive;
}
.form-control, .form-select { font-size: 14px; }

/* --- Estructura de Páginas y Transición --- */
.page-section { position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0; visibility: hidden; transition: opacity 0.5s ease-in-out, visibility 0.5s; }
.page-section.active { opacity: 1; visibility: visible; }
#animation-overlay { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background: #000; z-index: 5000; opacity: 0; visibility: hidden; display: flex; justify-content: center; align-items: center; transition: opacity 0.4s ease-in-out; }
#animation-overlay.visible { opacity: 1; visibility: visible; }
#animated-mustache { position: absolute; transform-origin: center center; transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1); display: none; }

/* --- Estructura Landing Page --- */
.landing-wrapper { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 100vh; padding: 40px; }
.landing-box { text-align: center; padding: 40px; background-color: #330000; border: 4px solid #ff4141; margin-bottom: 40px; }
.landing-icon { width: 180px; height: auto; margin-bottom: 10px; animation: float-animation 4s ease-in-out infinite; cursor: pointer; }
.click-me-prompt { color: #ff8282; font-size: 0.7rem; margin-top: -10px; margin-bottom: 20px; }
.stats-container { display: flex; gap: 40px; text-align: center; margin-bottom: 40px; }
.stat-item .stat-value { font-size: 2rem; color: #ff4141; }
.stat-item .stat-label { font-size: 0.8rem; color: #ff8282; }

/* --- Estructura Principal del Dashboard (Solo para referencia, no se usa en login) --- */
.dashboard-wrapper { display: flex; height: 100vh; }
.content-wrapper { display: flex; flex-direction: column; flex-grow: 1; overflow: hidden; }
.topbar { height: 70px; background-color: #330000; border-bottom: 4px solid #ff4141; display: flex; align-items: center; padding: 0 40px; flex-shrink: 0; }
.sidebar { width: 260px; background-color: #330000; padding: 20px; border-right: 4px solid #ff4141; box-shadow: 5px 0px 15px rgba(255, 0, 0, 0.2); display: flex; flex-direction: column; flex-shrink: 0; }

/* --- Contenido Principal y Pie de Página --- */
.main-content { flex-grow: 1; padding: 40px; overflow-y: auto; }
.page-footer { padding: 20px 40px; background-color: #330000; border-top: 4px solid #ff4141; flex-shrink: 0; text-align: center; }
.page-footer .footer-links a { color: #ffb3b3; text-decoration: none; margin: 0 15px; font-size: 0.8rem; }

/* --- Formularios y Tarjetas (Estilos básicos) --- */
.card { background-color: #330000; border: 2px solid #ff4141; border-radius: 0; }
.card-header { background-color: #4d0000; border-bottom: 2px solid #ff4141; }
.form-control, .form-select { background-color: #1a0000; border: 2px solid #ff8282; color: #fbebeb; border-radius: 0; }
.form-control:focus { background-color: #1a0000; border-color: #ff4141; box-shadow: 0 0 10px rgba(255, 65, 65, 0.5); color: #fbebeb; }
.btn { border-radius: 0; }
.btn-primary { background-color: #ff4141; border-color: #ff4141; color: #1a0000; }
.text-muted { color: #ffb3b3 !important; }

/* --- Estilos para la Demo (Sandbox) --- */
#demo-page { display: flex; background-color: #1a0000; }
.demo-sidebar { width: 400px; background-color: #330000; border-right: 4px solid #ff4141; padding: 20px; display: flex; flex-direction: column; }
.sidebar-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.sidebar-header h2 { font-size: 1.2rem; }
.sidebar-content { flex-grow: 1; overflow-y: auto; display: flex; flex-direction: column; }
.sidebar-content .card, .sidebar-content .form-control { font-family: 'Roboto', sans-serif; font-size: 0.9rem; }
.demo-main-content { flex-grow: 1; display: flex; flex-direction: column; background-color: #36393f; height: 100vh; }
.discord-channel-header { font-family: 'Roboto', sans-serif; padding: 10px 15px; background-color: #36393f; border-bottom: 1px solid rgba(0,0,0,0.2); color: #fff; font-weight: 500; flex-shrink: 0; }
.discord-chat-area { flex-grow: 1; overflow-y: auto; padding: 20px; }
.discord-message { display: flex; margin-bottom: 1rem; font-family: 'Roboto', sans-serif; color: #dcddde; }
.discord-message-avatar { width: 40px; height: 40px; border-radius: 50%; margin-right: 20px; flex-shrink: 0; }
.discord-message-content .username { color: #ff8282; font-weight: 500; margin-bottom: 4px; }
.discord-message-content .text { white-space: pre-wrap; line-height: 1.375; }
.discord-input-bar { padding: 20px; background-color: #40444b; display: flex; gap: 10px; flex-shrink: 0; }
#chat-input { flex-grow: 1; background-color: #2f3136; border: none; color: #dcddde; padding: 10px; border-radius: 5px; font-family: 'Roboto', sans-serif; }
#chat-input::placeholder { color: #72767d; }