﻿/* ===== Use Case Overlay ===== */
.cp-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(6px);
    z-index: 9999;
}

.cp-overlay__panel {
    width: min(920px, 100%);
    border-radius: 16px;
    background: rgba(18, 18, 18, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.10);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.50);
    overflow: hidden;
}

.cp-overlay__header {
    padding: 18px 18px 12px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.cp-grid {
    padding: 16px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

@media (max-width: 720px) {
    .cp-grid {
        grid-template-columns: 1fr;
    }
}

/* === Aqua Card Styling === */
.cp-card {
    text-align: left;
    padding: 14px;
    border-radius: 14px;
    background: rgb(53 52 52); /*rgba(255, 255, 255, 0.04);*/
    border: 1px solid rgba(64, 224, 208, 0.45); /* aqua */
    color: rgba(255, 255, 255, 0.92);
    cursor: pointer;
    transition: transform 0.12s ease, background 0.12s ease, border-color 0.12s ease, box-shadow 0.12s ease;
}

.cp-card-free {
    border: 1px dashed #fff108 !important;
}

/* Hover glow */
.cp-card:hover {
    transform: translateY(-1px);
    background: rgb(53 52 52);  /*rgba(255, 255, 255, 0.06);*/
    border-color: rgba(64, 224, 208, 0.95);
    box-shadow: 0 0 0 1px rgba(64, 224, 208, 0.55), 0 0 18px rgba(64, 224, 208, 0.45), 0 12px 24px rgba(0, 0, 0, 0.40);
}

/* Keyboard focus (accessibility) */
.cp-card:focus-visible {
    outline: none;
    border-color: rgba(64, 224, 208, 1);
    box-shadow: 0 0 0 2px rgba(64, 224, 208, 0.6), 0 0 20px rgba(64, 224, 208, 0.5);
}

/* Optional selected state */
.cp-card.is-selected {
    background: rgba(64, 224, 208, 0.10);
    border-color: rgba(64, 224, 208, 1);
    box-shadow: 0 0 0 1px rgba(64, 224, 208, 0.65) inset, 0 0 22px rgba(64, 224, 208, 0.55), 0 14px 26px rgba(0, 0, 0, 0.45);
}


.cp-card__title {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 6px;
    color: #afc6f5;
    font-family: Manrope;
}

.cp-card__titleFree {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 6px;
    color: darkorange;
}

.cp-card__desc {
    font-size: 13px;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.74);
    opacity: 0.90;
    margin-bottom: 10px;
}

.cp-card__meta {
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px dashed rgba(0, 255, 255, 0.25);
    font-size: 0.75rem;
    color: #00ffff;
    display: flex;
    align-items: center;
    gap: 10px;
}

.cp-card__meta::before {
    content: "HELP";
    font-size: 0.6rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #ffffff;
    background: #1e90ff; /* DodgerBlue */
    padding: 3px 8px;
    border-radius: 6px;
    box-shadow: 0 0 0 1px rgba(30, 144, 255, 0.4);
}

/* Selected state */
.cp-card.is-selected {
    background: rgba(59, 130, 246, 0.14);
    border-color: rgba(59, 130, 246, 0.55);
    box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.35) inset, 0 10px 22px rgba(0, 0, 0, 0.35);
}

.cp-examples-badge {
    margin-left: auto;
    font-size: 12px;
    padding: 6px 14px;
    border-radius: 999px;
    font-weight: 600;
    box-shadow: 0 0 0 1px rgba(56,189,248,0.15) inset;
    cursor: pointer;
    user-select: none;
}

.cp-overlay__footer {
    padding: 14px 16px 16px 16px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.cp-btn {
    border: 0;
    border-radius: 12px;
    padding: 10px 14px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.12s ease, opacity 0.12s ease, background 0.12s ease;
}

    .cp-btn:active {
        transform: scale(0.99);
    }

.cp-btn--ghost {
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.88);
}

.cp-btn--ghost:hover {
    background: rgba(255, 255, 255, 0.09);
}

.cp-btn--primary {
    background: radial-gradient(1200px 600px at 50% -200px, #7001d3 0%, #470b7d 60%);
    color: #fff;
}

.cp-btn--primary:hover {
    background: rgba(59, 130, 246, 1);
}

.cp-btn--primary:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.ctrader-help-info {
    padding: 12px;
}

.ctrader-help-box {
    border: 1px solid rgba(56,189,248,0.35);
    border-radius: 10px;
    padding: 20px 24px;
    margin-top: 25px;
}

/* show/hide advanced tasks */
.cp-advanced-toggle {
    text-align: center;
    margin: 20px 0 14px;
}

.cp-advanced-toggle a:hover {
    text-decoration: none;
}

.cp-grid-advanced {
    margin-top: 6px;
}

/* Ensure the HTML hidden attribute always wins */
[hidden] {
    display: none !important;
}

/* ---------------------------------------------------
   Example cards
--------------------------------------------------- */

.cp-example-card .cp-card__title {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 6px;
    font-family: Manrope;
}

.cp-example-card .cp-card__desc {
    font-size: 14px;
    line-height: 1.45;
    opacity: 0.90;
    margin-bottom: 10px;
}

/* ---------------------------------------------------
   Back to Tasks button (examples view)
--------------------------------------------------- */

.cp-overlay__footer {
    justify-content: center;
}

.cp-overlay__footer-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
}

