html,
body {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

h1:focus {
  outline: none;
}

a,
.btn-link {
  color: #0071c1;
}

.btn-primary {
  color: #fff;
  background-color: #1b6ec2;
  border-color: #1861ac;
}

.content {
  padding-top: 1.1rem;
}

.valid.modified:not([type=checkbox]) {
  outline: 1px solid #26b050;
}

.invalid {
  outline: 1px solid red;
}

.validation-message {
  color: red;
}

/* HubAgro Custom Styles */
:root {
  --primary-color: #28a745;
  --secondary-color: #6c757d;
  --success-color: #28a745;
  --info-color: #17a2b8;
  --warning-color: #ffc107;
  --danger-color: #dc3545;
  --light-color: #f8f9fa;
  --dark-color: #343a40;
}

/* Navigation Styles */
.nav-section {
  border-bottom: 1px solid #e9ecef;
  margin-bottom: 0.5rem;
}

.nav-section small {
  font-size: 0.75rem;
  letter-spacing: 0.5px;
}

.nav-link {
  border-radius: 0.375rem;
  margin: 0.125rem 0;
  transition: all 0.15s ease-in-out;
}

.nav-link:hover {
  background-color: rgba(40, 167, 69, 0.1);
  color: var(--primary-color);
}

.nav-link.active {
  background-color: var(--primary-color);
  color: white;
}

/* Card Styles */
.card {
  border: none;
  box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.15);
  transition: all 0.15s ease-in-out;
}

.card:hover {
  box-shadow: 0 0.25rem 2rem 0 rgba(58, 59, 69, 0.2);
}

.card-header {
  background-color: #f8f9fc;
  border-bottom: 1px solid #e3e6f0;
}

/* Border Left Colors */
.border-left-primary {
  border-left: 0.25rem solid var(--primary-color) !important;
}

.border-left-success {
  border-left: 0.25rem solid var(--success-color) !important;
}

.border-left-info {
  border-left: 0.25rem solid var(--info-color) !important;
}

.border-left-warning {
  border-left: 0.25rem solid var(--warning-color) !important;
}

.border-left-danger {
  border-left: 0.25rem solid var(--danger-color) !important;
}

/* Icon Circle */
.icon-circle {
  height: 2.5rem;
  width: 2.5rem;
  border-radius: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon-circle i {
  font-size: 1rem;
}

/* Chart Area */
.chart-area {
  position: relative;
  height: 10rem;
  width: 100%;
}

/* Badge Styles */
.badge {
  font-size: 0.75rem;
  font-weight: 500;
}

/* Table Styles */
.table th {
  border-top: none;
  font-weight: 600;
  color: #5a5c69;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.table td {
  vertical-align: middle;
  border-top: 1px solid #e3e6f0;
}

/* Form Styles */
.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
}

.form-select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
}

/* Button Styles */
.btn {
  font-weight: 500;
  border-radius: 0.375rem;
  transition: all 0.15s ease-in-out;
}

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

.btn-primary:hover {
  background-color: #218838;
  border-color: #1e7e34;
}

/* Alert Styles */
.alert {
  border: none;
  border-radius: 0.375rem;
}

/* Spinner Styles */
.spinner-border-sm {
  width: 1rem;
  height: 1rem;
}

/* Modal Styles */
.modal-content {
  border: none;
  border-radius: 0.5rem;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.modal-header {
  border-bottom: 1px solid #e3e6f0;
  background-color: #f8f9fc;
}

/* Login/Register Pages */
.min-vh-100 {
  min-height: 100vh;
}

.bg-light {
  background-color: #f8f9fc !important;
}

/* Dashboard Specific */
.font-weight-bold {
  font-weight: 700 !important;
}

.text-gray-800 {
  color: #5a5c69 !important;
}

.text-gray-300 {
  color: #dddfeb !important;
}

.text-xs {
  font-size: 0.7rem;
}

.text-uppercase {
  text-transform: uppercase !important;
}

/* Responsive */
@media (max-width: 768px) {
  .container-fluid {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .card-body {
    padding: 1rem;
  }

  .table-responsive {
    font-size: 0.875rem;
  }
}

#blazor-error-ui {
  background: lightyellow;
  bottom: 0;
  box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
  display: none;
  left: 0;
  padding: 0.6rem 1.25rem 0.7rem 1.25rem;
  position: fixed;
  width: 100%;
  z-index: 1000;
}

#blazor-error-ui .dismiss {
  cursor: pointer;
  position: absolute;
  right: 0.75rem;
  top: 0.5rem;
}

.blazor-error-boundary {
  background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHZpZXdCb3g9IjAgMCA1NiA0OSIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTEzLjUgNi41TDIwLjUgNi41TDIwLjUgMjAuNUwxMy41IDIwLjVMMTMuNSA2LjVaIiBmaWxsPSIjRkY1NTU1Ii8+CjxwYXRoIGQ9Ik0yNC41IDYuNUwyMS41IDYuNUwyMS41IDIwLjVMMjQuNSAyMC41TDI0LjUgNi41WiIgZmlsbD0iI0ZGNTVFNSIvPgo8cGF0aCBkPSJNMzUuNSA2LjVMMzIuNSA2LjVMMzIuNSAyMC41TDM1LjUgMjAuNUwzNS41IDYuNVoiIGZpbGw9IiNGRjU1NTUiLz4KPHBhdGggZD0iTTQ2LjUgNi41TDQzLjUgNi41TDQzLjUgMjAuNUw0Ni41IDIwLjVMNDYuNSA2LjVaIiBmaWxsPSIjRkY1NUU1Ii8+CjxwYXRoIGQ9Ik0xMy41IDI0LjVMMjAuNSAyNC41TDIwLjUgMzguNUwxMy41IDM4LjVMMTMuNSAyNC41WiIgZmlsbD0iI0ZGNTVFNSIvPgo8cGF0aCBkPSJNMjQuNSAyNC41TDIxLjUgMjQuNUwyMS41IDM4LjVMMjQuNSAzOC41TDI0LjUgMjQuNVoiIGZpbGw9IiNGRjU1NTUiLz4KPHBhdGggZD0iTTM1LjUgMjQuNUwzMi41IDI0LjVMMzIuNSAzOC41TDM1LjUgMzguNUwzNS41IDI0LjVaIiBmaWxsPSIjRkY1NUU1Ii8+CjxwYXRoIGQ9Ik00Ni41IDI0LjVMNDMuNSAyNC41TDQzLjUgMzguNUw0Ni41IDM4LjVMNDYuNSAyNC41WiIgZmlsbD0iI0ZGNTVFNSIvPgo8L3N2Zz4K) no-repeat 1rem/1.8rem, #b32121;
  padding: 1rem 1rem 1rem 3.7rem;
  color: white;
}

.blazor-error-boundary::after {
  content: " An error has occurred."
}