


:root {
  
  --color-bg: #030a05;
  --color-bg-elevated: #071210;
  --color-bg-card: rgba(8, 32, 15, 0.6);
  --color-bg-card-hover: rgba(12, 48, 22, 0.7);
  --color-text: #d4ffe0;
  --color-text-bright: #f0fff4;
  --color-text-muted: #8fb896;
  --color-primary: #22c55e;
  --color-primary-hover: #16a34a;
  --color-primary-light: rgba(34, 197, 94, 0.15);
  --color-accent: #10b981;

  
  --color-success: #22c55e;
  --color-error: #ef4444;
  --color-warning: #f59e0b;
  --color-info: #3b82f6;

  
  --border-subtle: rgba(195, 255, 202, 0.08);
  --border-default: rgba(195, 255, 202, 0.12);
  --border-hover: rgba(195, 255, 202, 0.2);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.15);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.2);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.25);
  --shadow-glow: 0 0 40px rgba(34, 197, 94, 0.15);

  
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;

  
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  
  --font-xs: 0.75rem;
  --font-sm: 0.875rem;
  --font-base: 1rem;
  --font-lg: 1.125rem;
  --font-xl: 1.25rem;
  --font-2xl: 1.5rem;
  --font-3xl: 2rem;
  --font-4xl: 2.5rem;

  
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms ease;
  --transition-spring: 400ms cubic-bezier(0.16, 1, 0.3, 1);

  
  --color-focus: #22c55e;
  --focus-ring: 0 0 0 3px rgba(34, 197, 94, 0.4);
}


html {
  overflow-x: hidden;
  overflow-y: scroll;
  
  height: 100%;
}

body {
  background-color: #030a05;
  
  overflow-x: hidden;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
}

.container {
  flex-grow: 1;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: var(--space-lg, 24px);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}

@media (max-width: 768px) {
  .container {
    padding: var(--space-md, 16px);
  }
}

@media (max-width: 480px) {
  .container {
    padding: var(--space-sm, 12px);
  }
}


.main-footer {
  flex-shrink: 0;
  width: 100%;
  margin-top: auto;
  padding: 30px 0;
}

#main-content {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
}


*,
*::before,
*::after {
  box-sizing: border-box;
}


img,
svg,
video,
iframe,
embed,
object {
  max-width: 100%;
  height: auto;
}


:focus-visible {
  outline: 2px solid #6eff84;
  outline-offset: 2px;
}


@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}


img[loading="lazy"] {
  background-size: 200% 100%;
}




.form-group input.input-error,
.form-group textarea.input-error,
.form-group select.input-error {
  border-color: #dc3545;
  box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.15);
}

.form-group input.input-error:focus,
.form-group textarea.input-error:focus,
.form-group select.input-error:focus {
  border-color: #dc3545;
  box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.25);
}


.form-group input.input-success,
.form-group textarea.input-success,
.form-group select.input-success {
  border-color: #28a745;
  box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.15);
}


