* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background: #1a1a1a;
  color: #e0e0e0;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  background: #2d2d2d;
  padding: 15px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  flex-wrap: wrap;
  gap: 10px;
}

h1 {
  font-size: 20px;
  color: #fff;
}

h2 {
  margin-bottom: 15px;
  font-size: 18px;
  color: #fff;
}

h3 {
  margin: 15px 0 10px;
  font-size: 16px;
  color: #fff;
}

@media (max-width: 768px) {
  h1 {
    font-size: 18px;
  }
  h2 {
    font-size: 16px;
  }
}

.btn-primary {
  background: #007bff;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  white-space: nowrap;
}

.btn-primary:hover {
  background: #0056b3;
}

.btn-secondary {
  background: #6c757d;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  margin: 10px 0;
}

.btn-delete {
  background: #dc3545;
  color: white;
  border: none;
  padding: 5px 10px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
}

@media (max-width: 768px) {
  .btn-primary {
    padding: 8px 12px;
    font-size: 12px;
  }
}

.tabs {
  display: flex;
  gap: 5px;
  margin-bottom: 15px;
  background: #2d2d2d;
  padding: 10px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.tab {
  background: transparent;
  border: none;
  padding: 8px 12px;
  cursor: pointer;
  border-radius: 4px;
  font-size: 13px;
  white-space: nowrap;
  flex-shrink: 0;
  color: #b0b0b0;
}

.tab.active {
  background: #007bff;
  color: white;
}

.tab-content {
  display: none;
  background: #2d2d2d;
  padding: 15px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  overflow-x: auto;
}

.tab-content.active {
  display: block;
}

@media (max-width: 768px) {
  .tabs {
    gap: 3px;
    padding: 8px;
  }
  
  .tab {
    padding: 6px 10px;
    font-size: 12px;
  }
  
  .tab-content {
    padding: 10px;
  }
}

form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 15px;
  padding-bottom: 15px;
  border-bottom: 1px solid #eee;
}

input, select {
  padding: 10px;
  border: 1px solid #444;
  border-radius: 4px;
  font-size: 14px;
  flex: 1;
  min-width: 120px;
  background: #1a1a1a;
  color: #e0e0e0;
}

input:focus, select:focus {
  outline: none;
  border-color: #007bff;
}

@media (max-width: 768px) {
  input, select {
    min-width: 100%;
    font-size: 16px;
  }
  
  form {
    gap: 8px;
  }
}

.radio-group {
  display: flex;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
}

.radio-group label {
  display: flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  white-space: nowrap;
}

@media (max-width: 768px) {
  .radio-group {
    gap: 15px;
    width: 100%;
  }
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

th, td {
  padding: 10px 8px;
  text-align: left;
  border-bottom: 1px solid #444;
}

th {
  background: #1a1a1a;
  font-weight: 600;
  position: sticky;
  top: 0;
  z-index: 10;
  color: #fff;
}

tr:hover {
  background: #3a3a3a;
}

@media (max-width: 768px) {
  table {
    font-size: 12px;
  }
  
  th, td {
    padding: 8px 4px;
  }
  
  th {
    font-size: 11px;
  }
}

.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.8);
}

.modal-content {
  background: #2d2d2d;
  margin: 5% auto;
  padding: 20px;
  border-radius: 8px;
  width: 90%;
  max-width: 600px;
  max-height: 80vh;
  overflow-y: auto;
}

@media (max-width: 768px) {
  .modal-content {
    margin: 10px;
    padding: 15px;
    width: calc(100% - 20px);
    max-height: 90vh;
  }
}

.close {
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  color: #888;
}

.close:hover {
  color: #fff;
}

.overview-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
  margin-top: 20px;
}

.overview-card {
  background: #1a1a1a;
  padding: 20px;
  border-radius: 8px;
  text-align: center;
  border: 1px solid #444;
}

.overview-card h3 {
  font-size: 14px;
  color: #b0b0b0;
  margin-bottom: 10px;
}

.overview-value {
  font-size: 28px;
  font-weight: bold;
  color: #fff;
  margin: 10px 0;
}

.overview-card small {
  color: #888;
  font-size: 12px;
}

@media (max-width: 768px) {
  .overview-cards {
    grid-template-columns: 1fr;
  }
  
  .overview-value {
    font-size: 24px;
  }
}
