:root {
  --allitech-blue: #008fd7;
  --allitech-blue-dark: #0078c3;
  --allitech-green: #64af2d;
  --bg: #f4f8fb;
  --card: #ffffff;
  --border: #dbe7f0;
  --text: #17324d;
  --muted: #607287;
  --shadow: 0 14px 34px rgba(8, 57, 95, 0.10);
  --radius: 16px;
  --accent: var(--allitech-blue-dark);
  --dark: var(--allitech-blue-dark);
}

* { box-sizing: border-box; }

body {
  font-family: Arial, Helvetica, sans-serif !important;
  background: linear-gradient(180deg, #eef7fb 0%, #ffffff 48%, #f7fbf9 100%) !important;
  color: var(--text) !important;
  line-height: 1.5;
}

a { color: var(--allitech-blue-dark); }

.wrap {
  width: min(100% - 24px, 1100px);
  padding: 18px 0 28px !important;
}

.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 0 0 14px;
}

.app-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 150px;
  text-decoration: none;
}

.app-brand img {
  display: block;
  width: 150px;
  max-width: 42vw;
  height: auto;
}

.topbar,
.top {
  flex: 1;
  min-width: 0;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(0, 143, 215, 0.14);
  border-radius: var(--radius);
  box-shadow: 0 10px 28px rgba(8, 57, 95, 0.08);
}

h1 {
  color: var(--allitech-blue-dark) !important;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.muted { color: var(--muted) !important; }

.nav {
  align-items: center;
  gap: 9px !important;
  padding: 10px;
  margin: 10px 0 18px !important;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(0, 143, 215, 0.12);
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(8, 57, 95, 0.07);
}

.nav a {
  color: var(--allitech-blue-dark) !important;
  font-weight: 700;
  text-decoration: none;
  background: transparent !important;
  border-color: transparent !important;
  transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.nav a:hover,
.nav a:focus {
  background: rgba(0, 143, 215, 0.10) !important;
  outline: none;
}

.nav a.active {
  color: #ffffff !important;
  background: var(--allitech-blue) !important;
  box-shadow: 0 8px 18px rgba(0, 143, 215, 0.20);
}

.nav a.logout {
  margin-left: auto !important;
  color: #991b1b !important;
  background: #fff1f2 !important;
  border-color: #fecaca !important;
}

.card {
  border-color: rgba(0, 143, 215, 0.14) !important;
  box-shadow: var(--shadow) !important;
}

.cardhead {
  color: #ffffff !important;
  background: linear-gradient(135deg, var(--allitech-blue-dark), var(--allitech-blue)) !important;
}

.tabbtn.active,
.btn,
.btn.primary {
  color: #ffffff !important;
  background: var(--allitech-blue-dark) !important;
  border-color: var(--allitech-blue-dark) !important;
}

.btn.outline {
  color: var(--allitech-blue-dark) !important;
  background: #ffffff !important;
  border-color: var(--allitech-blue-dark) !important;
}

button,
input,
select { font-family: inherit; }

input:focus,
select:focus,
button:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(100, 175, 45, 0.28);
  outline-offset: 2px;
}

th {
  color: var(--muted) !important;
  background: #f7fbfd !important;
}

tr:hover td { background: #f8fcff !important; }

.badge {
  color: var(--text) !important;
  background: #eef7fb !important;
}

@media (max-width: 760px) {
  .wrap {
    width: min(100% - 20px, 1100px);
    padding-top: 12px !important;
  }

  .app-header {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .app-brand { justify-content: center; }

  .topbar,
  .top {
    width: 100%;
    padding: 12px;
  }

  .nav {
    align-items: stretch;
    border-radius: 18px;
  }

  .nav a {
    flex: 1 1 auto;
    text-align: center;
  }

  .nav a.logout { margin-left: 0 !important; }
}
