/* 
   Brescia Crystal Hub v7.0 
   Foco: Estética Industrial, Glassmorphism e UX de Mission Control
*/

:root {
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-blur: blur(20px);
    
    --navy-deep: #001529;
    --navy-mid: #001f3f;
    --gold-main: #B8860B;
    --gold-glow: rgba(184, 134, 11, 0.4);
    
    --text-main: #f1f5f9;
    --text-muted: #94a3b8;
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Work Sans', sans-serif;
    
    --sh-premium: 0 20px 40px rgba(0,0,0,0.3);
}

/* Base Reset */
body {
    background: radial-gradient(circle at top right, #001f3f 0%, #000c18 100%);
    color: var(--text-main);
    font-family: var(--font-body);
    min-height: 100vh;
    overflow-x: hidden;
}

/* App Shell Layout */
#app-shell {
    display: flex;
    min-height: 100vh;
}

/* Sidebar Estilizada (Glass) */
#sidebar-nav {
    width: 280px;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border-right: 1px solid var(--glass-border);
    display: flex;
    flex-direction: column;
    padding: 30px 20px;
    position: sticky;
    top: 0;
    height: 100vh;
    z-index: 100;
}

.sidebar-logo {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.5rem;
    margin-bottom: 40px;
    letter-spacing: -1px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar-logo span { color: var(--gold-main); }

.nav-group {
    margin-bottom: 30px;
}

.nav-label {
    font-size: 0.65rem;
    font-weight: 800;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
    padding-left: 10px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    border-radius: 14px;
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-item:hover {
    background: rgba(255,255,255,0.05);
    color: #fff;
    transform: translateX(5px);
}

.nav-item.active {
    background: linear-gradient(90deg, var(--gold-glow) 0%, transparent 100%);
    color: var(--gold-main);
    border-left: 2px solid var(--gold-main);
}

/* Dashboard Hub Grid */
.hub-container {
    flex: 1;
    padding: 40px;
    max-width: 1400px;
}

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

.hub-greeting h1 {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 5px;
}

.hub-greeting p {
    color: var(--text-muted);
    font-size: 1rem;
}

.hub-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
}

/* Glass Card Premium */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 25px;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.glass-card:hover {
    transform: translateY(-8px);
    border-color: rgba(184, 134, 11, 0.3);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.glass-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, var(--gold-glow) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.glass-card:hover::after {
    opacity: 0.1;
}

.card-icon {
    width: 48px;
    height: 48px;
    background: rgba(184, 134, 11, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--gold-main);
}

.card-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.card-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* Loading States */
.skeleton {
    background: linear-gradient(90deg, #1e293b 25%, #334155 50%, #1e293b 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: 12px;
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Responsivo */
@media (max-width: 1024px) {
    #sidebar-nav {
        position: fixed;
        left: -280px;
        transition: 0.3s;
    }
    #sidebar-nav.open {
        left: 0;
    }
    .hub-container {
        padding: 20px;
    }
}
