@font-face {
  font-family: 'Nunito';
  src: url('fonts/nunito-regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

body {
  background: linear-gradient(to right, #8e0e00, #ff1e56); /* Red gradient */
  font-family: 'Nunito', sans-serif;
  color: #fff;
  margin: 0;
  font-size: 13px;
}

/* Sidebar base style */
.sidebar {
  position: fixed;
  top: 56px;
  left: 0;
  bottom: 0;
  width: 225px;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  padding: 15px;
  overflow-y: auto;
  z-index: 1040;
  transition: transform 0.3s ease-in-out;
}

.sidebar a {
  color: white;
  display: flex;
  flex-direction: row;
  gap: 15px;
  padding: 0.5rem;
  border-radius: 5px;
  text-decoration: none;
}

.sidebar a:hover {
  background: rgba(255, 255, 255, 0.1);
}

.sidebar i {
  width: 25px;
  height: 25px;
  border-radius: 10%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: white;
  color: black;
}

.overlay {
  position: fixed;
  top: 56px;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1030;
  display: none;
}

.content {
  margin-left: 225px;
  padding: 2rem;
  padding-top: 80px;
  margin-bottom: 50px;
}

.topbar {
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  z-index: 1030;
}

.topbar .navbar-brand {
  color: white;
  font-weight: bold;
}

.topbar .navbar-text {
  color: white;
}

.footer {
  position: fixed;
  bottom: 0;
  left: 225px;
  width: calc(100% - 225px);
  background: rgba(0, 0, 0, 0.5);
  color: white;
  text-align: center;
  padding: 10px;
  z-index: 3000;
}

@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
  }

  .sidebar.active {
    transform: translateX(0);
  }

  .overlay.active {
    display: block;
  }

  .content {
    margin-left: 0;
  }

  .footer {
    left: 0;
    width: 100%;
  }
}

.form-control {
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid #ccc;
  color: white;
}

.form-control::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.btn-primary {
  background-color: #e60023; /* Red */
  border: none;
}

.breadcrumb-item a {
  text-decoration: none;
  color: white;
}

.table th,
.table td,
.table thead,
.table tfoot {
  background: none;
  color: white;
}

.custom-dashboard-table {
  border-radius: 8px;
  overflow: hidden;
  font-size: 0.8rem;
}

.custom-dashboard-table thead,
.custom-dashboard-table tfoot {
  background: rgba(0, 0, 0, 0.5);
  color: #ffffff;
}

.custom-dashboard-table th,
.custom-dashboard-table td {
  vertical-align: middle;
  text-align: center;
  white-space: nowrap;
}

.custom-dashboard-table tbody tr:hover {
  background-color: rgba(255, 255, 255, 0.05);
  transition: background-color 0.3s ease;
}

.custom-dashboard-table .btn {
  padding: 4px 8px;
  font-size: 0.8rem;
}

.table-responsive {
  border-radius: 12px;
  overflow-x: auto;
  margin-bottom: 1rem;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.2);
}

.pagination li a,
.pagination li span {
  background-color: #212529;
  color: #fff;
  border: 1px solid #495057;
}

.pagination li.active span {
  background-color: #e60023;
  border-color: #e60023;
}

/* Modal Overlay */
.modal-backdrop {
  background-color: rgba(0, 0, 0, 0.8);
}

/* Modal Container */
.modal-content {
  background: linear-gradient(to right, #8e0e00, #ff1e56); /* Red gradient */
  font-size: 12px;
  transition: background-color 0.3s ease;
  border: 1px solid #333;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6);
  padding: 1rem;
  z-index: 99 !important;
}

/* Modal Header */
.modal-header {
  border-bottom: 1px solid #444;
  background: rgba(0, 0, 0, 0.5);
  color: #ffffff;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
}

/* Modal Title */
.modal-title {
  font-weight: bold;
  font-size: 1.2rem;
}

/* Modal Body */
.modal-body {
  padding: 1rem;
}

/* Modal Footer */
.modal-footer {
  border-top: 1px solid #444;
  background: rgba(0, 0, 0, 0.5);
  color: #ffffff;
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
}

/* Buttons */
.modal-footer .btn {
  padding: 6px 14px;
  border-radius: 6px;
  font-weight: 500;
}

.modal-footer .btn-primary {
  background-color: #e60023;
  border-color: #e60023;
}

.modal-footer .btn-secondary {
  background-color: #444;
  border-color: #444;
  color: #ccc;
}

.modal-footer .btn:hover {
  opacity: 0.9;
}

/* Close button (X) */
.modal-header .btn-close {
  filter: invert(1);
}

.is-invalid {
  border-color: #dc3545;
}

.is-valid {
  border-color: #28a745;
}

/* Pagination container */
.pagination-controls {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

/* Pagination links */
.pagination-controls ul {
  list-style: none;
  padding: 0;
  display: flex;
  gap: 6px;
}

.pagination-controls li {
  display: inline-block;
}

.pagination-controls li a {
  display: inline-block;
  padding: 8px 12px;
  background-color: #f8f9fa;
  color: #e60023;
  text-decoration: none;
  border: 1px solid #dee2e6;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.pagination-controls li a:hover {
  background-color: #e60023;
  color: white;
}

.pagination-controls li.current a {
  background-color: #e60023;
  color: white;
  font-weight: bold;
  pointer-events: none;
}

.pagination-controls li.disabled a {
  color: #6c757d;
  background-color: #e9ecef;
  cursor: not-allowed;
  pointer-events: none;
}

/* Updated conic gradient with red emphasis */
.red-conic-progress {
  background: conic-gradient(
    #dc3545 50%,   /* Requests (red) */
    #bd2130 25%,   /* Failed (darker red) */
    #ff6f61 25%    /* Success (light red) */
  );
}
