/* ============================================================
   eSkooly Pro — Installation Wizard
   Official design system overrides (loaded after spondonit.css)
   Palette: primary #613ddf, navy #241665, muted #6b6b85,
   border #e8e8f0, hover #f3f1fc, success #1da98e,
   warning #ffb01b, danger #ff5a79, page bg #f7f8fb
   ============================================================ */

body.admin {
    background: #f7f8fb;
    color: #6b6b85;
    font-size: 14px;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    color: #241665;
}

/* ---------- Brand header ---------- */
.install-brand {
    text-align: center;
    margin-bottom: 28px;
}

.install-brand img {
    max-width: 150px;
    height: auto;
}

.install-brand .install-tagline {
    margin: 10px 0 0;
    font-size: 12px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #6b6b85;
}

.install-footer {
    text-align: center;
    font-size: 12px;
    color: #6b6b85;
    margin: 24px 0 40px;
}

/* ---------- Progress bar ---------- */
#progressbar {
    margin: 0 0 28px;
    padding: 0;
    overflow: hidden;
    counter-reset: step;
    display: flex;
}

#progressbar li {
    list-style-type: none;
    text-transform: uppercase;
    font-size: 10px;
    font-weight: 600;
    flex: 1 1 0;
    width: auto;
    float: none;
    position: relative;
    letter-spacing: 1px;
    text-align: center;
    color: #6b6b85;
}

#progressbar li:before {
    content: counter(step);
    counter-increment: step;
    width: 30px;
    height: 30px;
    line-height: 28px;
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #6b6b85;
    background: #ffffff;
    border: 1.5px solid #e8e8f0;
    border-radius: 50%;
    margin: 0 auto 8px;
    position: relative;
    z-index: 1;
    transition: all .25s ease;
}

#progressbar li:after {
    content: '';
    width: 100%;
    height: 2px;
    background: #e8e8f0;
    position: absolute;
    left: -50%;
    top: 15px;
    z-index: 0;
}

#progressbar li:first-child:after {
    content: none;
}

#progressbar li.active {
    color: #241665;
}

#progressbar li.active:before,
#progressbar li.active:after {
    background: #613ddf;
    border-color: #613ddf;
    color: #ffffff;
}

/* ---------- Card ---------- */
#content.card,
.install-card {
    background: #ffffff;
    border: 1px solid #e8e8f0;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(36, 22, 101, 0.04);
    overflow: hidden;
}

.install-card-header {
    padding: 28px;
    text-align: center;
    background: #241665;
}

.install-card-header h2 {
    font-size: 20px;
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 6px;
    text-transform: none;
}

.install-card-header p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.75);
    margin: 0;
}

.install-card-body {
    padding: 28px;
}

.install-section-title {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #241665;
    margin: 0 0 12px;
}

.install-section-title:not(:first-child) {
    margin-top: 24px;
}

/* ---------- Buttons ---------- */
.primary-btn,
.primary-btn.fix-gr-bg {
    display: inline-block;
    background: #613ddf;
    color: #ffffff;
    font-family: "Poppins", sans-serif;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .5px;
    line-height: 1.4;
    padding: 10px 20px;
    border: 0;
    border-radius: 8px;
    text-transform: uppercase;
    text-align: center;
    cursor: pointer;
    transition: background .2s ease, transform .2s ease, box-shadow .2s ease;
    text-decoration: none;
}

.primary-btn:hover,
.primary-btn.fix-gr-bg:hover,
.primary-btn:focus,
.primary-btn.fix-gr-bg:focus {
    background: #5232c8;
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(97, 61, 223, 0.2);
    transform: translateY(-1px);
    text-decoration: none;
}

.primary-btn:disabled,
.primary-btn.fix-gr-bg:disabled {
    background: #613ddf;
    opacity: .6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.install-btn-block {
    display: block;
    width: 100%;
    max-width: 320px;
    margin: 28px auto 0;
}

/* ---------- Forms ---------- */
.install-card .form-group,
#content .form-group {
    margin-bottom: 18px;
}

.install-card label,
#content label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #241665;
    margin-bottom: 6px !important;
}

.required::after {
    content: ' *';
    color: #ff5a79;
    font-weight: 600;
}