.form-group .error-message {
  color: #ff8a8a;
  font-size: 0.85rem;
  margin-top: 5px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.form-group .error-message::before {
  content: "⚠";
  font-size: 0.9em;
}


.form-group label.required::after {
  content: " *";
  color: #ff8a8a;
}


.password-strength {
  height: 4px;
  background: rgba(195, 255, 202, 0.1);
  border-radius: 2px;
  margin-top: 8px;
  overflow: hidden;
}

.password-strength-bar {
  height: 100%;
  width: 0;
  transition:
    width 0.3s ease,
    background-color 0.3s ease;
  border-radius: 2px;
}

.password-strength-bar.weak {
  width: 25%;
  background-color: #dc3545;
}

.password-strength-bar.fair {
  width: 50%;
  background-color: #ffc107;
}

.password-strength-bar.good {
  width: 75%;
  background-color: #28a745;
}

.password-strength-bar.strong {
  width: 100%;
  background-color: #20c997;
}

.password-strength-text {
  font-size: 0.75rem;
  margin-top: 4px;
  opacity: 0.8;
}


.form-text {
  font-size: 0.85rem;
  opacity: 0.7;
  margin-top: 5px;
}


.skeleton {
  background: linear-gradient(90deg,
      rgba(195, 255, 202, 0.05) 25%,
      rgba(195, 255, 202, 0.1) 50%,
      rgba(195, 255, 202, 0.05) 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
  border-radius: 6px;
}

@keyframes skeleton-loading {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}


.skeleton-text {
  height: 1em;
  margin-bottom: 0.5em;
}

.skeleton-heading {
  height: 1.5em;
  width: 60%;
  margin-bottom: 1em;
}

.skeleton-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.skeleton-card {
  height: 200px;
}




.skip-link {
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  background: #1d8038;
  color: #fff;
  padding: 12px 24px;
  border-radius: 0 0 8px 8px;
  z-index: 10000;
  font-weight: 600;
  transition: top 0.3s ease;
  text-decoration: none;
}

.skip-link:focus {
  top: 0;
  outline: none;
}


a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid #6eff84;
  outline-offset: 2px;
}


:focus:not(:focus-visible) {
  outline: none;
}


.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}




.mobile-bottom-nav {
  display: none;
}

@media (max-width: 768px) {
  .mobile-bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 70px;
    background: rgba(3, 10, 5, 0.85);
    
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid rgba(110, 255, 132, 0.15);
    z-index: 1000;
    justify-content: space-around;
    align-items: center;
    padding-bottom: env(safe-area-inset-bottom, 0px);
    
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.4);
    z-index: 999999999999999;
  }

  .mobile-bottom-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #8fb896;
    text-decoration: none;
    flex: 1;
    height: 100%;
    transition: all 0.2s ease;
    gap: 4px;
    position: relative;
  }

  .mobile-bottom-nav a svg {
    width: 26px;
    height: 26px;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: none;
  }

  .mobile-bottom-nav a span {
    font-size: 0.72rem;
    font-weight: 700;
    opacity: 0.8;
    pointer-events: none;
  }

  .mobile-bottom-nav a.active {
    color: #6eff84;
  }

  .mobile-bottom-nav a.active svg {
    transform: translateY(-4px);
    filter: drop-shadow(0 0 10px rgba(110, 255, 132, 0.4));
  }

  .mobile-bottom-nav a.active span {
    opacity: 1;
  }

  .mobile-bottom-nav a:hover,
  .mobile-bottom-nav a:focus {
    color: #c3ffca;
  }

  
  .mobile-bottom-nav a.active::after {
    content: "";
    position: absolute;
    top: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 3px;
    background: var(--color-primary, #6eff84);
    border-radius: 0 0 4px 4px;
    box-shadow: 0 2px 8px rgba(110, 255, 132, 0.6);
  }

  .main-nav,
  .mobile-menu-toggle,
  .mobile-nav {
    display: none !important;
  }

  .header {
    display: flex !important;
    justify-content: flex-end;
    padding: 12px 20px !important;
    background: transparent;
    border-bottom: none;
  }

  .user-profile span.username,
  .user-profile svg.dropdown-arrow {
    display: none;
  }

  .user-profile {
    padding: 4px 10px;
    border: 1px solid var(--border-subtle, rgba(195, 255, 202, 0.08));
    background: var(--color-bg-card, rgba(8, 32, 15, 0.6));
    border-radius: 9999px;
  }

  .user-profile:hover {
    background: var(--color-bg-card-hover, rgba(12, 48, 22, 0.7));
    border-color: var(--border-hover, rgba(195, 255, 202, 0.2));
  }

  body {
    padding-bottom: 70px;
    
  }
}


.top-nav-notification {
  position: relative;
  display: none !important;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(34, 197, 94, 0.1);
  color: #c3ffca;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .top-nav-notification {
    display: flex !important;
    width: 32px;
    height: 32px;
  }

  .top-nav-notification svg {
    width: 18px;
    height: 18px;
  }
}

