/**
 * ============================================================================
 * PharmAssist Day Supply Calculator - Full Screen Styles
 * ============================================================================
 * Location: css/day-supply-fullscreen.css
 * Styles for the full-screen day supply calculator mode
 * 
 * @version 1.0.0
 * @created January 2026
 * ============================================================================
 */

/* ============================================================================
   FULLSCREEN OVERLAY
   ============================================================================ */

.day-supply-fullscreen-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    overflow: hidden;
}

.day-supply-fullscreen-overlay.active {
    opacity: 1;
    visibility: visible;
}

body.fullscreen-active {
    overflow: hidden;
}

/* ============================================================================
   FULLSCREEN CONTAINER
   ============================================================================ */

.day-supply-fullscreen-container {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    max-width: 1400px;
    margin: 0 auto;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f0f23 100%);
    transform: scale(0.95);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.day-supply-fullscreen-overlay.active .day-supply-fullscreen-container {
    transform: scale(1);
    opacity: 1;
}

/* ============================================================================
   FULLSCREEN HEADER
   ============================================================================ */

.day-supply-fullscreen-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 30px;
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.day-supply-fullscreen-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
    color: #fff;
}

.day-supply-fullscreen-icon {
    font-size: 1.75rem;
}

.day-supply-fullscreen-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 12px;
    color: #fff;
    font-size: 1.25rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.day-supply-fullscreen-close:hover {
    background: rgba(239, 68, 68, 0.3);
    color: #ef4444;
    transform: scale(1.05);
}

/* ============================================================================
   FULLSCREEN BODY
   ============================================================================ */

.day-supply-fullscreen-body {
    flex: 1;
    overflow-y: auto;
    padding: 30px;
}

.day-supply-fullscreen-content {
    max-width: 1200px;
    margin: 0 auto;
}

/* ============================================================================
   TAB NAVIGATION
   ============================================================================ */

.ds-fullscreen-tabs {
    display: flex;
    gap: 8px;
    padding: 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    margin-bottom: 30px;
}

.ds-fullscreen-tab {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 24px;
    background: transparent;
    border: none;
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ds-fullscreen-tab:hover {
    color: rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.05);
}

.ds-fullscreen-tab.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.ds-tab-icon {
    font-size: 1.25rem;
}

.ds-tab-label {
    font-weight: 600;
}

/* ============================================================================
   PANELS
   ============================================================================ */

.ds-fullscreen-panels {
    position: relative;
}

.ds-fullscreen-panel {
    display: none;
    animation: fadeIn 0.3s ease;
}

.ds-fullscreen-panel.active {
    display: block;
}

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

.ds-panel-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

@media (max-width: 900px) {
    .ds-panel-grid {
        grid-template-columns: 1fr;
    }
}

.ds-panel-left,
.ds-panel-right {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* ============================================================================
   SECTION TITLES
   ============================================================================ */

.ds-panel-section-title {
    margin: 0 0 12px 0;
    font-size: 0.875rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ============================================================================
   PRESET BUTTONS
   ============================================================================ */

.ds-preset-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}

.ds-preset-grid.two-col {
    grid-template-columns: repeat(2, 1fr);
}

.ds-preset-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 16px 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #fff;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ds-preset-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(102, 126, 234, 0.5);
    transform: translateY(-2px);
}

.ds-preset-btn.active {
    background: rgba(102, 126, 234, 0.2);
    border-color: #667eea;
}

.ds-preset-value {
    font-size: 1.25rem;
    font-weight: 700;
}

.ds-preset-label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
}

/* ============================================================================
   BRAND BUTTONS (Eye Drops)
   ============================================================================ */

.ds-brand-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-bottom: 20px;
}

