@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&display=swap');

:root {
    --primary: #00d1b2;
    --bg-dark: #0a0f19;
    --sidebar-w: 280px;
    --card-bg: rgba(30, 41, 59, 0.5);
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
}

body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    overflow: hidden; /* Evita scrolls extraños en el body */
}

/* Fondo general */
.bg-showroom {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: url('../img/showroom-bg.jpg'); 
    background-size: cover;
    background-position: center;
    filter: brightness(0.2) grayscale(0.2);
    z-index: -1;
}

/* Estructura de Contenedores */
.app-container {
    display: flex;
    height: 100vh;
    width: 100vw;
}

/* Sidebar: Bloqueada a la izquierda */
.sidebar {
    width: var(--sidebar-w);
    min-width: var(--sidebar-w);
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(20px);
    border-right: 1px solid rgba(255,255,255,0.05);
    display: flex;
    flex-direction: column;
    padding: 40px 24px;
    box-sizing: border-box;
}

.sidebar-header {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    color: var(--primary);
    margin-bottom: 50px;
}

.menu-link {
    display: flex;
    align-items: center;
    padding: 14px 16px;
    color: var(--text-muted);
    text-decoration: none;
    border-radius: 12px;
    margin-bottom: 8px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.menu-link i {
    margin-right: 15px;
    stroke-width: 1.5;
}

.menu-link:hover, .menu-link.active {
    background: rgba(255, 255, 255, 0.05);
    color: var(--primary);
}

/* Área de contenido: Scroll independiente */
.main-view {
    flex-grow: 1;
    overflow-y: auto;
    padding: 60px;
    box-sizing: border-box;
}

.dashboard-header h1 {
    font-weight: 300;
    font-size: 2.5rem;
    margin: 0 0 10px 0;
}

/* Rejilla de Tarjetas */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.card {
    background: var(--card-bg);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 35px;
    box-sizing: border-box;
}

/* Botón de Apertura Minimalista */
.btn-open-main {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    border: 2px solid var(--primary);
    background: transparent;
    color: var(--primary);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-open-main:hover {
    background: var(--primary);
    color: var(--bg-dark);
    box-shadow: 0 0 30px rgba(0, 209, 178, 0.4);
    transform: scale(1.05);
}

/* Responsive */
@media (max-width: 1024px) {
    .sidebar { width: 80px; min-width: 80px; align-items: center; }
    .sidebar-header, .menu-link span { display: none; }
    .main-view { padding: 30px; }
}