*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family: Arial, Helvetica, sans-serif;
}

body{
    background:#eaf0f6;
    color:#0f172a;
}

.layout{
    display:flex;
    min-height:100vh;
}

.sidebar{
    width:280px;
    background:#0f172a;
    color:#fff;
    padding:22px 16px;
    position:fixed;
    left:0;
    top:0;
    bottom:0;
    overflow-y:auto;
}

.logo{
    font-size:26px;
    font-weight:800;
    line-height:1.1;
    margin-bottom:28px;
    padding:0 10px;
    color:#fff;
}

.menu-group{
    margin-bottom:28px;
}

.menu-title{
    color:#93a4bd;
    font-size:12px;
    text-transform:uppercase;
    letter-spacing:.9px;
    margin-bottom:12px;
}

.menu-item{
    display:flex;
    align-items:center;
    gap:12px;
    color:#fff;
    text-decoration:none;
    padding:11px 12px;
    border-radius:10px;
    margin-bottom:7px;
    font-size:15px;
}

.menu-item:hover{
    background:#1e293b;
}

.icono{
    width:22px;
    text-align:center;
}

.main{
    margin-left:280px;
    width:calc(100% - 280px);
    min-height:100vh;
}

.topbar{
    height:72px;
    background:#fff;
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:0 30px;
    box-shadow:0 2px 10px rgba(15,23,42,.08);
}

.topbar h2{
    font-size:24px;
    color:#0f172a;
}

.topbar-right{
    display:flex;
    align-items:center;
    gap:16px;
    font-size:14px;
}

.topbar-right a{
    color:#dc2626;
    text-decoration:none;
    font-weight:700;
}

.content{
    padding:30px;
}

.page-header{
    margin-bottom:24px;
}

.page-header h1{
    font-size:30px;
    margin-bottom:6px;
}

.page-header p{
    color:#475569;
}

.cards{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
    gap:20px;
    margin-top:24px;
}

.card{
    background:#fff;
    padding:24px;
    border-radius:16px;
    box-shadow:0 4px 14px rgba(15,23,42,.08);
}

.card h2,
.card h3{
    margin-bottom:16px;
    color:#0f172a;
}

.form-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
    gap:16px;
    margin-bottom:18px;
}

.form-group label{
    display:block;
    font-weight:700;
    margin-bottom:7px;
    color:#334155;
}

.form-group input,
.form-group select{
    width:100%;
    padding:12px;
    border:1px solid #cbd5e1;
    border-radius:10px;
    background:#fff;
}

.btn-primary,
.btn-warning{
    display:inline-block;
    border:none;
    border-radius:10px;
    padding:10px 14px;
    text-decoration:none;
    cursor:pointer;
    font-weight:700;
    font-size:14px;
}

.btn-primary{
    background:#0f172a;
    color:#fff;
}

.btn-primary:hover{
    background:#1e293b;
}

.btn-warning{
    background:#f59e0b;
    color:#111827;
}

.tabla{
    width:100%;
    border-collapse:collapse;
    margin-top:14px;
    background:#fff;
    overflow:hidden;
    border-radius:12px;
}

.tabla th,
.tabla td{
    padding:12px;
    border-bottom:1px solid #e2e8f0;
    text-align:left;
    font-size:14px;
}

.tabla th{
    background:#f1f5f9;
    color:#0f172a;
}

.badge-success,
.badge-danger{
    display:inline-block;
    padding:5px 9px;
    border-radius:999px;
    font-size:12px;
    font-weight:800;
}

.badge-success{
    background:#dcfce7;
    color:#166534;
}

.badge-danger{
    background:#fee2e2;
    color:#991b1b;
}

.login-container{
    width:100%;
    height:100vh;
    display:flex;
    align-items:center;
    justify-content:center;
}

.login-box{
    width:420px;
    background:#fff;
    padding:40px;
    border-radius:16px;
    box-shadow:0 5px 25px rgba(0,0,0,.15);
}

.login-box h1{
    font-size:32px;
    margin-bottom:10px;
}

.login-box p{
    color:#64748b;
    margin-bottom:25px;
}

.login-box label{
    display:block;
    font-weight:700;
    margin-bottom:8px;
}

.login-box input{
    width:100%;
    padding:14px;
    border:1px solid #cbd5e1;
    border-radius:10px;
    margin-bottom:18px;
}

.login-box button{
    width:100%;
    padding:14px;
    border:none;
    border-radius:10px;
    background:#0f172a;
    color:#fff;
    font-weight:700;
}

.error{
    background:#fee2e2;
    color:#991b1b;
    padding:12px;
    border-radius:10px;
    margin-bottom:15px;
}

@media(max-width:900px){
    .sidebar{
        position:relative;
        width:100%;
        height:auto;
    }

    .layout{
        display:block;
    }

    .main{
        margin-left:0;
        width:100%;
    }
}
