:root{

    /* Primary Brand Colors */
    --we-primary: #012169;
    --we-primary-dark:#001a52;
    --we-primary-light:#e6ecf6;
    --we-primary-gradient: linear-gradient(135deg,#012169,#0347a6);

    /* Semantic Colors */
    --we-secondary: #64748b;
    --we-success: #76b900;
    --we-success-dark:#5c9400;
    --we-success-light:#eef8d9;

    --we-info: #0ea5e9;
    --we-info-light: #e0f2fe;

    --we-warning: #f59e0b;
    --we-warning-light: #fef3c7;

    --we-danger: #ef4444;
    --we-danger-light: #fee2e2;

    /* Background System */
    --we-body-bg:#f1f5f9;
    --we-card-bg:#ffffff;
    --we-surface-bg:#f8fafc;

    /* Typography */
    --we-heading-text:#0f172a;
    --we-body-text:#334155;
    --we-muted-text:#64748b;

    /* Borders */
    --we-border-color:#e2e8f0;
    --we-border-light:#f1f5f9;

    /* Shadows (modern soft shadows) */
    --we-shadow-sm:0 1px 2px rgba(0,0,0,0.05);
    --we-shadow-md:0 8px 20px rgba(0,0,0,0.06);
    --we-shadow-lg:0 20px 40px rgba(0,0,0,0.08);

    /* Radius System */
    --we-radius-sm:8px;
    --we-radius-md:8px;
    --we-radius-lg:16px;
    --we-radius-xl:20px;

    --we-card-radius:var(--we-radius-md);
    --we-btn-border-radius:var(--we-radius-md);
    --we-dropdown-menu-radius:var(--we-radius-md);

    /* Dropdown */
    --we-dropdown-box-shadow:0 12px 30px rgba(0,0,0,0.12);

    /* Animation */
    --we-transition-fast:150ms ease;
    --we-transition-normal:250ms ease;
    --we-transition-slow:350ms ease;

}

html{
    font-size: 15px;
}

body {
  font-family: "Roboto", sans-serif;
  background: var(--we-body-bg);
}

.card{
    border: none;
    background: var(--we-card-bg);
    border-radius: var(--we-card-radius);
}

.btn{
  border-radius: var(--we-btn-border-radius) !important;
}

.btn-primary{
    background: var(--we-primary-gradient) !important;
    /* border: 1px solid var(--we-primary-gradient) !important; */
    color:#ffffff !important;
}

.btn-outline-primary{
    border: 1px solid var(--we-primary) !important;
    color: var(--we-primary-dark) !important;
}
.btn-outline-primary:hover{
    background: var(--we-primary-gradient) !important;
    border: 1px solid var(--we-primary) !important;
    color:#ffffff !important;
}

.btn-success{
    background: var(--we-success) !important;
    border: 1px solid var(--we-success) !important;
    color:#ffffff !important;
}

.text-primary, a{
    color:var(--we-primary) !important;
}

.text-success{
    color:var(--we-success) !important;
}

.text-secondary{
    color:var(--we-secondary) !important;
}

.text-danger{
    color:var(--we-danger) !important;
}
.text-warning{
    color:var(--we-warning) !important;
}

.form-control:focus {
    border-color: var(--we-primary-gradient);
    box-shadow: none;
}

label{
    color: var(--we-muted-text);
}

  /* Modern Navbar Styles */
  .navbar {
    background: linear-gradient(90deg,#012169,#0347a6);
    padding: 0 !important;
  }

  .navbar-brand {
    font-weight: bold;
    color: #fff !important;
    font-size: 1.5rem;
  }

  .nav-link {
    color: #fff !important;
    transition: color 0.3s;
  }

  .nav-link:hover {
    color: #f0c14b;
  }

  .offcanvas-body {
    background-color: #1f2a44;
    color: #fff;
    padding-top: 2rem;
  }

  .offcanvas-body .nav-link {
    display: block;
    margin-bottom: 0.5rem;
    border-radius: 0.25rem;
    padding: 0.5rem 1rem;
    transition: background 0.3s;
  }

  .offcanvas-body .nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
  }


.dropdown-menu {
    border-radius: var(--we-dropdown-menu-radius);
    border: none;
    box-shadow: var(--we-dropdown-box-shadow);
}

.dropdown-item i {
    margin-right: 8px;
}

.dropdown-toggle::after {
  display: none !important;
}

.navbar .nav-link:hover,
.navbar .dropdown-menu a:hover {
    color: #e0e7ff;
}


.dropdown-menu {
    border-radius: var(--we-dropdown-menu-radius);
    border: none;
    box-shadow: var(--we-dropdown-box-shadow);
}

.dropdown-item i {
    margin-right: 8px;
}

.dropdown-toggle::after {
  display: none !important;
}

@media (max-width: 991.98px) {
  .offcanvas {
    width: 75% !important;
  }
  .offcanvas-backdrop.show {
    backdrop-filter: blur(3px);
    background-color: rgba(0, 0, 0, 0.4);
    }
    .navbar-toggler{
        padding: 5px 0px;
        border: 0;
        font-size: 20px !important;
    }
}
/* Compact & Attractive Table Style */
.table-compact {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  color: #333;
}

/* Header */
.table-compact thead th {
  text-align: left;
  font-weight: 600;
  padding: 6px 8px;
  border-bottom: 2px dashed var(--we-secondary);
  color: var(--we-muted-text);
  background-color: #fafafa;
}

/* Body cells */
.table-compact tbody td {
  padding: 5px 8px;
  border-bottom: 1px dashed var(--we-border-color);
}

/* Row hover effect */
.table-compact tbody tr:hover {
  background-color: var(--we-body-bg);
}

/* Optional: zebra striping */
.table-compact tbody tr:nth-child(even) {
  background-color: var(--we-body-bg);
}

/* Optional: last row without border */
.table-compact tbody tr:last-child td {
  border-bottom: none;
}

/* Base badge */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.4;
  border-radius: 9999px;
  white-space: nowrap;
  border: 1px solid transparent;
}

