:root {
  --primary: #a85532;      /* Toprak tonu */
  --primary-dark: #79361e; /* Koyu toprak tonu */
  --primary-light: #d67e5b; /* Açık toprak tonu */
  --success: #10b981;      /* Yeşil */
  --warning: #f59e0b;      /* Sarı-turuncu */
  --danger: #ef4444;       /* Kırmızı */
  --light: #f8fafc;        /* Açık gri-mavi */
  --dark: #1e293b;         /* Koyu gri */
  --gray-100: #f1f5f9;     /* Açık gri */
  --gray-200: #e2e8f0;     /* Orta açık gri */
  --gray-700: #334155;     /* Koyu gri */
}

/* Temel stiller */
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: var(--dark);
  background-color: var(--light);
}

/* Başlıklar */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--dark);
}

/* Butonlar */
.btn {
  font-weight: 500;
  border-radius: 8px;
  padding: 0.5rem 1.25rem;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: none;
  cursor: pointer;
}

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

.btn-primary:hover {
  background-color: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 8px -1px rgba(0, 0, 0, 0.2);
}

/* Kartlar */
.card {
  border: none;
  border-radius: 12px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  margin-bottom: 1.5rem;
  overflow: hidden;
  background-color: white;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 20px -3px rgba(0, 0, 0, 0.15);
}

.card-header {
  background-color: var(--light);
  border-bottom: 1px solid var(--gray-200);
  padding: 1rem 1.5rem;
  font-weight: 600;
  color: var(--dark);
}

.card-body {
  padding: 1.5rem;
}

/* Form elemanları */
.form-control, .form-select {
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  padding: 0.5rem 1rem;
  height: calc(2.5rem + 2px);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  background-color: white;
  color: var(--dark);
}

.form-control:focus, .form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 0.2rem rgba(168, 85, 50, 0.25);
  outline: none;
}

/* Tablolar */
.table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background-color: white;
  border-radius: 8px;
  overflow: hidden;
}

.table thead th {
  background-color: var(--light);
  color: var(--dark);
  font-weight: 600;
  padding: 1rem;
  border-bottom: 2px solid var(--gray-200);
}

.table tbody td {
  padding: 1rem;
  border-bottom: 1px solid var(--gray-100);
  vertical-align: middle;
}

/* Yan menü */
.sidebar {
  min-height: 100vh;
  background: linear-gradient(180deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  padding: 1.5rem 0;
  position: fixed;
  width: 250px;
  z-index: 1000;
}

.sidebar .nav-link {
  color: rgba(255, 255, 255, 0.9);
  padding: 0.75rem 1.5rem;
  margin: 0.25rem 1rem;
  border-radius: 8px;
  font-weight: 500;
  display: flex;
  align-items: center;
  transition: all 0.2s ease;
  text-decoration: none;
}

.sidebar .nav-link:hover, 
.sidebar .nav-link.active {
  background: rgba(255, 255, 255, 0.9);
  color: var(--primary) !important;
}

/* Uyarı mesajları */
.alert {
  border: none;
  border-radius: 8px;
  padding: 1rem 1.5rem;
  margin-bottom: 1.5rem;
}

.alert-success {
  background-color: rgba(16, 185, 129, 0.1);
  color: #047857;
}

.alert-danger {
  background-color: rgba(239, 68, 68, 0.1);
  color: #b91c1c;
}

/* Responsive düzen */
@media (max-width: 768px) {
  .sidebar {
    width: 100%;
    position: relative;
    min-height: auto;
  }
  
  .main-content {
    margin-left: 0;
  }
}

/* Yardımcı sınıflar */
.mb-1 { margin-bottom: 0.25rem !important; }
.mb-2 { margin-bottom: 0.5rem !important; }
.mb-3 { margin-bottom: 1rem !important; }
.mb-4 { margin-bottom: 1.5rem !important; }
.mb-5 { margin-bottom: 2rem !important; }

.pt-1 { padding-top: 0.25rem !important; }
.pt-2 { padding-top: 0.5rem !important; }
.pt-3 { padding-top: 1rem !important; }
.pt-4 { padding-top: 1.5rem !important; }
.pt-5 { padding-top: 2rem !important; }
