/* =========================
   GLOBAL
========================= */
:root {
   --ux-targets-text-primary: #8ba8c4;
}

#targets .dropdown .button{
    font-size: 1rem;
}
#targets .dropdown-item.hover, 
#targets .dropdown-item.focus, 
#targets .dropdown-item.active, 
#targets .dropdown-item:active {
    color: #ff6439!important;
}



.target-text-primary {
    color: var(--ux-targets-text-primary)!important;
}


.targets-premium-shell {
    padding: 14px;
}

/* =========================
   HERO
========================= */

.targets-hero-premium {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 22px;
    border-radius: 26px;
    background: linear-gradient(135deg, #0f172a, #1e293b);
    color: #fff;
    margin-bottom: 16px;
    box-shadow: 0 20px 50px rgba(0,0,0,.25);
}

.targets-hero-eyebrow {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .12em;
    font-weight: 900;
    opacity: .6;
}

.targets-hero-premium h2 {
    margin: 6px 0;
    font-size: 26px;
    font-weight: 950;
}

.targets-hero-premium p {
    margin: 0;
    opacity: .7;
}

.targets-primary-action {
    border: 0;
    border-radius: 999px;
    padding: 12px 18px;
    font-weight: 900;
    color: #fff;
    background: linear-gradient(135deg, #ff7a45, #ff4d2e);
    box-shadow: 0 14px 30px rgba(255,100,50,.35);
}

/* =========================
   KPI
========================= */

.targets-kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-bottom: 18px;
}

.targets-kpi-card {
    padding: 18px;
    border-radius: 22px;
    background: linear-gradient(135deg, #1e293b, #334155);
    color: #fff;
    box-shadow: 0 18px 45px rgba(15,23,42,.25);
}

.targets-kpi-card span {
    font-size: 12px;
    font-weight: 700;
    opacity: .7;
}

.targets-kpi-card strong {
    display: block;
    margin-top: 6px;
    font-size: 30px;
    font-weight: 950;
}

.targets-kpi-card--progress {
    background: linear-gradient(135deg, #2563eb, #38bdf8);
}

.targets-kpi-card--success {
    background: linear-gradient(135deg, #059669, #34d399);
}

.targets-kpi-card--ring {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, #f97316, #facc15);
}

/* ring */

.targets-kpi-ring {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: conic-gradient(#fff calc(var(--value) * 1%), rgba(255,255,255,.2) 0);
}

.targets-kpi-ring span {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(15,23,42,.7);
    color: #fff;
    font-weight: 900;
}

/* =========================
   TOOLBAR
========================= */

.targets-toolbar-premium {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 16px;
}

.targets-search-wrap {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    border-radius: 999px;
    padding: 12px 16px;
    background: #f1f5f9;
}

.targets-search-wrap input {
    border: 0;
    background: transparent;
    width: 100%;
    outline: none;
}

.targets-toolbar-pills span {
    padding: 8px 12px;
    border-radius: 999px;
    background: #eef2ff;
    font-size: 12px;
    font-weight: 700;
}

/* =========================
   CARDS
========================= */

.targets-custom-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.qzr-target-card {
    padding: 18px;
    border-radius: 24px;
    color: var(--ux-text-primary);
    /* background: #fff; */
    border: 1px solid var(--ux-card-border);
    /* box-shadow: 0 14px 40px rgba(15,23,42,.08); */
    cursor: pointer;
    transition: .2s;
}

.qzr-target-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 22px 50px rgba(15,23,42,.15);
}

.qzr-target-top {
    display: flex;
    justify-content: space-between;
}

.qzr-target-status {
    font-size: 12px;
    /* font-weight: 800; */
}

.qzr-target-next-deadline {
    margin-left: auto;
    text-align: right;
}

.qzr-target-next-deadline.is-today {
    color: var(--ux-accent-primary);
}

.qzr-target-title {
    margin: 12px 0;
    font-size: 18px;
    font-weight: 900;
}

.qzr-target-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.qzr-target-main > div {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    min-width: 0;
}

.qzr-target-value {
    font-size: 32px;
    font-weight: 950;
}

.qzr-target-total {
    font-size: 14px;
    color: #64748b;
}

.qzr-target-unit {
    margin-left: 4px;
    font-size: 13px;
    color: #64748b;
    font-weight: 700;
}

.qzr-target-percent {
    font-weight: 900;
    color: #2563eb;
    font-size: 2rem;
    white-space: nowrap;
}

.qzr-progress {
    height: 8px;
    border-radius: 999px;
    background: #e2e8f0;
    margin: 12px 0;
}

.qzr-progress span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg,#2563eb,#38bdf8);
}

.qzr-target-footer {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #64748b;
}

/* =========================
   STATUS COLORS
========================= */

.is-success .qzr-progress span {
    background: linear-gradient(90deg,#059669,#34d399);
}

.is-failed .qzr-progress span {
    background: linear-gradient(90deg,#64748b,#94a3b8);
}

/* =========================
   MODAL
========================= */

.qzr-modal-premium {
    padding: 18px;
}

.qzr-modal-hero {
    display: flex;
    justify-content: space-between;
    padding: 20px;
    border-radius: 24px;
    background: linear-gradient(135deg,#0f172a,#1e293b);
    color: #fff;
    margin-bottom: 16px;
}

.qzr-modal-eyebrow {
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 900;
    opacity: .6;
}

.qzr-modal-ring {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: conic-gradient(#38bdf8 calc(var(--value)*1%), rgba(255,255,255,.2) 0);
}

.qzr-modal-ring span {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(0,0,0,.6);
    color: #fff;
}

/* KPI modal */

.qzr-modal-kpis {
    /* display: grid; */
    grid-template-columns: repeat(4,1fr);
    gap: 10px;
    margin-bottom: 16px;
}

.qzr-modal-kpi {
    padding: 12px;
    border-radius: 16px;
    background: #f8fafc;
}

.qzr-modal-kpi span {
    font-size: 11px;
    color: #64748b;
}

.qzr-modal-kpi strong {
    font-size: 16px;
    font-weight: 900;
}


/* =========================
   CREATE MODAL
========================= */

.targets-create-modal .modal-title {
    color: var(--ux-targets-text-primary);
}

.targets-create-modal label {
    color: #06113d29;
    text-align: left !important;
    width: 100%;
}

/* =========================
   ATTEMPTS
========================= */

.qzr-attempt-list {
    display: grid;
    gap: 10px;
}

.qzr-attempt-row {
    display: flex;
    justify-content: space-between;
    padding: 12px;
    border-radius: 16px;
    background: #fff;
    border: 1px solid #e2e8f0;
    cursor: pointer;
}

.qzr-attempt-row:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0,0,0,.08);
}

.qzr-attempt-date {
    font-size: 11px;
    color: #94a3b8;
}

/* =========================
   RESULT
========================= */

.qzr-result-card {
    padding: 16px;
    border-radius: 18px;
    background: #f8fafc;
    margin-bottom: 16px;
}

.qzr-result-card strong {
    font-size: 24px;
}

/* =========================
   BUTTONS
========================= */

.qzr-play-btn {
    width: 100%;
    padding: 14px;
    border-radius: 18px;
    border: 0;
    background: linear-gradient(135deg,#2563eb,#38bdf8);
    color: #fff;
    font-weight: 900;
}

.qzr-danger-btn {
    width: 100%;
    padding: 14px;
    border-radius: 18px;
    border: 0;
    background: #fee2e2;
    color: #b91c1c;
    font-weight: 900;
}

/* =========================
   EMPTY
========================= */

.targets-empty-premium {
    text-align: center;
    padding: 40px;
}

.targets-empty-icon {
    font-size: 40px;
    margin-bottom: 10px;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 768px) {

    .targets-kpi-grid {
        grid-template-columns: repeat(2,1fr);
    }

    .targets-custom-list {
        grid-template-columns: 1fr;
    }

    .qzr-modal-kpis {
        grid-template-columns: repeat(2,1fr);
    }

    .targets-toolbar-premium {
        flex-direction: column;
    }
}

.qzr-target-menu-wrap {
    position: relative;
}

.qzr-target-menu-btn {
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 10px;
    background: #f1f5f9;
}

.qzr-target-dropdown {
    position: absolute;
    top: 40px;
    right: 0;
    min-width: 160px;
    background: #fff;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 18px 40px rgba(0,0,0,.15);
    display: none;
    z-index: 10;
}

.qzr-target-dropdown.open {
    display: block;
}

.qzr-dropdown-item {
    width: 100%;
    padding: 10px 12px;
    border: 0;
    background: transparent;
    text-align: left;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    gap: 8px;
    align-items: center;
}

.qzr-dropdown-item:hover {
    background: #f1f5f9;
}

.qzr-modal-actions {
    margin-top: 20px;
    display: grid;
    gap: 10px;
}

.qzr-action-btn {
    width: 100%;
    padding: 14px;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    background: #fff;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
    transition: .2s;
}

.qzr-action-btn:hover {
    background: #f1f5f9;
}

.qzr-action-delete {
    color: #b91c1c;
    border-color: #fecaca;
    background: #fff1f2;
}

.qzr-action-delete:hover {
    background: #fee2e2;
}
