/*
    cookie-consent.css
    stiluri pentru elementele de front adaugate la tema (design putin diferit, mai soft):
    baner cookie + panou preferinte, buton fix cookie, badge + modal timp de generare.
    culorile butoanelor raman din tema (clasele btn-*).
*/

/* ---------- baner cookie ---------- */
#cookieConsent {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1035;
    background: #fff;
    border-top: 3px solid var(--sv-accent, #4e54c8);
    box-shadow: 0 -0.5rem 2rem rgba(20, 23, 40, 0.12);
}

#cookieConsent .cookie-consent-inner {
    padding: 1.1rem 0;
}

#cookieConsent p {
    margin-bottom: 0.75rem;
    color: #4b566b;
    line-height: 1.55;
}

#cookieConsent p a {
    font-weight: 600;
}

.cookie-consent-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.cookie-consent-actions .btn {
    border-radius: 999px;
}

@media (min-width: 992px) {
    #cookieConsent p {
        margin-bottom: 0;
    }
}

/* ---------- panou preferinte ---------- */
#cookiePrefsModal .modal-content {
    border: 0;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 1.5rem 3.5rem rgba(20, 23, 40, 0.22);
}

#cookiePrefsModal .modal-header,
#cookiePrefsModal .modal-footer {
    border-color: rgba(20, 23, 40, 0.06);
}

#cookiePrefsModal .modal-footer {
    gap: 0.5rem;
}

#cookiePrefsModal .modal-footer .btn {
    border-radius: 999px;
}

.cookie-prefs-category {
    border: 1px solid rgba(20, 23, 40, 0.09);
    border-radius: 0.75rem;
    padding: 0.85rem 1rem;
    margin-bottom: 0.65rem;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.cookie-prefs-category:hover {
    border-color: rgba(78, 84, 200, 0.35);
    background: rgba(78, 84, 200, 0.03);
}

.cookie-prefs-category .form-switch {
    padding-left: 0;
    min-height: auto;
}

.cookie-prefs-category .form-switch .form-check-input {
    float: none;
    margin-left: 0;
    width: 2.25em;
    height: 1.25em;
    cursor: pointer;
}

.cookie-prefs-category .form-switch .form-check-input:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

.cookie-prefs-category .form-check-label {
    font-weight: 600;
    color: #2b3445;
}

/* ---------- buton fix cookie (stanga jos) ---------- */
#cookieFloat {
    position: fixed;
    left: 1rem;
    bottom: 1rem;
    z-index: 1030;
    width: 46px;
    height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    border-radius: 50%;
    color: #fff;
    background: var(--sv-accent, #4e54c8);
    box-shadow: 0 0.5rem 1.25rem rgba(78, 84, 200, 0.45);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

#cookieFloat:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 0.75rem 1.5rem rgba(78, 84, 200, 0.55);
}

#cookieFloat:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

@media (max-width: 991.98px) {
    #cookieFloat {
        bottom: 4.5rem;
    }
}

/* ---------- badge timp de generare (footer) ---------- */
.pagegen-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin-left: 0.5rem;
    padding: 0.4rem 0.8rem;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0.01em;
    cursor: pointer;
    vertical-align: middle;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: #cfd4dc;
    transition: background 0.15s ease, transform 0.15s ease;
}

.pagegen-badge:hover {
    background: rgba(255, 255, 255, 0.14);
    transform: translateY(-1px);
}

.pagegen-badge .pagegen-dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: #9aa3b2;
    box-shadow: 0 0 0 0.2rem rgba(154, 163, 178, 0.18);
}

.pagegen-badge.is-fast {
    color: #a7e9cd;
}

.pagegen-badge.is-fast .pagegen-dot {
    background: #42d697;
    box-shadow: 0 0 0 0.2rem rgba(66, 214, 151, 0.22);
}

.pagegen-badge.is-normal {
    color: #ffd0ac;
}

.pagegen-badge.is-normal .pagegen-dot {
    background: #fea569;
    box-shadow: 0 0 0 0.2rem rgba(254, 165, 105, 0.22);
}

.pagegen-badge.is-slow {
    color: #ffb9ba;
}

.pagegen-badge.is-slow .pagegen-dot {
    background: #fe696a;
    box-shadow: 0 0 0 0.2rem rgba(254, 105, 106, 0.22);
}

