/*
 * NodeX Studio — Client Refund Policy CSS
 * Emerald Cyber Shield Theme with High-Legibility Typography
 * 100% Dark Mode & Light Mode Compatible
 */

@import url('./source_code_dashboard.css');

.refund-hero-card {
    background: linear-gradient(135deg, #022c22 0%, #064e3b 45%, #0f172a 100%) !important;
    border-radius: 20px;
    border: 1px solid rgba(16, 185, 129, 0.3) !important;
    box-shadow: 0 15px 40px rgba(6, 78, 59, 0.4);
}

.refund-gradient-text {
    background: linear-gradient(135deg, #6ee7b7 0%, #10b981 50%, #34d399 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 4px 15px rgba(16, 185, 129, 0.25);
}

.refund-badge {
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(52, 211, 153, 0.35);
    color: #34d399 !important;
}

.refund-hero-desc {
    color: #e2e8f0 !important;
    font-size: 0.92rem;
    line-height: 1.6;
}

/* Custom Terminal for Refund Page */
.refund-terminal-card {
    background: rgba(2, 44, 34, 0.95) !important;
    border: 1.5px solid rgba(16, 185, 129, 0.35) !important;
    border-radius: 16px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
}

.refund-terminal-header {
    background: rgba(6, 78, 59, 0.9) !important;
    padding: 10px 16px;
    border-bottom: 1px solid rgba(16, 185, 129, 0.25);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Force Terminal text to be 100% LIGHT in both Light & Dark Mode */
.refund-terminal-card,
.refund-terminal-card *,
[data-bs-theme="dark"] .refund-terminal-card,
[data-bs-theme="dark"] .refund-terminal-card * {
    color: #f8fafc;
}

.refund-terminal-card .text-gray-200,
.refund-terminal-card .text-gray-300,
.refund-terminal-card .text-gray-400,
[data-bs-theme="dark"] .refund-terminal-card .text-gray-200,
[data-bs-theme="dark"] .refund-terminal-card .text-gray-300,
[data-bs-theme="dark"] .refund-terminal-card .text-gray-400 {
    color: #cbd5e1 !important;
}

.refund-terminal-card .text-white,
[data-bs-theme="dark"] .refund-terminal-card .text-white {
    color: #ffffff !important;
}

/* Sticky Sidebar Table of Contents */
.refund-sidebar {
    top: 100px;
    z-index: 10;
}

.refund-toc-card {
    background: var(--bs-card-bg, #ffffff);
    border-radius: 16px;
    border: 1px solid var(--bs-gray-200);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
}

.refund-toc-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 10px;
    color: var(--bs-gray-700);
    font-weight: 500;
    font-size: 0.88rem;
    transition: all 0.2s ease;
    text-decoration: none !important;
}

.refund-toc-link:hover {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    transform: translateX(4px);
}

.refund-toc-link.active {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff !important;
    font-weight: 600;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
}

.refund-toc-link.active iconify-icon {
    color: #ffffff !important;
}

/* Content Cards & Sections */
.refund-section-card {
    background: var(--bs-card-bg, #ffffff);
    border-radius: 18px;
    border: 1px solid var(--bs-gray-200);
    padding: 24px 28px;
    margin-bottom: 24px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.03);
    scroll-margin-top: 110px;
}

.refund-section-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--bs-gray-900);
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 2px dashed var(--bs-gray-200);
}

/* GitHub Alert Callout Boxes */
.refund-alert {
    padding: 16px 20px;
    border-radius: 12px;
    margin: 18px 0;
    display: flex;
    gap: 14px;
    align-items: flex-start;
    font-size: 0.92rem;
    line-height: 1.6;
}

.refund-alert--important {
    background: rgba(239, 68, 68, 0.08);
    border-left: 4px solid #ef4444;
    color: var(--bs-gray-800);
}

.refund-alert--warning {
    background: rgba(245, 158, 11, 0.08);
    border-left: 4px solid #f59e0b;
    color: var(--bs-gray-800);
}

.refund-alert--caution {
    background: rgba(236, 72, 153, 0.08);
    border-left: 4px solid #ec4899;
    color: var(--bs-gray-800);
}

.refund-alert--note {
    background: rgba(16, 185, 129, 0.08);
    border-left: 4px solid #10b981;
    color: var(--bs-gray-800);
}

/* Clauses List */
.refund-clause-list {
    list-style: none;
    padding-left: 0;
}

.refund-clause-list li {
    position: relative;
    padding-left: 26px;
    margin-bottom: 12px;
    line-height: 1.7;
    color: var(--bs-gray-700);
}

.refund-clause-list li::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 10px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #10b981;
}

/* =============================================
   100% Dark Mode Specific Optimization
   ============================================= */
[data-bs-theme="dark"] .refund-section-card,
[data-bs-theme="dark"] .refund-toc-card {
    background: #1e1e2d !important;
    border-color: #2b2b40 !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

[data-bs-theme="dark"] .refund-section-title {
    color: #ffffff !important;
    border-bottom-color: #2b2b40 !important;
}

[data-bs-theme="dark"] .refund-section-card p,
[data-bs-theme="dark"] .refund-section-card .text-gray-700,
[data-bs-theme="dark"] .refund-clause-list li {
    color: #cdcdde !important;
}

[data-bs-theme="dark"] .refund-section-card h5,
[data-bs-theme="dark"] .refund-section-card .text-gray-900 {
    color: #ffffff !important;
}

[data-bs-theme="dark"] .refund-toc-link {
    color: #92929f;
}

[data-bs-theme="dark"] .refund-toc-link:hover {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
}

[data-bs-theme="dark"] .refund-alert--important {
    background: rgba(239, 68, 68, 0.15) !important;
    border-left-color: #ef4444 !important;
    color: #fca5a5 !important;
}

[data-bs-theme="dark"] .refund-alert--warning {
    background: rgba(245, 158, 11, 0.15) !important;
    border-left-color: #f59e0b !important;
    color: #fde047 !important;
}

[data-bs-theme="dark"] .refund-alert--caution {
    background: rgba(236, 72, 153, 0.15) !important;
    border-left-color: #ec4899 !important;
    color: #fbcfe8 !important;
}

[data-bs-theme="dark"] .refund-alert--note {
    background: rgba(16, 185, 129, 0.15) !important;
    border-left-color: #10b981 !important;
    color: #6ee7b7 !important;
}

[data-bs-theme="dark"] .bg-light-success {
    background: rgba(16, 185, 129, 0.12) !important;
}
