/* WSP7 shared design tokens for standalone Blesta */
:root {
    --wsp-coral: #F15A45;
    --wsp-orange: #F28C28;
    --wsp-gold: #E9B949;
    --wsp-ivory: #FFF9F0;
    --wsp-charcoal: #292D32;
    --wsp-blue: #2459A9;
    --wsp-turquoise: #25A9A0;
    --wsp-border: #EEE3D8;
    --wsp-radius: 12px;
}

body {
    color: var(--wsp-charcoal);
    font-family: "Instrument Sans", "Segoe UI", sans-serif;
}

body.client-client_login-index {
    background: var(--wsp-ivory);
}

.card, .panel {
    border-color: var(--wsp-border);
    border-radius: var(--wsp-radius);
}

.btn-primary {
    background-color: var(--wsp-coral);
    border-color: var(--wsp-coral);
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: #D94A37;
    border-color: #D94A37;
}

a {
    color: var(--wsp-blue);
}

a:hover {
    color: var(--wsp-coral);
}

.form-control:focus {
    border-color: var(--wsp-turquoise);
    box-shadow: 0 0 0 3px rgba(37, 169, 160, .18);
}

/* WSP7 visual overrides */
html body {
    background-color: #FFF9F0 !important;
    color: #292D32 !important;
}

html body a,
html body a:hover {
    color: #2459A9 !important;
}

html body .btn-primary,
html body input[type="submit"] {
    background-color: #F15A45 !important;
    border-color: #F15A45 !important;
    color: #FFFFFF !important;
}

html body .card-blesta > .card-header {
    background: #FFF9F0 !important;
    color: #292D32 !important;
}

/* WSP7 modern login layout */
body.client-client_login-index .container {
    max-width: 1100px;
}

body.client-client_login-index .row {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 28px;
    margin: 40px auto;
}

body.client-client_login-index .col-md-4,
body.client-client_login-index .col-sm-6 {
    float: none;
    width: 100%;
    max-width: 430px;
    margin: 0;
    padding: 0;
}

body.client-client_login-index .panel-blesta {
    overflow: hidden;
    border: 1px solid #EEE3D8;
    border-radius: 18px;
    box-shadow: 0 12px 35px rgba(41, 45, 50, .08);
    background: #FFFFFF;
}

body.client-client_login-index .panel-blesta .panel-body {
    padding: 30px;
}

body.client-client_login-index .panel-blesta .panel-footer {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding: 18px 30px;
    background: #FFF9F0;
    border-top: 1px solid #EEE3D8;
}

body.client-client_login-index .panel-blesta .btn-success {
    background: #F15A45 !important;
    border-color: #F15A45 !important;
    border-radius: 10px;
    padding: 12px 16px;
    font-weight: 600;
}

body.client-client_login-index .form-control {
    min-height: 46px;
    border-radius: 9px;
}

@media (max-width: 767px) {
    body.client-client_login-index .row {
        margin: 20px 12px;
        gap: 20px;
    }

    body.client-client_login-index .panel-blesta .panel-body {
        padding: 22px;
    }
}

/* WSP7 — Unified premium buttons */
html body .btn {
    border-radius: 10px;
    font-weight: 600;
    transition: background-color .2s ease, border-color .2s ease,
                box-shadow .2s ease, transform .2s ease;
}

html body .btn-primary,
html body .btn-success {
    background-color: #F15A45;
    border-color: #F15A45;
    color: #FFFFFF;
}

html body .btn-primary:hover,
html body .btn-primary:focus,
html body .btn-success:hover,
html body .btn-success:focus {
    background-color: #D94A37;
    border-color: #D94A37;
    color: #FFFFFF;
    box-shadow: 0 5px 14px rgba(241, 90, 69, .2);
}

html body .btn-default,
html body .btn-secondary {
    border-color: #E8EAF0;
    border-radius: 10px;
    color: #292D32;
}

html body .btn-default:hover,
html body .btn-secondary:hover {
    background-color: #FFF9F0;
    border-color: #E8EAF0;
    color: #D94A37;
}

html body .btn:focus-visible {
    outline: 2px solid #25A9A0;
    outline-offset: 2px;
}

html body .btn:disabled,
html body .btn.disabled {
    box-shadow: none;
    transform: none;
    cursor: not-allowed;
}

@media (prefers-reduced-motion: reduce) {
    html body .btn {
        transition: none;
    }
}

/* WSP7 — Unified client navigation and cards */
html body .nav-content nav.navbar {
    background-color: #2C3E50 !important;
    border-color: #2C3E50 !important;
    border-radius: 12px;
}

html body .nav-content nav.navbar .navbar-nav > li > a {
    color: #FFFFFF !important;
    border-radius: 8px;
    transition: background-color .2s ease, color .2s ease;
}

html body .nav-content nav.navbar .navbar-nav > li > a:hover,
html body .nav-content nav.navbar .navbar-nav > li > a:focus {
    background-color: rgba(37, 169, 160, .18) !important;
    color: #FFFFFF !important;
}

html body .nav-content nav.navbar .navbar-nav > .active > a,
html body .nav-content nav.navbar .navbar-nav > .active > a:hover,
html body .nav-content nav.navbar .navbar-nav > .active > a:focus {
    background-color: #F15A45 !important;
    color: #FFFFFF !important;
}

html body .card-blesta {
    border: 1px solid #E8EAF0;
    border-radius: 14px;
    overflow: hidden;
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

html body .card-blesta > .card-header {
    background-color: #F7F8FA !important;
    color: #292D32 !important;
}

html body .card-blesta:hover {
    border-color: #25A9A0;
    box-shadow: 0 12px 28px rgba(44, 62, 80, .16);
    transform: translateY(-4px);
}

html body .card-blesta:focus-within {
    border-color: #25A9A0;
    box-shadow: 0 0 0 3px rgba(37, 169, 160, .14);
}

html body .alert-info {
    border-radius: 12px;
    border-color: rgba(37, 169, 160, .28);
}

@media (prefers-reduced-motion: reduce) {
    html body .nav-content nav.navbar .navbar-nav > li > a,
    html body .card-blesta {
        transition: none;
    }
}

/* WSP7 — Dashboard statistic cards: visible hover */
html body .right_content .cards .card {
    border-radius: 12px;
    transition: box-shadow .22s ease, transform .22s ease, filter .22s ease;
    will-change: transform;
}

html body .right_content .cards .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 26px rgba(44, 62, 80, .24);
    filter: brightness(1.035);
}

/* WSP7 — Client navigation: clearer hover */
html body .nav-content nav.navbar .navbar-nav > li > a {
    transition: background-color .2s ease, color .2s ease, box-shadow .2s ease;
}

html body .nav-content nav.navbar .navbar-nav > li:not(.active) > a:hover,
html body .nav-content nav.navbar .navbar-nav > li:not(.active) > a:focus {
    background-color: #25A9A0 !important;
    color: #FFFFFF !important;
    box-shadow: 0 3px 10px rgba(37, 169, 160, .25);
}

@media (prefers-reduced-motion: reduce) {
    html body .right_content .cards .card,
    html body .nav-content nav.navbar .navbar-nav > li > a {
        transition: none;
    }

    html body .right_content .cards .card:hover {
        transform: none;
    }
}