/* --------------------------------------------------
   Overlay header layout
-------------------------------------------------- */

.cp-overlay__header--with-model {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.cp-overlay__header-left {
    min-width: 0;
}




/* --------------------------------------------------
   Overlay header split layout
-------------------------------------------------- */

.cp-overlay__header--split {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
}

.cp-overlay__header-left {
    flex: 1;
    min-width: 0;
}

.cp-overlay__header-right {
    flex-shrink: 0;
}

/* --------------------------------------------------
   Modern AI task pills (2026 style)
-------------------------------------------------- */

@media (max-width: 1050px) {
    .cp-model-rec {
        display: none;
    }
}

.cp-model-rec__models {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin: 14px 0;
    flex-wrap: wrap;
}

/* Base pill */
.cp-model-rec__models a.cp-model-rec__badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.2px;
    text-decoration: none !important;
    cursor: pointer;
    background: linear-gradient( 135deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02) );
    backdrop-filter: blur(6px);
    transition: transform 0.15s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

/* Subtle lift, AI-style glow */
.cp-model-rec__models a.cp-model-rec__badge:hover,
.cp-model-rec__models a.cp-model-rec__badge:focus {
    transform: translateY(-1px);
    border-color: rgba(255,255,255,0.25);
    box-shadow: 0 0 0 1px rgba(255,255,255,0.08), 0 8px 20px rgba(0,0,0,0.35);
}

/* --------------------------------------------------
   Category accents (muted, professional)
-------------------------------------------------- */

.cp-badge-strategies {
    box-shadow: inset 0 0 0 1px rgba(96,165,250,0.35);
}

.cp-badge-indicators {
    box-shadow: inset 0 0 0 1px rgba(52,211,153,0.35);
}

.cp-badge-panels {
    box-shadow: inset 0 0 0 1px rgba(167,139,250,0.35);
}

.cp-badge-plugins {
    box-shadow: inset 0 0 0 1px rgba(45,212,191,0.35);
}

.cp-badge-dashboards {
    box-shadow: inset 0 0 0 1px rgba(251,191,36,0.35);
}

.cp-badge-alerts {
    box-shadow: inset 0 0 0 1px rgba(248,113,113,0.35);
}

.cp-badge-risk {
    box-shadow: inset 0 0 0 1px rgba(192,132,252,0.35);
}


/* ------------------------------
     TASK STATUS LABEL IN FOOTER
-------------------------------*/
.task-status {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
    user-select: none;
    box-shadow: 0 0 0 1px rgba(255,255,255,0.06), 0 4px 12px rgba(0,0,0,0.35);
}

/* Optional emphasis on change */
.task-status--active {
    animation: taskStatusPulse 0.35s ease-out;
    background: linear-gradient(135deg, #1e293b, #3a3e45);
    border: 1px solid #566272;
    color: #9fa3a9;
}

@keyframes taskStatusPulse {
    from {
        transform: scale(0.95);
        opacity: 0.6;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Warning message to user */
.model-warning-msg {
    margin: 16px 0;
}

.model-warning-box {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 14px 16px;
    border-radius: 10px;
    background: rgba(245, 158, 11, 0.08);
    border: 1px solid rgba(245, 158, 11, 0.25);
    color: #fcd34d;
    font-size: 14px;
    line-height: 1.5;
    box-shadow: 0 4px 14px rgba(0,0,0,0.25);
}

.model-warning-box strong {
    display: block;
    margin-bottom: 6px;
    color: var(--warning-title);
    font-weight: 600;
}

.model-warning-text {
    color: var(--warning-text);
    line-height: 1.5;
}

.cp-model-rec__models {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.cp-overlay__header--split {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    align-items: flex-start;
}

.cp-overlay__header-right {
    flex: 0 0 auto;
    max-width: 50%;
    margin-top: 6px;
}

.cp-overlay__header-left {
    flex: 1;
}

.cp-card-wide {
    grid-column: span 2;
}

.cp-badge-experimental {
    margin-left: 8px;
    padding: 2px 6px;
    font-size: 11px;
    font-weight: 600;
    border-radius: 4px;
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
    vertical-align: middle;
}

/* cTrader Help task card */
.cp-card.ctrader-help {
    background: linear-gradient(135deg, #0f2a3a 0%, #13384d 100%);
    border: 1px solid #2aa9e0;
    color: #ffffff; /* force pure white */
}

/* hover */
.cp-card.ctrader-help:hover {
    background: linear-gradient(135deg, #123246 0%, #17445e 100%);
    border-color: #4cc3ff;
    box-shadow: 0 0 0 1px rgba(42, 169, 224, 0.3);
}

/* title */
.cp-card.ctrader-help .cp-card__title {
    color: #ffffff;
}

/* description (slightly softer than title) */
.cp-card.ctrader-help .cp-card__desc {
    color: #cfe9f6;
}

/* link */
.cp-card.ctrader-help .cp-help-link {
    color: #6fd3ff;
}

.cp-card.ctrader-help .cp-help-link:hover {
    text-decoration: underline;
}

  