/* Status colors */
.badge-primary {
  color: var(--we-primary-dark);
  background-color: rgba(102, 126, 234, 0.12);
  border-color: rgba(102, 126, 234, 0.3);
}

.badge-secondary {
  color: var(--we-secondary);
  background-color: rgba(107, 114, 128, 0.12);
  border-color: rgba(107, 114, 128, 0.3);
}

.badge-success {
  color: var(--we-success);
  background-color: rgba(34, 197, 94, 0.12);
  border-color: rgba(34, 197, 94, 0.3);
}

.badge-info {
  color: var(--we-info);
  background-color: rgba(56, 189, 248, 0.12);
  border-color: rgba(56, 189, 248, 0.3);
}

.badge-warning {
  color: var(--we-warning);
  background-color: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.3);
}

.badge-danger {
  color: var(--we-danger);
  background-color: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.3);
}

/* Optional hover polish */
.badge:hover {
  filter: brightness(0.95);
}

/* ===== Horizontal Menu Bar ===== */
.menu-bar .nav-link {
    color: #fff !important;
    padding: 8px 12px;
    font-weight: 500;
    transition: background 0.3s ease;
}

.menu-bar .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.15);
    color: #fff;
}

/* Hover Dropdown */
.menu-bar .dropdown:hover .dropdown-menu {
    display: block;
    margin-top: 0;
    animation: fadeIn 0.3s ease-in-out;
}

.dropdown-item {
    padding: 10px 15px;
    transition: background 0.2s;
}

.dropdown-item:hover {
    background: var(--we-primary-gradient);
    color: #fff !important;
}