.ds-brand-btn {
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ds-brand-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.ds-brand-btn.active {
    background: rgba(102, 126, 234, 0.2);
    border-color: #667eea;
    color: #fff;
}

/* ============================================================================
   EYE COUNT TOGGLE
   ============================================================================ */

.ds-eye-toggle {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.ds-eye-btn {
    flex: 1;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ds-eye-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.ds-eye-btn.active {
    background: rgba(102, 126, 234, 0.2);
    border-color: #667eea;
    color: #fff;
}

/* ============================================================================
   INPUT FIELDS
   ============================================================================ */

.ds-input-group {
    margin-bottom: 16px;
}

.ds-input-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.ds-input-label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
}

.ds-input {
    width: 100%;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.08);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: #fff;
    font-size: 1rem;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.ds-input:focus {
    outline: none;
    border-color: #667eea;
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
}

.ds-input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

/* ============================================================================
   CALCULATE BUTTON
   ============================================================================ */

.ds-calculate-btn {
    width: 100%;
    padding: 16px 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 12px;
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 10px;
}

.ds-calculate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

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

/* ============================================================================
   RESULT CARD
   ============================================================================ */

.ds-result-card {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 30px;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ds-result-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: rgba(255, 255, 255, 0.4);
    text-align: center;
}

.ds-result-placeholder-icon {
    font-size: 3rem;
    opacity: 0.5;
}

.ds-result-placeholder-text {
    font-size: 1rem;
}

.ds-result-success {
    width: 100%;
    text-align: center;
}

.ds-result-error {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #ef4444;
    font-weight: 500;
}

.ds-result-error-icon {
    font-size: 1.5rem;
}

.ds-result-main {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 8px;
    margin-bottom: 16px;
}

.ds-result-number {
    font-size: 4rem;
    font-weight: 800;
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.ds-result-unit {
    font-size: 1.5rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.6);
}

.ds-result-warning {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 8px;
    color: #f59e0b;
    font-size: 0.875rem;
    margin-bottom: 16px;
}

.ds-warning-icon {
    font-size: 1rem;
}

.ds-result-breakdown {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    padding: 20px;
    text-align: left;
}

.ds-breakdown-title {
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.ds-breakdown-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.ds-breakdown-row:last-of-type {
    border-bottom: none;
}

.ds-breakdown-row.ds-breakdown-total {
    border-top: 2px solid rgba(255, 255, 255, 0.1);
    margin-top: 8px;
    padding-top: 12px;
    font-weight: 600;
    color: #fff;
}

.ds-breakdown-formula {
    margin-top: 16px;
    padding: 12px;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 8px;
    font-family: 'Fira Code', 'Monaco', monospace;
    font-size: 0.85rem;
    color: #a78bfa;
    text-align: center;
}

/* ============================================================================
   REFERENCE BUTTON
   ============================================================================ */

.ds-reference-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ds-reference-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(102, 126, 234, 0.5);
    color: #fff;
}

.ds-ref-icon {
    font-size: 1.25rem;
}

/* ============================================================================
   INFO BOX (Santyl Panel)
   ============================================================================ */

.ds-info-box {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
}

.ds-info-box h4 {
    margin: 0 0 12px 0;
    font-size: 0.9rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
}

.ds-info-box ul {
    margin: 0;
    padding-left: 20px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
    line-height: 1.8;
}

/* ============================================================================
   INFO PANEL GRID
   ============================================================================ */

.ds-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

@media (max-width: 900px) {
    .ds-info-grid {
        grid-template-columns: 1fr;
    }
}

.ds-info-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 24px;
}

.ds-info-card-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.ds-info-card h3 {
    margin: 0 0 12px 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
}

.ds-info-card p {
    margin: 0 0 16px 0;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    line-height: 1.6;
}

.ds-info-list {
    margin: 0;
    padding-left: 20px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    line-height: 1.8;
}

/* ============================================================================
   FULLSCREEN MODAL (Reference Guides)
   ============================================================================ */

.ds-fullscreen-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.ds-fullscreen-modal.active {
    opacity: 1;
    visibility: visible;
}

.ds-fs-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
}

.ds-fs-modal-content {
    position: relative;
    width: 95%;
    max-width: 1100px;
    max-height: 90vh;
    background: linear-gradient(135deg, #1e1e2e 0%, #1a1a2e 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.ds-fullscreen-modal.active .ds-fs-modal-content {
    transform: scale(1);
}

.ds-fs-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.ds-fs-modal-header h2 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: #fff;
}

.ds-fs-modal-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 10px;
    color: #fff;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ds-fs-modal-close:hover {
    background: rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

.ds-fs-modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
}

