/* RansomBase Professional Light Blue Theme - Centralized Theme Variables */

/* ========================================
   THEME COLOR PALETTE
   Professional Light Blue - Enterprise Look
   ======================================== */
:root {
  /* Primary Brand Colors */
  --brand-primary: #0056b3;        /* Professional blue - main brand color */
  --brand-primary-hover: #003d82;  /* Darker blue for hover states */
  --brand-secondary: #003d82;      /* Secondary brand color */
  --brand-accent: #17a2b8;         /* Teal accent for highlights */
  --brand-success: #28a745;        /* Success green */
  --brand-warning: #ffc107;        /* Warning amber */
  --brand-danger: #dc3545;         /* Error/danger red */
  --brand-info: #17a2b8;           /* Info cyan */
  
  /* Background Colors */
  --bg-main: #ffffff;               /* Main background - pure white */
  --bg-secondary: #f8f9fa;          /* Secondary background - light gray */
  --bg-tertiary: #f1f3f5;           /* Tertiary background - slightly darker */
  --bg-card: #ffffff;               /* Card backgrounds */
  --bg-card-hover: #f8f9fa;         /* Card hover state */
  --bg-input: #ffffff;              /* Input field backgrounds */
  --bg-navbar: #ffffff;             /* Navigation bar background */
  --bg-footer: #f8f9fa;             /* Footer background */
  
  /* Text Colors */
  --text-primary: #212529;          /* Primary text - dark gray */
  --text-secondary: #495057;        /* Secondary text - medium gray */
  --text-muted: #6c757d;            /* Muted text - light gray */
  --text-light: #adb5bd;            /* Light text for less emphasis */
  --text-on-primary: #ffffff;       /* Text on primary color backgrounds */
  --text-link: #0056b3;             /* Link color */
  --text-link-hover: #003d82;       /* Link hover color */
  
  /* Border Colors */
  --border-primary: #dee2e6;        /* Primary border - light gray */
  --border-secondary: #e9ecef;      /* Secondary border - very light */
  --border-input: #ced4da;          /* Input field borders */
  --border-input-focus: #0056b3;    /* Focused input border */
  
  /* Shadow Colors */
  --shadow-sm: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
  --shadow-md: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
  --shadow-card: 0 0.125rem 0.5rem rgba(0, 0, 0, 0.08);
  
  /* Component Specific Colors */
  --dropzone-border: #0056b3;       /* Dropzone border color */
  --dropzone-bg: #f0f7ff;           /* Dropzone background - light blue tint */
  --dropzone-hover: #e6f2ff;        /* Dropzone hover state */
  --stat-card-bg: #ffffff;          /* Statistics card background */
  --code-bg: #f6f8fa;               /* Code block background */
  --table-stripe: #f8f9fa;          /* Table striped row background */
  --modal-backdrop: rgba(0, 0, 0, 0.5); /* Modal backdrop */
  
  /* Alert Colors */
  --alert-success-bg: #d4edda;
  --alert-success-border: #c3e6cb;
  --alert-success-text: #155724;
  --alert-warning-bg: #fff3cd;
  --alert-warning-border: #ffeeba;
  --alert-warning-text: #856404;
  --alert-danger-bg: #f8d7da;
  --alert-danger-border: #f5c6cb;
  --alert-danger-text: #721c24;
  --alert-info-bg: #d1ecf1;
  --alert-info-border: #bee5eb;
  --alert-info-text: #0c5460;
  
  /* Ransomware Risk Level Colors */
  --risk-critical: #dc3545;
  --risk-high: #fd7e14;
  --risk-medium: #ffc107;
  --risk-low: #28a745;
  
  /* Font Settings */
  --font-family-base: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-family-monospace: 'Monaco', 'Courier New', monospace;
  --font-size-base: 1rem;
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  
  /* Spacing */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  
  /* Border Radius */
  --radius-sm: 0.25rem;
  --radius-md: 0.375rem;
  --radius-lg: 0.5rem;
  --radius-xl: 0.75rem;
  --radius-pill: 50rem;
  
  /* Transitions */
  --transition-base: all 0.2s ease-in-out;
  --transition-fast: all 0.15s ease-in-out;
  --transition-slow: all 0.3s ease-in-out;
}

/* ========================================
   BASE STYLES OVERRIDE
   ======================================== */
html, body {
  background-color: var(--bg-secondary) !important;
  color: var(--text-primary) !important;
  font-family: var(--font-family-base) !important;
}

/* Remove any dark theme classes */
[data-bs-theme="dark"] {
  background-color: var(--bg-main) !important;
  color: var(--text-primary) !important;
}

/* ========================================
   TYPOGRAPHY
   ======================================== */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-primary);
  font-weight: var(--font-weight-semibold);
}

p {
  color: var(--text-secondary);
}

a {
  color: var(--text-link);
  text-decoration: none;
  transition: var(--transition-fast);
}

a:hover {
  color: var(--text-link-hover);
}

.text-muted {
  color: var(--text-muted) !important;
}

/* ========================================
   NAVIGATION
   ======================================== */
