:root {

  --bs-primary: #2563eb;
  --bs-primary-rgb: 37, 99, 235;

  --bs-secondary: #1e3a8a;
  --bs-secondary-rgb: 30, 58, 138;

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

  --bs-info: #0ea5e9;
  --bs-info-rgb: 14, 165, 233;

  --bs-warning: #f59e0b;
  --bs-warning-rgb: 245, 158, 11;

  --bs-danger: #dc2626;
  --bs-danger-rgb: 220, 38, 38;

  --bs-light: #f8fafc;
  --bs-light-rgb: 248, 250, 252;

  --bs-dark: #0f172a;
  --bs-dark-rgb: 15, 23, 42;

  --bs-body-color: #1e293b;
  --bs-body-color-rgb: 30, 41, 59;

  --bs-secondary-color: #64748b;
  --bs-secondary-color-rgb: 100, 116, 139;

  --bs-link-color: var(--bs-primary);
  --bs-link-hover-color: #1d4ed8;

  --bs-body-bg: #f8fafc;
  --bs-border-color: #e2e8f0;

  --bs-box-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --bs-box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  --bs-box-shadow-lg: 0 6px 16px rgba(0, 0, 0, 0.1);
}

.btn-primary {
  background-color: var(--bs-primary);
  border: none;
}
.btn-primary:hover {
  background-color: #1d4ed8;
}
.btn-secondary {
  background-color: var(--bs-secondary);
  border: none;
}
.btn-success {
  background-color: var(--bs-success);
  border: none;
}
.btn-warning {
  background-color: var(--bs-warning);
  border: none;
  color: #000;
}
.btn-danger {
  background-color: var(--bs-danger);
  border: none;
}

.alert-primary,
.badge.bg-primary {
  background-color: var(--bs-primary) !important;
  color: #fff !important;
}
.alert-success,
.badge.bg-success {
  background-color: var(--bs-success) !important;
  color: #fff !important;
}
.alert-warning,
.badge.bg-warning {
  background-color: var(--bs-warning) !important;
  color: #000 !important;
}
.alert-danger,
.badge.bg-danger {
  background-color: var(--bs-danger) !important;
  color: #fff !important;
}
.alert-info,
.badge.bg-info {
  background-color: var(--bs-info) !important;
  color: #fff !important;
}

.table {
  border-color: var(--bs-border-color);
}
.table thead {
  background-color: #f1f5f9;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: #f8fafc;
  min-height: 100vh;
  overflow-x: hidden;
}

