/* ===== Animations ===== */
@keyframes spin { to { transform: rotate(360deg); } }
.animate-spin { animation: spin 1s linear infinite; }

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}
.animate-pulse { animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite; }

/* ===== Wizard steps (campaign wizard) ===== */
.wizard-steps {
    display: flex;
    gap: 0;
    margin-bottom: 24px;
}

.wizard-step {
    flex: 1;
    text-align: center;
    padding: 12px 8px;
    background: rgba(255, 255, 255, 0.05);
    font-size: 0.85rem;
    font-weight: 500;
    color: #98a2b3;
    transition: background 0.2s, color 0.2s;
    border-right: 1px solid rgba(255, 255, 255, 0.06);
}

.wizard-step.active {
    background: #5a8b90;
    color: #fff;
}

.wizard-step.completed {
    background: #12b76a;
    color: #fff;
}

.wizard-step:first-child { border-radius: 8px 0 0 8px; }
.wizard-step:last-child  { border-radius: 0 8px 8px 0; border-right: none; }
.wizard-step .step-number { display: block; font-size: 0.7rem; }

/* ===== Article content typography ===== */
.article-content {
    font-size: 1rem;
    line-height: 1.75;
    color: #d0d5dd;
}
.article-content h1 { font-size: 1.75rem; font-weight: 700; margin: 1.5rem 0 0.75rem; line-height: 1.3; color: rgba(255,255,255,0.9); }
.article-content h2 { font-size: 1.4rem; font-weight: 700; margin: 1.5rem 0 0.75rem; line-height: 1.3; color: rgba(255,255,255,0.9); }
.article-content h3 { font-size: 1.15rem; font-weight: 600; margin: 1.25rem 0 0.5rem; line-height: 1.4; color: rgba(255,255,255,0.9); }
.article-content h4 { font-size: 1.05rem; font-weight: 600; margin: 1rem 0 0.5rem; color: rgba(255,255,255,0.9); }
.article-content p { margin: 0 0 1rem; }
.article-content ul, .article-content ol { margin: 0 0 1rem; padding-left: 1.5rem; }
.article-content li { margin-bottom: 0.25rem; }
.article-content a { color: #84bbc1; text-decoration: underline; }
.article-content a:hover { color: #5a8b90; }
.article-content blockquote { border-left: 3px solid #344054; padding-left: 1rem; margin: 1rem 0; font-style: italic; color: #98a2b3; }
.article-content img { max-width: 100%; height: auto; border-radius: 8px; margin: 1rem 0; }
.article-content h1:first-child { margin-top: 0; }
.article-content code { background-color: rgba(255,255,255,0.05); color: #d0d5dd; padding: 0.125rem 0.375rem; border-radius: 0.25rem; }
.article-content pre { background-color: #1d2939; color: #d0d5dd; padding: 1rem; border-radius: 0.5rem; overflow-x: auto; }
.article-content table th, .article-content table td { border-color: #344054; padding: 0.5rem; }
.article-content table th { background-color: rgba(255,255,255,0.05); }
.article-content hr { border-color: #344054; }

/* ===== Custom checkbox ===== */
input[type="checkbox"] {
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    width: 1.125rem !important;
    height: 1.125rem !important;
    min-width: 1.125rem;
    min-height: 1.125rem;
    border: 1.5px solid #475467 !important;
    border-radius: 0.3rem !important;
    background-color: rgba(255,255,255,0.05) !important;
    background-image: none !important;
    cursor: pointer;
    position: relative;
    flex-shrink: 0;
    transition: background-color 0.15s ease, border-color 0.15s ease;
    margin: 0;
    padding: 0;
}
input[type="checkbox"]:checked {
    background-color: #5a8b90 !important;
    border-color: #5a8b90 !important;
}
input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 2px;
    width: 5px;
    height: 9px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}
input[type="checkbox"]:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(90,139,144,0.15);
}

/* ===== Toast container ===== */
#toast-container {
    z-index: 99999 !important;
}

/* ===== Alpine.js cloak ===== */
[x-cloak] {
    display: none !important;
}

/* ===== Scrollbar ===== */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-thumb {
    background: #4b5563;
    border-radius: 3px;
}
::-webkit-scrollbar-track {
    background: transparent;
}

/* ===== Modal backdrop ===== */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
    z-index: 9998;
}

/* ===== Progress bar ===== */
.progress-bar {
    transition: width 0.3s ease;
}

/* ===== Select options (dark) ===== */
select option {
    background-color: #1d2939;
    color: #d0d5dd;
}

/* ===== Sidebar menu icons ===== */
.menu-item-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}
.menu-item-icon i {
    font-size: 1.25rem;
    line-height: 1;
}
.menu-item-inactive .menu-item-icon { color: #98a2b3; }
.menu-item-inactive:hover .menu-item-icon { color: #d0d5dd; }
.menu-item-active .menu-item-icon { color: #5a8b90; }
