/* Justos Theme - Custom Styles */

:root {
  --justos-blue: #2458ff;
  --justos-yellow: #fff53d;
  --justos-text: #33363e;
  --justos-bg: #f8f9fa;
  
  /* Status Colors */
  --status-open: #ff3162;
  --status-in-progress: #00d1ff;
  --status-resolved: #00d8b8;
}

/* General theme overrides */
body {
  background-color: var(--justos-bg);
  color: var(--justos-text);
  font-family: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* Navbar styling */
.navbar {
  background-color: white !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.navbar-brand {
  font-weight: 700;
  color: var(--justos-text) !important;
}

.navbar-brand i {
  color: var(--justos-blue);
  margin-right: 0.5rem;
}

/* Cards styling */
.card {
  border-radius: 12px;
  border: none;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.card-header {
  background-color: white;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  padding: 1rem 1.25rem;
}

/* Chart containers */
.chart-container {
  background-color: white;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
  padding: 1.5rem;
  margin-bottom: 1rem;
  height: 100%;
}

/* Canvas container styling */
.chart-container > div {
  width: 100%;
  position: relative;
  height: 300px;
}

/* Canvas styling */
.chart-container canvas {
  width: 100% !important;
  height: 100% !important;
  max-height: 100%;
}

/* Counter cards */
.counter-card {
  transition: transform 0.2s;
}

.counter-card:hover {
  transform: translateY(-5px);
}

.counter-card .display-4 {
  font-weight: 700;
  color: var(--justos-blue);
}

.open-bugs .display-4 {
  color: var(--status-open);
}

.in-progress-bugs .display-4 {
  color: var(--status-in-progress);
}

.resolved-bugs .display-4 {
  color: var(--status-resolved);
}

/* Status badges */
.status-open {
  background-color: var(--status-open) !important;
  color: white;
}

.status-in-progress {
  background-color: var(--status-in-progress) !important;
  color: white;
}

.status-resolved {
  background-color: var(--status-resolved) !important;
  color: white;
}

/* Dashboard welcome section */
.dashboard-welcome {
  padding: 2rem 0;
  margin-bottom: 2rem;
}

/* Button styling */
.btn-primary {
  background-color: var(--justos-blue);
  border-color: var(--justos-blue);
}

.btn-primary:hover, .btn-primary:focus {
  background-color: #1a48d9;
  border-color: #1a48d9;
}

.btn-outline-primary {
  color: var(--justos-blue);
  border-color: var(--justos-blue);
}

.btn-outline-primary:hover, .btn-outline-primary:focus, .btn-outline-primary.active {
  background-color: var(--justos-blue);
  border-color: var(--justos-blue);
  color: white;
}

/* Table styling */
.table {
  border-collapse: separate;
  border-spacing: 0;
}

.table thead th {
  border-bottom: 2px solid rgba(0, 0, 0, 0.05);
  font-weight: 600;
  color: var(--justos-text);
}

.table tbody tr:hover {
  background-color: rgba(36, 88, 255, 0.03);
}

/* Links */
a {
  color: var(--justos-blue);
  text-decoration: none;
}

a:hover {
  color: #1a48d9;
}

/* Dashboard insights */
.insight-item {
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  background-color: rgba(36, 88, 255, 0.03);
}

.insight-item h5 {
  color: var(--justos-blue);
  font-weight: 600;
}

/* Footer area */
.footer {
  margin-top: 4rem;
  padding: 2rem 0;
  text-align: center;
  color: #6c757d;
  font-size: 0.875rem;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

/* Alert styling */
.alert-primary {
  background-color: rgba(36, 88, 255, 0.1);
  border-color: rgba(36, 88, 255, 0.2);
  color: var(--justos-blue);
}

/* Form controls */
.form-control:focus {
  border-color: var(--justos-blue);
  box-shadow: 0 0 0 0.25rem rgba(36, 88, 255, 0.25);
}

/* Login page */
.login-container {
  max-width: 450px;
  margin: 5rem auto;
}

.login-card {
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.login-header {
  background-color: var(--justos-blue);
  color: white;
  padding: 2rem;
  text-align: center;
}

.login-body {
  padding: 2rem;
}

.login-btn {
  width: 100%;
  padding: 0.75rem;
  font-weight: 600;
  border-radius: 8px;
}

.login-footer {
  text-align: center;
  padding: 1rem;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  font-size: 0.875rem;
}

/* Media Queries */
@media (max-width: 767.98px) {
  .counter-card {
    margin-bottom: 1rem;
  }
  
  .chart-container {
    margin-bottom: 1.5rem;
  }
}