*{
margin:0;
padding:0;
box-sizing:border-box;
font-family:Arial, sans-serif;
}

body{
display:flex;
background:#0f0f0f;
color:white;
}

/* SIDEBAR */
.sidebar{
width:240px;
height:100vh;
background:#111;
border-right:2px solid #00bfff;
padding:20px;
position:fixed;
}

.sidebar h2{
color:#00bfff;
text-align:center;
margin-bottom:40px;
}

.sidebar ul{
list-style:none;
}

.sidebar ul li{
padding:15px;
margin-bottom:10px;
border-radius:8px;
cursor:pointer;
transition:0.3s;
}

.sidebar ul li:hover{
background:#00bfff;
color:black;
}

/* MAIN */
.main{
margin-left:240px;
padding:30px;
width:100%;
}

.title{
margin-bottom:30px;
color:#00bfff;
}

/* CARDS */
.cards{
display:grid;
grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
gap:20px;
margin-bottom:40px;
}

.card{
background:#1a1a1a;
padding:25px;
border-radius:15px;
box-shadow:0 0 20px rgba(0,191,255,0.2);
transition:0.3s;
}

.card:hover{
transform:translateY(-5px);
box-shadow:0 0 25px rgba(0,191,255,0.6);
}

.card h3{
color:#00bfff;
margin-bottom:10px;
}

.card p{
font-size:24px;
font-weight:bold;
}

/* TABLE */
.table-container{
background:#1a1a1a;
padding:20px;
border-radius:15px;
box-shadow:0 0 20px rgba(0,191,255,0.2);
}

.subtitle{
color:#00bfff;
margin-bottom:15px;
}

table{
width:100%;
border-collapse:collapse;
}

th, td{
padding:12px;
border-bottom:1px solid #333;
text-align:left;
}

th{
color:#00bfff;
}

/* ===== CARTE FACTURE ===== */

.facture-card{
background: rgba(20,25,40,0.9);
padding:40px;
border-radius:20px;
max-width:500px;
box-shadow:0 0 40px rgba(0,191,255,0.2);
border:1px solid rgba(0,191,255,0.15);
}

.form-group{
display:flex;
flex-direction:column;
margin-bottom:20px;
}

.form-group label{
color:#aaa;
margin-bottom:8px;
font-size:14px;
}

.form-group input,
.form-group select{
padding:12px;
border-radius:12px;
border:1px solid rgba(255,255,255,0.1);
background:#111827;
color:white;
outline:none;
transition:0.3s;
}

.form-group input:focus,
.form-group select:focus{
border-color:#00bfff;
box-shadow:0 0 15px rgba(0,191,255,0.6);
}

.btn-blue{
width:100%;
padding:14px;
border:none;
border-radius:14px;
background:linear-gradient(90deg,#0077ff,#00bfff);
color:white;
font-weight:bold;
cursor:pointer;
transition:0.3s;
}

.btn-blue:hover{
transform:translateY(-3px);
box-shadow:0 0 25px rgba(0,191,255,0.8);
}

/* MENU ACTIF */

.sidebar ul li.active{
background:#00bfff;
color:black;
border-radius:10px;
}

.login-body{
background: radial-gradient(circle at top, #0b0f1a, #000);
display:flex;
justify-content:center;
align-items:center;
height:100vh;
}

.login-card{
background: rgba(20,25,40,0.9);
padding:40px;
border-radius:20px;
box-shadow:0 0 40px rgba(0,191,255,0.3);
display:flex;
flex-direction:column;
gap:15px;
width:300px;
}

.login-card input{
padding:12px;
border-radius:10px;
border:1px solid rgba(255,255,255,0.1);
background:#111827;
color:white;
}

.login-card button{
padding:12px;
border:none;
border-radius:12px;
background:linear-gradient(90deg,#0077ff,#00bfff);
color:white;
cursor:pointer;
}

.btn-delete{
background:#ff4d4d;
border:none;
padding:6px 12px;
border-radius:8px;
color:white;
cursor:pointer;
transition:0.3s;
}

.btn-delete:hover{
background:#ff0000;
box-shadow:0 0 10px rgba(255,0,0,0.6);
}

/* ===== ADMIN FULL WIDTH ===== */

.admin-create{
background: rgba(20,25,40,0.9);
padding:30px;
border-radius:20px;
box-shadow:0 0 40px rgba(0,191,255,0.2);
width:100%;
}

.admin-row{
display:flex;
gap:20px;
align-items:flex-end;
flex-wrap:wrap;
}

.admin-row .form-group{
flex:1;
min-width:200px;
}

.btn-container{
display:flex;
align-items:flex-end;
}

.btn-delete{
background:#ff4d4d;
border:none;
padding:8px 12px;
border-radius:8px;
color:white;
cursor:pointer;
transition:0.3s;
}

.btn-delete:hover{
background:#ff0000;
box-shadow:0 0 12px rgba(255,0,0,0.6);
}