/* ============================================
   STYLES.CSS — SkinPro SOS
   Variables globales y estilos base
   ============================================ */

:root {
    --dash-bg:        #0D1F3C;
    --dash-surface:   #12305D;
    --dash-surface2:  #1A3F73;
    --dash-border:    rgba(80, 136, 220, 0.15);
    --dash-text:      #DCEAFF;
    --dash-muted:     #87B7FF;
    --dash-accent:    #5088DC;
    --dash-gold:      #F3B950;
    --dash-green:     #29a719;
    --dash-red:       #7E0010;
    --dash-orange:    #c97b2a;

    /* Vista pública QR */
    --sos-fondo:  #021952;
    --sos-anima:  #028bed;
    --sos-main:   #043988;
}

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

body {
    font-family: 'DM Sans', sans-serif;
    background: var(--dash-bg);
    color: var(--dash-text);
    line-height: 1.5;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Syne', sans-serif;
    font-weight: 600;
}

a {
    color: var(--dash-accent);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--dash-gold);
}

/* Dashboard Container */
.dashboard-container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 260px;
    background: var(--dash-surface);
    border-right: 1px solid var(--dash-border);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    overflow-y: auto;
    transition: transform 0.3s ease;
}

.sidebar-logo {
    padding: 1.5rem;
    border-bottom: 1px solid var(--dash-border);
}

.sidebar-logo img {
    max-width: 100%;
    height: auto;
}

.sidebar-nav {
    flex: 1;
    padding: 1.5rem 0;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    color: var(--dash-muted);
    transition: all 0.2s;
}

.nav-item svg {
    width: 1.25rem;
    height: 1.25rem;
    stroke: currentColor;
}

.nav-item:hover {
    background: var(--dash-surface2);
    color: var(--dash-text);
}

.nav-item.active {
    background: var(--dash-accent);
    color: white;
}

.sidebar-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--dash-border);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.user-avatar {
    width: 2.5rem;
    height: 2.5rem;
    background: var(--dash-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: white;
}

.user-meta {
    flex: 1;
}

.user-name {
    display: block;
    font-weight: 500;
    color: var(--dash-text);
}

.user-role {
    font-size: 0.75rem;
    color: var(--dash-muted);
    text-transform: capitalize;
}

.btn-logout {
    width: 100%;
    padding: 0.75rem;
    background: transparent;
    border: 1px solid var(--dash-border);
    border-radius: 0.5rem;
    color: var(--dash-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-logout:hover {
    background: var(--dash-red);
    border-color: var(--dash-red);
    color: white;
}

.btn-logout svg {
    width: 1rem;
    height: 1rem;
}

/* Main Content */
.main-content {
    flex: 1;
    margin-left: 260px;
    min-height: 100vh;
    background: var(--dash-bg);
}

.top-bar {
    background: var(--dash-surface);
    padding: 1rem 2rem;
    border-bottom: 1px solid var(--dash-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 10;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--dash-text);
    font-size: 1.5rem;
    cursor: pointer;
}

.page-title {
    font-size: 1.25rem;
    font-weight: 500;
}

.language-selector {
    background: var(--dash-surface2);
    color: var(--dash-text);
    border: 1px solid var(--dash-border);
    border-radius: 0.5rem;
    padding: 0.5rem 2rem 0.5rem 1rem;
    font-size: 0.875rem;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2387B7FF' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.5rem center;
}

.content-wrapper {
    padding: 2rem;
}

/* Responsive */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        z-index: 20;
    }
    
    .sidebar.active {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .menu-toggle {
        display: block;
    }
}