@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap');

/* ===== Pentest Dashboard - theme flat (Material / Google) ===== */
:root {
  --pd-accent: #1a73e8;
  --pd-accent-strong: #1765cc;
  --bs-primary: #1a73e8;
  --bs-primary-rgb: 26,115,232;
  --bs-link-color: #1a73e8;
  --bs-link-hover-color: #1765cc;
  --bs-body-font-family: 'Roboto','Segoe UI',system-ui,-apple-system,sans-serif;
}
body { font-family: var(--bs-body-font-family); }

/* Boutons flat (commun aux 2 themes) */
.btn { border-radius: 6px; font-weight: 500; letter-spacing: .2px; box-shadow: none !important; }
.btn-primary {
  --bs-btn-bg:#1a73e8; --bs-btn-border-color:#1a73e8;
  --bs-btn-hover-bg:#1765cc; --bs-btn-hover-border-color:#1765cc;
  --bs-btn-active-bg:#1559b0; --bs-btn-active-border-color:#1559b0;
  --bs-btn-color:#fff; --bs-btn-hover-color:#fff; --bs-btn-active-color:#fff;
}
.text-primary { color: #1a73e8 !important; }

/* =====================================================
   MODE CLAIR (blanc, facon Google) - surcharge des
   classes sombres codees en dur dans les templates
   ===================================================== */
[data-bs-theme="light"] { --body-bg:#ffffff; --bs-body-bg:#ffffff; --table-bg:#ffffff; --history-bg:#f1f3f4; --card-bg:#ffffff; }
[data-bs-theme="light"] body { background:#ffffff !important; color:#202124 !important; }

[data-bs-theme="light"] .bg-dark { background-color:#ffffff !important; }
[data-bs-theme="light"] .navbar.bg-dark, [data-bs-theme="light"] .navbar-dark { background-color:#ffffff !important; border-bottom:1px solid #dadce0 !important; }
[data-bs-theme="light"] .navbar-dark .navbar-brand,
[data-bs-theme="light"] .navbar-dark .nav-link,
[data-bs-theme="light"] .navbar-dark .navbar-text { color:#202124 !important; }

[data-bs-theme="light"] .text-white { color:#202124 !important; }
[data-bs-theme="light"] .text-light { color:#3c4043 !important; }
[data-bs-theme="light"] .text-muted { color:#5f6368 !important; }
[data-bs-theme="light"] .border-secondary { border-color:#dadce0 !important; }

[data-bs-theme="light"] .table-custom { background:#ffffff !important; color:#202124 !important; }
[data-bs-theme="light"] .card, [data-bs-theme="light"] .modal-content { background:#ffffff !important; color:#202124 !important; border:1px solid #dadce0 !important; border-radius:8px; box-shadow:0 1px 2px rgba(60,64,67,.15) !important; }
[data-bs-theme="light"] .login-card { background:#ffffff !important; color:#202124 !important; border:1px solid #dadce0 !important; box-shadow:0 1px 3px rgba(60,64,67,.3) !important; }

[data-bs-theme="light"] .form-control, [data-bs-theme="light"] .form-select,
[data-bs-theme="light"] .form-control.bg-dark, [data-bs-theme="light"] input.bg-dark, [data-bs-theme="light"] textarea.bg-dark {
  background:#ffffff !important; color:#202124 !important; border-color:#dadce0 !important; border-radius:6px;
}
[data-bs-theme="light"] .form-control:focus, [data-bs-theme="light"] .form-select:focus { border-color:#1a73e8 !important; box-shadow:0 0 0 .15rem rgba(26,115,232,.25) !important; }
[data-bs-theme="light"] .input-group-text, [data-bs-theme="light"] .input-group-text.bg-dark { background:#f1f3f4 !important; color:#5f6368 !important; border-color:#dadce0 !important; }

[data-bs-theme="light"] .history-panel { background:#f1f3f4 !important; box-shadow:none !important; border:1px solid #dadce0; }
[data-bs-theme="light"] .summary-cell, [data-bs-theme="light"] .summary-cell table,
[data-bs-theme="light"] .summary-cell td, [data-bs-theme="light"] .summary-cell th { color:#202124 !important; border-color:#dadce0 !important; }
[data-bs-theme="light"] .summary-cell pre, [data-bs-theme="light"] .summary-cell code, [data-bs-theme="light"] .summary-cell blockquote { background:#f1f3f4 !important; color:#202124 !important; border:1px solid #dadce0 !important; }
[data-bs-theme="light"] a { color:#1a73e8; }
[data-bs-theme="light"] .dropdown-menu { background:#ffffff; border:1px solid #dadce0; }
[data-bs-theme="light"] .dropdown-item { color:#202124; }
