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 #258cfb;
}

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

body {
  margin-bottom: 60px;
  background: linear-gradient(135deg, #4A90E2 0%, #357ABD 50%, #2E5C8A 100%);
  background-attachment: fixed;
  min-height: 100vh;
}

.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;
}

/* Özel Tasarım İyileştirmeleri */
.navbar {
  background: white !important;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  border-bottom: 2px solid #e0e0e0;
  border-radius: 0 !important;
  padding: 0 !important;
}

.navbar .container-fluid {
  margin: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.navbar-brand {
  color: #2E5C8A !important;
  font-weight: 700;
  margin-left: 120px !important;
  padding-left: 0 !important;
}

.nav-link {
  color: #333 !important;
  font-weight: 500;
  border-radius: 0 !important;
}

.nav-link:hover {
  color: #357ABD !important;
  text-decoration: underline;
  background-color: transparent;
}

.card {
  border: none;
  border-radius: 0;
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background: white;
  margin-bottom: 20px;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.card-body {
  padding: 2rem;
}

.card-title {
  color: #2E5C8A;
  font-weight: 600;
  margin-bottom: 1rem;
}

.btn-primary {
  background: #357ABD;
  border: none;
  border-radius: 8px;
  padding: 10px 25px;
  font-weight: 500;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(53, 122, 189, 0.4);
  color: white;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(53, 122, 189, 0.6);
  background: #2E5C8A;
  color: white;
}

.btn-success {
  background: #28a745;
  border: none;
  border-radius: 8px;
  padding: 10px 25px;
  font-weight: 500;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(40, 167, 69, 0.4);
  color: white;
}

.btn-success:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(40, 167, 69, 0.6);
  background: #218838;
  color: white;
}

.btn-warning {
  background: #ffc107;
  border: none;
  color: #212529;
  border-radius: 8px;
  padding: 8px 20px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn-warning:hover {
  transform: translateY(-2px);
  background: #e0a800;
  color: #212529;
}

.btn-danger {
  background: #dc3545;
  border: none;
  border-radius: 8px;
  padding: 8px 20px;
  font-weight: 500;
  transition: all 0.3s ease;
  color: white;
}

.btn-danger:hover {
  transform: translateY(-2px);
  background: #c82333;
  color: white;
}

.btn-info {
  background: #17a2b8;
  border: none;
  color: white;
  border-radius: 8px;
  padding: 8px 20px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn-info:hover {
  transform: translateY(-2px);
  background: #138496;
  color: white;
}

.form-control, .form-select {
  border-radius: 8px;
  border: 2px solid #e0e0e0;
  padding: 12px 15px;
  transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus {
  border-color: #357ABD;
  box-shadow: 0 0 0 0.2rem rgba(53, 122, 189, 0.25);
}

.form-label {
  font-weight: 600;
  color: #333;
  margin-bottom: 8px;
}

h2 {
  color: #2E5C8A;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.table {
  border-radius: 0;
  overflow: hidden;
}

.table thead {
  background: linear-gradient(135deg, #2E5C8A 0%, #357ABD 100%);
  color: white;
}

.table thead th {
  border: none;
  padding: 15px;
  font-weight: 600;
}

.table tbody tr {
  transition: all 0.3s ease;
}

.table tbody tr:hover {
  background-color: #f8f9ff;
  transform: scale(1.01);
}

.container-fluid {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 0;
  padding: 30px 15px;
  margin-top: 20px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

body > .container {
  padding-left: 15px;
  padding-right: 15px;
}

.text-center {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 0;
  padding: 40px 15px;
  margin-top: 20px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.alert {
  border-radius: 0;
  border: none;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

footer {
  background: linear-gradient(135deg, #2E5C8A 0%, #357ABD 100%);
  color: white;
  border-top: none;
  margin-top: 50px;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
}

/* Sayfalama Stilleri */
.pagination {
  display: flex;
  justify-content: center;
  list-style: none;
  padding: 0;
  margin: 20px 0;
  flex-wrap: wrap;
  gap: 5px;
}

.pagination > li {
  display: none;
  margin: 0;
}

/* Tüm navigasyon butonlarını göster (ilk <<, son >>, önceki <, sonraki >, disabled) */
.pagination > li:first-child,
.pagination > li:last-child,
.pagination > li.disabled {
  display: inline-block !important;
}

/* Önceki (<) ve sonraki (>) butonlarını göster - 2. ve sondan 2. element */
.pagination > li:nth-child(2):not(.active),
.pagination > li:nth-last-child(2):not(.active) {
  display: inline-block !important;
}

/* Aktif sayfayı göster */
.pagination > li.active {
  display: inline-block !important;
}

/* Aktif sayfanın önündeki 1 sayfayı göster */
.pagination > li.active + li:not(:last-child):not(:first-child):not(.disabled):not(:nth-child(2)):not(:nth-last-child(2)) {
  display: inline-block;
}

/* Aktif sayfanın arkasındaki 1 sayfayı göster */
.pagination > li:not(:first-child):not(:last-child):not(.disabled):not(:nth-child(2)):not(:nth-last-child(2)):has(+ li.active) {
  display: inline-block;
}

.pagination > li > a,
.pagination > li > span {
  color: #357ABD;
  background-color: white;
  border: 1px solid #dee2e6;
  padding: 8px 12px;
  border-radius: 8px;
  text-decoration: none;
  display: inline-block;
  min-width: 40px;
  text-align: center;
  transition: all 0.3s ease;
}

.pagination > li > a:hover {
  background-color: #357ABD;
  color: white;
  border-color: #357ABD;
  transform: translateY(-2px);
}

.pagination > .active > a,
.pagination > .active > span {
  background-color: #2E5C8A;
  color: white;
  border-color: #2E5C8A;
  font-weight: 600;
}

.pagination > .disabled > a,
.pagination > .disabled > span {
  color: #6c757d;
  pointer-events: none;
  background-color: #e9ecef;
  border-color: #dee2e6;
  cursor: not-allowed;
}