/* Custom CSS - Калькулятор металлообработки онлайн (v1.3 - Полный контраст) */

/* ==========================================
   1. БАЗОВЫЕ СТИЛИ (ПО УМОЛЧАНИЮ - ТЕМНАЯ ТЕМА)
   ========================================== */
body {
    background-color: #09090b;
    color: #f4f4f5;
    font-family: 'Inter', sans-serif;
}

/* Дизайн карточки (Темный) */
.block-card {
    background-color: #111113;
    border: 1px solid #1f1f22;
    border-radius: 2rem;
    padding: 1.5rem;
}

/* Дизайн полей ввода (Темный) */
.input-calc {
    background-color: #0c0c0e;
    border: 1px solid #27272a;
    color: #f4f4f5;
    padding: 0.75rem;
    border-radius: 1rem;
    outline: none;
    width: 100%;
    font-size: 14px;
    transition: 0.2s;
}

.input-calc:focus {
    border-color: #f59e0b;
}

/* ==========================================
   2. ГАРАНТИРОВАННАЯ ЧИТАЕМОСТЬ СВЕТЛОЙ ТЕМЫ
   ========================================== */
html.light body {
    background-color: #f1f5f9 !important; /* Серый фон Zinc 100 */
    color: #0f172a !important; /* Насыщенный черный текст Zinc 900 */
}

/* Контрастные карточки в светлой теме */
html.light .block-card {
    background-color: #ffffff !important;
    border: 1px solid #94a3b8 !important; /* Четкая серая рамка Slate 400 */
    box-shadow: 0 4px 15px -3px rgba(0, 0, 0, 0.05) !important;
}

/* Контрастные поля ввода в светлой теме */
html.light .input-calc {
    background-color: #ffffff !important; 
    border: 1px solid #475569 !important; /* Темно-серая рамка Slate 600 */
    color: #000000 !important;
    font-weight: 700 !important;
}

html.light .input-calc:focus {
    border-color: #d97706 !important; /* Оранжевый фокус */
    box-shadow: 0 0 0 2px rgba(217, 119, 6, 0.15) !important;
}

html.light .input-calc::placeholder {
    color: #64748b !important;
}

/* Высокий контраст ярлыков и заголовков */
html.light label {
    color: #505f78 !important; /* Slate 800 */
    font-weight: 900 !important;
}

html.light h2, 
html.light h3,
html.light h1 {
    color: #0f172a !important; /* Черный */
    font-weight: 950 !important;
}

/* Строки сметы */
html.light .receipt-line {
    border-bottom-color: #94a3b8 !important;
    color: #0f172a !important;
}

html.light .receipt-line span {
    color: #0f172a !important;
    font-weight: 750 !important;
}

html.light .receipt-line b {
    color: #000000 !important;
    font-weight: 900 !important;
}

/* Внутренние блоки деталей и текста */
html.light .text-zinc-700,
html.light .text-zinc-500,
html.light .italic {
    color: #505f78 !important; /* Темно-серый контрастный */
    font-weight: 800 !important;
}

html.light .text-zinc-400 {
    color: #334155 !important;
    font-weight: 800 !important;
}

html.light .text-zinc-300 {
    color: #0f172a !important;
    font-weight: 800 !important;
}

/* Финансовые параметры мастера в светлой теме */
html.light #summaryTime,
html.light #summaryMaster,
html.light #summaryDep,
html.light #summaryTax {
    color: #000000 !important;
    font-weight: 900 !important;
}

html.light #grandTotal {
    color: #b45309 !important; /* Темно-оранжевый Amber 700 */
    font-weight: 950 !important;
}

/* ==========================================
   3. ВСПОМОГАТЕЛЬНЫЕ СТИЛИ (СКРОЛЛБАР)
   ========================================== */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: #4b5563;
    border-radius: 10px;
}
.dark ::-webkit-scrollbar-thumb {
    background: #27272a;
}

/* ==========================================================================
   ИСПРАВЛЕНИЕ КОНТРАСТА КНОПОК +СТАНОК И +ИНСТРУМЕНТ В СВЕТЛОЙ ТЕМЕ
   ========================================================================== */
html.light .bg-zinc-855,
html.light .bg-zinc-850,
html.light .bg-zinc-800 {
    background-color: #1e293b !important; /* Глубокий Slate 800 */
    color: #ffffff !important; /* Чистый белый текст */
}
html.light .bg-zinc-855:hover,
html.light .bg-zinc-850:hover,
html.light .bg-zinc-800:hover {
    background-color: #0f172a !important; /* Slate 900 при наведении */
}

