*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:Arial, Helvetica, sans-serif;
}

body{
    background:#eef1f7;
    color:#0f172a;
}

.layout{
    display:flex;
    min-height:100vh;
}

/* SIDEBAR */

.sidebar{
    width:260px;
    background:#081028;
    padding:25px;
    display:flex;
    flex-direction:column;
    gap:15px;
    position:fixed;
    top:0;
    left:0;
    height:100%;
}

.sidebar h2{
    color:white;
    margin-bottom:10px;
    font-size:30px;
}

.sidebar button{
    border:none;
    background:#13203d;
    color:white;
    padding:16px;
    border-radius:16px;
    cursor:pointer;
    transition:.2s;
    font-size:15px;
}

.sidebar button:hover{
    background:#3b82f6;
    transform:translateY(-2px);
}

#logoutBtn{
    margin-top:auto;
    background:#ef4444;
}

/* CONTENT */

.content{
    margin-left:260px;
    width:calc(100% - 260px);
    padding:40px;
}

.content h1{
    font-size:45px;
    margin-bottom:30px;
}

/* CARDS */

.cards{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(240px,1fr));
    gap:20px;
}

.card{
    padding:28px;
    border-radius:24px;
    color:white;
    min-height:160px;
    display:flex;
    flex-direction:column;
    justify-content:center;
    box-shadow:0 10px 30px rgba(0,0,0,.08);
}

.card h3{
    font-size:18px;
    margin-bottom:15px;
}

.card p{
    font-size:38px;
    font-weight:bold;
}

/* COLORES */

.card:nth-child(1){
    background:linear-gradient(135deg,#3b82f6,#2563eb);
}

.card:nth-child(2){
    background:linear-gradient(135deg,#8b5cf6,#7c3aed);
}

.card:nth-child(3){
    background:linear-gradient(135deg,#06b6d4,#0891b2);
}

.card:nth-child(4){
    background:linear-gradient(135deg,#22c55e,#16a34a);
}

/* MOBILE */

@media(max-width:760px){

    .sidebar{
        width:100%;
        height:auto;
        position:relative;
    }

    .content{
        margin-left:0;
        width:100%;
        padding:20px;
    }

    .content h1{
        font-size:34px;
    }

}

.panel{
    background:white;
    border-radius:24px;
    padding:28px;
    margin-top:24px;
    box-shadow:0 10px 30px rgba(0,0,0,.06);
}

.form-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
    gap:18px;
    margin-bottom:20px;
}

label{
    display:block;
    font-weight:bold;
    margin-bottom:8px;
}

input,
textarea{
    width:100%;
    border:none;
    background:#edf1f7;
    border-radius:14px;
    padding:14px;
    font-size:16px;
    margin-bottom:15px;
}

textarea{
    min-height:100px;
}

.primary{
    width:auto;
    padding:14px 24px;
    background:#2563eb;
    color:white;
    border:none;
    border-radius:14px;
    font-weight:bold;
    cursor:pointer;
}

.table-wrap{
    overflow-x:auto;
    margin-top:16px;
}

table{
    width:100%;
    border-collapse:collapse;
    min-width:900px;
}

th,
td{
    padding:14px;
    border-bottom:1px solid #e5e7eb;
    text-align:left;
}

th{
    color:#64748b;
    background:#f8fafc;
}