.ds-fs-modal-section {
    margin-bottom: 32px;
}

.ds-fs-modal-section:last-child {
    margin-bottom: 0;
}

.ds-fs-modal-section h3 {
    margin: 0 0 16px 0;
    font-size: 1rem;
    font-weight: 600;
    color: #a78bfa;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* ============================================================================
   MODAL TABLE STYLES
   ============================================================================ */

.ds-fs-modal-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.ds-fs-modal-table th,
.ds-fs-modal-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.ds-fs-modal-table th {
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.7);
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ds-fs-modal-table td {
    color: rgba(255, 255, 255, 0.85);
}

.ds-fs-modal-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.03);
}

.ds-fs-modal-notes {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 20px;
}

.ds-fs-modal-notes ul {
    margin: 0;
    padding-left: 20px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
}

.ds-fs-modal-notes li {
    margin-bottom: 8px;
}

.ds-fs-modal-notes li:last-child {
    margin-bottom: 0;
}

/* ============================================================================
   WIDGET FULLSCREEN BUTTON (Add to Widget Header)
   ============================================================================ */

.widget-fullscreen-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 6px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.widget-fullscreen-btn:hover {
    background: rgba(102, 126, 234, 0.3);
    color: #fff;
}

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

@media (max-width: 768px) {
    .day-supply-fullscreen-header {
        padding: 16px 20px;
    }
    
    .day-supply-fullscreen-title {
        font-size: 1.25rem;
    }
    
    .day-supply-fullscreen-body {
        padding: 20px;
    }
    
    .ds-fullscreen-tabs {
        flex-wrap: wrap;
    }
    
    .ds-fullscreen-tab {
        flex: 1 1 45%;
        padding: 12px 16px;
    }
    
    .ds-tab-label {
        display: none;
    }
    
    .ds-fullscreen-tab.active .ds-tab-label {
        display: inline;
    }
    
    .ds-preset-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .ds-input-row {
        grid-template-columns: 1fr;
    }
    
    .ds-result-number {
        font-size: 3rem;
    }
    
    .ds-info-grid {
        grid-template-columns: 1fr;
    }
    
    .ds-fs-modal-table {
        font-size: 0.75rem;
    }
    
    .ds-fs-modal-table th,
    .ds-fs-modal-table td {
        padding: 8px 10px;
    }
}

@media (max-width: 480px) {
    .day-supply-fullscreen-header {
        padding: 12px 16px;
    }
    
    .day-supply-fullscreen-title {
        font-size: 1.1rem;
    }
    
    .day-supply-fullscreen-close {
        width: 36px;
        height: 36px;
    }
    
    .ds-fullscreen-tab {
        flex: 1 1 100%;
        padding: 10px 12px;
    }
    
    .ds-result-card {
        padding: 20px;
        min-height: 150px;
    }
    
    .ds-result-number {
        font-size: 2.5rem;
    }
    
    .ds-result-unit {
        font-size: 1.25rem;
    }
    
    .ds-breakdown-row {
        flex-direction: column;
        gap: 4px;
    }
}

/* ============================================================================
   LIGHT MODE OVERRIDES
   ============================================================================ */

body.light-mode .day-supply-fullscreen-overlay {
    background: rgba(0, 0, 0, 0.85);
}

body.light-mode .day-supply-fullscreen-container {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 50%, #e2e8f0 100%);
}

body.light-mode .day-supply-fullscreen-header {
    background: rgba(0, 0, 0, 0.03);
    border-bottom-color: rgba(0, 0, 0, 0.1);
}

body.light-mode .day-supply-fullscreen-title {
    color: #1e293b;
}

body.light-mode .day-supply-fullscreen-close {
    background: rgba(0, 0, 0, 0.05);
    color: #1e293b;
}

body.light-mode .ds-fullscreen-tabs {
    background: rgba(0, 0, 0, 0.03);
}

body.light-mode .ds-fullscreen-tab {
    color: rgba(0, 0, 0, 0.5);
}

body.light-mode .ds-fullscreen-tab:hover {
    color: rgba(0, 0, 0, 0.7);
    background: rgba(0, 0, 0, 0.05);
}

body.light-mode .ds-fullscreen-tab.active {
    color: #fff;
}

