:root {
    /* COLORES MAINS */
    --primary: #1E25EA;
    --secundary: #F1DC1D;

    /* COLORES MAINS OSCUROS */
    --primary-dark: #161AA6;
    --secundary-dark: #AD9E15;

    /* COLORES BACKGROUNG */
    --bg: #F1F1F1;
    --card: #fcfcfc;
    --border: rgba(226, 232, 240, 0.8);
    --shadow: 0 8px 32px rgba(31, 38, 135, 0.15);
    --blur: blur(16px);

    /* COLORES BOTONES */
    --green: #37C920;
    --red: #C93022;
    --orange: #E78C1C;

    /* COLORES BOTONES OSCUROS */
    --gren-dark: #248515;
    --red-dark: #852017;
    --orange-dark: #A36314;


    /* Diseño */
    --text: #1e293b;
    --text-claro: #f0f0f0;
    --text-muted: #64748b;


    /* Letra */
    --letra: "Roboto", sans-serif;

    --text-main: #1e293b;
    --text-muted: #64748b;
    

    /* Avisos */
    --primary-light: #eff6ff;
    --success: #10b981;
    --success-light: #ecfdf5;
    --warning: #f59e0b;
    --warning-light: #fffbeb;
    --danger: #ef4444;
    --danger-light: #fef2f2;

    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.05);
    --shadow: 0 8px 32px rgba(31, 38, 135, 0.15);

    /* Bordes */
    --border-color: #e2e8f0;
    --radius-lg: 16px;
    --radius-md: 10px;
    --radius-sm: 3px;


    --transition: all 0.25s ease-in-out;
}

body {
    font-family: var(--letra);
    background: var(--bg);
    min-height: 100vh;
    height: auto;
    max-width: 100%;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* LAYOUT */
.wrapper {
    display: flex;
    min-height: 100vh;
}


/* CONTENT */
.content {
    flex: 1;
    padding: 1rem;
    max-width: 100vw;
}

@media (max-Width: 720px) {
    .content {
        padding: 0;
    }
}

/* ===================================
   TOPBAR
   =================================== */
.topbar {
    background: var(--card);
    padding: 1.25rem 1.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-sm);
}

@media (max-Width: 720px) {
    .topbar{
        border-radius: 0;
    }
}

.topbar h1 {
    font-size: 1.5rem;
    margin: 0;
    font-weight: 700;
}

.topbar .subtitle {
    margin: 0.2rem 0 0 0;
    color: var(--text-muted);
    font-size: 0.875rem;
}

.menu-btn {
    display: none;
    font-size: 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
}

/* SIDEBAR */
.sidebar {
    width: 250px;
    background: var(--primary);
    color: #fff;
    padding: 1rem;
}

.sidebar h2 {
    text-align: center;
    margin-bottom: 2rem;
}

.sidebar a {
    display: block;
    padding: 0.75rem 1rem;
    color: #ebecee;
    text-decoration: none;
    border-radius: 6px;
    margin-bottom: 0.5rem;
}

.sidebar a:hover,
.sidebar a.active {
    background: var(--primary-dark);
    color: #fff;
}


@media (max-width: 768px) {
    .sidebar {
        position: fixed;
        left: -300px;
        top: 0;
        height: 100%;
        transition: 0.3s;
        z-index: 10;
        -webkit-box-shadow: 3px 0px 13px -2px rgba(32, 42, 227, 1);
        -moz-box-shadow: 3px 0px 13px -2px rgba(32, 42, 227, 1);
        box-shadow: 3px 0px 13px -2px rgba(32, 42, 227, 1);
    }

    .sidebar.active {
        left: 0;
    }

    .menu-btn {
        display: block;
        color: var(--primary);
    }

}