:root {
    --ds-brand: #85abbd;
    --ds-brand-dark: #5c8499;
    --ds-brand-deep: #2f5568;
    --ds-sand: #f6f4ef;
    --ds-ink: #1f2d35;
    --ds-muted: #647680;
    --ds-line: #dde5e9;
    --ds-white: #ffffff;
    --ds-radius: 18px;
    --ds-shadow: 0 18px 45px rgba(47, 85, 104, .10);
}

html {
    min-height: 100%;
}

body {
    min-height: 100vh;
    background:
        radial-gradient(circle at 12% 0%, rgba(133, 171, 189, .20), transparent 34rem),
        radial-gradient(circle at 92% 8%, rgba(214, 228, 234, .55), transparent 28rem),
        var(--ds-sand);
    color: var(--ds-ink);
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1 0 auto;
}

a {
    color: var(--ds-brand-deep);
}

a:hover {
    color: var(--ds-brand-dark);
}

.app-navbar {
    background: linear-gradient(115deg, var(--ds-brand-deep), var(--ds-brand-dark) 55%, var(--ds-brand));
    box-shadow: 0 10px 28px rgba(47, 85, 104, .18);
}

.app-navbar .navbar-brand {
    color: #fff;
    font-weight: 700;
    letter-spacing: .02em;
}

.app-navbar .navbar-brand small {
    display: block;
    font-size: .68rem;
    font-weight: 400;
    letter-spacing: .14em;
    text-transform: uppercase;
    opacity: .78;
}

.app-navbar .nav-link {
    color: rgba(255, 255, 255, .82);
    font-weight: 600;
    border-radius: 999px;
    padding: .55rem .95rem !important;
    transition: background-color .2s ease, color .2s ease;
}

.app-navbar .nav-link:hover,
.app-navbar .nav-link.active {
    color: #fff;
    background: rgba(255, 255, 255, .14);
}

.brand-logo {
    height: 44px;
    width: auto;
    background: #fff;
    border-radius: 12px;
    padding: 4px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .14);
}

.btn-brand {
    background: linear-gradient(115deg, var(--ds-brand-dark), var(--ds-brand));
    border: 0;
    color: #fff;
    font-weight: 600;
    border-radius: 12px;
    padding: .68rem 1.15rem;
    box-shadow: 0 10px 22px rgba(92, 132, 153, .24);
}

.btn-brand:hover,
.btn-brand:focus {
    background: linear-gradient(115deg, var(--ds-brand-deep), var(--ds-brand-dark));
    color: #fff;
}

.btn-soft {
    background: #eef4f6;
    border: 1px solid var(--ds-line);
    color: var(--ds-brand-deep);
    font-weight: 600;
    border-radius: 12px;
}

.btn-soft:hover {
    background: #e2ecef;
    color: var(--ds-brand-deep);
}

.hero {
    position: relative;
    overflow: hidden;
    border-radius: 26px;
    background: linear-gradient(120deg, rgba(47, 85, 104, .94), rgba(92, 132, 153, .82)),
        url("../images/BANIERE1.png") center / cover no-repeat;
    color: #fff;
    box-shadow: var(--ds-shadow);
}

.hero::after {
    content: "";
    position: absolute;
    inset: auto -60px -120px auto;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .08);
}

.hero .hero-kicker {
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
    opacity: .78;
}

.hero h1 {
    font-size: clamp(1.7rem, 4vw, 2.7rem);
    font-weight: 700;
    line-height: 1.15;
}

.hero p {
    max-width: 38rem;
    color: rgba(255, 255, 255, .82);
}

.card {
    border: 1px solid rgba(221, 229, 233, .9);
    border-radius: var(--ds-radius);
    box-shadow: var(--ds-shadow);
    background: rgba(255, 255, 255, .94);
}

.card-header {
    border-bottom: 1px solid var(--ds-line);
    background: rgba(255, 255, 255, .75);
    font-weight: 700;
}

.card-header.brand {
    background: linear-gradient(115deg, var(--ds-brand-dark), var(--ds-brand));
    color: #fff;
    border: 0;
}

.form-control,
.form-select {
    border-radius: 12px;
    border-color: #cfdbe0;
    padding: .68rem .85rem;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--ds-brand);
    box-shadow: 0 0 0 .22rem rgba(133, 171, 189, .25);
}

.form-label {
    font-weight: 600;
    color: var(--ds-brand-deep);
    margin-bottom: .35rem;
}

.form-text {
    color: var(--ds-muted);
}

.required::after {
    content: " *";
    color: #c0392b;
}

