/* ===== MeasureX Measurements ===== */
*{ box-sizing:border-box; }

.meas-page{
    min-height: calc(100vh - 80px);
    padding: 28px 18px 60px;
    font-family: "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
    color: #fff;
    background:
            radial-gradient(1200px 700px at 15% 0%, rgba(45,42,122,.55) 0%, transparent 55%),
            radial-gradient(900px 600px at 85% 10%, rgba(22,1,87,.55) 0%, transparent 55%),
            linear-gradient(180deg, #070014 0%, #0f023f 55%, #070014 100%);
}

.meas-hero{
    max-width: 1100px;
    margin: 0 auto 14px;
    padding: 10px 2px;
}
.meas-hero h1{
    margin: 0 0 6px;
    font-size: clamp(26px, 3.4vw, 40px);
}
.meas-hero p{
    margin: 0;
    color: rgba(255,255,255,0.82);
    line-height: 1.6;
}

.card{
    max-width: 1100px;
    margin: 12px auto;
    padding: 18px;
    border-radius: 18px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.14);
    backdrop-filter: blur(12px);
    box-shadow: 0 18px 45px rgba(0,0,0,0.35);
}

.card h2{
    margin: 0 0 10px;
    font-size: 18px;
    font-weight: 900;
}

.filter-form{
    display:grid;
    grid-template-columns: 1.2fr 1fr 1fr auto;
    gap: 10px;
    align-items:end;
}

.filter-form select,
.filter-form input{
    width: 100%;
    padding: 10px 11px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.18);
    background: rgba(255,255,255,0.10);
    color: #fff;
    outline: none;
}

.dt label{
    display:block;
    margin-bottom: 6px;
    font-weight: 900;
    font-size: 13px;
    color: rgba(255,255,255,0.85);
}

.filter-form button{
    padding: 11px 16px;
    border-radius: 12px;
    border: 0;
    cursor: pointer;
    font-weight: 900;
    color: #fff;
    background: linear-gradient(90deg, #0f023f, #160157);
    box-shadow: 0 12px 28px rgba(0,0,0,0.25);
    transition: transform .08s ease, filter .2s ease;
}
.filter-form button:hover{ filter: brightness(1.06); }
.filter-form button:active{ transform: translateY(1px); }

.alert{
    max-width: 1100px;
    margin: 12px auto;
    padding: 12px 14px;
    border-radius: 14px;
    font-weight: 800;
    border: 1px solid rgba(255,255,255,0.14);
    background: rgba(255,255,255,0.07);
}
.alert.success{ border-color: rgba(120,255,170,0.25); }
.alert.danger{
    border-color: rgba(255,120,140,0.25);
    background: rgba(253,236,239,0.10);
}

.empty{ color: rgba(255,255,255,0.78); margin: 6px 0 0; }

.meta{
    margin: 6px 0 12px;
    color: rgba(255,255,255,0.80);
}

.admin-tag{
    display:inline-block;
    margin-left: 10px;
    padding: 6px 10px;
    border-radius: 999px;
    font-weight: 900;
    font-size: 12px;
    background: rgba(255,120,140,0.12);
    border: 1px solid rgba(255,120,140,0.25);
}

.table-wrap{
    width: 100%;
    overflow: auto;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.12);
}

.meas-table{
    width: 100%;
    border-collapse: collapse;
    min-width: 820px;
}

.meas-table th,
.meas-table td{
    padding: 12px 12px;
    border-bottom: 1px solid rgba(255,255,255,0.10);
    text-align: left;
    font-size: 13.5px;
}

.meas-table th{
    background: rgba(255,255,255,0.06);
    font-weight: 900;
}

.meas-table tr:hover td{
    background: rgba(255,255,255,0.05);
}

.danger-btn{
    padding: 8px 12px;
    border-radius: 12px;
    border: 1px solid rgba(255,120,140,0.25);
    background: rgba(253,236,239,0.10);
    color: #fff;
    font-weight: 900;
    cursor: pointer;
}
.danger-btn:hover{ filter: brightness(1.07); }
/* Fix dropdown options (white background issue) */
.filter-form select {
    color: #fff;                 /* texte dans la barre select */
    background: rgba(255,255,255,0.10);
}

/* Quand la liste s'ouvre, les options doivent rester lisibles */
.filter-form select option {
    color: #111;                 /* texte sombre dans la liste */
    background: #fff;            /* fond clair dans la liste */
}

@media (max-width: 980px){
    .filter-form{ grid-template-columns: 1fr; }
}
