/* Darlink ERP Phoenix 2026.3 LTS — Install Wizard P1.1 */

:root{
    --darlink-primary:#0f4c81;
    --darlink-primary-hover:#1565a8;
    --darlink-dark:#0f172a;
    --darlink-bg:#eef3f8;
    --darlink-card:#ffffff;
    --darlink-text:#1e293b;
    --darlink-muted:#64748b;
    --darlink-border:#dbe4ef;
}

*{
    box-sizing:border-box;
}

html,
body{
    min-height:100%;
}

body.darlink-install-body{
    margin:0;
    color:var(--darlink-text);
    background:
        radial-gradient(circle at top left, rgba(15,76,129,.15), transparent 34%),
        linear-gradient(135deg, #f8fafc 0%, var(--darlink-bg) 100%);
    font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
}

.darlink-install-shell{
    min-height:100vh;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:32px 18px;
}

.darlink-install-card{
    width:100%;
    max-width:930px;
    background:var(--darlink-card);
    border:1px solid var(--darlink-border);
    border-radius:24px;
    box-shadow:0 28px 70px rgba(15,23,42,.14);
    overflow:hidden;
}

.darlink-install-header{
    min-height:108px;
    padding:24px 30px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:24px;
    color:#fff;
    background:
        linear-gradient(135deg, var(--darlink-primary) 0%, #0b3b66 100%);
}

.darlink-install-brand{
    display:flex;
    align-items:center;
    gap:18px;
}

.darlink-install-logo{
    min-width:116px;
    height:58px;
    padding:8px 13px;
    display:flex;
    align-items:baseline;
    justify-content:center;
    gap:4px;
    border-radius:14px;
    background:rgba(255,255,255,.14);
    border:1px solid rgba(255,255,255,.18);
    box-shadow:inset 0 1px 0 rgba(255,255,255,.12);
}

.darlink-install-logo span{
    font-size:20px;
    font-weight:900;
    letter-spacing:.05em;
}

.darlink-install-logo small{
    font-size:12px;
    font-weight:800;
    opacity:.86;
}

.darlink-install-brand h1{
    margin:0 0 3px;
    font-size:22px;
    font-weight:800;
}

.darlink-install-brand p{
    margin:0;
    color:rgba(255,255,255,.76);
    font-size:13px;
}

.darlink-install-step{
    padding:8px 13px;
    border-radius:999px;
    background:rgba(255,255,255,.14);
    border:1px solid rgba(255,255,255,.18);
    font-size:13px;
    font-weight:700;
    white-space:nowrap;
}

.darlink-install-progress{
    padding:20px 30px;
    border-bottom:1px solid var(--darlink-border);
    background:#fbfdff;
    font-size:13px;
}

.darlink-install-progress .progress{
    height:9px;
    border-radius:999px;
    background:#dfe8f1;
}

.darlink-install-progress .progress-bar{
    border-radius:999px;
    background:linear-gradient(90deg,var(--darlink-primary),#2f7fe4);
}

.darlink-install-content{
    padding:42px 36px;
    min-height:440px;
}

.darlink-install-footer{
    padding:17px 30px;
    display:flex;
    justify-content:space-between;
    gap:20px;
    color:var(--darlink-muted);
    background:#fbfdff;
    border-top:1px solid var(--darlink-border);
    font-size:12px;
}

.darlink-welcome{
    max-width:760px;
    margin:0 auto;
}

.darlink-welcome-icon,
.darlink-locked-icon{
    width:82px;
    height:82px;
    margin:0 auto 20px;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:22px;
    color:#fff;
    background:linear-gradient(135deg,var(--darlink-primary),#2f7fe4);
    box-shadow:0 15px 32px rgba(15,76,129,.24);
    font-size:36px;
}

.darlink-locked-icon{
    background:linear-gradient(135deg,#b91c1c,#ef4444);
}

.darlink-welcome-badge{
    display:inline-block;
    margin-bottom:14px;
    padding:6px 11px;
    border-radius:999px;
    background:#eef6ff;
    color:var(--darlink-primary);
    border:1px solid #d9eafb;
    font-size:12px;
    font-weight:800;
    text-transform:uppercase;
    letter-spacing:.06em;
}

.darlink-welcome h2{
    margin:0 0 14px;
    color:var(--darlink-dark);
    font-size:32px;
    font-weight:850;
}

.darlink-welcome-lead{
    max-width:620px;
    margin:0 auto 28px;
    color:var(--darlink-muted);
    font-size:16px;
    line-height:1.65;
}

.darlink-welcome-grid{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:14px;
    margin:0 0 32px;
    text-align:left;
}

.darlink-welcome-item{
    min-height:62px;
    display:flex;
    align-items:center;
    gap:12px;
    padding:14px 16px;
    border:1px solid var(--darlink-border);
    border-radius:15px;
    background:#fbfdff;
    font-weight:700;
}

.darlink-welcome-item i{
    width:34px;
    height:34px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    border-radius:10px;
    color:var(--darlink-primary);
    background:#eaf4ff;
    font-size:18px;
}

.darlink-install-actions{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:12px;
    margin-top:28px;
}

.darlink-install-btn-primary{
    min-height:48px;
    padding:11px 22px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    border:0;
    border-radius:13px;
    color:#fff;
    background:var(--darlink-primary);
    font-weight:750;
    box-shadow:0 10px 22px rgba(15,76,129,.2);
    text-decoration:none;
}

.darlink-install-btn-primary:hover{
    color:#fff;
    background:var(--darlink-primary-hover);
}

@media (max-width:720px){
    .darlink-install-shell{
        padding:12px;
    }

    .darlink-install-card{
        border-radius:18px;
    }

    .darlink-install-header{
        align-items:flex-start;
        flex-direction:column;
        padding:22px;
    }

    .darlink-install-content{
        padding:30px 20px;
    }

    .darlink-welcome-grid{
        grid-template-columns:1fr;
    }

    .darlink-install-footer{
        flex-direction:column;
        padding:16px 20px;
    }
}


/* Phoenix 2026.3 LTS P1.2 — Vérification du serveur */

.darlink-page-heading{
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:24px;
    margin-bottom:24px;
}

.darlink-page-kicker{
    display:inline-block;
    margin-bottom:8px;
    color:var(--darlink-primary);
    font-size:12px;
    font-weight:850;
    text-transform:uppercase;
    letter-spacing:.07em;
}

.darlink-page-heading h2{
    margin:0 0 8px;
    color:var(--darlink-dark);
    font-size:28px;
    font-weight:850;
}

.darlink-page-heading p{
    max-width:610px;
    margin:0;
    color:var(--darlink-muted);
    line-height:1.6;
}

.darlink-readiness{
    min-width:245px;
    padding:14px 16px;
    display:flex;
    align-items:center;
    gap:12px;
    border-radius:15px;
    border:1px solid;
}

.darlink-readiness i{
    font-size:24px;
}

.darlink-readiness div{
    display:flex;
    flex-direction:column;
    gap:2px;
}

.darlink-readiness strong{
    font-size:14px;
}

.darlink-readiness span{
    font-size:12px;
}

.darlink-readiness.is-ready{
    color:#047857;
    background:#ecfdf5;
    border-color:#a7f3d0;
}

.darlink-readiness.has-errors{
    color:#b91c1c;
    background:#fef2f2;
    border-color:#fecaca;
}

.darlink-notice{
    margin-bottom:22px;
    padding:13px 15px;
    display:flex;
    align-items:flex-start;
    gap:10px;
    border-radius:13px;
    border:1px solid;
    font-size:13px;
    line-height:1.5;
}

.darlink-notice-warning{
    color:#92400e;
    background:#fffbeb;
    border-color:#fde68a;
}

.darlink-check-group{
    margin-top:24px;
}

.darlink-check-group h3{
    margin:0 0 11px;
    color:#334155;
    font-size:14px;
    font-weight:850;
    text-transform:uppercase;
    letter-spacing:.055em;
}

.darlink-check-list{
    display:flex;
    flex-direction:column;
    gap:9px;
}

.darlink-check-item{
    min-height:70px;
    padding:13px 15px;
    display:grid;
    grid-template-columns:38px minmax(0,1fr) auto;
    align-items:center;
    gap:13px;
    border:1px solid var(--darlink-border);
    border-radius:14px;
    background:#fff;
}

.darlink-check-icon{
    width:36px;
    height:36px;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:11px;
    font-size:18px;
}

.darlink-check-item.is-success .darlink-check-icon{
    color:#047857;
    background:#ecfdf5;
}

.darlink-check-item.is-warning .darlink-check-icon{
    color:#b45309;
    background:#fffbeb;
}

.darlink-check-item.is-error .darlink-check-icon{
    color:#b91c1c;
    background:#fef2f2;
}

.darlink-check-title{
    display:flex;
    align-items:center;
    gap:8px;
    flex-wrap:wrap;
}

.darlink-check-title strong{
    color:#1e293b;
    font-size:14px;
}

.darlink-check-content p{
    margin:4px 0 0;
    color:var(--darlink-muted);
    font-size:12px;
    line-height:1.45;
}

.darlink-check-required,
.darlink-check-recommended{
    padding:3px 7px;
    border-radius:999px;
    font-size:9px;
    font-weight:850;
    text-transform:uppercase;
    letter-spacing:.04em;
}

.darlink-check-required{
    color:#991b1b;
    background:#fee2e2;
}

.darlink-check-recommended{
    color:#475569;
    background:#f1f5f9;
}

.darlink-check-value{
    min-width:135px;
    text-align:right;
    color:#475569;
    font-size:12px;
    font-weight:750;
}

.darlink-install-btn-secondary{
    min-height:48px;
    padding:11px 20px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    border:1px solid var(--darlink-border);
    border-radius:13px;
    color:#334155;
    background:#fff;
    font-weight:750;
    text-decoration:none;
}

.darlink-install-btn-secondary:hover{
    color:var(--darlink-primary);
    border-color:#a8c5df;
    background:#f8fbff;
}

@media (max-width:760px){
    .darlink-page-heading{
        flex-direction:column;
    }

    .darlink-readiness{
        width:100%;
        min-width:0;
    }

    .darlink-check-item{
        grid-template-columns:38px minmax(0,1fr);
    }

    .darlink-check-value{
        grid-column:2;
        min-width:0;
        text-align:left;
    }

    .darlink-install-actions{
        align-items:stretch;
        flex-direction:column;
    }

    .darlink-install-actions > div{
        flex-direction:column;
    }

    .darlink-install-actions .btn{
        width:100%;
    }
}


/* Phoenix 2026.3 LTS P1.3 — Base de données */

.darlink-notice-danger{
    color:#b91c1c;
    background:#fef2f2;
    border-color:#fecaca;
}

.darlink-notice-success{
    color:#047857;
    background:#ecfdf5;
    border-color:#a7f3d0;
}

.darlink-database-layout{
    display:grid;
    grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr);
    gap:20px;
    align-items:start;
}

.darlink-form-panel,
.darlink-diagnostic-panel{
    padding:20px;
    border:1px solid var(--darlink-border);
    border-radius:17px;
    background:#fbfdff;
}

.darlink-form-panel h3,
.darlink-diagnostic-panel h3{
    margin:0 0 17px;
    color:#334155;
    font-size:15px;
    font-weight:850;
}

.darlink-form-label{
    display:block;
    margin-bottom:7px;
    color:#334155;
    font-size:13px;
    font-weight:750;
}

.darlink-form-control{
    width:100%;
    min-height:46px;
    padding:10px 13px;
    border:1px solid var(--darlink-border);
    border-radius:12px;
    background:#fff;
    color:var(--darlink-text);
    outline:none;
    transition:all .18s ease;
}

.darlink-form-control:focus{
    border-color:#7db0d8;
    box-shadow:0 0 0 3px rgba(15,76,129,.11);
}

.darlink-password-field{
    position:relative;
}

.darlink-password-field .darlink-form-control{
    padding-right:48px;
}

.darlink-password-toggle{
    position:absolute;
    top:50%;
    right:8px;
    width:34px;
    height:34px;
    transform:translateY(-50%);
    display:flex;
    align-items:center;
    justify-content:center;
    border:0;
    border-radius:9px;
    color:#64748b;
    background:transparent;
}

.darlink-password-toggle:hover{
    color:var(--darlink-primary);
    background:#eef6ff;
}

.darlink-form-help{
    margin:17px 0;
    padding:11px 12px;
    display:flex;
    align-items:flex-start;
    gap:9px;
    border-radius:11px;
    color:#475569;
    background:#eef6ff;
    font-size:12px;
    line-height:1.5;
}

.darlink-form-help i{
    margin-top:1px;
    color:var(--darlink-primary);
}

.darlink-diagnostic-empty{
    min-height:290px;
    display:flex;
    align-items:center;
    justify-content:center;
    flex-direction:column;
    gap:11px;
    color:#94a3b8;
    text-align:center;
}

.darlink-diagnostic-empty i{
    font-size:40px;
}

.darlink-diagnostic-empty p{
    max-width:260px;
    margin:0;
    line-height:1.5;
}

.darlink-diagnostic-panel .darlink-check-item{
    min-height:62px;
    padding:11px 12px;
}

.darlink-diagnostic-panel .darlink-check-value{
    min-width:110px;
}

@media (max-width:860px){
    .darlink-database-layout{
        grid-template-columns:1fr;
    }
}


/* Phoenix 2026.3 LTS P1.4 — Environnement */

.darlink-environment-step .darlink-form-panel,
.darlink-environment-step .darlink-diagnostic-panel{
    min-height:100%;
}

.darlink-environment-step select.darlink-form-control{
    appearance:auto;
}


/* Phoenix 2026.3 LTS P2.1 — Préparation de l'installation */

.darlink-summary-grid{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:18px;
    margin-bottom:26px;
}

.darlink-summary-card{
    padding:20px;
    border:1px solid var(--darlink-border);
    border-radius:17px;
    background:#fbfdff;
}

.darlink-summary-icon{
    width:42px;
    height:42px;
    margin-bottom:14px;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:12px;
    color:var(--darlink-primary);
    background:#eaf4ff;
    font-size:20px;
}

.darlink-summary-card h3{
    margin:0 0 15px;
    color:#334155;
    font-size:16px;
    font-weight:850;
}

.darlink-summary-card dl{
    margin:0;
}

.darlink-summary-card dl > div{
    padding:8px 0;
    display:grid;
    grid-template-columns:135px minmax(0,1fr);
    gap:12px;
    border-bottom:1px dashed #dbe4ef;
}

.darlink-summary-card dl > div:last-child{
    border-bottom:0;
}

.darlink-summary-card dt{
    color:#64748b;
    font-size:12px;
    font-weight:700;
}

.darlink-summary-card dd{
    margin:0;
    color:#1e293b;
    font-size:12px;
    font-weight:750;
    word-break:break-word;
}

.darlink-estimation{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:12px;
}

.darlink-estimation > div{
    padding:13px;
    border:1px solid var(--darlink-border);
    border-radius:13px;
    background:#fff;
}

.darlink-estimation strong{
    display:block;
    color:var(--darlink-primary);
    font-size:18px;
    font-weight:850;
}

.darlink-estimation span{
    display:block;
    margin-top:3px;
    color:#64748b;
    font-size:11px;
}

.darlink-state-badge{
    display:inline-flex;
    padding:6px 10px;
    border-radius:999px;
    font-size:11px;
    font-weight:850;
}

.darlink-state-badge.is-success{
    color:#047857;
    background:#ecfdf5;
    border:1px solid #a7f3d0;
}

.darlink-state-badge.is-warning{
    color:#92400e;
    background:#fffbeb;
    border:1px solid #fde68a;
}

.darlink-database-state p{
    margin:13px 0 0;
    color:#64748b;
    font-size:12px;
    line-height:1.55;
}

.darlink-audit-section{
    margin-top:24px;
}

.darlink-audit-section > h3{
    margin:0 0 18px;
    color:#334155;
    font-size:18px;
    font-weight:850;
}

.darlink-audit-group{
    margin-top:18px;
}

.darlink-audit-group h4{
    margin:0 0 9px;
    color:#64748b;
    font-size:12px;
    font-weight:850;
    text-transform:uppercase;
    letter-spacing:.055em;
}

.darlink-confirmation-panel{
    margin-top:28px;
    padding:20px;
    border:1px solid var(--darlink-border);
    border-radius:17px;
    background:#fbfdff;
}

.darlink-confirmation-item{
    min-height:48px;
    margin-bottom:10px;
    padding:12px 14px;
    display:flex;
    align-items:flex-start;
    gap:11px;
    border:1px solid var(--darlink-border);
    border-radius:12px;
    background:#fff;
    color:#334155;
    font-size:13px;
    font-weight:700;
}

.darlink-confirmation-item input{
    margin-top:3px;
    accent-color:var(--darlink-primary);
}

.darlink-confirmation-item.is-warning{
    color:#92400e;
    background:#fffbeb;
    border-color:#fde68a;
}

@media (max-width:820px){
    .darlink-summary-grid{
        grid-template-columns:1fr;
    }
}

@media (max-width:520px){
    .darlink-summary-card dl > div{
        grid-template-columns:1fr;
        gap:3px;
    }

    .darlink-estimation{
        grid-template-columns:1fr;
    }
}


/* Phoenix 2026.3 LTS P2.2 — Installation Engine */

.darlink-execution-card{
    padding:22px;
    border:1px solid var(--darlink-border);
    border-radius:18px;
    background:#fbfdff;
}

.darlink-execution-progress-header{
    margin-bottom:10px;
    display:flex;
    justify-content:space-between;
    align-items:center;
    color:#334155;
    font-size:13px;
}

.darlink-execution-progress{
    height:13px;
    border-radius:999px;
    background:#dfe8f1;
}

.darlink-execution-progress .progress-bar{
    border-radius:999px;
    background:linear-gradient(
        90deg,
        var(--darlink-primary),
        #2f7fe4
    );
    transition:width .25s ease;
}

.darlink-current-operation{
    margin:16px 0;
    padding:12px 14px;
    border-radius:12px;
    color:#334155;
    background:#eef6ff;
    font-size:13px;
    font-weight:700;
}

.darlink-install-log{
    height:260px;
    padding:15px;
    overflow-y:auto;
    border:1px solid #cbd5e1;
    border-radius:13px;
    color:#dbeafe;
    background:#0f172a;
    font-family:Consolas,Monaco,monospace;
    font-size:12px;
    line-height:1.65;
}

.darlink-log-line{
    padding:2px 0;
}

.darlink-log-line.is-muted{
    color:#64748b;
}

.darlink-log-line.is-info{
    color:#bfdbfe;
}

.darlink-log-line.is-success{
    color:#86efac;
}

.darlink-log-line.is-error{
    color:#fca5a5;
}

.darlink-execution-summary{
    margin-top:18px;
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:12px;
}

.darlink-execution-summary > div{
    padding:14px;
    border:1px solid var(--darlink-border);
    border-radius:13px;
    background:#fff;
}

.darlink-execution-summary strong{
    display:block;
    color:var(--darlink-primary);
    font-size:19px;
    font-weight:850;
}

.darlink-execution-summary span{
    display:block;
    margin-top:4px;
    color:#64748b;
    font-size:11px;
}

@media (max-width:760px){
    .darlink-execution-summary{
        grid-template-columns:repeat(2,minmax(0,1fr));
    }
}

@media (max-width:460px){
    .darlink-execution-summary{
        grid-template-columns:1fr;
    }
}


/* Phoenix 2026.3 LTS P2.3 — Premier administrateur */

.darlink-administrator-layout{
    display:grid;
    grid-template-columns:minmax(0,1.35fr) minmax(260px,.65fr);
    gap:20px;
    align-items:start;
}

.darlink-administrator-info{
    padding:22px;
    border:1px solid var(--darlink-border);
    border-radius:17px;
    background:#fbfdff;
}

.darlink-administrator-info h3{
    margin:0 0 16px;
    color:#334155;
    font-size:16px;
    font-weight:850;
}

.darlink-administrator-info ul{
    margin:0;
    padding:0;
    list-style:none;
}

.darlink-administrator-info li{
    padding:9px 0;
    display:flex;
    align-items:center;
    gap:9px;
    color:#475569;
    border-bottom:1px dashed #dbe4ef;
    font-size:12px;
    font-weight:700;
}

.darlink-administrator-info li:last-child{
    border-bottom:0;
}

.darlink-administrator-info li i{
    color:#047857;
}

.darlink-schema-information{
    margin-top:20px;
    padding:14px;
    display:grid;
    grid-template-columns:1fr;
    gap:4px;
    border-radius:13px;
    background:#eef6ff;
}

.darlink-schema-information span{
    margin-top:7px;
    color:#64748b;
    font-size:10px;
    font-weight:800;
    text-transform:uppercase;
    letter-spacing:.05em;
}

.darlink-schema-information span:first-child{
    margin-top:0;
}

.darlink-schema-information strong{
    color:#0f4c81;
    font-size:12px;
    word-break:break-word;
}

.darlink-field-hint{
    display:block;
    margin-top:6px;
    color:#64748b;
    font-size:11px;
}

.darlink-password-strength{
    padding:14px;
    border:1px solid var(--darlink-border);
    border-radius:13px;
    background:#fff;
}

.darlink-password-strength-track{
    height:8px;
    overflow:hidden;
    border-radius:999px;
    background:#e2e8f0;
}

.darlink-password-strength-track span{
    display:block;
    width:0;
    height:100%;
    border-radius:999px;
    background:#94a3b8;
    transition:all .2s ease;
}

.darlink-password-strength-track span.is-danger{
    background:#dc2626;
}

.darlink-password-strength-track span.is-warning{
    background:#d97706;
}

.darlink-password-strength-track span.is-good{
    background:#2563eb;
}

.darlink-password-strength-track span.is-strong{
    background:#059669;
}

.darlink-password-strength-text{
    margin-top:9px;
    display:flex;
    justify-content:space-between;
    gap:12px;
    color:#64748b;
    font-size:11px;
}

.darlink-password-strength-text strong{
    color:#334155;
}

@media (max-width:820px){
    .darlink-administrator-layout{
        grid-template-columns:1fr;
    }
}

@media (max-width:620px){
    .darlink-password-strength-text{
        flex-direction:column;
    }
}


/* Phoenix 2026.3 LTS P2.4 */
.darlink-success-screen{max-width:760px;margin:0 auto}
.darlink-success-icon{
    width:96px;height:96px;margin:0 auto 22px;display:flex;
    align-items:center;justify-content:center;border-radius:28px;
    color:#fff;background:linear-gradient(135deg,#047857,#10b981);
    box-shadow:0 18px 38px rgba(5,150,105,.25);font-size:50px
}
.darlink-success-screen h2{
    margin:0 0 14px;color:var(--darlink-dark);
    font-size:34px;font-weight:850
}
.darlink-success-actions{
    margin-top:28px;display:flex;justify-content:center;
    gap:12px;flex-wrap:wrap
}