.navbar {
  background-color: var(--bg-navbar) !important;
  border-bottom: 1px solid var(--border-primary);
  box-shadow: var(--shadow-sm);
}

.navbar-brand {
  color: var(--brand-primary) !important;
  font-weight: var(--font-weight-bold);
}

.nav-link {
  color: var(--text-secondary) !important;
  font-weight: var(--font-weight-medium);
  transition: var(--transition-fast);
}

.nav-link:hover,
.nav-link:focus {
  color: var(--brand-primary) !important;
}

.nav-link.active {
  color: var(--brand-primary) !important;
  font-weight: var(--font-weight-semibold);
}

/* ========================================
   CARDS
   ======================================== */
.card {
  background-color: var(--bg-card) !important;
  border: 1px solid var(--border-primary) !important;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  transition: var(--transition-base);
}

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

.card-header {
  background-color: var(--bg-secondary) !important;
  border-bottom: 1px solid var(--border-primary) !important;
  font-weight: var(--font-weight-semibold);
  color: var(--text-primary) !important;
}

.card-body {
  background-color: var(--bg-card) !important;
  color: var(--text-primary) !important;
}

/* ========================================
   BUTTONS
   ======================================== */
.btn {
  font-weight: var(--font-weight-medium);
  border-radius: var(--radius-md);
  transition: var(--transition-fast);
}

.btn-primary {
  background-color: var(--brand-primary) !important;
  border-color: var(--brand-primary) !important;
  color: var(--text-on-primary) !important;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
  background-color: var(--brand-primary-hover) !important;
  border-color: var(--brand-primary-hover) !important;
  color: var(--text-on-primary) !important;
}

.btn-secondary {
  background-color: var(--bg-secondary) !important;
  border: 1px solid var(--border-primary) !important;
  color: var(--text-secondary) !important;
}

.btn-secondary:hover {
  background-color: var(--bg-tertiary) !important;
  color: var(--text-primary) !important;
}

.btn-success {
  background-color: var(--brand-success) !important;
  border-color: var(--brand-success) !important;
  color: var(--text-on-primary) !important;
}

.btn-danger {
  background-color: var(--brand-danger) !important;
  border-color: var(--brand-danger) !important;
  color: var(--text-on-primary) !important;
}

.btn-warning {
  background-color: var(--brand-warning) !important;
  border-color: var(--brand-warning) !important;
  color: var(--text-primary) !important;
}

.btn-info {
  background-color: var(--brand-info) !important;
  border-color: var(--brand-info) !important;
  color: var(--text-on-primary) !important;
}

.btn-outline-primary {
  color: var(--brand-primary) !important;
  border-color: var(--brand-primary) !important;
  background-color: transparent !important;
}

.btn-outline-primary:hover,
.btn-outline-primary:active,
.btn-outline-primary:focus,
.btn-outline-primary.active {
  background-color: var(--brand-primary) !important;
  border-color: var(--brand-primary) !important;
  color: var(--text-on-primary) !important;
}

/* ========================================
   FORMS
   ======================================== */
.form-control,
.form-select {
  background-color: var(--bg-input) !important;
  border: 1px solid var(--border-input) !important;
  color: var(--text-primary) !important;
  border-radius: var(--radius-md);
}

.form-control:focus,
.form-select:focus {
  background-color: var(--bg-input) !important;
  border-color: var(--border-input-focus) !important;
  box-shadow: 0 0 0 0.2rem rgba(0, 86, 179, 0.25);
  color: var(--text-primary) !important;
}

.form-label {
  color: var(--text-secondary);
  font-weight: var(--font-weight-medium);
}

/* ========================================
   SECTION HEADERS
   ======================================== */
.section-header {
  color: #0056b3 !important;
  font-weight: 700 !important;
  margin-bottom: 1.5rem !important;
}

h1.section-header,
h2.section-header,
h3.section-header,
h4.section-header,
h5.section-header,
h6.section-header {
  color: #0056b3 !important;
  font-weight: 700 !important;
  margin-bottom: 1.5rem !important;
}

/* Override Bootstrap defaults for section headers */
.container h2.section-header,
.text-center h2.section-header,
div h2.section-header,
section h2.section-header {
  color: #0056b3 !important;
  font-weight: 700 !important;
}

/* Card titles for variant names */
.card-title,
h5.card-title {
  color: #0056b3 !important;
  font-weight: 600 !important;
}

/* Ensure h5 elements within card bodies are blue */
.card-body h5 {
  color: #0056b3 !important;
}

/* Headers on colored backgrounds should remain white */
.bg-primary h5,
.bg-primary h6,
.card-header.bg-primary h5,
.card-header.bg-primary h6,
.text-white h5,
.text-white h6 {
  color: #ffffff !important;
}

/* ========================================
   TABLES
   ======================================== */
.table {
  color: var(--text-primary) !important;
  background-color: var(--bg-card) !important;
}

.table thead th {
  background-color: var(--bg-secondary) !important;
  color: var(--text-primary) !important;
  border-bottom: 2px solid var(--border-primary) !important;
  font-weight: var(--font-weight-semibold);
}

.table-striped tbody tr:nth-of-type(odd) {
  background-color: var(--table-stripe) !important;
}

