:root {
  --color-ink: #e9f2ff;
  --color-dark: #010b18;
  --color-slate: rgba(255, 255, 255, 0.05);
  --color-primary: #39d0c5;
  --color-accent: #5fc3ff;
  --color-muted: rgba(233, 242, 255, 0.8);
}

* {
  box-sizing: border-box;
}

html {
  font-size: 16px;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: 'Outfit', 'Space Grotesk', system-ui, sans-serif;
  background-color: var(--color-dark);
  color: var(--color-ink);
}

.modern-shell {
  min-height: 100vh;
  position: relative;
  background: radial-gradient(circle at top right, rgba(57, 208, 197, 0.2), transparent 45%),
    radial-gradient(circle at 20% 30%, rgba(95, 195, 255, 0.2), transparent 40%);
}

.ambient {
  position: absolute;
  width: 420px;
  height: 420px;
  filter: blur(120px);
  border-radius: 50%;
  opacity: 0.6;
  pointer-events: none;
}

.ambient-one {
  background: rgba(57, 208, 197, 0.4);
  top: -80px;
  right: -60px;
}

.ambient-two {
  background: rgba(95, 195, 255, 0.35);
  bottom: -120px;
  left: -30px;
}

.modern-nav {
  background: rgba(1, 11, 24, 0.85);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px);
  z-index: 2;
}

.modern-nav .navbar-brand {
  font-size: 1.1rem;
  letter-spacing: 0.05em;
  color: var(--color-ink);
}

.modern-nav .nav-link {
  color: var(--color-muted);
  transition: color 0.2s ease, transform 0.2s ease;
}

.modern-nav .nav-link:hover {
  color: var(--color-primary);
  transform: translateY(-1px);
}

.navbar-toggler {
  color: var(--color-muted);
  border-color: rgba(255, 255, 255, 0.3);
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.9%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Scrollbar Styling */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.8);
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.95);
}

/* Firefox scrollbar */
* {
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.8) rgba(255, 255, 255, 0.1);
}

.hero {
  padding-top: 3rem;
  padding-bottom: 3rem;
  position: relative;
  z-index: 1;
}

.hero__content {
  max-width: 720px;
}

.hero h1 {
  font-size: clamp(2.3rem, 3vw, 3.5rem);
  font-weight: 700;
  margin-bottom: 1rem;
  color: rgba(2, 18, 42, 0.92);
}

.hero__lead {
  font-size: 1.1rem;
  color: rgba(2, 18, 42, 0.7);
  margin-bottom: 1.5rem;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 0.7rem;
  color: rgba(57, 208, 197, 0.9);
  margin-bottom: 0.75rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.btn-glow {
  border-radius: 999px;
  border: none;
  padding: 0.75rem 1.6rem;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  color: #fff;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-glow:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 35px rgba(0, 0, 0, 0.45);
}

.btn-glow.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero__badges {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  color: var(--color-muted);
  font-size: 0.9rem;
}

.hero__badges strong {
  font-size: 1.2rem;
  color: var(--color-ink);
  display: block;
}

.hero__cards {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.hero__cards article {
  padding: 1.5rem;
  border-radius: 1.2rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 20px 45px rgba(2, 7, 18, 0.15);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.hero__cards article:hover {
  transform: translateY(-6px);
  border-color: rgba(57, 208, 197, 0.35);
}

.hero__cards article h3 {
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: rgba(2, 18, 42, 0.85);
}

.hero__cards article p {
  color: rgba(2, 18, 42, 0.5);
  line-height: 1.5;
}

.content-wrapper {
  padding-top: 3rem;
  padding-bottom: 4rem;
}

.glass-panel {
  background: rgba(4, 12, 24, 0.85);
  padding: 2.5rem;
  border-radius: 1.6rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 30px 80px rgba(1, 3, 8, 0.7);
  backdrop-filter: blur(20px);
  margin-top: 0.5rem;
}

.form-card {
  background: rgba(255, 255, 255, 0.95);
  color: rgba(2, 18, 42, 0.9);
  padding: 2rem;
  border-radius: 1.6rem;
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 25px 60px rgba(1, 3, 8, 0.25);
  backdrop-filter: blur(18px);
}

.form-card .form-label {
  font-weight: 500;
  color: rgba(2, 18, 42, 0.85);
}

.leave-form .form-control,
.leave-form .form-select {
  background: rgba(2, 18, 42, 0.04);
  border: 1px solid rgba(2, 18, 42, 0.25);
  border-radius: 1rem;
  padding: 0.85rem 1.1rem;
  color: rgba(2, 18, 42, 0.95);
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

.leave-form .form-control:focus,
.leave-form .form-select:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 0.2rem rgba(57, 208, 197, 0.25);
}

.leave-form .btn-glow {
  padding: 0.95rem 1.4rem;
  font-size: 1rem;
}

.btn-outline-secondary {
  border-radius: 40px;
  border: 1px solid rgba(2, 18, 42, 0.2);
  background: transparent;
  color: rgba(2, 18, 42, 0.85);
}

.btn-outline-secondary:hover {
  background: rgba(2, 18, 42, 0.05);
  border-color: rgba(2, 18, 42, 0.4);
}

.page-shell {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 1.25rem;
  padding-bottom: 1.5rem;
}

.page-shell > .d-flex h2,
.page-shell > .d-flex p,
.page-shell h2.mb-1 {
  color: #1a2942 !important;
}

.page-shell > .d-flex .text-muted {
  color: #4a5568 !important;
}

.page-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.page-header h2 {
  font-size: 2rem;
  margin: 0;
  color: var(--color-ink);
}

.header-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.page-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.stat-card {
  padding: 1.25rem;
  border-radius: 1.2rem;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  backdrop-filter: blur(8px);
}

.stat-card strong {
  display: block;
  font-size: 1.8rem;
  font-weight: 600;
  color: #1a2942;
}

.stat-card span {
  font-size: 0.9rem;
  color: #4a5568;
}

.table-wrapper {
  overflow: hidden;
  border-radius: 1.2rem;
}

.modern-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 0;
  table-layout: auto;
}

.modern-table th,
.modern-table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.modern-table th {
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--color-muted);
}

.modern-table tbody tr:last-child td {
  border-bottom: none;
}

.modern-table tbody tr {
  background: rgba(255, 255, 255, 0.02);
  transition: background 0.2s ease;
}

.modern-table tbody tr:hover {
  background: rgba(95, 195, 255, 0.08);
}

.table-actions {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.status-pill {
  display: inline-block;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: capitalize;
}

.status-pill-positive {
  background: rgba(40, 167, 69, 0.3) !important;
  color: #28a745 !important;
  border: 2px solid rgba(40, 167, 69, 0.8) !important;
}

.status-pill-warning {
  background: rgba(255, 193, 7, 0.35) !important;
  color: #ffc107 !important;
  border: 2px solid rgba(255, 193, 7, 0.85) !important;
}

.status-pill-negative {
  background: rgba(220, 53, 69, 0.35) !important;
  color: #dc3545 !important;
  border: 2px solid rgba(220, 53, 69, 0.85) !important;
}

.filter-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.filter-form input,
.filter-form select {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1rem;
  padding: 0.9rem 1.1rem;
  color: var(--color-ink);
}

.filter-form button {
  border-radius: 1rem;
  border: none;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  color: #fff;
  font-weight: 600;
  padding: 0.95rem 1.2rem;
  box-shadow: 0 12px 30px rgba(57, 208, 197, 0.25);
}

.btn-excel {
  border-radius: 40px;
  border: none;
  background: linear-gradient(135deg, #1abc9c, #2ecc71);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 12px 25px rgba(30, 187, 134, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-excel:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 30px rgba(30, 187, 134, 0.45);
}

.login-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at top, rgba(95, 195, 255, 0.15), transparent 45%),
    radial-gradient(circle at 20% 40%, rgba(57, 208, 197, 0.2), transparent 45%);
}

.login-panel {
  width: min(420px, 90%);
  padding: 2rem;
  border-radius: 1.6rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(4, 12, 24, 0.92);
  box-shadow: 0 25px 70px rgba(1, 3, 8, 0.7);
  backdrop-filter: blur(18px);
}

.login-title {
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--color-accent);
}

