/* HelpDesk  Professional Theme */

:root {
  --navy: #10243e;
  --blue: #2563eb;
  --light-blue: #dbeafe;
  --text: #1e293b;
  --background: #f1f5fb;
}

body {
  background:
    radial-gradient(
      circle at 85% 10%,
      rgba(59, 130, 246, 0.13),
      transparent 40%
    ),
    linear-gradient(
      135deg,
      #f8fbff 0%,
      #e9f0fa 55%,
      #edf4ff 100%
    );
  color: var(--text);
  min-height: 100vh;
}
/* Premium dashboard cards */

.cards .card {
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(31, 58, 99, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cards .card:nth-child(1) {
  background: linear-gradient(135deg, #ffffff, #e1f3ff);
}

.cards .card:nth-child(2) {
  background: linear-gradient(135deg, #ffffff, #fff0d9);
}

.cards .card:nth-child(3) {
  background: linear-gradient(135deg, #ffffff, #d9f9ed);
}

.cards .card:nth-child(4) {
  background: linear-gradient(135deg, #ffffff, #ffe5eb);
}

.cards .card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 35px rgba(31, 58, 99, 0.14);
}

/* Premium sidebar */

.sidebar {
  background: linear-gradient(
    180deg,
    #142b4c 0%,
    #0c2342 55%,
    #071b35 100%
  );
  box-shadow: 4px 0 25px rgba(10, 30, 60, 0.12);
}

.sidebar .brand {
  color: #ffffff;
  letter-spacing: 0.3px;
}

.sidebar a {
  transition: background 0.2s ease, transform 0.2s ease;
}

.sidebar a:hover {
  background: rgba(255, 255, 255, 0.10);
  transform: translateX(4px);
}

.sidebar a.active {
  background: linear-gradient(90deg, #1764ed, #2358c6);
  box-shadow: 0 4px 14px rgba(0, 80, 200, 0.25);
}

/* Premium requests panel */

.panel {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(220, 230, 245, 0.8);
  border-radius: 18px;
  box-shadow: 0 12px 35px rgba(31, 58, 99, 0.08);
}

.panel h2 {
  color: #142b4c;
  font-weight: 700;
  letter-spacing: -0.3px;
}

.panel table {
  width: 100%;
  border-collapse: collapse;
}

.panel thead {
  background: #f0f5fc;
}

.panel th {
  color: #526987;
  font-weight: 600;
}

.panel tbody tr {
  transition: background 0.2s ease;
}

.panel tbody tr:hover {
  background: #edf5ff;
}

.panel td {
  color: #24344d;
}

/* Professional sidebar navigation icons */

.sidebar a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  min-height: 48px;
  box-sizing: border-box;
}

.sidebar .menu-icon {
  width: 20px;
  height: 20px;
  min-width: 20px;
  flex-shrink: 0;
  display: block;
  color: currentColor;
}

.sidebar a span {
  font-size: 14px;
  line-height: 1.4;
  white-space: nowrap;
}

/* Municipal HelpDesk dashboard banner */
.main > .header {
  position: relative;
  overflow: hidden;
  padding: 32px 36px;
  border-radius: 20px;
  background:
    radial-gradient(circle at 88% 20%, rgba(93, 178, 255, 0.35), transparent 34%),
    linear-gradient(120deg, #102847 0%, #194a86 60%, #2563a8 100%);
  color: #ffffff;
  box-shadow: 0 14px 35px rgba(16, 40, 71, 0.18);
}

.main > .header h1 {
  color: #ffffff;
}

.main > .header .subtitle {
  color: #d8eaff;
}

.main > .header strong {
  color: #ffffff;
}

@media (max-width: 600px) {
  .main > .header {
    padding: 24px;
  }
}

/* Dashboard footer */
.main {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.dashboard-footer {
  margin-top: auto;
  padding: 22px 28px;
  border-top: 1px solid rgba(37, 99, 235, 0.16);
  text-align: center;
  color: #64748b;
}

.footer-brand {
  font-size: 16px;
  font-weight: 700;
  color: #173b68;
  margin-bottom: 7px;
}

.footer-description {
  font-size: 13px;
  margin-bottom: 8px;
}

.footer-copy {
  font-size: 12px;
  color: #8492a6;
}

/* Municipal HelpDesk sidebar logo */
.sidebar .brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 38px;
}

.sidebar .brand-icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: linear-gradient(135deg, #2878f0, #1854bd);
  border-radius: 13px;
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.28);
}

.sidebar .brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.sidebar .brand-name {
  color: #ffffff;
  font-size: 17px;
  font-weight: 700;
}

.sidebar .brand-highlight {
  color: #93c5fd;
  font-size: 17px;
  font-weight: 700;
}

.sidebar .brand-text small {
  color: #a9bed8;
  font-size: 9px;
  font-weight: 400;
  white-space: nowrap;
}

/* Premium sidebar wave */
.sidebar {
  overflow: hidden;
  isolation: isolate;
}

.sidebar::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: -25%;
  bottom: -65px;
  width: 150%;
  height: 220px;
  background: linear-gradient(135deg, #0754bd, #07316d);
  border-radius: 50% 50% 0 0;
  transform: rotate(-12deg);
  opacity: 0.75;
  pointer-events: none;
}

.sidebar::after {
  content: "";
  position: absolute;
  z-index: -1;
  left: -35%;
  bottom: -95px;
  width: 170%;
  height: 210px;
  background: linear-gradient(135deg, #1268d6, #082c60);
  border-radius: 50% 50% 0 0;
  transform: rotate(12deg);
  opacity: 0.55;
  pointer-events: none;
}

/* Premium technology banner */
.main > .header {
  min-height: 165px;
  background:
    radial-gradient(circle at 82% 25%, rgba(150, 215, 255, 0.35), transparent 35%),
    repeating-linear-gradient(
      125deg,
      transparent 0px,
      transparent 38px,
      rgba(255, 255, 255, 0.025) 39px,
      transparent 40px
    ),
    linear-gradient(110deg, #102847 0%, #205b9b 65%, #4b94d1 100%);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.main > .header h1 {
  font-size: 30px;
  letter-spacing: -0.5px;
}

.main > .header .subtitle {
  font-size: 15px;
}

/* Premium total requests card */
.cards .card-total {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
}

.card-total .card-icon {
  width: 66px;
  height: 66px;
  min-width: 66px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 20px;
  background: linear-gradient(135deg, #d7f2ff, #b9e7ff);
  color: #0875c9;
}

.card-total .card-info {
  min-width: 0;
}

.card-total .card-info h3 {
  margin-bottom: 10px;
}

@media (max-width: 1200px) {
  .cards .card-total {
    flex-wrap: wrap;
  }
}

/* Premium dashboard card icon colors */
.cards .card-pending .card-icon {
  background: linear-gradient(135deg, #fff0cf, #ffe0a6);
  color: #e58a00;
}

.cards .card-completed .card-icon {
  background: linear-gradient(135deg, #d4fae9, #a8efd1);
  color: #079b70;
}

.cards .card-priority .card-icon {
  background: linear-gradient(135deg, #ffe0e5, #ffc1cb);
  color: #dc4055;
}

/* Premium ticket status badges */
.panel .tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid transparent;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.panel .status-progress {
  background: #e3efff;
  color: #175cd3;
  border-color: #93c5fd;
}

.panel .status-new {
  background: #eef5ff;
  color: #2563eb;
  border-color: #bfdbfe;
}

/* Refined recent tickets table */
.panel table {
  margin-top: 22px;
  font-size: 14px;
}

.panel thead {
  background: #edf4fc;
}

.panel th {
  padding: 17px 18px;
  color: #405b7c;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.4px;
}

.panel td {
  padding: 19px 18px;
  line-height: 1.5;
}

.panel tbody tr:last-child td {
  border-bottom: none;
}

.panel tbody td:first-child {
  color: #1764b5;
  font-weight: 700;
  white-space: nowrap;
}