.top-nav-notification:hover {
  background: rgba(34, 197, 94, 0.2);
  color: #6eff84;
  transform: translateY(-2px);
}

.top-nav-notification svg {
  stroke: currentColor;
}

.top-nav-notification .notification-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: #ef4444;
  color: white;
  font-size: 10px;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: 2px solid #030a05;
  padding: 0 4px;
}


@media (prefers-contrast: more) {
  :root {
    --border-color: #fff;
  }

  .card,
  .btn,
  input,
  select,
  textarea {
    border-width: 2px;
  }
}




@media (pointer: coarse) {

  .btn,
  button,
  [role="button"],
  .main-nav a,
  .mobile-nav-content a {
    min-height: 44px;
    min-width: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  
  input[type="checkbox"],
  input[type="radio"] {
    min-width: 24px;
    min-height: 24px;
  }

  
  .main-nav a,
  .footer-nav a {
    padding: 12px 16px;
  }

  
  .modal-close-btn {
    min-width: 44px;
    min-height: 44px;
    font-size: 1.5rem;
  }
}


@media (max-width: 576px) {
  .container {
    padding: 15px;
  }

  h1 {
    font-size: 1.75rem;
  }

  h2 {
    font-size: 1.4rem;
  }

  .card {
    padding: 15px;
  }

  .btn:not(.small):not(.icon-only) {
    width: 100%;
    justify-content: center;
  }

  .page-actions {
    flex-direction: column;
    gap: 10px;
  }

  
  .form-group {
    margin-bottom: 20px;
  }

  
  input,
  select,
  textarea {
    font-size: 16px;
    
  }
}

@media (max-width: 480px) {
  .header {
    padding: 10px 0;
  }

  .cards-container {
    grid-template-columns: 1fr;
  }

  .data-table {
    font-size: 0.85rem;
  }

  
  .data-table .hide-mobile {
    display: none;
  }
}


@media print {

  .header,
  .main-footer,
  .mobile-nav,
  .skip-link,
  #chatbotContainer {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
  }

  .card {
    border: 1px solid #000;
    box-shadow: none;
  }

  a[href]::after {
    content: " (" attr(href) ")";
    font-size: 0.8em;
  }
}



.service-management-container {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 30px;
  align-items: start;
  margin-top: 30px;
}

.service-sidebar-nav {
  background: rgba(8, 32, 15, 0.6);
  border: 1px solid rgba(195, 255, 202, 0.12);
  border-radius: 16px;
  padding: 20px;
  position: sticky;
  top: 100px;
}

.service-sidebar-nav h3 {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #8fb896;
  margin-bottom: 15px;
  padding-left: 10px;
}

.service-sidebar-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.service-sidebar-nav li {
  margin-bottom: 5px;
}

.service-sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 15px;
  color: #c3ffca;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.2s ease;
  font-weight: 500;
}

.service-sidebar-nav a:hover,
.service-sidebar-nav a.active {
  background: rgba(34, 197, 94, 0.15);
  color: #6eff84;
}

.service-sidebar-nav a svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  opacity: 0.8;
}

.service-sidebar-nav a:hover svg,
.service-sidebar-nav a.active svg {
  opacity: 1;
}

.service-content {
  min-width: 0;
  
}


.service-content .card {
  width: 100%;
  margin-bottom: 20px;
}

@media (max-width: 1024px) {
  .service-management-container {
    grid-template-columns: 1fr;
  }

  .service-sidebar-nav {
    position: static;
    margin-bottom: 30px;
  }
}


