/* ALL LOADERS */

.loader{
    width: 30px;
    height: 30px;
    border-radils: 100%;
    position: relative;
    margin: 0 auto;
  }
  
  /* LOADER 1 */
  
  #loader-1:before, #loader-1:after{
    content: "";
    position: absolute;
    top: -10px;
    left: -10px;
    width: 100%;
    height: 100%;
    border-radius: 100%;
    border: 10px solid transparent;
    border-top-color: #3498db;
  }
  
  #loader-1:before{
    z-index: 100;
    animation: spin 1s infinite;
  }
  
  #loader-1:after{
    border: 10px solid #ccc;
  }
  
  @keyframes spin{
    0%{
      -webkit-transform: rotate(0deg);
      -ms-transform: rotate(0deg);
      -o-transform: rotate(0deg);
      transform: rotate(0deg);
    }
  
    100%{
      -webkit-transform: rotate(360deg);
      -ms-transform: rotate(360deg);
      -o-transform: rotate(360deg);
      transform: rotate(360deg);
    }
  }



  /* ===================================================
   GLOBAL ADMIN DASHBOARD THEME
   Applies to all back-office templates
   Author: Smart Digital LTD
   =================================================== */

/* ========== ROOT VARIABLES ========== */
:root {
  --brand-color: #1abc9c;
  --brand-hover: #16a085;
  --danger-color: #e74c3c;
  --light-bg: #f9fafc;
  --text-dark: #333;
  --text-muted: #6c757d;
  --border-radius: 8px;
}

/* ========== RESET & BASE ========== */
body {
  background-color: var(--light-bg);
  color: var(--text-dark);
  font-family: "Inter", "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: var(--brand-color);
}

a:hover {
  color: var(--brand-hover);
}

/* ========== CARD STYLING ========== */
.card {
  border: none;
  border-radius: var(--border-radius);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  background-color: #fff;
}

.card-header header,
.card-head header {
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--brand-color);
  border-bottom: 2px solid rgba(26, 188, 156, 0.1);
  padding-bottom: 6px;
}

/* ========== BUTTONS ========== */
.btn {
  border-radius: var(--border-radius);
  font-weight: 500;
  transition: 0.3s ease;
}

.btn-primary,
.btn-success {
  background-color: var(--brand-color);
  border: none;
  color: #fff;
}

.btn-primary:hover,
.btn-success:hover {
  background-color: var(--brand-hover);
  transform: translateY(-1px);
}

.btn-default {
  background-color: #f4f5f7;
  color: var(--text-dark);
  border: 1px solid #ddd;
}

.btn-default:hover {
  background-color: #e8e9eb;
}

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

.btn-danger:hover {
  background-color: #c0392b;
}

/* ========== FORM ELEMENTS ========== */
.form-control,
.form-select,
.form-control-textarea {
  border-radius: var(--border-radius);
  border: 1px solid #ddd;
  padding: 10px 12px;
  transition: border-color 0.3s;
  width: 100%;
}

.form-control:focus,
.form-select:focus,
textarea:focus {
  border-color: var(--brand-color);
  box-shadow: 0 0 0 2px rgba(26, 188, 156, 0.15);
  outline: none;
}

label {
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 5px;
}

/* ========== TABLE STYLING ========== */
.table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.table thead {
  background-color: rgba(26, 188, 156, 0.08);
}

.table th {
  font-weight: 600;
  text-align: center;
  color: var(--text-dark);
}

.table td {
  vertical-align: middle;
  font-size: 0.95rem;
}

.table-hover tbody tr:hover {
  background-color: rgba(26, 188, 156, 0.05);
}

/* Responsive overflow for tables */
.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* ========== DATATABLES ========== */
.dataTables_wrapper .dataTables_filter input {
  border-radius: var(--border-radius);
  border: 1px solid #ccc;
  padding: 5px 10px;
}

/* ========== SWITCH TOGGLE ========== */
.switchToggle {
  position: relative;
  display: inline-block;
  width: 46px;
  height: 24px;
}

.switchToggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: #ccc;
  transition: 0.4s;
  border-radius: 24px;
}

.slider:before {
  content: "";
  position: absolute;
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: #fff;
  transition: 0.4s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: var(--brand-color);
}

input:checked + .slider:before {
  transform: translateX(22px);
}

/* ========== IMAGES ========== */
.img-thumbnail {
  border-radius: var(--border-radius);
  object-fit: cover;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
  .btn {
    width: 100%;
    margin-bottom: 8px;
  }

  .table th,
  .table td {
    font-size: 0.9rem;
    white-space: nowrap;
  }

  .card {
    margin-bottom: 1rem;
  }
}

/* ========== UTILITIES ========== */
.text-brand {
  color: var(--brand-color) !important;
}

.text-muted {
  color: var(--text-muted) !important;
}

.mt-3 {
  margin-top: 1rem !important;
}

.rounded-3 {
  border-radius: var(--border-radius);
}
