/* Styles de formulaire_graduation.php (extraits de la page, même ordre) */


:root{
	--accent:#4f46e5; /* indigo */
	--accent-2:#06b6d4; /* cyan */
	--muted:#6b7280;
	--card-bg:#ffffff;
}
/* Dashboard-like form styling */
.request-card { max-width: 980px; margin: 1.75rem auto; }
.request-card .card-body { background: linear-gradient(180deg,var(--card-bg),#f7f8ff); border-radius:12px; padding:22px; box-shadow:0 14px 40px rgba(15,23,42,0.06); border-left:6px solid var(--accent); }
.card-title { font-weight:600; color:#0f172a; display:flex; align-items:center; gap:10px; }
.card-title::before { content:''; display:inline-block; width:46px; height:6px; background:linear-gradient(90deg,var(--accent),var(--accent-2)); border-radius:6px; }
.form-control, .form-select { border-radius:8px; transition: box-shadow .16s ease, transform .12s ease, border-color .12s ease; }
.form-control:focus, .form-select:focus { box-shadow: 0 10px 30px rgba(79,70,229,0.08); transform: translateY(-2px); border-color:var(--accent); outline: none; }
.form-text { color:var(--muted); }
.fade-box { transition: opacity .18s ease, transform .18s ease; opacity:0; transform:translateY(-6px); }
.fade-box.visible { opacity:1; transform:translateY(0); }
.summary-box { background:linear-gradient(90deg, rgba(79,70,229,0.06), rgba(6,182,212,0.03)); border-left:4px solid var(--accent); padding:10px 14px; border-radius:8px; font-size:.95rem; color:#0f172a; display:flex; align-items:center; gap:8px; }
.summary-box small { color:var(--muted); }
.btn-primary { background:linear-gradient(90deg,var(--accent),var(--accent-2)); border:none; box-shadow:0 8px 20px rgba(79,70,229,0.12); }
.btn-outline-secondary { border-radius:8px; }
.form-check-label { font-weight:500; color:#0f172a; }
.muted-note { color:var(--muted); font-size:.9rem; }
/* Summary chips and badges */
.summary-chip { display:inline-flex; align-items:center; gap:8px; background:rgba(15,23,42,0.03); border-radius:999px; padding:6px 10px; font-weight:600; color:#0f172a; box-shadow:inset 0 -1px 0 rgba(255,255,255,0.4); }
.summary-chip .pill { background:linear-gradient(90deg,var(--accent),var(--accent-2)); color:#fff; padding:4px 8px; border-radius:999px; font-size:.85rem; font-weight:700; }
.summary-chip.ghost { background:transparent; box-shadow:none; font-weight:500; }
.summary-aux { color:var(--muted); font-weight:500; font-size:.9rem; margin-left:8px; }
.summary-highlight { background:linear-gradient(90deg, rgba(79,70,229,0.12), rgba(6,182,212,0.06)); padding:8px 10px; border-radius:8px; }
@media (max-width:720px){
	.request-card{ margin:8px 10px; }
	.card-title::before{ width:34px; }
	/* Make card body scroll inside viewport on small screens */
	.request-card .card-body {
		max-height: calc(100vh - 110px);
		overflow-y: auto;
		-webkit-overflow-scrolling: touch;
		padding:14px;
	}
	/* Keep live summary visible and compact */
	.summary-box { position: sticky; top:8px; z-index:6; width:100%; margin-bottom:10px; }
	/* Stack action buttons vertically for narrow screens */
	.d-flex.justify-content-end { flex-direction:column-reverse; gap:8px; align-items:stretch; }
	.d-flex.justify-content-end .btn, .d-flex.justify-content-end a { width:100%; }
	/* Slightly larger touch targets for toggles */
	.double-toggle .toggle-label { padding:10px 12px; font-size:.95rem; }
}

/* Detached radio toggle buttons */
.double-toggle { display:flex; gap:10px; margin-top:8px; align-items:center; }
.double-toggle .form-check { margin:0; position:relative; }
.double-toggle .form-check-input { position:absolute; width:1px; height:1px; opacity:0; pointer-events:none; }
.double-toggle .toggle-label { display:inline-block; padding:8px 14px; border-radius:10px; border:1px solid rgba(15,23,42,0.08); background:#fff; cursor:pointer; transition:all .14s ease; box-shadow:0 2px 6px rgba(2,6,23,0.04); }
.double-toggle .form-check-input:checked + .toggle-label { background:linear-gradient(90deg,var(--accent),var(--accent-2)); color:#fff; border-color:var(--accent); box-shadow:0 10px 26px rgba(79,70,229,0.12); transform:translateY(-3px); }
.double-toggle .toggle-label:hover { transform:translateY(-2px); }
