.a2t-wc-wrapper {
    max-width: 900px;
    margin: 40px auto;
    padding: 24px;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #0f172a;
    transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.a2t-wc-header {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 16px;
}

.a2t-wc-title {
    font-size: 1.8rem;
    margin: 0;
}

.a2t-wc-subtitle {
    margin: 4px 0 0;
    color: #64748b;
    font-size: 0.95rem;
}

.a2t-wc-toggle {
    border: 1px solid rgba(148, 163, 184, 0.6);
    background: #f8fafc;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 0.9rem;
    cursor: pointer;
    white-space: nowrap;
}

.a2t-wc-textarea {
    width: 100%;
    min-height: 220px;
    padding: 14px 16px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    resize: vertical;
    font-family: inherit;
    font-size: 0.98rem;
    line-height: 1.5;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
    background: #f9fafb;
}

.a2t-wc-textarea:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 1px rgba(99, 102, 241, 0.4);
    background: #ffffff;
}

.a2t-wc-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 10px;
}

.a2t-wc-btn {
    border-radius: 999px;
    padding: 8px 16px;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
}

.a2t-wc-btn-primary {
    background: #4f46e5;
    color: #ffffff;
}

.a2t-wc-btn-primary:hover {
    background: #4338ca;
}

.a2t-wc-btn-secondary {
    background: #e5e7eb;
    color: #111827;
}

.a2t-wc-panels {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
    margin-top: 24px;
}

.a2t-wc-panel {
    border-radius: 14px;
    padding: 14px 16px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
}

.a2t-wc-panel h2 {
    font-size: 1rem;
    margin: 0 0 10px;
}

.a2t-wc-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.a2t-wc-stat {
    padding: 8px 10px;
    border-radius: 10px;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.a2t-wc-label {
    font-size: 0.75rem;
    color: #6b7280;
}

.a2t-wc-value {
    font-size: 1.1rem;
    font-weight: 600;
}

.a2t-wc-footer-note {
    margin-top: 16px;
    font-size: 0.8rem;
    color: #94a3b8;
}

/* 📌 Dark mode */
.a2t-wc-wrapper.a2t-wc-dark {
    background: #020617;
    color: #e5e7eb;
    box-shadow: 0 24px 65px rgba(15, 23, 42, 0.9);
}

.a2t-wc-wrapper.a2t-wc-dark .a2t-wc-subtitle {
    color: #9ca3af;
}

.a2t-wc-wrapper.a2t-wc-dark .a2t-wc-toggle {
    background: #020617;
    color: #e5e7eb;
    border-color: #374151;
}

.a2t-wc-wrapper.a2t-wc-dark .a2t-wc-textarea {
    background: #020617;
    border-color: #1f2937;
    color: #e5e7eb;
}

.a2t-wc-wrapper.a2t-wc-dark .a2t-wc-textarea:focus {
    background: #020617;
    border-color: #4f46e5;
}

.a2t-wc-wrapper.a2t-wc-dark .a2t-wc-panel {
    background: #020617;
    border-color: #1f2937;
}

.a2t-wc-wrapper.a2t-wc-dark .a2t-wc-stat {
    background: #020617;
    border-color: #111827;
}

.a2t-wc-wrapper.a2t-wc-dark .a2t-wc-btn-secondary {
    background: #111827;
    color: #e5e7eb;
}

.a2t-wc-wrapper.a2t-wc-dark .a2t-wc-footer-note {
    color: #6b7280;
}

@media (max-width: 640px) {
    .a2t-wc-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .a2t-wc-actions {
        justify-content: flex-start;
    }

    .a2t-wc-grid {
        grid-template-columns: 1fr;
    }
}