@media (max-width: 768px) {

  
  .mobile-bottom-nav a:hover,
  .mobile-bottom-nav a:focus {
    color: var(--color-text-muted, #8fb896) !important;
  }

  .mobile-bottom-nav a.active:hover,
  .mobile-bottom-nav a.active:focus {
    color: #6eff84 !important;
  }

  
  .cards-container,
  .management-cards {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  .dashboard-hero .welcome-content {
    flex-direction: column;
    text-align: center;
    gap: 15px;
  }

  .dashboard-hero .credits-section {
    flex-direction: column;
    text-align: center;
    width: 100%;
    margin-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-left: none;
    padding-top: 15px;
    padding-left: 0;
  }

  
  .data-table,
  .data-table thead,
  .data-table tbody,
  .data-table th,
  .data-table td,
  .data-table tr {
    display: block;
  }

  .data-table thead tr {
    position: absolute;
    top: -9999px;
    left: -9999px;
  }

  
  .data-table tr {
    border: 1px solid rgba(110, 255, 132, 0.15);
    
    border-radius: var(--radius-lg, 16px);
    
    margin-bottom: var(--space-lg, 24px);
    
    background: linear-gradient(145deg,
        rgba(8, 32, 15, 0.7) 0%,
        rgba(5, 20, 10, 0.8) 100%);
    
    box-shadow:
      0 8px 30px rgba(0, 0, 0, 0.4),
      inset 0 1px 0 rgba(195, 255, 202, 0.05);
    padding: 16px;
    position: relative;
    overflow: hidden;
  }

  
  .data-table tr::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #22c55e, rgba(34, 197, 94, 0.2));
  }

  
  .data-table td {
    border: none;
    border-bottom: 1px dashed rgba(110, 255, 132, 0.1);
    padding: 12px 0;
    
    position: relative;
    text-align: right;
    min-height: 45px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    
    gap: 15px;
    
  }

  .data-table td:last-child {
    border-bottom: 0;
    padding-bottom: 4px;
  }

  
  .data-table td:not(.no-tickets-row td)::before {
    position: static;
    transform: none;
    flex: 1;
    
    text-align: left;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--color-text-muted, #8fb896);
    content: attr(data-label);
  }

  
  .data-table td[data-label="Ticket ID"] {
    font-weight: 800;
    font-size: 1.1rem;
    color: #e1ffe6;
  }

  .data-table td[data-label="Subject"] {
    font-weight: 600;
    color: #fff;
  }

  
  .data-table td[data-label="Actions"] .table-actions {
    width: 100%;
    display: flex;
    justify-content: flex-end;
  }

  .data-table td[data-label="Actions"] .btn {
    width: 100%;
    max-width: 200px;
    padding: 14px 20px;
    font-size: 0.95rem;
    border-radius: 12px;
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #6eff84;
  }

  .data-table td[data-label="Actions"] .btn svg {
    margin-right: 8px;
    
  }

  
  .data-table .no-tickets-row td {
    padding: 30px 15px !important;
    text-align: center !important;
    display: block;
  }

  .data-table .no-tickets-row td::before {
    display: none !important;
  }

  
  .page-actions {
    flex-direction: column;
    align-items: stretch !important;
  }

  .page-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .page-actions .tooltip-container {
    width: 100%;
  }

  .page-actions .btn-faq-custom {
    width: 100%;
    border-radius: var(--radius-md, 10px);
  }
}


.table-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.action-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #8fb896;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    cursor: pointer;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.action-btn i, .action-btn svg {
    font-size: 1.1rem;
    color: inherit;
    transition: transform 0.3s ease;
}

.action-btn:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.action-btn-primary { color: #6eff84; border-color: rgba(110, 255, 132, 0.2); }
.action-btn-info { color: #6ecfff; border-color: rgba(110, 207, 255, 0.2); }
.action-btn-danger { color: #ff8a8a; border-color: rgba(255, 138, 138, 0.2); }
.action-btn-warning { color: #ffc107; border-color: rgba(255, 193, 7, 0.2); }

.action-btn-primary:hover { box-shadow: 0 0 15px rgba(110, 255, 132, 0.2); }
.action-btn-info:hover { box-shadow: 0 0 15px rgba(110, 207, 255, 0.2); }
.action-btn-danger:hover { box-shadow: 0 0 15px rgba(255, 138, 138, 0.2); }