/* Umumiy tanlovlar */
body {
  background-color: #f4f6f9;
  font-family: "Segoe UI", Arial, sans-serif;
  color: #333;
  margin: 0;
  padding: 20px;
}

h1 {
  text-align: center;
  color: #0066cc;
  margin-bottom: 25px;
  font-weight: 700;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.1);
}

.ico {
  width: 18px;
  height: 18px;
  vertical-align: middle;
  margin-right: 6px;
}

/* Tugmalar */
.btn-group {
  text-align: center;
  margin-bottom: 20px;
}

.btn {
  display: inline-block;
  padding: 10px 18px;
  margin: 5px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  color: #fff;
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn-sm {
  padding: 6px 12px;
  font-size: 13px;
  margin: 2px;
}

.btn-success { background: #28a745; }
.btn-success:hover { background: #218838; }

.btn-primary { background: #0066cc; }
.btn-primary:hover { background: #004999; }

.btn-warning { background: #ff9800; }
.btn-warning:hover { background: #e68900; }

.btn-danger { background: #dc3545; }
.btn-danger:hover { background: #b52a37; }

.btn-secondary { background: #6c757d; }
.btn-secondary:hover { background: #545b62; }

/* Kartalar */
.card {
  background: #fff;
  border-radius: 8px;
  margin: 20px auto;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  overflow: hidden;
  max-width: 100%;
}

.card-header {
  padding: 12px 15px;
  font-weight: bold;
  color: #fff;
}

.card-header.bg-primary { background: #0066cc; }
.card-header.bg-success { background: #28a745; }
.card-header.bg-info { background: #17a2b8; }

.card-body {
  padding: 15px;
}

/* Jadval */
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 15px;
}

th, td {
  border: 1px solid #ddd;
  padding: 10px;
  text-align: center;
}

th {
  background: #0066cc;
  color: #fff;
  text-transform: uppercase;
  font-size: 13px;
}

tr:nth-child(even) {
  background: #f9f9f9;
}

tr:hover {
  background: #e9f2ff;
  transition: background-color 0.3s ease;
}

/* Formalar */
form {
  margin-top: 15px;
}

label {
  display: block;
  margin-bottom: 5px;
  font-weight: 600;
}

input[type="text"] {
  width: 100%;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 6px;
  transition: all 0.3s ease;
}

input:focus {
  border-color: #0066cc;
  box-shadow: 0 0 6px rgba(0,102,204,0.3);
  outline: none;
}

.form-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 15px;
}

/* Badge (status belgilari) */
.badge {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
}

.badge-success { background: #28a745; }
.badge-warning { background: #ffc107; color: #333; }
.badge-danger { background: #dc3545; }
.badge-secondary { background: #6c757d; }
.badge-primary { background: #007bff; }
.badge-dark { background: #343a40; }
.badge-info { background: #17a2b8; }


/* Hover effektlar */
.btn:hover, .badge:hover {
  opacity: 0.9;
  transform: scale(1.03);
  transition: all 0.3s ease;
}

/* Export tugmalari */
.export-buttons {
  margin-top: 40px;
  padding: 25px;
  text-align: center;
  background: #ffffff;
  border-top: 2px solid #0066cc;
  box-shadow: 0 -2px 8px rgba(0,0,0,0.1);
}

.export-buttons .btn {
  margin: 0 12px;
  padding: 12px 24px;
  font-weight: bold;
  border-radius: 8px;
  background: #0066cc;
  color: #fff;
}

.export-buttons .btn:hover {
  background: #004999;
  transform: scale(1.05);
}

/* Responsive dizayn */
@media (max-width: 768px) {
  body {
    padding: 10px;
  }
  table, th, td {
    font-size: 12px;
    padding: 6px;
  }
  .btn, .btn-sm {
    font-size: 12px;
    padding: 8px 12px;
  }
  h1 {
    font-size: 20px;
  }
}

/* Modal oynalar */
.modal {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 999;
}

.modal-content {
  background: #fff;
  margin: 10% auto;
  padding: 20px;
  width: 400px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.close {
  float: right;
  cursor: pointer;
  font-size: 20px;
  font-weight: bold;
  color: #333;
}

.btn-info { background: #17a2b8; }
.btn-info:hover { background: #117a8b; }