.bg-brand {
  background: linear-gradient(135deg, #2563eb, #1e3a8a);
}

.logo {
  width: 150px;
  max-width: 60%;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.btn-primary {
  background-color: #2563eb;
  border: none;
}
.btn-primary:hover {
  background-color: #1d4ed8;
}
.btn-outline-primary:hover {
  background-color: #2563eb;
  color: #fff;
}

.alert {
  border-radius: 10px;
  font-size: 0.9rem;
}
.alert-info {
  background: #e0f2fe;
  border: none;
  color: #0c4a6e;
}

.sidebar {
  background-color: #1e293b;
  color: #fff;
}

@media (min-width: 992px) {
  .sidebar {
    width: 240px;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    padding: 1rem;
    display: flex;
    flex-direction: column;
  }
  .main {
    margin-left: 240px;
  }
}

.sidebar .brand img {
  width: 100%;
  max-width: 150px;
  margin: 0 auto 2rem;
  display: block;
}

.sidebar .nav-link {
  color: #cbd5e1;
  border-radius: 6px;
  margin-bottom: 0.3rem;
  display: flex;
  align-items: center;
  padding: 0.5rem 0.75rem;
}
.sidebar .nav-link i {
  margin-right: 0.5rem;
  font-size: 1.1rem;
}
.sidebar .nav-link.active,
.sidebar .nav-link:hover {
  background: rgba(255,255,255,0.1);
  color: #fff;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
  gap: 0.75rem;
}
.topbar .search input {
  border: none;
  border-radius: 30px;
  background-color: #e2e8f0;
  padding: 0.5rem 1rem;
  width: 240px;
  font-size: 0.9rem;
}
.topbar .actions i {
  font-size: 1.3rem;
  margin-left: 1rem;
  color: #475569;
  cursor: pointer;
}
.topbar .profile {
  display: flex;
  align-items: center;
  cursor: pointer;
}
.topbar .profile img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  margin-left: 0.5rem;
}

.avatar-initial {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: #fff;
  font-weight: 600;
  flex-shrink: 0;
}
.avatar-stack {
  display: flex;
  align-items: center;
}
.avatar-stack .avatar-initial {
  width: 28px;
  height: 28px;
  font-size: 0.8rem;
  margin-left: -6px;
  border: 2px solid #fff;
}
.avatar-stack .avatar-initial:first-child {
  margin-left: 0;
}

.dropdown-menu {
  font-size: 0.9rem;
  border-radius: 10px;
}
.dropdown-item i {
  color: #475569;
}
.dropdown-item:hover {
  background-color: #f1f5f9;
}

.project-card {
  border: none;
  border-radius: 12px;
  background: #fff;
  padding: 1.25rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  transition: 0.25s;
}
.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.08);
}
.project-card .badge {
  font-size: 0.75rem;
}
.project-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #eff6ff;
  color: #2563eb;
  font-size: 1.5rem;
}
.project-footer {
  border-top: 1px solid #f1f5f9;
  padding-top: 0.75rem;
  margin-top: 0.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.project-footer .small {
  color: #64748b;
}

.form-card {
  background: #fff;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  max-width: 700px;
}
.form-card label {
  font-weight: 500;
  margin-bottom: 0.4rem;
}

.ticket-header {
  background: #fff;
  border-radius: 12px;
  padding: 1rem 1.25rem;
  box-shadow: 0 1px 6px rgba(0,0,0,0.05);
  margin-bottom: 1rem;
}
.ticket-header h5 {
  margin-bottom: 0.25rem;
}
.ticket-header .meta {
  color: #6b7280;
  font-size: 0.9rem;
}

.timeline {
  position: relative;
  padding-left: 2rem;
  margin-top: 1rem;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #e5e7eb;
}
.timeline-item {
  position: relative;
  margin-bottom: 1.5rem;
}
.timeline-item::before {
  content: "";
  position: absolute;
  left: -25px;
  top: 10px;
  width: 12px;
  height: 12px;
  background: #2563eb;
  border-radius: 50%;
}
.timeline-card {
  background: #fff;
  border-radius: 10px;
  padding: 1rem;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}
.timeline-card .header {
  display: flex;
  align-items: center;
  margin-bottom: 0.5rem;
}
.timeline-card img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  margin-right: 0.5rem;
}
.timeline-card .name {
  font-weight: 600;
}
.timeline-card .time {
  font-size: 0.8rem;
  color: #6b7280;
}

.attachment {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.6rem;
  background: #f1f5f9;
  border-radius: 6px;
  font-size: 0.85rem;
  color: #334155;
  text-decoration: none;
}
.attachment i {
  margin-right: 0.4rem;
}
.reply-box {
  background: #fff;
  border-radius: 10px;
  padding: 1rem;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}

.filter-box {
  background: #fff;
  border-radius: 10px;
  padding: 1rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}
.filter-box h6 {
  font-weight: 600;
  font-size: 0.9rem;
  color: #475569;
  margin-bottom: 0.75rem;
}

.request-card {
  background: #fff;
  border-radius: 12px;
  padding: 1rem;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
  transition: all 0.2s;
}
.request-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 3px 10px rgba(0,0,0,0.07);
}
.request-card .badge {
  font-size: 0.7rem;
  border-radius: 6px;
}
.request-card .meta {
  color: #6b7280;
  font-size: 0.8rem;
}

.badge {
  font-size: 0.75rem;
  border-radius: 6px;
}
hr {
  border-color: #e5e7eb;
}