/* ============================================
   LEGAL CALCULATOR - Complete Styles
   ============================================ */

/* ===== RESET & BASE ===== */
.legal-calculator-wrapper,
.delay-calculator-wrapper {
    --primary-color: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #dbeafe;
    --secondary-color: #7c3aed;
    --success-color: #16a34a;
    --warning-color: #d97706;
    --danger-color: #dc2626;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --border-color: #e2e8f0;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 12px 48px rgba(0, 0, 0, 0.1);
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== CONTAINER ===== */
.legal-calculator-wrapper,
.delay-calculator-wrapper {
    padding: 40px 0 80px;
    background: var(--bg-light);
    min-height: 100vh;
}

/* ===== BREADCRUMB ===== */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 24px;
    padding: 12px 0;
    flex-wrap: wrap;
}

.breadcrumb a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
    font-weight: 500;
}

.breadcrumb a:hover {
    color: var(--primary-color);
}

.breadcrumb .separator {
    color: var(--text-muted);
    font-size: 16px;
    padding: 0 2px;
}

.breadcrumb .current {
    color: var(--text-primary);
    font-weight: 600;
}

/* ===== HEADER ===== */
.calculator-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
}

.page-title {
    font-size: 38px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 16px;
    line-height: 1.3;
}

.page-title .highlight {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.8;
    max-width: 700px;
    margin: 0 auto;
}

/* ===== CALCULATOR LAYOUT ===== */
.calculator-container {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 32px;
    margin-top: 10px;
    align-items: start;
}

.calculator-main {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

/* ===== FORM STYLES ===== */
.calculator-form {
    margin-bottom: 10px;
}

.form-row {
    margin-bottom: 24px;
}

.form-row:last-child {
    margin-bottom: 0;
}

.form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    position: relative;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
    letter-spacing: 0.3px;
}

.form-group .required {
    color: var(--danger-color);
    margin-right: 2px;
}

.form-group .form-control {
    width: 100%;
    padding: 14px 18px;
    font-size: 16px;
    font-family: inherit;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: var(--bg-light);
    transition: var(--transition);
    color: var(--text-primary);
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.form-group .form-control:focus {
    border-color: var(--primary-color);
    background: var(--bg-white);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.form-group .form-control.error {
    border-color: var(--danger-color);
    background: #fef2f2;
}

.form-group .form-control.error:focus {
    box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.1);
}

.form-group .form-control::placeholder {
    color: var(--text-muted);
    font-size: 14px;
}

/* Number Input - RTL Support */
.form-group .form-control[type="text"].number-input {
    direction: ltr;
    text-align: right;
    font-feature-settings: "tnum";
}

/* Date Input */
.form-group .form-control[type="date"] {
    direction: ltr;
    min-height: 52px;
}

.form-group .form-control[type="date"]::-webkit-calendar-picker-indicator {
    padding: 4px;
    cursor: pointer;
}

/* Select */
.form-group .form-control select {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2394a3b8' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 16px center;
    padding-right: 18px;
}

.form-hint {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.form-hint strong {
    color: var(--text-primary);
}

.btn-update-rate {
    background: none;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
    font-size: 18px;
    padding: 0 6px;
    transition: var(--transition);
    line-height: 1;
}

.btn-update-rate:hover {
    transform: rotate(180deg);
    color: var(--secondary-color);
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 28px;
    font-size: 16px;
    font-weight: 600;
    font-family: inherit;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    color: #fff;
    background: var(--primary-color);
    min-height: 52px;
    line-height: 1.4;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.25);
}

.btn:active {
    transform: translateY(0);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #fff;
}

.btn-primary:hover {
    box-shadow: 0 8px 30px rgba(37, 99, 235, 0.35);
}

.btn-secondary {
    background: var(--bg-light);
    color: var(--text-primary);
    border: 2px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--border-color);
    border-color: var(--text-muted);
    box-shadow: none;
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: #fff;
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.2);
}

