:root {
    --bg: #080810;
    --surface: #12121a;
    --surface2: #1a1a26;
    --border: rgba(255,255,255,0.07);
    --gold: #d4af37;
    --gold-glow: rgba(212,175,55,0.15);
    --text: #f0f0f5;
    --muted: #8888aa;
    --danger: #ef4444;
    --sidebar-w: 280px;
    --header-h: 70px;
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Outfit', sans-serif;
    line-height: 1.5;
    overflow-x: hidden;
}

.hidden { display: none !important; }

/* === LAYOUT ESTRUTURAL === */
.app-container {
    display: flex;
    min-height: 100vh;
}

/* === SIDEBAR / DRAWER === */
.sidebar {
    width: var(--sidebar-w);
    background: var(--surface);
    border-right: 1px solid var(--border);
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar-header {
    padding: 30px 24px;
    display: flex;
    align-items: center;
    gap: 15px;
    border-bottom: 1px solid var(--border);
}

.user-avatar {
    width: 50px;
    height: 50px;
    background: var(--gold-glow);
    border: 2px solid var(--gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: var(--gold);
    font-size: 1.2rem;
}

.user-info .name { font-weight: 600; font-size: 1rem; }
.user-info .role { font-size: 0.8rem; color: var(--muted); }

.sidebar-content {
    flex: 1;
    padding: 20px 12px;
    overflow-y: auto;
}

.menu-group-title {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--muted);
    padding: 20px 12px 10px;
}

.menu-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--muted);
    text-decoration: none;
    border-radius: 12px;
    margin-bottom: 4px;
    transition: all 0.2s;
    font-size: 0.95rem;
}

.menu-link:hover {
    background: var(--surface2);
    color: var(--text);
}

.menu-link.active {
    background: var(--gold-glow);
    color: var(--gold);
}

.menu-link i { font-size: 1.2rem; }

/* === MAIN CONTENT === */
.main-content {
    flex: 1;
    margin-left: var(--sidebar-w);
    min-width: 0;
}

/* === HEADER === */
.top-header {
    height: var(--header-h);
    background: rgba(8, 8, 16, 0.8);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--border);
    padding: 0 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 900;
}

.page-title { font-size: 1.2rem; font-weight: 700; }

/* === CARDS EXERCICIOS (PADRÃO VÍDEO) === */
.exercise-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 12px;
    transition: transform 0.2s;
}

.exercise-card:active { transform: scale(0.98); }

.exercise-thumb {
    width: 65px;
    height: 65px;
    border-radius: 12px;
    object-fit: cover;
    background: #000;
}

.exercise-info { flex: 1; }
.exercise-name { font-weight: 600; font-size: 0.95rem; margin-bottom: 4px; }
.exercise-stats { display: flex; gap: 10px; font-size: 0.8rem; color: var(--muted); }
.stat-tag { background: var(--surface2); padding: 2px 8px; border-radius: 6px; }

.btn-delete-circle {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

/* === RESPONSIVIDADE CELULAR === */
@media (max-width: 992px) {
    .sidebar {
        transform: translateX(-100%);
    }
    .sidebar.open {
        transform: translateX(0);
        box-shadow: 20px 0 50px rgba(0,0,0,0.8);
    }
    .main-content {
        margin-left: 0;
    }
    .overlay {
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.6);
        z-index: 999;
        display: none;
    }
    .overlay.active { display: block; }
}

/* Estilo Abas Dias da Semana */
.day-tabs {
    display: flex;
    justify-content: center;
    gap: 8px;
    overflow-x: auto;
    padding: 15px;
    scrollbar-width: none;
}
.day-tab {
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 10px 20px;
    border-radius: 25px;
    white-space: nowrap;
    color: var(--muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
}
.day-tab.active {
    background: var(--gold);
    color: #000;
    border-color: var(--gold);
}
