body{
margin:0;
font-family:Arial,Helvetica,sans-serif;
background:#f5f7fb;
color:#222;
}

.layout{
display:flex;
min-height:100vh;
}

/* SIDEBAR */

.sidebar{
width:260px;
background:#1e2a3a;
color:white;
padding:20px;
box-sizing:border-box;
}

.logo{
text-align:center;
margin-bottom:25px;
}

.logo img{
max-width:140px;
}

.welcome{
font-size:14px;
line-height:1.6;
margin-bottom:30px;
}

.sidebar nav{
display:flex;
flex-direction:column;
gap:8px;
}

.sidebar nav a{
display:block;
padding:10px 14px;
border-radius:6px;
color:white;
text-decoration:none;
font-size:14px;
transition:0.2s;
}

.sidebar nav a:hover{
background:#314259;
}

.sidebar nav a.active{
background:#2563eb;
}

.sidebar nav a.logout{
margin-top:20px;
background:#c62828;
}

/* CONTENT */

.content{
flex:1;
padding:40px;
box-sizing:border-box;
max-width:1100px;
}

h1{
margin-top:0;
font-size:26px;
margin-bottom:30px;
}

h2{
margin-top:40px;
}

/* ---------- FORMS ---------- */

form{
max-width:600px;
}

.field{
margin-bottom:20px;
}

.field label{
display:block;
font-weight:600;
margin-bottom:6px;
}

.field input{
width:100%;
padding:10px;
border:1px solid #ccd3e0;
border-radius:6px;
font-size:14px;
box-sizing:border-box;
}

/* RADIO */

.radioRow{
display:flex;
gap:20px;
margin-bottom:15px;
}

.radioItem{
display:flex;
align-items:center;
gap:6px;
font-size:14px;
}

/* BUTTONS */

button{
padding:10px 18px;
border:none;
border-radius:6px;
cursor:pointer;
font-size:14px;
}

button.primary{
background:#2563eb;
color:white;
font-weight:600;
}

button.primary:hover{
background:#1d4ed8;
}

/* ---------- TABLES ---------- */

.resultsTable{
width:100%;
border-collapse:collapse;
margin-top:20px;
}

.resultsTable th{
background:#f0f3f9;
padding:10px;
text-align:left;
border-bottom:2px solid #e4e8f0;
}

.resultsTable td{
padding:10px;
border-bottom:1px solid #e4e8f0;
}

.profileTable{
width:100%;
border-collapse:collapse;
margin-bottom:30px;
}

.profileTable td{
padding:10px;
border-bottom:1px solid #e4e8f0;
}

.profileTable .label{
font-weight:bold;
width:160px;
color:#555;
}

.protocolTable{
width:100%;
border-collapse:collapse;
margin-top:10px;
}

.protocolTable th{
background:#f0f3f9;
padding:10px;
border-bottom:2px solid #e4e8f0;
text-align:left;
}

.protocolTable td{
padding:10px;
border-bottom:1px solid #e4e8f0;
}

/* BUTTONS IN TABLES */

.openBtn{
background:#2563eb;
color:white;
padding:6px 12px;
border-radius:6px;
text-decoration:none;
font-size:13px;
}

.openBtn:hover{
background:#1d4ed8;
}

.profileBtn{
color:#2563eb;
text-decoration:none;
font-weight:bold;
}

.profileBtn:hover{
text-decoration:underline;
}

/* ERROR */

.error{
background:#ffd6d6;
border:1px solid #ff9b9b;
color:#900;
padding:10px;
border-radius:6px;
margin-top:20px;
}

/* ---------- DASHBOARD GRID (СТАТИСТИКИ) ---------- */

.statsTable{

display:grid;
grid-template-columns:repeat(4,1fr);
border:1px solid #e4e8f0;
border-radius:8px;
overflow:hidden;
margin-bottom:40px;
background:white;

}

.statCell{

padding:22px;
border-right:1px solid #e4e8f0;
border-bottom:1px solid #e4e8f0;

}

.statCell:nth-child(4n){
border-right:none;
}

.statLabel{

font-size:13px;
color:#666;
margin-bottom:6px;

}

.statValue{

font-size:26px;
font-weight:bold;
color:#1a1a1a;

}

/* ---------- CHART ---------- */

canvas{

background:white;
padding:20px;
border-radius:10px;
margin-bottom:40px;
box-shadow:0 2px 8px rgba(0,0,0,0.08);

}