.btn-success {
    background: var(--success-color);
    color: #fff;
}

.btn-success:hover {
    background: #15803d;
    box-shadow: 0 8px 25px rgba(22, 163, 74, 0.3);
}

.btn-block {
    width: 100%;
    justify-content: center;
}

.btn-sm {
    padding: 10px 20px;
    font-size: 14px;
    min-height: 44px;
}

.btn-lg {
    padding: 16px 40px;
    font-size: 18px;
    min-height: 60px;
}

.btn-calculate {
    width: 100%;
    padding: 16px;
    font-size: 18px;
    font-weight: 700;
    margin-top: 10px;
    gap: 12px;
}

.btn-calculate svg {
    flex-shrink: 0;
}

.btn-arrow {
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.btn:hover .btn-arrow {
    transform: translateX(-4px);
}

/* ===== LOADING ===== */
.calculator-loading {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 40px 20px;
    color: var(--text-secondary);
    font-size: 16px;
    font-weight: 500;
}

.calculator-loading.active {
    display: flex;
}

.spinner {
    width: 36px;
    height: 36px;
    border: 4px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    flex-shrink: 0;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ===== RESULTS ===== */
.calculation-results {
    display: none;
    margin-top: 32px;
    padding-top: 32px;
    border-top: 2px solid var(--bg-light);
    animation: fadeUp 0.5s ease;
}

.calculation-results.active {
    display: block;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.results-header h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.btn-close-results {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
    transition: var(--transition);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-close-results:hover {
    background: var(--bg-light);
    color: var(--text-primary);
}

.btn-close-results svg {
    width: 22px;
    height: 22px;
}

/* ===== RESULTS GRID ===== */
.results-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.result-card {
    padding: 20px 16px;
    border-radius: var(--radius-md);
    text-align: center;
    transition: var(--transition);
}

.result-card-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #fff;
}

.result-card-secondary {
    background: var(--bg-light);
    color: var(--text-primary);
}

.result-card-total {
    background: #dcfce7;
    color: var(--success-color);
}

.result-card-total .result-value {
    color: var(--success-color);
}

.result-label {
    font-size: 13px;
    opacity: 0.8;
    margin-bottom: 4px;
    font-weight: 500;
}

.result-value {
    font-size: 28px;
    font-weight: 800;
    line-height: 1.2;
    direction: ltr;
}

.result-unit {
    font-size: 13px;
    margin-top: 2px;
    opacity: 0.7;
}

/* ===== RESULTS DETAILS ===== */
.results-details {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 10px;
    padding: 16px 20px;
    background: var(--bg-light);
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
}

.detail-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 6px 4px;
    text-align: center;
}

.detail-label {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 2px;
}

.detail-value {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
}

.detail-unit {
    font-size: 12px;
    color: var(--text-muted);
}

/* ===== CHART ===== */
.results-chart {
    margin-bottom: 24px;
    padding: 16px;
    background: var(--bg-light);
    border-radius: var(--radius-sm);
}

.chart-bar {
    display: flex;
    height: 32px;
    border-radius: 16px;
    overflow: hidden;
    background: var(--bg-white);
    position: relative;
}

.chart-segment {
    height: 100%;
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.chart-segment.debt {
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.chart-segment.penalty {
    background: linear-gradient(90deg, #f59e0b, #d97706);
}

.chart-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 12px;
    font-size: 14px;
    color: var(--text-secondary);
    flex-wrap: wrap;
    gap: 8px;
}

.chart-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
}

.color-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}

.debt-label .color-dot {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.penalty-label .color-dot {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

/* ===== RESULTS ACTIONS ===== */
.results-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.results-actions .btn {
    flex: 1;
    min-width: 140px;
    justify-content: center;
    gap: 8px;
}

.results-actions .btn svg {
    flex-shrink: 0;
}

/* ===== SIDEBAR ===== */
.calculator-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sidebar-card {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    padding: 20px 24px;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: var(--transition);
}

.sidebar-card:hover {
    box-shadow: var(--shadow-md);
}

.sidebar-card h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 14px 0;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--bg-light);
}

/* ===== LEGAL INFO ===== */
.legal-info-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.legal-info-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--bg-light);
    font-size: 14px;
    gap: 8px;
}

