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(63, 32, 33, 0.35);
}

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

body {
  margin-bottom: 60px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: #F7F2F2;
}

/* Modern Sidebar — Emiliano Zapata #3F2021 */
.main-sidebar {
  background: linear-gradient(180deg, #3F2021 0%, #2A1516 100%) !important;
  box-shadow: 2px 0 10px rgba(63, 32, 33, 0.2);
}

.brand-link {
  border-bottom: 1px solid rgba(255,255,255,0.12);
  padding: 0.75rem 0.75rem !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
}

.brand-logo-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0.55rem 0.65rem;
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
  line-height: 0;
}

.brand-logo {
  display: block;
  height: auto;
  max-height: 44px;
  width: 100%;
  max-width: 100%;
  object-fit: contain;
  object-position: center;
}

.brand-text {
  font-weight: 600 !important;
  font-size: 1.25rem !important;
  color: #fff !important;
  letter-spacing: 0.5px;
}

.nav-sidebar .nav-link {
  color: rgba(255,255,255,0.8) !important;
  padding: 0.75rem 1.25rem !important;
  margin: 0.25rem 0.5rem;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.nav-sidebar .nav-link:hover {
  background-color: rgba(255,255,255,0.1) !important;
  color: #fff !important;
  transform: translateX(4px);
}

.nav-sidebar .nav-link.active {
  background-color: rgba(255,255,255,0.15) !important;
  color: #fff !important;
  font-weight: 600;
}

/* Modern Navbar */
.main-header {
  background: #fff !important;
  border-bottom: 1px solid #e9ecef;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.navbar-nav .nav-link {
  color: #495057 !important;
  font-weight: 500;
  padding: 0.75rem 1rem !important;
}

.navbar-nav .nav-link:hover {
  color: #3F2021 !important;
}

/* Modern Cards */
.card {
  border: none;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  margin-bottom: 1.5rem;
  transition: box-shadow 0.3s ease;
}

.card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.card-header {
  background-color: #f8f9fa;
  border-bottom: 1px solid #e9ecef;
  padding: 1.25rem 1.5rem;
  font-weight: 600;
  border-radius: 12px 12px 0 0 !important;
}

.card-body {
  padding: 1.5rem;
}

/* Modern Buttons */
.btn {
  border-radius: 8px;
  padding: 0.625rem 1.25rem;
  font-weight: 500;
  transition: all 0.3s ease;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, #3F2021 0%, #2A1516 100%);
  color: #fff;
  box-shadow: 0 2px 6px rgba(63, 32, 33, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(63, 32, 33, 0.4);
  background: linear-gradient(135deg, #532a2b 0%, #3F2021 100%);
  color: #fff;
}

.btn-success {
  background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
  color: #fff;
}

.btn-info {
  background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
  color: #fff;
}

.btn-warning {
  background-color: #ffc107;
  background-image: none;
  border: 1px solid #e0a800;
  color: #212529;
}

.btn-warning:hover {
  background-color: #e0a800;
  border-color: #d39e00;
  color: #212529;
}

.btn-danger {
  background: linear-gradient(135deg, #eb3349 0%, #f45c43 100%);
  color: #fff;
}

.btn i {
  margin-right: 0.5rem;
}

/* Modern Forms */
.form-control {
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 0.625rem 0.875rem;
  transition: all 0.3s ease;
}

.form-control:focus {
  border-color: #667eea;
  box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.15);
}

.form-label {
  font-weight: 600;
  color: #495057;
  margin-bottom: 0.5rem;
}

/* Modern Tables */
.table {
  background-color: #fff;
  border-radius: 8px;
  overflow: hidden;
}

.table thead {
  background-color: #f8f9fa;
}

.table thead th {
  border-bottom: 2px solid #e9ecef;
  font-weight: 600;
  color: #495057;
  padding: 1rem;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
}

.table tbody tr:hover {
  background-color: #f8f9fa;
}

/* Modern Alerts */
.alert {
  border: none;
  border-radius: 8px;
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  border-left: 4px solid;
}

.alert-success {
  background-color: #d4edda;
  color: #155724;
  border-left-color: #28a745;
}

.alert-danger {
  background-color: #f8d7da;
  color: #721c24;
  border-left-color: #dc3545;
}

.alert-warning {
  background-color: #fff3cd;
  color: #856404;
  border-left-color: #ffc107;
}

.alert-info {
  background-color: #d1ecf1;
  color: #0c5460;
  border-left-color: #17a2b8;
}

/* Content Wrapper */
.content-wrapper {
  background-color: #F7F2F2;
}

.content-header {
  background-color: #fff;
  border-bottom: 1px solid #e9ecef;
  padding: 1.5rem 0;
  margin-bottom: 1.5rem;
}

.content-header h1 {
  margin: 0;
  font-size: 1.75rem;
  font-weight: 600;
  color: #3F2021;
}

/* Small Boxes */
.small-box {
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
  overflow: hidden;
}

.small-box:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

/* Footer */
.main-footer {
  background-color: #fff;
  border-top: 1px solid #e9ecef;
  padding: 1.5rem;
  color: #6c757d;
}

/* Validasyon uyarıları daha belirgin */
.field-validation-error {
  font-weight: 600;
  color: #721c24 !important;
}

.input-validation-error {
  border-color: #dc3545 !important;
  background-color: #fff5f5 !important;
}

.alert.alert-danger.alert-dismissible .validation-summary-errors ul {
  margin-bottom: 0;
  padding-left: 1.25rem;
}

.alert.alert-danger.alert-dismissible .validation-summary-errors li {
  margin-bottom: 0.25rem;
}
