/* Minimal custom styles; heavy lifting via Tailwind CDN */

/* Official Greece 2.0 funding identity on the sign-in screen. */
.funding-logo {
  width: 100%;
  max-width: 22rem;
  height: auto;
  margin-inline: auto;
}
html:not([data-language="el"]) .funding-logo-el,
html[data-language="en"] .funding-logo-el,
html[data-language="el"] .funding-logo-en {
  display: none !important;
}
html[data-language="el"] .funding-logo-el {
  display: block !important;
}
.funding-identity {
  width: 100%;
  text-align: center;
}
@media (max-height: 720px) and (min-width: 640px) {
  .login-page {
    align-items: flex-start;
  }
  .login-card {
    margin-top: 0;
  }
}

/* Base card style */
.card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(240, 249, 255, 0.9));
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 0.75rem;
  box-shadow: 0 20px 45px -28px rgba(14, 116, 144, 0.45);
}

/* Glassmorphism card variant */
.glass {
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.78), rgba(224, 242, 254, 0.72));
  backdrop-filter: blur(16px);
  border: 1px solid rgba(148, 163, 184, 0.35);
}

/* Subtle background grid pattern */
.bg-grid {
  background-image: radial-gradient(circle at 1px 1px, rgba(56, 189, 248, 0.18) 1px, transparent 0);
  background-size: 22px 22px;
}

/* Custom table active row */
.active-row {
  background-color: rgba(14, 165, 233, 0.08);
  border-left: 3px solid #06b6d4;
}

/* Bright theme form elements */
input, select, textarea {
  background-color: #ffffff;
  border-color: #cbd5f5;
  border-radius: 0.5rem;
  box-shadow: 0 8px 20px -16px rgba(14, 116, 144, 0.5);
  color: #0f172a;
}
input:focus, select:focus, textarea:focus {
  border-color: #06b6d4;
  outline: 2px solid transparent;
  outline-offset: 2px;
  box-shadow: 0 0 0 2px rgba(6, 182, 212, 0.3);
}
option {
  background-color: #ffffff;
  color: #0f172a;
}

/* General button styles */
.btn {
  padding: 0.5rem 1rem;
  border-radius: 0.6rem;
  font-weight: 600;
  font-size: 0.875rem;
  transition: all 0.2s;
  box-shadow: 0 12px 30px -20px rgba(14, 116, 144, 0.6);
}
.btn-primary {
  background: linear-gradient(135deg, #06b6d4, #22d3ee);
  color: #083344;
}
.btn-primary:hover {
  background: linear-gradient(135deg, #0ea5e9, #38bdf8);
  transform: translateY(-1px);
}
.btn-secondary {
  background-color: #e2e8f0;
  color: #0f172a;
}
.btn-secondary:hover {
  background-color: #cbd5e1;
}
.btn-ghost {
  background-color: transparent;
  color: #0f172a;
}
.btn-ghost:hover {
  background-color: rgba(14, 116, 144, 0.08);
}

/* Chart.js canvas sizing */
canvas {
  display: block;
}

/* Re-map dark utility classes to bright tones for this theme */
.bg-slate-900 {
  background-color: #ffffff !important;
}
.bg-slate-900\/70 {
  background-color: rgba(255, 255, 255, 0.8) !important;
}
.bg-slate-900\/60 {
  background-color: rgba(255, 255, 255, 0.75) !important;
}
.bg-slate-800 {
  background-color: #f1f5f9 !important;
}
.bg-slate-800\/50 {
  background-color: rgba(241, 245, 249, 0.65) !important;
}
.bg-slate-700 {
  background-color: #e2e8f0 !important;
}
.border-slate-800 {
  border-color: #e2e8f0 !important;
}
.border-slate-700 {
  border-color: #dbeafe !important;
}
.text-slate-50,
.text-slate-100 {
  color: #0f172a !important;
}
.text-slate-200 {
  color: #1e293b !important;
}
.text-slate-300 {
  color: #334155 !important;
}
.text-slate-400 {
  color: #475569 !important;
}
.text-slate-500 {
  color: #64748b !important;
}
.text-white {
  color: #ffffff !important;
}
.bg-accent,
.bg-accent\/70 {
  background: linear-gradient(135deg, #06b6d4, #22d3ee) !important;
  color: #083344 !important;
}
.shadow-accent\/20 {
  box-shadow: 0 18px 30px -22px rgba(6, 182, 212, 0.6) !important;
}

/* Accent pill for impact badges */
.impact-pill {
  background: linear-gradient(135deg, #0b1c3b, #0f2b63);
  color: #f8fafc;
}

/* Dark blue topbar + sidebar override */
.sidebar,
.topbar {
  background: linear-gradient(160deg, #0b1c3b, #10285a) !important;
  border-color: rgba(148, 163, 184, 0.25) !important;
  color: #e2e8f0;
}
.sidebar .text-slate-300,
.sidebar .text-slate-400,
.sidebar .text-slate-500,
.sidebar .text-slate-50,
.sidebar .text-slate-100,
.topbar .text-slate-300,
.topbar .text-slate-400,
.topbar .text-slate-500,
.topbar .text-white\/60,
.topbar .text-white\/80 {
  color: #cbd5e1 !important;
}
.sidebar a,
.topbar a {
  color: #e2e8f0;
}
.sidebar .hover\:bg-slate-800:hover {
  background-color: rgba(148, 163, 184, 0.12) !important;
}
.topbar select,
.topbar button {
  background-color: rgba(15, 23, 42, 0.35) !important;
  border-color: rgba(148, 163, 184, 0.35) !important;
  color: #e2e8f0 !important;
}