/* ---------- modal timp de generare ---------- */
.pagegen-modal .modal-content {
    border: 0;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 1.5rem 3.5rem rgba(20, 23, 40, 0.25);
}

.pagegen-modal .modal-body {
    padding: 1.9rem 1.6rem 1.5rem;
}

.pagegen-ic {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.85rem;
    font-size: 1.6rem;
    background: rgba(154, 163, 178, 0.14);
    color: #6b7280;
}

.pagegen-ic.is-fast {
    background: rgba(66, 214, 151, 0.15);
    color: #2fa471;
}

.pagegen-ic.is-normal {
    background: rgba(254, 165, 105, 0.16);
    color: #d97b3f;
}

.pagegen-ic.is-slow {
    background: rgba(254, 105, 106, 0.15);
    color: #d63a63;
}

.pagegen-modal .pagegen-time {
    font-size: 1.7rem;
    font-weight: 700;
    line-height: 1;
    color: #2b3445;
}

.pagegen-modal .pagegen-kicker {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: #9aa3b2;
    margin-top: 0.3rem;
}

.pagegen-modal .pagegen-text {
    font-size: 0.92rem;
    color: #5a6270;
    margin: 0.8rem 0 0;
}

.pagegen-modal .pagegen-sep {
    height: 1px;
    background: rgba(20, 23, 40, 0.08);
    margin: 1.1rem 0;
}

.pagegen-modal .pagegen-cta {
    font-size: 0.85rem;
    color: #8a94a6;
    margin: 0;
}

.pagegen-modal .pagegen-cta a {
    font-weight: 600;
}

.pagegen-modal .pagegen-close {
    margin-top: 1rem;
    border: 0;
    background: transparent;
    color: #8a94a6;
    font-size: 0.85rem;
    padding: 0.3rem 0.85rem;
    border-radius: 999px;
    transition: background 0.15s ease, color 0.15s ease;
}

.pagegen-modal .pagegen-close:hover {
    color: #2b3445;
    background: rgba(20, 23, 40, 0.05);
}

/* ---------- pagina drepturi date personale ---------- */
.dr-wrap {
    background: #f6f9fc;
}

.dr-card {
    background: #fff;
    border: 1px solid rgba(20, 23, 40, 0.07);
    border-radius: 1rem;
    padding: 2.25rem;
    box-shadow: 0 1rem 2.5rem rgba(20, 23, 40, 0.06);
}

.dr-head {
    text-align: center;
    margin-bottom: 1.5rem;
}

.dr-head .dr-ic {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(78, 84, 200, 0.12);
    color: var(--sv-accent, #4e54c8);
    font-size: 1.35rem;
    margin-bottom: 0.75rem;
}

.dr-head h1 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #2b3445;
    margin: 0 0 0.4rem;
}

.dr-intro {
    color: #6b7280;
    font-size: 0.92rem;
    margin: 0;
}

.dr-card .form-label {
    font-weight: 600;
    color: #2b3445;
    font-size: 0.85rem;
}

.dr-card .form-control,
.dr-card .form-select {
    border-radius: 0.65rem;
    padding: 0.6rem 0.85rem;
    border-color: rgba(20, 23, 40, 0.14);
}

.dr-card .form-control:focus,
.dr-card .form-select:focus {
    border-color: var(--sv-accent, #4e54c8);
    box-shadow: 0 0 0 0.2rem rgba(78, 84, 200, 0.12);
}

.dr-card .btn-primary {
    border-radius: 999px;
    padding: 0.65rem 1.9rem;
}

.dr-card .form-check-label {
    font-size: 0.85rem;
    color: #5a6270;
}

.dr-alert {
    border: 0;
    border-radius: 0.75rem;
    font-size: 0.9rem;
}

.dr-alert-success {
    background: rgba(66, 214, 151, 0.14);
    color: #268a63;
}

.dr-alert-danger {
    background: rgba(254, 105, 106, 0.13);
    color: #cf3a4f;
}

.dr-result-ic {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.7rem;
    margin-bottom: 1rem;
}

.dr-result-ic.is-ok {
    background: rgba(66, 214, 151, 0.15);
    color: #2fa471;
}

.dr-result-ic.is-err {
    background: rgba(254, 105, 106, 0.14);
    color: #d63a63;
}

@media (max-width: 575.98px) {
    .dr-card {
        padding: 1.35rem;
    }
}
