/* ============================================================
   Parts DMS — Custom CSS
   Built on top of AdminLTE 3 / Bootstrap 4
   ============================================================ */

/* --- Fonts --- */
body, .navbar, .sidebar, .main-footer {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif !important;
}

/* --- Custom Navbar --- */
.navbar-custom {
  background: linear-gradient(135deg, #1a3a5c 0%, #0d2137 100%) !important;
  border-bottom: 3px solid #2d7dd2;
}
.navbar-custom .brand-text {
  color: #fff !important;
  font-weight: 600;
  letter-spacing: 0.5px;
}
.navbar-custom .nav-link {
  color: rgba(255,255,255,0.85) !important;
  transition: color 0.2s;
}
.navbar-custom .nav-link:hover {
  color: #fff !important;
}

/* --- Sidebar --- */
.main-sidebar {
  background: #0d1f35 !important;
}
.brand-link {
  background: #0a1827 !important;
  border-bottom: 1px solid #1a3a5c !important;
}
.sidebar .nav-sidebar .nav-link {
  color: rgba(255,255,255,0.75);
  border-radius: 6px;
  margin: 2px 6px;
  transition: all 0.2s ease;
}
.sidebar .nav-sidebar .nav-link:hover {
  background: rgba(45, 125, 210, 0.25) !important;
  color: #fff;
}
.sidebar .nav-sidebar .nav-link.active {
  background: linear-gradient(135deg, #2d7dd2, #1a5ea8) !important;
  color: #fff !important;
  box-shadow: 0 4px 12px rgba(45,125,210,0.4);
}
.nav-header {
  color: rgba(255,255,255,0.4) !important;
  font-size: 10px;
  letter-spacing: 1.5px;
  padding: 12px 16px 4px !important;
}

/* --- Cards --- */
.card {
  border-radius: 10px !important;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08) !important;
  border: none !important;
  margin-bottom: 20px;
}
.card-outline.card-primary { border-top: 3px solid #2d7dd2 !important; }
.card-outline.card-success { border-top: 3px solid #28a745 !important; }
.card-outline.card-warning { border-top: 3px solid #ffc107 !important; }
.card-outline.card-danger  { border-top: 3px solid #dc3545 !important; }
.card-outline.card-info    { border-top: 3px solid #17a2b8 !important; }
.card-outline.card-secondary { border-top: 3px solid #6c757d !important; }

.card-header {
  background: #fff !important;
  border-bottom: 1px solid #e9ecef;
  padding: 14px 20px;
}
.card-title {
  font-weight: 600 !important;
  color: #1a3a5c;
}

/* --- Small Boxes (Dashboard) --- */
.small-box {
  border-radius: 10px !important;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1) !important;
  transition: transform 0.2s, box-shadow 0.2s;
}
.small-box:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15) !important;
}
.small-box .small-box-footer {
  border-radius: 0 0 10px 10px !important;
}

/* --- Tables --- */
.table thead.thead-dark th {
  background: #1a3a5c !important;
  color: #fff !important;
  border: none !important;
  font-weight: 500;
  letter-spacing: 0.3px;
}
.table thead.thead-light th {
  background: #f0f4f8 !important;
  color: #1a3a5c;
  font-weight: 600;
}
.table td {
  vertical-align: middle !important;
}
.table-hover tbody tr:hover {
  background: #f0f7ff !important;
}

/* --- Badges --- */
.badge {
  font-size: 11px;
  letter-spacing: 0.3px;
  padding: 4px 8px;
  border-radius: 4px;
}
.badge-lg { font-size: 13px !important; padding: 6px 12px !important; }
.badge-role {
  background: rgba(255,255,255,0.25);
  color: #fff;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 3px;
}

/* --- Buttons --- */
.btn {
  border-radius: 6px !important;
  font-weight: 500;
  transition: all 0.2s ease;
}
.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}
.btn-xs {
  padding: 2px 8px !important;
  font-size: 11px !important;
}
.btn-primary {
  background: linear-gradient(135deg, #2d7dd2, #1a5ea8) !important;
  border: none !important;
}
.btn-success {
  background: linear-gradient(135deg, #28a745, #1e7e34) !important;
  border: none !important;
}

/* --- Login Page --- */
.login-page {
  background: linear-gradient(135deg, #0d1f35 0%, #1a3a5c 50%, #2d7dd2 100%);
  min-height: 100vh;
}
.login-box {
  width: 380px;
}
.login-logo a {
  color: #fff !important;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.5px;
}
.login-box .card {
  border-radius: 14px !important;
  box-shadow: 0 20px 60px rgba(0,0,0,0.35) !important;
}
.login-box .card-body {
  padding: 30px !important;
}
.login-box-msg {
  color: #666;
  font-size: 14px;
  margin-bottom: 20px !important;
}

/* --- Form Controls --- */
.form-control {
  border-radius: 6px !important;
  border: 1.5px solid #dee2e6;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-control:focus {
  border-color: #2d7dd2 !important;
  box-shadow: 0 0 0 3px rgba(45,125,210,0.15) !important;
}
.custom-file-input:lang(en) ~ .custom-file-label::after { content: "Browse"; }

/* --- Callout --- */
.callout {
  border-radius: 8px !important;
}

/* --- Notification bell badge animation --- */
.navbar-badge {
  animation: pulse-badge 2s infinite;
}
@keyframes pulse-badge {
  0%, 100% { transform: scale(1); }
  50%       { transform: scale(1.2); }
}

/* --- Content wrapper --- */
.content-wrapper {
  background: #f4f6fa !important;
}
.content-header h1 {
  font-weight: 700;
  color: #1a3a5c;
}

/* --- Footer --- */
.main-footer {
  background: #fff !important;
  border-top: 1px solid #e9ecef;
  color: #6c757d;
}

/* --- Responsive tweaks --- */
@media (max-width: 576px) {
  .login-box { width: 95vw; }
  .card-tools { margin-top: 8px; }
}

/* --- Reduced motion accessibility --- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
