/* Dispare Trading — стили */

.nav-link {
    display: inline-block;
    padding: 0.375rem 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    color: #6b7280;
    text-decoration: none;
    transition: all 0.15s;
}
.nav-link:hover { color: #111827; background: #f3f4f6; }
.nav-link.active { color: #1d4ed8; background: #eff6ff; font-weight: 500; }

.nav-link-sm {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 0.375rem;
    font-size: 0.75rem;
    color: #6b7280;
    text-decoration: none;
}
.nav-link-sm:hover { color: #111827; background: #f3f4f6; }

.btn-primary {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    background: #2563eb;
    color: white;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 0.5rem;
    border: none;
    cursor: pointer;
    transition: background 0.15s;
    white-space: nowrap;
}
.btn-primary:hover { background: #1d4ed8; }
.btn-primary:disabled { background: #93c5fd; cursor: not-allowed; }

.btn-secondary {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    background: white;
    color: #374151;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 0.5rem;
    border: 1px solid #d1d5db;
    cursor: pointer;
    transition: all 0.15s;
}
.btn-secondary:hover { background: #f9fafb; border-color: #9ca3af; }

.input-field {
    display: block;
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    outline: none;
    transition: all 0.15s;
}
.input-field:focus { border-color: #3b82f6; box-shadow: 0 0 0 3px rgba(59,130,246,0.1); }

.stat-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    padding: 1.25rem;
}

.tab-btn {
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #6b7280;
    background: white;
    border: 1px solid #e5e7eb;
    cursor: pointer;
    transition: all 0.15s;
}
.tab-btn:hover { border-color: #9ca3af; }
.tab-btn.active {
    color: #1d4ed8;
    background: #eff6ff;
    border-color: #bfdbfe;
}

table { border-collapse: collapse; }
table th { font-weight: 500; padding-bottom: 0.5rem; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; }
table td { padding: 0.375rem 0; border-top: 1px solid #f3f4f6; }

details summary { list-style: none; }
details summary::-webkit-details-marker { display: none; }

/* ============================================================
   Тёмная тема. Переключается классом .dark на <html> (см. theme.js).
   Сайт собран на готовых утилитах Tailwind (без пересборки/JIT),
   поэтому тёмная тема переопределяет самые частые из них напрямую,
   плюс собственные компоненты выше в этом файле.
   ============================================================ */
html.dark { color-scheme: dark; }

html.dark body,
html.dark .bg-gray-50 { background-color: #0f172a !important; }

html.dark .bg-white { background-color: #1e293b !important; }
html.dark .bg-gray-100 { background-color: #263349 !important; }
html.dark .bg-gray-200 { background-color: #2f3d55 !important; }
html.dark .bg-blue-50,
html.dark .bg-blue-100 { background-color: #1e3a5f !important; }
html.dark .bg-red-50 { background-color: #3f1d1d !important; }
html.dark .bg-green-50 { background-color: #123a2c !important; }

html.dark .text-gray-900 { color: #f1f5f9 !important; }
html.dark .text-gray-800 { color: #e2e8f0 !important; }
html.dark .text-gray-700 { color: #cbd5e1 !important; }
html.dark .text-gray-600 { color: #b0bcce !important; }
html.dark .text-gray-500 { color: #94a3b8 !important; }
html.dark .text-gray-400 { color: #7c8aa0 !important; }

html.dark .border-gray-200,
html.dark .border-gray-300,
html.dark .divide-gray-200 { border-color: #334155 !important; }

html.dark table td { border-top-color: #334155; }
html.dark table th { color: #94a3b8; }

html.dark a { color: inherit; }
html.dark .nav-link { color: #94a3b8; }
html.dark .nav-link:hover { color: #f1f5f9; background: #263349; }
html.dark .nav-link.active { color: #60a5fa; background: #1e3a5f; }
html.dark .nav-link-sm { color: #94a3b8; }
html.dark .nav-link-sm:hover { color: #f1f5f9; background: #263349; }

html.dark .stat-card { background: #1e293b; border-color: #334155; }
html.dark .tab-btn { background: #1e293b; border-color: #334155; color: #94a3b8; }
html.dark .tab-btn.active { background: #1e3a5f; border-color: #2c5282; color: #60a5fa; }

html.dark .input-field,
html.dark input,
html.dark select,
html.dark textarea {
    background-color: #1e293b !important;
    color: #e2e8f0 !important;
    border-color: #334155 !important;
}
html.dark .btn-secondary { background: #1e293b; color: #e2e8f0; border-color: #334155; }
html.dark .btn-secondary:hover { background: #263349; }

html.dark .switch-btn { background: #1e293b; color: #e2e8f0; border-color: #334155; }
html.dark .switch-btn:hover { background: #263349; }

html.dark .help-card { background: #1e293b; color: #e2e8f0; }
html.dark #gTip { background: #f1f5f9; color: #0f172a; }
html.dark .hint { background: #1e3a5f; color: #93c5fd; }
