:root{
    --primary-blue:#354358b4;
    --primary-light:#3a4755;
    --bg-light:#f4f6fb;
    --white:#ffffff;
    --text-dark:#2b2b2b;
    --border-color:#e5e7eb;
}

/* GLOBAL */

body{
    font-family:'Segoe UI',system-ui,-apple-system,sans-serif;
    margin:0;
    background:var(--bg-light);
    color:var(--text-dark);
}

.container{
    display:flex;
    min-height:100vh;
}

/* SIDEBAR */

.sidebar{
    width:250px;
    background:linear-gradient(180deg,#054968,#083f6b);
    color:white;
    padding:25px 20px;
    box-shadow:4px 0 12px rgba(0,0,0,0.08);
}

.logo{
    display:flex;
    align-items:center;
    gap:12px;
    margin-bottom:35px;
}

.logo img{
    width:40px;
    height:40px;
    border-radius:8px;
}

.sidebar ul{
    list-style:none;
    padding:0;
}

.sidebar li{
    padding:14px 15px;
    border-radius:10px;
    margin-bottom:8px;
    cursor:pointer;
    transition:all .25s ease;
    font-size:15px;
}

.sidebar li i{
    margin-right:10px;
}

.sidebar li:hover{
    background:rgba(255,255,255,0.15);
}

.sidebar li.active{
    background:white;
    color:var(--primary-blue);
    font-weight:600;
}

/* MAIN */

.main-content{
    flex:1;
    padding:45px;
}

.content-section{
    display:none;
}

.content-section.active{
    display:block;
}

/* HEADER */

.header h1{
    font-weight:600;
    margin-bottom:10px;
}

/* STATS */

.stats-container{
    display:flex;
    gap:25px;
    margin-top:25px;
}

.stat-card{
    background:white;
    padding:25px;
    border-radius:16px;
    display:flex;
    align-items:center;
    gap:20px;
    flex:1;
    box-shadow:0 10px 25px rgba(0,0,0,0.05);
    transition:all .2s;
}

.stat-card:hover{
    transform:translateY(-3px);
}

.stat-card i{
    font-size:30px;
    color:var(--primary-blue);
}

.stat-card span{
    font-size:14px;
    color:#777;
}

/* GRID EQUIPOS */

.recent-grid{
    display:grid;
    grid-template-columns:repeat(auto-fill,minmax(400px,1fr));
    gap:25px;
}

.item-card{
    background:white;
    padding:22px;
    border-radius:14px;
    display:flex;
    justify-content:space-between;
    align-items:center;
    box-shadow:0 6px 18px rgba(0,0,0,0.05);
    transition:.2s;
}

.item-card:hover{
    transform:translateY(-2px);
}

/* BADGES */

.badge{
    padding:5px 12px;
    border-radius:20px;
    font-size:12px;
    font-weight:600;
}

.green{
    background:#e8f5e9;
    color:#2e7d32;
}

.yellow{
    background:#fff3e0;
    color:#ef6c00;
}

/* BOTONES */

button{
    font-family:inherit;
}

.btn-primary{
    background:var(--primary-blue);
    color:white;
    border:none;
    padding:10px 18px;
    border-radius:8px;
    cursor:pointer;
    font-weight:500;
    transition:.2s;
}

.btn-primary:hover{
    background:var(--primary-light);
}

.btn-small{
    padding:6px 14px;
    border-radius:6px;
    border:1px solid var(--primary-blue);
    background:#e3f2fd;
    color:var(--primary-blue);
    cursor:pointer;
}

.btn-secondary{
    background:#455a64;
    color:white;
    padding:12px 25px;
    border:none;
    border-radius:8px;
    cursor:pointer;
}

.btn-edit{
    background:#1565c0;
    color:white;
    border:none;
    padding:10px 18px;
    border-radius:8px;
}

.btn-fault{
    background:#e53935;
    color:white;
    border:none;
    padding:10px 18px;
    border-radius:8px;
}

.btn-confirm{
    width:100%;
    padding:14px;
    border:none;
    border-radius:10px;
    background:var(--primary-blue);
    color:white;
    font-weight:600;
    margin-top:20px;
}

/* TABLA */

.table-container{
    background:white;
    padding:25px;
    border-radius:16px;
    margin-top:20px;
    box-shadow:0 8px 20px rgba(0,0,0,0.05);
}

.desktop-table{
    width:100%;
    border-collapse:collapse;
}

.desktop-table th{
    padding:16px;
    text-align:left;
    color:#666;
    font-weight:600;
    border-bottom:2px solid var(--border-color);
}

.desktop-table td{
    padding:16px;
    border-bottom:1px solid #f0f0f0;
}

.desktop-table tr:hover{
    background:#fafafa;
}

/* DETALLES */

.detail-layout{
    display:grid;
    grid-template-columns:2fr 1fr;
    gap:30px;
}

.detail-info-card,
.history-card,
.form-container{
    background:white;
    padding:30px;
    border-radius:16px;
    box-shadow:0 8px 25px rgba(0,0,0,0.05);
}

.actions{
    display:flex;
    gap:10px;
    margin-top:20px;
}

/* REPORTES */

.reports-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:25px;
    margin-bottom:25px;
}

.report-card{
    background:white;
    padding:25px;
    border-radius:16px;
    text-align:center;
    box-shadow:0 6px 18px rgba(0,0,0,0.05);
}

.chart-placeholder{
    height:200px;
    background:#fafafa;
    border:2px dashed #dcdcdc;
    display:flex;
    align-items:center;
    justify-content:center;
    margin-top:15px;
    color:#999;
}

/* PERFIL */

.profile-container{
    max-width:600px;
    margin:auto;
    background:white;
    padding:40px;
    border-radius:20px;
    box-shadow:0 10px 30px rgba(0,0,0,0.05);
}

.profile-header{
    display:flex;
    align-items:center;
    gap:20px;
    margin-bottom:25px;
}

.profile-img{
    width:100px;
    height:100px;
    border-radius:50%;
}

.profile-details input{
    width:100%;
    padding:12px;
    margin-top:8px;
    background:#f9fafc;
    border:1px solid #e2e8f0;
    border-radius:8px;
}

/* FORM */

textarea,
select{
    width:100%;
    padding:10px;
    margin-top:10px;
    border:1px solid #dcdcdc;
    border-radius:8px;
}