/* TsPanel Custom Styles - Compatible with older browsers */
:root {
  --primary-color: #007bff;
  --success-color: #28a745;
  --warning-color: #ffc107;
  --danger-color: #dc3545;
  --dark-color: #343a40;
  --light-color: #f8f9fa;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f5f5f5;
}

.logo {
  height: 50px;
  width: auto;
}

.card {
  border: none;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease-in-out;
}

.card:hover {
  transform: translateY(-2px);
}

.btn {
  border-radius: 8px;
  font-weight: 500;
  transition: all 0.2s ease-in-out;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.form-control {
  border-radius: 8px;
  border: 2px solid #e9ecef;
  transition: border-color 0.2s ease-in-out;
}

.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.alert {
  border-radius: 8px;
  border: none;
}

.progress {
  height: 8px;
  border-radius: 4px;
}

.accordion-button {
  border-radius: 8px !important;
}

.modal-content {
  border-radius: 10px;
  border: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .logo {
    height: 40px;
  }

  .card-body {
    padding: 1rem;
  }

  h1 {
    font-size: 1.5rem;
  }
}

/* Loading animation */
.spinner-border-sm {
  width: 1rem;
  height: 1rem;
}

/* Custom badge styles */
.badge {
  font-size: 0.75em;
  padding: 0.35em 0.65em;
}

/* Form validation styles */
.is-invalid {
  border-color: var(--danger-color);
}

.is-valid {
  border-color: var(--success-color);
}

/* Custom scrollbar for logs */
.accordion-body {
  max-height: 300px;
  overflow-y: auto;
}

.accordion-body::-webkit-scrollbar {
  width: 6px;
}

.accordion-body::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

.accordion-body::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 3px;
}

.accordion-body::-webkit-scrollbar-thumb:hover {
  background: #555;
}