.table-hover tbody tr:hover {
  background-color: var(--bg-secondary) !important;
}

.table td, .table th {
  border-color: var(--border-primary) !important;
}

/* ========================================
   ALERTS
   ======================================== */
.alert-success {
  background-color: var(--alert-success-bg) !important;
  border-color: var(--alert-success-border) !important;
  color: var(--alert-success-text) !important;
}

.alert-warning {
  background-color: var(--alert-warning-bg) !important;
  border-color: var(--alert-warning-border) !important;
  color: var(--alert-warning-text) !important;
}

.alert-danger {
  background-color: var(--alert-danger-bg) !important;
  border-color: var(--alert-danger-border) !important;
  color: var(--alert-danger-text) !important;
}

.alert-info {
  background-color: var(--alert-info-bg) !important;
  border-color: var(--alert-info-border) !important;
  color: var(--alert-info-text) !important;
}

/* ========================================
   BADGES
   ======================================== */
.badge {
  font-weight: var(--font-weight-medium);
}

.bg-primary {
  background-color: var(--brand-primary) !important;
}

.bg-success {
  background-color: var(--brand-success) !important;
}

.bg-danger {
  background-color: var(--brand-danger) !important;
}

.bg-warning {
  background-color: var(--brand-warning) !important;
  color: var(--text-primary) !important;
}

.bg-info {
  background-color: var(--brand-info) !important;
}

.bg-secondary {
  background-color: var(--bg-tertiary) !important;
  color: var(--text-secondary) !important;
}

/* ========================================
   MODALS
   ======================================== */
.modal-content {
  background-color: var(--bg-card) !important;
  color: var(--text-primary) !important;
  border: 1px solid var(--border-primary);
}

.modal-header {
  background-color: var(--bg-secondary) !important;
  border-bottom: 1px solid var(--border-primary) !important;
}

.modal-footer {
  background-color: var(--bg-secondary) !important;
  border-top: 1px solid var(--border-primary) !important;
}

.modal-title {
  color: var(--text-primary) !important;
}

.btn-close {
  filter: none !important;
}

/* ========================================
   DROPZONE (File Upload)
   ======================================== */
.dropzone {
  background-color: var(--dropzone-bg) !important;
  border: 2px dashed var(--dropzone-border) !important;
  color: var(--text-secondary) !important;
  border-radius: var(--radius-lg);
}

.dropzone:hover {
  background-color: var(--dropzone-hover) !important;
  border-color: var(--brand-primary-hover) !important;
}

.dropzone .dz-message {
  color: var(--text-secondary) !important;
}

/* ========================================
   STATISTICS CARDS
   ======================================== */
.stat-card {
  background-color: var(--stat-card-bg) !important;
  border: 1px solid var(--border-primary) !important;
  border-radius: var(--radius-lg);
  padding: var(--spacing-lg);
  box-shadow: var(--shadow-card);
}

.stat-number {
  color: var(--brand-primary) !important;
  font-size: 2rem;
  font-weight: var(--font-weight-bold);
}

.stat-label {
  color: var(--text-muted) !important;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ========================================
   RANSOMWARE RISK LEVELS
   ======================================== */
.risk-critical {
  color: var(--risk-critical) !important;
}

.risk-high {
  color: var(--risk-high) !important;
}

.risk-medium {
  color: var(--risk-medium) !important;
}

.risk-low {
  color: var(--risk-low) !important;
}

/* ========================================
   FOOTER
   ======================================== */
footer {
  background-color: var(--bg-footer) !important;
  border-top: 1px solid var(--border-primary);
  color: var(--text-muted) !important;
}

footer a {
  color: var(--text-secondary) !important;
}

footer a:hover {
  color: var(--brand-primary) !important;
}

/* ========================================
   SCROLLBAR STYLING
   ======================================== */
::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

::-webkit-scrollbar-track {
  background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
  background: var(--border-primary);
  border-radius: var(--radius-md);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

/* ========================================
   UTILITY CLASSES
   ======================================== */
.bg-light {
  background-color: var(--bg-secondary) !important;
}

.bg-white {
  background-color: var(--bg-main) !important;
}

.text-primary {
  color: var(--brand-primary) !important;
}

.text-secondary {
  color: var(--text-secondary) !important;
}

.text-dark {
  color: var(--text-primary) !important;
}

.border {
  border-color: var(--border-primary) !important;
}

.shadow {
  box-shadow: var(--shadow-md) !important;
}

.shadow-sm {
  box-shadow: var(--shadow-sm) !important;
}

.shadow-lg {
  box-shadow: var(--shadow-lg) !important;
}

/* ========================================
   RESPONSIVE ADJUSTMENTS
   ======================================== */
@media (max-width: 768px) {
  .navbar {
    padding: var(--spacing-sm) var(--spacing-md);
  }
  
  .card {
    margin-bottom: var(--spacing-md);
  }
}

/* ========================================
   PRINT STYLES
   ======================================== */
@media print {
  body {
    background-color: white !important;
    color: black !important;
  }
  
  .navbar, footer {
    display: none !important;
  }
}