:root {
  --app-bg: #f4f5f7;
  --surface: #ffffff;
  --surface-soft: #f8f9fb;
  --text-main: #1f2937;
  --text-muted: #6b7280;
  --border: #e5e7eb;
  --primary: #334155;
  --primary-hover: #1f2937;
}

.table th,
.table td {
  font-size: 0.92rem;
  padding: 0.42rem 0.5rem;
  vertical-align: middle;
}

.table th {
  font-weight: 600;
}

.btn-sm {
  font-size: 0.84rem;
  padding: 0.3rem 0.55rem;
}

.table-responsive {
  overflow-x: auto;
}

.app-body {
  background: var(--app-bg);
  color: var(--text-main);
  font-family: "Segoe UI", "Roboto", Arial, sans-serif;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 600;
  color: var(--text-main);
  letter-spacing: 0.01em;
}

.navbar {
  background: #111827 !important;
  border-bottom: 1px solid #0f172a;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.15);
}

.navbar .navbar-brand,
.navbar .nav-link,
.navbar .nav-link:visited {
  color: #f9fafb !important;
}

.navbar .nav-link:hover,
.navbar .nav-link:focus {
  color: #d1d5db !important;
}

.app-container {
  max-width: 1180px;
}

.app-main {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.06);
  padding: 1rem;
  margin-bottom: 1.2rem;
}

.btn {
  border-radius: 8px;
  font-weight: 500;
}

.btn-primary {
  background: var(--primary);
  border-color: var(--primary);
}

.btn-primary:hover,
.btn-primary:focus {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
}

.table {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}

.table thead {
  background: #f3f4f6;
  color: var(--text-main);
}

.table-striped > tbody > tr:nth-of-type(odd) {
  background-color: var(--surface-soft);
}

footer.footer {
  background: #ffffff;
  color: #222222;
  padding: 1rem 0;
  font-size: 1rem;
  border-top: 1px solid #e6e6e6;
}

.kodentek {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
}

.kodentek .brand {
  background: linear-gradient(90deg, #ff0000 0%, #800080 50%, #0000ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.kodentek img {
  height: 40px;
}

.kodentek .brand {
  font-size: 1.05rem;
}

.form-control,
.form-select {
  border-radius: 8px;
  border: 1px solid #d1d5db;
  font-size: 0.96rem;
}

.card,
.modal-content {
  border: 1px solid var(--border);
  border-radius: 10px;
}

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

@media (max-width: 1200px) {
  .app-container {
    max-width: 100vw;
    padding-left: 0.4rem;
    padding-right: 0.4rem;
  }

  .app-main {
    border-radius: 10px;
    padding: 0.7rem;
  }

  .table th,
  .table td {
    font-size: 0.86rem;
    padding: 0.35rem 0.35rem;
  }

  .btn-sm {
    font-size: 0.8rem;
    padding: 0.22rem 0.38rem;
  }
}
html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem rgba(51, 65, 85, 0.25);
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}