.login-form .form-control {
  border-radius: 1rem;
  padding: 0.9rem 1.2rem 0.9rem 3rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--color-ink);
}

.input-icon {
  left: 1rem;
  color: rgba(233, 242, 255, 0.6);
}

.login-form .btn {
  border-radius: 999px;
  padding: 0.85rem 1.5rem;
  font-weight: 600;
}

.login-note {
  font-size: 0.85rem;
  color: rgba(233, 242, 255, 0.6);
  text-align: center;
  margin-top: 1rem;
}

.footer {
  padding: 2rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 2rem;
}

.footer p {
  color: rgba(233, 242, 255, 0.6);
}

@media (max-width: 768px) {
  .glass-panel {
    padding: 1.5rem;
    overflow-x: auto;
  }

  .table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .modern-table {
    min-width: 600px;
    font-size: 0.85rem;
  }

  .modern-table th,
  .modern-table td {
    padding: 0.75rem 0.5rem;
  }

  .table-actions {
    flex-direction: column;
    gap: 0.3rem;
  }

  .table-actions .btn {
    width: 100%;
    font-size: 0.75rem;
    padding: 0.4rem 0.6rem;
  }

  .page-stats {
    grid-template-columns: 1fr;
  }

  .filter-form {
    grid-template-columns: 1fr;
  }

  .page-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .d-flex.justify-content-between {
    flex-direction: column;
    align-items: flex-start !important;
  }

  .d-flex.gap-2 {
    width: 100%;
    flex-direction: column;
  }

  .d-flex.gap-2 .btn {
    width: 100%;
  }
}

@media (max-width: 576px) {
  .glass-panel {
    padding: 1rem;
  }

  .hero__cards {
    grid-template-columns: 1fr;
  }

  .hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .page-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .filter-form {
    grid-template-columns: 1fr;
  }

  .modern-table {
    min-width: 500px;
    font-size: 0.8rem;
  }

  .stat-card {
    padding: 1rem;
  }

  .stat-card strong {
    font-size: 1.5rem;
  }

  /* Mobilde scrollbar daha belirgin */
  ::-webkit-scrollbar {
    width: 10px;
    height: 10px;
  }

  ::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid rgba(255, 255, 255, 0.3);
  }

  .navbar-toggler {
    border: 2px solid rgba(255, 255, 255, 0.5);
    padding: 0.5rem;
  }

  .navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.25);
  }
}