/* 
 * Custom Theme Override for Usagi
 * Professional Dark Slate Theme
 */

:root,
[data-bs-theme="light"] {
  /* Primary - Teal */
  --bs-primary: #0891b2;
  --bs-primary-rgb: 8, 145, 178;
  --bs-primary-text-emphasis: #155e75;
  --bs-primary-bg-subtle: #cffafe;
  --bs-primary-border-subtle: #67e8f9;

  /* Secondary - Slate Gray */
  --bs-secondary: #64748b;
  --bs-secondary-rgb: 100, 116, 139;

  /* Success */
  --bs-success: #16a34a;
  --bs-success-rgb: 22, 163, 74;

  /* Info - Sky Blue */
  --bs-info: #0284c7;
  --bs-info-rgb: 2, 132, 199;

  /* Warning */
  --bs-warning: #d97706;
  --bs-warning-rgb: 217, 119, 6;

  /* Danger */
  --bs-danger: #dc2626;
  --bs-danger-rgb: 220, 38, 38;

  /* Link colors */
  --bs-link-color: #0891b2;
  --bs-link-color-rgb: 8, 145, 178;
  --bs-link-hover-color: #0e7490;
  --bs-link-hover-color-rgb: 14, 116, 144;
}

/* Override Bootstrap primary button */
.btn-primary {
  --bs-btn-bg: #0891b2;
  --bs-btn-border-color: #0891b2;
  --bs-btn-hover-bg: #0e7490;
  --bs-btn-hover-border-color: #155e75;
  --bs-btn-active-bg: #155e75;
  --bs-btn-active-border-color: #164e63;
  --bs-btn-disabled-bg: #0891b2;
  --bs-btn-disabled-border-color: #0891b2;
}

.btn-outline-primary {
  --bs-btn-color: #0891b2;
  --bs-btn-border-color: #0891b2;
  --bs-btn-hover-bg: #0891b2;
  --bs-btn-hover-border-color: #0891b2;
  --bs-btn-active-bg: #0e7490;
  --bs-btn-active-border-color: #0e7490;
}

/* Focus ring color */
.form-control:focus,
.form-select:focus {
  border-color: #67e8f9;
  box-shadow: 0 0 0 0.25rem rgba(8, 145, 178, 0.25);
}

/* Sidebar Customization - Light Professional */
.sidebar {
  background: #bcb2b2 !important;
  border-right: 1px solid #e5e7eb !important;
  box-shadow: 2px 0 8px rgba(0, 0, 0, 0.05) !important;
}

.sidebar-content {
  background: #1f1f1f !important;
}

.sidebar-brand {
  color: #0891b2 !important;
  font-weight: 700;
}

.sidebar-header {
  color: #ffffff !important;
}

.sidebar-link,
a.sidebar-link {
  background: transparent !important;
  color: #ffffff !important;
  transition: all 0.2s ease;
}

.sidebar-link:hover,
a.sidebar-link:hover {
  color: #60b5ca !important;
  background: #e2e2e235 !important;
}

.sidebar-item.active > .sidebar-link,
.sidebar-item.active > a.sidebar-link {
  color: #000000 !important;
  background: #ffffffe3 !important;
  border-left: 3px solid #0891b2 !important;
  font-weight: 500;
}

.sidebar-link i,
.sidebar-link svg {
  color: #6b7280;
}

.sidebar-link:hover i,
.sidebar-link:hover svg,
.sidebar-item.active > .sidebar-link i,
.sidebar-item.active > .sidebar-link svg {
  color: #0891b2 !important;
}

.sidebar-header {
  color: rgba(255, 255, 255, 0.5) !important;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Navbar */
.navbar-bg {
  background-color: #fff;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

/* Cards */
.card {
  border: none;
  box-shadow:
    0 1px 3px 0 rgba(0, 0, 0, 0.1),
    0 1px 2px -1px rgba(0, 0, 0, 0.1);
  border-radius: 0.5rem;
}

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

/* Tables */
.table-dark {
  --bs-table-bg: #0f172a;
  --bs-table-border-color: #1e293b;
}

/* Badge primary */
.badge.bg-primary {
  background-color: #0891b2 !important;
}

/* Progress bars */
.progress-bar {
  background-color: #0891b2;
}

/* Pagination */
.page-link {
  color: #0891b2;
}

.page-item.active .page-link {
  background-color: #0891b2;
  border-color: #0891b2;
}

.page-link:hover {
  color: #0e7490;
  background-color: #cffafe;
}

.page-link:focus {
  box-shadow: 0 0 0 0.25rem rgba(8, 145, 178, 0.25);
}

/* Links */
a {
  color: #0891b2;
}

a:hover {
  color: #0e7490;
}

/* Alert primary */
.alert-primary {
  --bs-alert-bg: #cffafe;
  --bs-alert-border-color: #67e8f9;
  --bs-alert-color: #155e75;
}

/* Text primary */
.text-primary {
  color: #0891b2 !important;
}

/* Background primary */
.bg-primary {
  background-color: #0891b2 !important;
}

/* Border primary */
.border-primary {
  border-color: #0891b2 !important;
}
