/* =========================================================
   Web Panel — Custom Styles (AdminLTE 3 overrides)
   ========================================================= */

/* --- Sidebar --- */
.main-sidebar {
  box-shadow: 2px 0 8px rgba(0,0,0,0.3) !important;
}

.sidebar-dark-primary .nav-sidebar > .nav-item > .nav-link.active {
  background: linear-gradient(90deg, #4e73df, #375abf);
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(78,115,223,0.4);
}

.brand-link {
  background: rgba(0,0,0,0.2) !important;
  border-bottom: 1px solid rgba(255,255,255,0.08) !important;
}

/* Sidebar avatar */
.sidebar-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4e73df, #224abe);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1rem;
}
.sidebar-avatar-info {
  background: linear-gradient(135deg, #17a2b8, #117a8b);
}

/* --- Navbar --- */
.main-header.navbar {
  box-shadow: 0 1px 8px rgba(0,0,0,0.1) !important;
}

/* --- Content area --- */
.content-wrapper {
  background: #f4f6fb;
}

/* --- Cards --- */
.card {
  border: none;
  border-radius: 10px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.card-outline.card-primary { border-top: 3px solid #4e73df; }
.card-outline.card-success { border-top: 3px solid #1cc88a; }
.card-outline.card-warning { border-top: 3px solid #f6c23e; }
.card-outline.card-danger  { border-top: 3px solid #e74a3b; }
.card-outline.card-info    { border-top: 3px solid #17a2b8; }

.card-header {
  background: transparent;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  padding: 1rem 1.25rem;
}

/* --- Small boxes (stat cards) --- */
.small-box {
  border-radius: 10px !important;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12) !important;
}

.small-box .inner h3 {
  font-size: 2rem;
}

/* --- Tables --- */
.table thead th {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #6c757d;
  border-bottom: 2px solid #dee2e6;
}

.table-hover tbody tr:hover {
  background: #f0f4ff;
}

/* --- Buttons --- */
.btn-xs {
  padding: 2px 8px;
  font-size: 0.75rem;
  line-height: 1.5;
  border-radius: 4px;
}

/* --- Modals --- */
.modal-header .close {
  opacity: 0.8;
}
.modal-header .close:hover {
  opacity: 1;
}
.modal-content {
  border: none;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}
.modal-header {
  border-radius: 12px 12px 0 0;
}

/* --- Forms --- */
.form-control {
  border-radius: 6px;
  border: 1px solid #d1d3e2;
  font-size: 0.9rem;
}

.form-control:focus {
  border-color: #4e73df;
  box-shadow: 0 0 0 0.2rem rgba(78,115,223,0.2);
}

/* --- Badges --- */
.badge {
  font-size: 0.72rem;
  padding: 3px 8px;
  border-radius: 20px;
}

/* --- Toastr override --- */
#toast-container > .toast {
  border-radius: 8px !important;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15) !important;
}

/* --- elFinder integration --- */
.content-wrapper .elfinder {
  border: none;
  border-radius: 0;
}

/* --- Breadcrumb --- */
.breadcrumb {
  background: transparent;
  font-size: 0.85rem;
}

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

/* --- Responsive tweaks --- */
@media (max-width: 576px) {
  .content {
    padding: 0.5rem;
  }
}
