body{
margin:0;
padding:0;
background:#f3ede4;
font-family:Arial,sans-serif;
color:#2f241d;
font-size:18px;
}

.top-bar{
background:#3e2c23;
padding:20px;
color:white;
display:flex;
justify-content:space-between;
align-items:center;
position:sticky;
top:0;
z-index:100;
}

.top-bar a{
color:white;
text-decoration:none;
margin-left:15px;
font-size:18px;
}

.container{
max-width:1100px;
margin:30px auto;
padding:20px;
}

.page-title{
font-size:42px;
margin-bottom:25px;
color:#3e2c23;
}

.section-card,
.form-card,
.horse-card{
background:white;
border-radius:24px;
padding:25px;
margin-bottom:25px;
box-shadow:0 5px 20px rgba(0,0,0,0.08);
}

.home{
display:grid;
grid-template-columns:1fr 1fr;
gap:20px;
}

.big-btn{
background:#6b4a2f;
color:white;
text-decoration:none;
height:180px;
border-radius:24px;
display:flex;
flex-direction:column;
align-items:center;
justify-content:center;
font-size:60px;
font-weight:bold;
}

.big-btn span{
font-size:22px;
margin-top:10px;
}

.form-grid{
display:grid;
grid-template-columns:1fr 1fr;
gap:20px;
}

.form-group{
display:flex;
flex-direction:column;
}

.form-group.full{
grid-column:1 / -1;
}

label{
margin-bottom:10px;
font-size:18px;
font-weight:bold;
color:#6b4a2f;
}

input,
textarea{
padding:18px;
border-radius:16px;
border:1px solid #d8c8b4;
font-size:20px;
background:#faf8f5;
width:100%;
box-sizing:border-box;
}

textarea{
min-height:120px;
}

button,
.action-btn{
background:#6b4a2f;
color:white;
border:none;
border-radius:18px;
padding:18px 24px;
font-size:20px;
font-weight:bold;
text-decoration:none;
display:inline-block;
cursor:pointer;
}

table{
width:100%;
border-collapse:collapse;
margin-top:20px;
overflow:hidden;
border-radius:18px;
}

table th{
background:#6b4a2f;
color:white;
padding:18px;
text-align:left;
font-size:20px;
}

table td{
padding:18px;
background:white;
border-bottom:1px solid #eee;
font-size:18px;
}

.info-grid{
display:grid;
grid-template-columns:1fr 1fr 1fr;
gap:20px;
}

.info-box{
background:#faf7f2;
padding:20px;
border-radius:18px;
}

.info-box span{
display:block;
margin-bottom:10px;
color:#8b5e3c;
}

.info-box strong{
font-size:24px;
}

.horse-name{
font-size:52px;
margin-bottom:20px;
}

.horse-photo{
width:100%;
max-height:350px;
object-fit:cover;
border-radius:20px;
margin-bottom:20px;
}

.back-btn{
display:inline-block;
margin-bottom:20px;
font-size:20px;
text-decoration:none;
color:#6b4a2f;
font-weight:bold;
}

@media(max-width:768px){

.home,
.form-grid,
.info-grid{
grid-template-columns:1fr;
}

.top-bar{
flex-direction:column;
gap:10px;
text-align:center;
}

.page-title{
font-size:34px;
}

.horse-name{
font-size:40px;
}

.big-btn{
height:160px;
font-size:50px;
}

table{
display:block;
overflow-x:auto;
}

}
.horse-photo{
    width:100%;

    max-height:350px;

    object-fit:cover;

    border-radius:20px;

    margin-bottom:20px;

    background:#eee;
}

.table-btn{
    display:inline-flex;

    align-items:center;

    justify-content:center;

    width:42px;

    height:42px;

    border-radius:12px;

    background:#6b4a2f;

    color:white;

    text-decoration:none;

    margin-right:8px;

    font-size:18px;
}

.delete-btn{
    background:#c0392b;
}

/* HORSE PROFILE */

.horse-header{
display:flex;
align-items:center;
gap:25px;
}

.horse-avatar{
width:140px;
height:140px;
border-radius:50%;
object-fit:cover;
border:5px solid #f3ede4;
}

.horse-profile-right{
flex:1;
}

.horse-main-name{
font-size:48px;
margin-bottom:10px;
}

.horse-breed{
font-size:24px;
color:#7a6857;
margin-bottom:20px;
}

.horse-actions{
margin-bottom:15px;
}

.toggle-details-btn{
background:none;
border:none;
font-size:18px;
font-weight:bold;
color:#6b4a2f;
padding:0;
cursor:pointer;
}

.horse-details-box{
margin-top:20px;
}

/* MOBILE */

@media(max-width:768px){

.horse-header{
flex-direction:column;
text-align:center;
}

.horse-avatar{
width:120px;
height:120px;
}

.horse-main-name{
font-size:38px;
}

}

/* SCADENZE */

.deadline-card{
padding:22px;
border-radius:20px;
margin-bottom:18px;
}

.deadline-top{
display:flex;
justify-content:space-between;
align-items:center;
margin-bottom:12px;
}

.deadline-subtitle{
font-size:18px;
color:#6b4a2f;
margin-top:5px;
}

.deadline-date{
font-size:20px;
font-weight:bold;
}

.deadline-status{
font-size:18px;
font-weight:bold;
margin-bottom:18px;
}

.deadline-danger{
background:#ffe1e1;
border-left:6px solid #d63031;
}

.deadline-warning{
background:#fff4d8;
border-left:6px solid #f39c12;
}

.deadline-ok{
background:#e7ffe7;
border-left:6px solid #27ae60;
}