body.light-mode .ds-panel-section-title {
    color: rgba(0, 0, 0, 0.5);
}

body.light-mode .ds-preset-btn {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.1);
    color: #1e293b;
}

body.light-mode .ds-preset-btn:hover {
    background: rgba(0, 0, 0, 0.06);
}

body.light-mode .ds-preset-btn.active {
    background: rgba(102, 126, 234, 0.1);
    border-color: #667eea;
}

body.light-mode .ds-preset-label {
    color: rgba(0, 0, 0, 0.5);
}

body.light-mode .ds-brand-btn {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.1);
    color: #374151;
}

body.light-mode .ds-brand-btn.active {
    background: rgba(102, 126, 234, 0.1);
    color: #1e293b;
}

body.light-mode .ds-eye-btn {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.1);
    color: #374151;
}

body.light-mode .ds-eye-btn.active {
    background: rgba(102, 126, 234, 0.1);
    color: #1e293b;
}

body.light-mode .ds-input-label {
    color: #374151;
}

body.light-mode .ds-input {
    background: #fff;
    border-color: rgba(0, 0, 0, 0.15);
    color: #1e293b;
}

body.light-mode .ds-input:focus {
    background: #fff;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.15);
}

body.light-mode .ds-input::placeholder {
    color: rgba(0, 0, 0, 0.3);
}

body.light-mode .ds-result-card {
    background: #fff;
    border-color: rgba(0, 0, 0, 0.1);
}

body.light-mode .ds-result-placeholder {
    color: rgba(0, 0, 0, 0.4);
}

body.light-mode .ds-result-unit {
    color: #64748b;
}

body.light-mode .ds-result-breakdown {
    background: #f8fafc;
}

body.light-mode .ds-breakdown-title {
    color: #64748b;
}

body.light-mode .ds-breakdown-row {
    color: #475569;
    border-bottom-color: rgba(0, 0, 0, 0.05);
}

body.light-mode .ds-breakdown-row.ds-breakdown-total {
    color: #1e293b;
    border-top-color: rgba(0, 0, 0, 0.1);
}

body.light-mode .ds-breakdown-formula {
    background: rgba(102, 126, 234, 0.08);
}

body.light-mode .ds-reference-btn {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.1);
    color: #374151;
}

body.light-mode .ds-reference-btn:hover {
    background: rgba(0, 0, 0, 0.06);
    color: #1e293b;
}

body.light-mode .ds-info-box {
    background: #f8fafc;
    border-color: rgba(0, 0, 0, 0.1);
}

body.light-mode .ds-info-box h4 {
    color: #374151;
}

body.light-mode .ds-info-box ul {
    color: #475569;
}

body.light-mode .ds-info-card {
    background: #fff;
    border-color: rgba(0, 0, 0, 0.1);
}

body.light-mode .ds-info-card h3 {
    color: #1e293b;
}

body.light-mode .ds-info-card p {
    color: #475569;
}

body.light-mode .ds-info-list {
    color: #374151;
}

body.light-mode .ds-fs-modal-content {
    background: #fff;
    border-color: rgba(0, 0, 0, 0.1);
}

body.light-mode .ds-fs-modal-header {
    background: #f8fafc;
    border-bottom-color: rgba(0, 0, 0, 0.1);
}

body.light-mode .ds-fs-modal-header h2 {
    color: #1e293b;
}

body.light-mode .ds-fs-modal-close {
    background: rgba(0, 0, 0, 0.05);
    color: #374151;
}

body.light-mode .ds-fs-modal-section h3 {
    color: #667eea;
    border-bottom-color: rgba(0, 0, 0, 0.1);
}

body.light-mode .ds-fs-modal-table th {
    background: #f8fafc;
    color: #475569;
}

body.light-mode .ds-fs-modal-table td {
    color: #1e293b;
    border-bottom-color: rgba(0, 0, 0, 0.05);
}

body.light-mode .ds-fs-modal-table tbody tr:hover {
    background: rgba(0, 0, 0, 0.02);
}

body.light-mode .ds-fs-modal-notes {
    background: #f8fafc;
}

body.light-mode .ds-fs-modal-notes ul {
    color: #374151;
}