.install-card .form-control,
#content .form-control {
    display: block;
    width: 100%;
    height: auto;
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
    color: #241665;
    background-color: #ffffff;
    border: 1.5px solid #e8e8f0;
    border-radius: 10px;
    transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}

.install-card .form-control:focus,
#content .form-control:focus {
    border-color: #613ddf !important;
    box-shadow: 0 0 0 3px rgba(97, 61, 223, 0.08) !important;
    outline: none;
}

.install-card .form-control::placeholder,
#content .form-control::placeholder {
    color: #6b6b85;
    opacity: .7;
}

.install-card .form-control[readonly],
#content .form-control[readonly] {
    background-color: #f7f8fb;
}

input.form-control.parsley-error,
select.form-control.parsley-error {
    border-color: #ff5a79 !important;
}

.parsley-errors-list {
    margin: 6px 0 0;
    padding: 0;
    list-style: none;
    font-size: 12px;
    color: #ff5a79;
}

/* ---------- Checkbox ---------- */
.primary_checkbox .checkmark:after {
    border: 1.5px solid #e8e8f0;
    border-radius: 6px;
}

.primary_checkbox .checkmark {
    border-radius: 6px;
}

.primary_checkbox input:checked ~ .checkmark {
    background: #613ddf;
    box-shadow: none;
    border-radius: 6px;
}

.primary_checkbox input:checked ~ .checkmark::before {
    left: 4px;
    transform: none;
    color: #ffffff;
}

.primary_checkbox + span,
.primary_checkbox span.ml-2 {
    font-size: 13px;
    color: #6b6b85;
}

/* ---------- Requirement list ---------- */
.requirement-list {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -6px;
}

.requirement-item {
    flex: 0 0 50%;
    max-width: 50%;
    padding: 6px;
}

.requirement-item-inner {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border: 1px solid #e8e8f0;
    border-radius: 10px;
    font-size: 13px;
    color: #241665;
    background: #ffffff;
}

.requirement-item-inner i {
    font-size: 15px;
    flex: 0 0 auto;
}

.requirement-item.is-ok i {
    color: #1da98e;
}

.requirement-item.is-error i {
    color: #ff5a79;
}

@media (max-width: 767.98px) {
    .requirement-item {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* ---------- Alerts ---------- */
.install-alert {
    border: 0;
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 13px;
    font-weight: 500;
    text-align: center;
    margin: 20px 0 0;
}

.install-alert-success {
    background: rgba(29, 169, 142, 0.08);
    color: #1da98e;
}

.install-alert-danger {
    background: rgba(255, 90, 121, 0.08);
    color: #ff5a79;
}

/* ---------- Badges / pills ---------- */
.esk-badge {
    display: inline-block;
    border-radius: 20px;
    padding: 4px 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.esk-badge-success {
    background: rgba(29, 169, 142, 0.1);
    color: #1da98e;
}

.esk-badge-danger {
    background: rgba(255, 90, 121, 0.1);
    color: #ff5a79;
}

/* ---------- Done / error states ---------- */
.install-result-icon {
    width: 72px;
    height: 72px;
    line-height: 72px;
    border-radius: 50%;
    text-align: center;
    font-size: 32px;
    margin: 8px auto 20px;
    display: block;
}

.install-result-icon.is-success {
    background: rgba(29, 169, 142, 0.1);
    color: #1da98e;
}

.install-result-icon.is-error {
    background: rgba(255, 90, 121, 0.1);
    color: #ff5a79;
}

.install-credentials {
    background: #f7f8fb;
    border: 1px solid #e8e8f0;
    border-radius: 10px;
    padding: 14px 18px;
    font-size: 14px;
    color: #241665;
    display: inline-block;
    margin: 8px 0 4px;
}

/* ---------- Preloader / toastr ---------- */
.preloader {
    background: rgba(247, 248, 251, 0.92);
}

.preloader .loader_img img {
    width: 60px;
    max-width: 60px;
    height: auto;
}

.preloader h2 {
    color: #241665;
    font-size: 15px;
    font-weight: 500;
}

#toast-container > .toast-success {
    background-color: #1da98e;
}

#toast-container > .toast-error {
    background-color: #ff5a79;
}

/* ---------- Legacy helpers kept for old views ---------- */
.mt-40 {
    margin-top: 40px;
}

.mb-20 {
    margin-bottom: 20px;
}

.text-center-vendor {
    text-align: center;
}