.modal-header {
  background: linear-gradient(135deg, #4f46e5, #6366f1);
  color: #FFFFFF;
}
.modal-dialog{
  margin-top: 1rem !important;
}

.btn {
  padding: 0.25rem 1rem;
}
/* Breadcrumb */
  .breadcrumb {
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    font-size: 0.9rem;
  }

  .breadcrumb .breadcrumb-item + .breadcrumb-item::before {
    content: ">";
    color: var(--we-secondary) !important;
  }

  .breadcrumb .breadcrumb-item {
    color: var(--we-secondary) !important;
  }

  .breadcrumb .breadcrumb-item a {
    text-decoration: none;
    color: var(--we-primary) !important;
    transition: color 0.3s;
  }

  .breadcrumb .breadcrumb-item a:hover {
    color: var(--we-primary) !important;
  }

  .breadcrumb .breadcrumb-item:last-child{
    color: var(--we-secondary);
  }

  /* Button at the end */
  .breadcrumb .btn {
    margin-left: auto;
    background-color: #0d6efd;
    color: #fff;
    border-radius: 0.5rem;
    padding: 0.375rem 0.75rem;
    transition: background 0.3s, transform 0.2s;
  }

  .breadcrumb .btn:hover {
    background-color: #0b5ed7;
    transform: translateY(-2px);
  }
/* Plain Pagination */

.pagination {
    gap: 5px;
}

.pagination .page-link {
    border: unset;
    border-radius: 10px;
    padding: 2px 8px;
    font-weight: 500;
    color: #495057 !important;
    background-color: #ffffff;
    transition: all 0.25s ease;
}

.pagination .page-link:hover {
    background-color: #f1f3f5;
    color: #212529;
    border-color: #dee2e6;
    transform: translateY(-1px);
}

.pagination .page-item.active .page-link {
    background-color: var(--we-info);
    border-color: var(--we-info);
    color: #fff !important;
    box-shadow: 0 4px 10px rgba(13,110,253,0.25);
}

.pagination .page-item.disabled .page-link {
    background-color: #f8f9fa;
    color: #adb5bd;
    border-color: #e9ecef;
}


/* sweet-alert */
.my-swal-popup {
  border-radius: 20px;
  background: #ffffff;
  visibility: visible;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.my-confirm-btn {
    background: var(--we-primary-gradient) !important;
    border-color: var(--bs-primary) !important;
    padding: 5px 15px;
    border-radius: 20px !important;
}
.my-cancel-btn {
    background-color: #f8f9fa !important;
    border: 1px solid #babbbc !important;
    color: #000000 !important;
    padding: 5px 15px;
    border-radius: 20px !important;
}

input.form-control {
    border-radius: 10px;
    /* padding: 10px 14px; */
    border: 1px solid #d1d5db;
    transition: 0.3s;
}

/* toast */
.toast-custom {
  border-radius: 8px;
  overflow: hidden;
  min-width: 280px;
}

.toast-progress {
  height: 4px;
  width: 100%;
  background: rgba(0,0,0,0.1);
}

.toast-progress-bar {
  height: 100%;
  width: 100%;
  background: currentColor;
  animation: progress linear forwards;
}

.bg-light-success{
  background: var(--we-success-light);
  border-color: var(--we-success);
}
.bg-light-info{
  background: var(--we-info-light);
  border-color: var(--we-info);
}
.bg-light-danger{
  background: var(--we-danger-light);
  border-color: var(--we-danger);
}
.bg-light-warning{
  background: var(--we-warning-light);
  border-color: var(--we-warning);
}

.notification-badge{
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 6px;
  font-size: 0.6rem;
  font-weight: 600;
  border-radius: 9999px;
  white-space: nowrap;
  color:#ffffff;
}
.notification-action{
  font-size:1.2rem;
  cursor: pointer;
}

@keyframes progress {
  from { width: 100%; }
  to { width: 0%; }
}

@keyframes fadeIn {
    from {
      opacity: 0;
      transform: translateY(10px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
}

@media (max-width: 576px) {
  body {
    font-size: 0.875rem; /* overall font smaller */
  }

  label,
  .form-label {
    font-size: 0.8rem;
  }

  .form-control,
  .form-select {
    font-size: 0.85rem;
    padding: 0.25rem 0.5rem;
    height: calc(1.5em + 0.5rem + 2px);
  }

  textarea.form-control {
    height: auto;
  }

  .btn {
    font-size: 0.85rem;
    padding: 0.25rem 0.6rem;
    line-height: 1.4;
  }

  small,
  .form-text {
    font-size: 0.75rem;
  }
}