.stat-card {
    display: flex;
    align-items: center;
    gap: .9rem;
    background: #fff;
    border: 1px solid var(--ds-line);
    border-radius: 16px;
    padding: 1rem 1.1rem;
    height: 100%;
    box-shadow: 0 10px 26px rgba(47, 85, 104, .06);
}

.stat-card .stat-icon {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    border-radius: 13px;
    background: #eaf1f4;
    color: var(--ds-brand-deep);
    font-size: 1.2rem;
}

.stat-card .stat-value {
    font-size: 1.55rem;
    font-weight: 700;
    line-height: 1;
    color: var(--ds-brand-deep);
}

.stat-card .stat-label {
    color: var(--ds-muted);
    font-size: .8rem;
    margin-top: .25rem;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    border-radius: 999px;
    padding: .38rem .7rem;
    font-size: .76rem;
    font-weight: 700;
    letter-spacing: .01em;
}

.table-modern {
    --bs-table-bg: transparent;
    margin-bottom: 0;
}

.table-modern thead th {
    border-bottom: 1px solid var(--ds-line);
    background: #f4f8f9;
    color: var(--ds-brand-deep);
    font-size: .74rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    white-space: nowrap;
    padding: .85rem 1rem;
}

.table-modern tbody td {
    vertical-align: middle;
    padding: .9rem 1rem;
    border-color: #eef3f5;
}

.table-modern tbody tr:hover {
    background: #fafcfd;
}

.table-responsive {
    border-radius: 0 0 var(--ds-radius) var(--ds-radius);
}

.btn-icon {
    display: inline-grid;
    place-items: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border-radius: 10px;
}

.empty-state {
    color: var(--ds-muted);
    padding: 2.4rem 1rem;
    text-align: center;
}

.empty-state i {
    display: block;
    font-size: 2rem;
    margin-bottom: .5rem;
    color: var(--ds-brand);
}

.pagination {
    margin: 1rem 0 0;
}

.page-link {
    border-radius: 10px !important;
    margin: 0 .15rem;
    color: var(--ds-brand-deep);
    border-color: var(--ds-line);
}

.page-item.active .page-link {
    background: var(--ds-brand-dark);
    border-color: var(--ds-brand-dark);
}

.cv-frame {
    width: 100%;
    min-height: 760px;
    border: 1px solid var(--ds-line);
    border-radius: 14px;
    background: #fff;
}

.detail-list dt {
    color: var(--ds-muted);
    font-size: .78rem;
    letter-spacing: .06em;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: .15rem;
}

.detail-list dd {
    font-weight: 600;
    margin-bottom: 1rem;
    word-break: break-word;
}

.auth-card {
    max-width: 460px;
    margin: 3rem auto;
}

.auth-card .card-header {
    background: linear-gradient(115deg, var(--ds-brand-dark), var(--ds-brand));
    color: #fff;
    border: 0;
    padding: 1.15rem 1.4rem;
}

.auth-card .card-header h1 {
    font-size: 1.2rem;
    margin: 0;
}

.flash-stack {
    position: relative;
    z-index: 5;
}

.alert {
    border: 0;
    border-radius: 14px;
    box-shadow: 0 10px 24px rgba(47, 85, 104, .08);
}

.app-footer {
    color: var(--ds-muted);
    font-size: .82rem;
    padding: 1.6rem 0;
}

.app-footer strong {
    color: var(--ds-brand-deep);
}

.filter-bar {
    background: #fff;
    border: 1px solid var(--ds-line);
    border-radius: 16px;
    padding: 1rem;
    box-shadow: 0 10px 26px rgba(47, 85, 104, .05);
}

.module-chip {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    background: #fff;
    border: 1px solid var(--ds-line);
    border-radius: 999px;
    padding: .38rem .8rem;
    font-size: .8rem;
    font-weight: 600;
    color: var(--ds-brand-deep);
}

.module-chip .count {
    display: inline-grid;
    place-items: center;
    min-width: 22px;
    height: 22px;
    border-radius: 999px;
    background: var(--ds-brand);
    color: #fff;
    font-size: .72rem;
}

.section-title {
    color: var(--ds-brand-deep);
    font-weight: 700;
    letter-spacing: -.01em;
}

.section-kicker {
    color: var(--ds-muted);
    font-size: .76rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    font-weight: 700;
}

.honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.locked-note {
    color: var(--ds-muted);
    font-size: .8rem;
}

@media (max-width: 767.98px) {
    .hero {
        border-radius: 20px;
    }

    .cv-frame {
        min-height: 520px;
    }

    .table-modern thead th,
    .table-modern tbody td {
        padding: .7rem .6rem;
    }
}