.legal-info-list li:last-child {
    border-bottom: none;
}

.info-label {
    color: var(--text-muted);
    font-weight: 500;
}

.info-value {
    color: var(--text-primary);
    font-weight: 600;
    text-align: left;
    direction: ltr;
}

/* ===== EXPLANATION ===== */
.sidebar-explanation p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin: 0 0 12px 0;
}

.explanation-formula {
    padding: 14px 16px;
    background: var(--bg-light);
    border-radius: var(--radius-sm);
    border-right: 4px solid var(--primary-color);
}

.formula-label {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 4px;
    font-weight: 500;
}

.explanation-formula code {
    font-size: 13px;
    color: var(--primary-color);
    background: transparent;
    display: block;
    text-align: left;
    direction: ltr;
    font-family: 'Courier New', monospace;
    font-weight: 600;
    padding: 4px 0;
}

/* ===== FAQ ===== */
.sidebar-faq details {
    margin-bottom: 10px;
}

.sidebar-faq details:last-child {
    margin-bottom: 0;
}

.sidebar-faq details summary {
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    padding: 8px 0;
    font-size: 14px;
    list-style: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.sidebar-faq details summary::-webkit-details-marker {
    display: none;
}

.sidebar-faq details summary::before {
    content: "▶";
    font-size: 12px;
    color: var(--text-muted);
    transition: transform 0.3s ease;
}

.sidebar-faq details[open] summary::before {
    transform: rotate(90deg);
}

.sidebar-faq details summary:hover {
    color: var(--primary-color);
}

.sidebar-faq details p {
    font-size: 14px;
    color: var(--text-secondary);
    padding: 4px 0 8px 24px;
    line-height: 1.7;
    margin: 0;
}

/* ===== SIDEBAR CTA ===== */
.sidebar-cta {
    background: linear-gradient(135deg, #0f172a, #1e293b);
    color: #fff;
    border: none;
}

.sidebar-cta h4 {
    color: #fff;
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

.sidebar-cta p {
    font-size: 14px;
    opacity: 0.8;
    margin: 0 0 16px 0;
    line-height: 1.6;
}

.sidebar-cta .btn {
    width: 100%;
    justify-content: center;
}

.sidebar-cta .btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

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

/* ===== Tablet & Medium Screens ===== */
@media (max-width: 1024px) {
    .calculator-container {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .calculator-sidebar {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 20px;
    }

    .page-title {
        font-size: 32px;
    }
}

/* ===== Mobile & Small Screens ===== */
@media (max-width: 768px) {
    .legal-calculator-wrapper,
    .delay-calculator-wrapper {
        padding: 24px 0 50px;
    }

    .calculator-header {
        margin-bottom: 28px;
    }

    .page-title {
        font-size: 26px;
    }

    .page-subtitle {
        font-size: 16px;
    }

    .calculator-main {
        padding: 24px 20px;
        border-radius: var(--radius-md);
    }

    .form-row-2 {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .form-row {
        margin-bottom: 18px;
    }

    .form-group .form-control {
        padding: 12px 14px;
        font-size: 15px;
        min-height: 48px;
    }

    .results-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .result-card {
        padding: 16px;
    }

    .result-value {
        font-size: 22px;
    }

    .results-details {
        grid-template-columns: repeat(2, 1fr);
        padding: 12px 16px;
    }

    .results-actions {
        flex-direction: column;
    }

    .results-actions .btn {
        width: 100%;
        min-width: unset;
    }

    .calculator-sidebar {
        grid-template-columns: 1fr;
    }

    .sidebar-card {
        padding: 16px 20px;
    }

    .btn-calculate {
        font-size: 16px;
        padding: 14px;
        min-height: 52px;
    }

    .breadcrumb {
        font-size: 13px;
        padding: 8px 0;
    }
}

/* ===== Small Mobile ===== */
@media (max-width: 480px) {
    .calculator-main {
        padding: 16px 14px;
    }

    .page-title {
        font-size: 22px;
    }

    .page-subtitle {
        font-size: 15px;
    }

    .result-value {
        font-size: 20px;
    }

    .result-card {
        padding: 14px 12px;
    }

    .results-details {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
        padding: 10px 12px;
    }

    .detail-item {
        padding: 4px 2px;
    }

    .detail-value {
        font-size: 14px;
    }

    .results-header h3 {
        font-size: 18px;
    }

    .sidebar-card h4 {
        font-size: 15px;
    }

    .btn {
        font-size: 14px;
        padding: 10px 20px;
        min-height: 44px;
    }

    .btn-calculate {
        font-size: 15px;
        padding: 12px;
        min-height: 48px;
    }

    .form-group .form-control {
        padding: 10px 12px;
        font-size: 14px;
        min-height: 44px;
    }

    .form-group label {
        font-size: 13px;
    }

    .chart-bar {
        height: 24px;
    }

    .chart-labels {
        font-size: 12px;
        gap: 4px;
    }

    .chart-label {
        gap: 4px;
    }

    .color-dot {
        width: 10px;
        height: 10px;
    }
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
    .breadcrumb,
    .calculator-sidebar,
    .btn-close-results,
    .results-actions .btn:not(.btn-print-result) {
        display: none !important;
    }

    .legal-calculator-wrapper,
    .delay-calculator-wrapper {
        padding: 20px 0 !important;
        background: #fff !important;
        min-height: auto !important;
    }

    .calculator-main {
        box-shadow: none !important;
        padding: 20px !important;
        border: 1px solid #ddd !important;
    }

    .calculator-container {
        display: block !important;
    }

    .results-grid {
        break-inside: avoid;
        page-break-inside: avoid;
    }

    .result-card {
        border: 1px solid #e2e8f0 !important;
        box-shadow: none !important;
    }

    .result-card-primary {
        background: #f1f5f9 !important;
        color: var(--text-primary) !important;
    }

    .result-card-total {
        background: #dcfce7 !important;
        color: var(--success-color) !important;
    }

    .results-chart {
        break-inside: avoid;
        page-break-inside: avoid;
    }

    .results-actions .btn-print-result {
        display: inline-flex !important;
    }

    .page-title .highlight {
        -webkit-text-fill-color: var(--primary-color) !important;
    }

    .chart-segment {
        background: #ccc !important;
    }

    .chart-segment.debt {
        background: #666 !important;
    }

    .chart-segment.penalty {
        background: #999 !important;
    }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.text-left {
    text-align: left;
}

.d-flex {
    display: flex;
}

.align-center {
    align-items: center;
}

.justify-center {
    justify-content: center;
}

.gap-8 {
    gap: 8px;
}

.gap-12 {
    gap: 12px;
}

.gap-16 {
    gap: 16px;
}

.gap-20 {
    gap: 20px;
}

.flex-wrap {
    flex-wrap: wrap;
}

.mt-8 {
    margin-top: 8px;
}

.mt-12 {
    margin-top: 12px;
}

.mt-16 {
    margin-top: 16px;
}

.mt-20 {
    margin-top: 20px;
}

.mt-24 {
    margin-top: 24px;
}

.mb-8 {
    margin-bottom: 8px;
}

.mb-12 {
    margin-bottom: 12px;
}

.mb-16 {
    margin-bottom: 16px;
}

.mb-20 {
    margin-bottom: 20px;
}

.mb-24 {
    margin-bottom: 24px;
}

.w-100 {
    width: 100%;
}

/* ============================================
   DARK MODE SUPPORT (Optional)
   ============================================ */
@media (prefers-color-scheme: dark) {
    .legal-calculator-wrapper,
    .delay-calculator-wrapper {
        --bg-light: #1e293b;
        --bg-white: #0f172a;
        --text-primary: #f1f5f9;
        --text-secondary: #cbd5e1;
        --text-muted: #94a3b8;
        --border-color: #334155;
    }

    .calculator-main {
        border-color: var(--border-color);
    }

    .sidebar-card {
        border-color: var(--border-color);
    }

    .form-group .form-control {
        background: #1e293b;
        color: #f1f5f9;
        border-color: #334155;
    }

    .form-group .form-control:focus {
        background: #1e293b;
        border-color: var(--primary-color);
    }

    .form-group .form-control::placeholder {
        color: #64748b;
    }

    .results-details {
        background: #1e293b;
    }

    .results-chart {
        background: #1e293b;
    }

    .chart-bar {
        background: #334155;
    }

    .result-card-secondary {
        background: #1e293b;
    }

    .sidebar-cta {
        background: linear-gradient(135deg, #0f172a, #1e293b);
    }

    .btn-secondary {
        background: #1e293b;
        border-color: #334155;
        color: #f1f5f9;
    }

    .btn-secondary:hover {
        background: #334155;
    }

    .btn-outline {
        border-color: var(--primary-color);
        color: var(--primary-color);
    }

    .btn-outline:hover {
        background: var(--primary-color);
        color: #fff;
    }

    .result-card-total {
        background: #064e3b;
        color: #4ade80;
    }

    .result-card-total .result-value {
        color: #4ade80;
    }

    .explanation-formula {
        background: #1e293b;
    }

    .explanation-formula code {
        color: #60a5fa;
    }

    .legal-info-list li {
        border-bottom-color: #334155;
    }

    .sidebar-faq details p {
        color: #cbd5e1;
    }

    .sidebar-faq details summary {
        color: #f1f5f9;
    }

    .sidebar-faq details summary:hover {
        color: var(--primary-color);
    }

    .form-hint {
        color: #94a3b8;
    }

    .form-hint strong {
        color: #f1f5f9;
    }

    .results-header h3 {
        color: #f1f5f9;
    }

    .page-title {
        color: #f1f5f9;
    }

    .page-subtitle {
        color: #cbd5e1;
    }

    .breadcrumb .current {
        color: #f1f5f9;
    }

    .breadcrumb a {
        color: #94a3b8;
    }

    .breadcrumb a:hover {
        color: var(--primary-color);
    }

    .info-value {
        color: #f1f5f9;
    }

    .detail-value {
        color: #f1f5f9;
    }

    .detail-label {
        color: #94a3b8;
    }

    .tool-preview-card {
        background: #0f172a;
        border-color: #334155;
    }

    .tool-preview-card:not(.tool-preview-coming):hover {
        border-color: var(--primary-color);
    }

    .tools-preview-section {
        background: #0f172a;
    }

    .legal-tools-wrapper {
        background: #0f172a;
    }

    .tools-header .tools-title {
        color: #f1f5f9;
    }

    .tools-subtitle {
        color: #cbd5e1;
    }

    .tool-card {
        background: #1e293b;
        border-color: #334155;
    }

    .tool-card:hover:not(.tool-coming-soon) {
        border-color: var(--primary-color);
    }

    .tool-name {
        color: #f1f5f9;
    }

    .tool-desc {
        color: #94a3b8;
    }

    .tools-cta {
        background: linear-gradient(135deg, #0f172a, #1e293b);
    }

    .tools-cta .btn-outline {
        border-color: rgba(255, 255, 255, 0.2);
        color: #f1f5f9;
    }

    .tools-cta .btn-outline:hover {
        background: rgba(255, 255, 255, 0.05);
    }
