/* NGT Voting App - Main Stylesheet */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;700&display=swap');

:root {
  /* Color Palette */
  --primary-color: #5b62f4;
  --primary-light: #e8e9ff;
  --primary-dark: #3a3fa9;
  --secondary-color: #f4b740;
  --secondary-light: #fff8e8;
  --accent-color: #e45f9d;
  --success-color: #63c997;
  --success-light: #e8f8f1;
  --error-color: #e45f78;
  --error-light: #fdeef1;
  --warning-color: #f4b740;
  --warning-light: #fff8e8;
  --info-color: #40b2f4;
  --info-light: #e8f6ff;

  /* Neutrals */
  --neutral-50: #f9fafb;
  --neutral-100: #f3f4f6;
  --neutral-200: #e5e7eb;
  --neutral-300: #d1d5db;
  --neutral-400: #9ca3af;
  --neutral-500: #6b7280;
  --neutral-600: #4b5563;
  --neutral-700: #374151;
  --neutral-800: #1f2937;
  --neutral-900: #111827;

  /* Typography */
  --font-sans: 'Poppins', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.025);
  --shadow-inner: inset 0 2px 4px 0 rgba(0, 0, 0, 0.05);

  /* Border Radius */
  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-full: 9999px;
}

/* Base Styles */
html {
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  background-color: var(--neutral-100);
  color: var(--neutral-800);
  line-height: 1.6;
  background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI2MCIgaGVpZ2h0PSI2MCIgdmlld0JveD0iMCAwIDYwIDYwIj48ZyBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPjxnIGZpbGw9IiNmOWZhZmIiIGZpbGwtb3BhY2l0eT0iMC40Ij48cGF0aCBkPSJNMzYgMzRjMC0yLjIgMS44LTQgNC00czQgMS44IDQgNC0xLjggNC00IDQtNC0xLjgtNC00bTAtOGMwLTIuMiAxLjgtNCA0LTRzNCAxLjggNCA0LTEuOCA0LTQgNC00LTEuOC00LTRtLTEyIDBjMC0yLjIgMS44LTQgNC00czQgMS44IDQgNCAxLjggNCA0IDQtNC0xLjgtNC00bTAgOGMwLTIuMiAxLjgtNCA0LTRzNCAxLjggNCA0LTEuOCA0LTQgNC00LTEuOC00LTRtLTEyIDBjMC0yLjIgMS44LTQgNC00czQgMS44IDQgNCAxLjggNCA0IDQtNC0xLjgtNC00bTAtOGMwLTIuMiAxLjgtNCA0LTRzNCAxLjggNCA0LTEuOCA0LTQgNC00LTEuOC00LTQiLz48L2c+PC9nPjwvc3ZnPg==');
  background-attachment: fixed;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-sans);
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: var(--space-md);
  color: var(--neutral-800);
}

h1 {
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -0.025em;
}

h2 {
  font-size: 1.875rem;
  letter-spacing: -0.0125em;
}

h3 {
  font-size: 1.5rem;
}

h4 {
  font-size: 1.25rem;
}

p {
  margin-bottom: var(--space-md);
}

.font-mono, code, pre {
  font-family: var(--font-mono);
}

/* Container */
.ngt-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

/* Header */
.ngt-header {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  color: white;
  padding: var(--space-md) 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-md);
}

.ngt-header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.ngt-logo {
  display: flex;
  align-items: center;
  font-weight: 600;
  font-size: 1.25rem;
  color: white;
  text-decoration: none;
  transition: transform 0.2s ease;
}

.ngt-logo:hover {
  transform: translateY(-1px);
}

.ngt-logo i {
  margin-right: 0.375rem; /* 6px equivalent */
  font-size: 1.5rem;
}

.ngt-nav {
  display: flex;
  gap: var(--space-md);
}

.ngt-nav-link {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
  transition: all 0.2s ease;
  font-weight: 500;
}

.ngt-nav-link:hover {
  background-color: rgba(255, 255, 255, 0.15);
  color: white;
}

.ngt-btn-nav {
  background-color: white;
  color: var(--primary-color);
  font-weight: 600;
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: all 0.2s ease;
}

.ngt-btn-nav:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

/* Card */
.ngt-card {
  background-color: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: var(--space-xl);
  margin-bottom: var(--space-xl);
  border: 1px solid var(--neutral-200);
  transition: all 0.2s ease;
}

.ngt-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.ngt-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-lg);
}

.ngt-card-title {
  margin-bottom: 0;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--neutral-800);
}

/* Buttons */
.ngt-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-sm) var(--space-md);
  font-weight: 500;
  border-radius: var(--radius-md);
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
  outline: none;
}

.ngt-btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.ngt-btn:active {
  transform: translateY(0);
}

.ngt-btn i {
  margin-right: 0.375rem; /* 6px equivalent */
}

.ngt-btn-primary {
  background-color: var(--primary-color);
  color: white;
}

.ngt-btn-primary:hover {
  background-color: var(--primary-dark);
}

.ngt-btn-secondary {
  background-color: var(--secondary-color);
  color: var(--neutral-800);
}

.ngt-btn-secondary:hover {
  background-color: #e5a935;
}

.ngt-btn-success {
  background-color: var(--success-color);
  color: white;
}

.ngt-btn-success:hover {
  background-color: #52a77e;
}

.ngt-btn-danger {
  background-color: var(--error-color);
  color: white;
}

.ngt-btn-danger:hover {
  background-color: #d04864;
}

.ngt-btn-outline {
  background-color: transparent;
  border: 1px solid var(--primary-color);
  color: var(--primary-color);
}

.ngt-btn-outline:hover {
  background-color: var(--primary-light);
}

.ngt-btn-lg {
  padding: var(--space-md) var(--space-lg);
  font-size: 1.125rem;
}

.ngt-btn-full {
  display: flex;
  width: 100%;
}

/* Form elements */
.ngt-form-group {
  margin-bottom: var(--space-lg);
}

.ngt-form-label {
  display: block;
  margin-bottom: var(--space-sm);
  font-weight: 500;
  color: var(--neutral-700);
}

.ngt-form-input,
.ngt-form-select,
.ngt-form-textarea {
  width: 100%;
  padding: var(--space-md);
  border: 1px solid var(--neutral-300);
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--neutral-800);
  background-color: white;
  transition: all 0.2s ease;
}

.ngt-form-input:focus,
.ngt-form-select:focus,
.ngt-form-textarea:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px var(--primary-light);
  outline: none;
}

.ngt-form-input-icon {
  position: relative;
}

.ngt-form-input-icon input {
  padding-left: 2.5rem;
}

.ngt-form-input-icon i {
  position: absolute;
  left: var(--space-md);
  top: 50%;
  transform: translateY(-50%);
  color: var(--neutral-500);
}

/* Status badges */
.ngt-badge {
  display: inline-flex;
  align-items: center;
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: 500;
}

.ngt-badge-yellow {
  background-color: var(--warning-light);
  color: var(--warning-color);
}

.ngt-badge-blue {
  background-color: var(--info-light);
  color: var(--info-color);
}

.ngt-badge-green {
  background-color: var(--success-light);
  color: var(--success-color);
}

.ngt-badge-red {
  background-color: var(--error-light);
  color: var(--error-color);
}

/* Alert component */
.ngt-alert {
  padding: var(--space-md);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-md);
}

.ngt-alert-success {
  background-color: var(--success-light);
  color: var(--success-color);
  border-left: 4px solid var(--success-color);
}

.ngt-alert-error {
  background-color: var(--error-light);
  color: var(--error-color);
  border-left: 4px solid var(--error-color);
}

.ngt-alert-warning {
  background-color: var(--warning-light);
  color: var(--warning-color);
  border-left: 4px solid var(--warning-color);
}

.ngt-alert-info {
  background-color: var(--info-light);
  color: var(--info-color);
  border-left: 4px solid var(--info-color);
}

/* Options list */
.ngt-options-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.ngt-options-list li {
  padding: var(--space-md);
  border-bottom: 1px solid var(--neutral-200);
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.2s ease;
}

.ngt-options-list li:hover {
  background-color: var(--neutral-50);
}

.ngt-options-list .option-text {
  font-weight: 500;
  word-wrap: break-word;
  overflow-wrap: break-word;
  white-space: normal;
}

.ngt-options-list .action-buttons {
  display: flex;
  gap: var(--space-sm);
}

/* Results bars */
.ngt-result-bar {
  height: 10px;
  border-radius: var(--radius-full);
  background-color: var(--neutral-200);
  margin-top: var(--space-sm);
  overflow: hidden;
  width: 100%;
}

.ngt-result-bar-fill {
  height: 100%;
  background: linear-gradient(to right, var(--primary-color), var(--primary-dark));
  border-radius: var(--radius-full);
  transition: width 0.6s ease-out;
}

/* Session ID display */
.ngt-session-id {
  font-family: var(--font-mono);
  background-color: var(--primary-light);
  color: var(--primary-color);
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
}

/* Modal */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal[style*="display: flex"] {
  opacity: 1;
  visibility: visible;
}

.ngt-modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  transition: opacity 0.3s ease;
}

.ngt-modal-content {
  position: relative;
  background-color: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--neutral-200);
  max-width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  animation: modalFadeIn 0.3s ease-out;
  z-index: 1;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Table */
.ngt-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin-bottom: var(--space-lg);
  table-layout: auto;
}

.ngt-table th {
  background-color: var(--neutral-100);
  padding: var(--space-md);
  font-weight: 600;
  color: var(--neutral-700);
  text-align: left;
  border-bottom: 1px solid var(--neutral-300);
}

.ngt-table td {
  padding: var(--space-md);
  border-bottom: 1px solid var(--neutral-200);
}

.ngt-table tbody tr {
  transition: all 0.2s ease;
}

.ngt-table tbody tr:hover {
  background-color: var(--neutral-50);
}

/* Table container for horizontal scrolling on mobile */
.ngt-table-container {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  .ngt-card {
    padding: var(--space-md);
  }

  .ngt-header-inner {
    flex-direction: column;
    gap: var(--space-md);
  }

  /* Make container narrower on tablets */
  .ngt-container {
    padding: 0 var(--space-sm);
    max-width: 95%;
  }
}

/* Mobile optimizations for session.html and vote.html */
@media (max-width: 600px) {
  /* Responsive typography using clamp for key text elements */
  h1 {
    font-size: clamp(1.5rem, 5vw, 2.5rem);
  }

  h2 {
    font-size: clamp(1.25rem, 4vw, 1.875rem);
  }

  h3 {
    font-size: clamp(1.1rem, 3.5vw, 1.5rem);
  }

  .ngt-card-title {
    font-size: clamp(1rem, 3vw, 1.25rem);
  }

  /* Reposition badges/icons below text in options list */
  .ngt-options-list li {
    flex-direction: column;
    align-items: flex-start;
    padding: var(--space-md) var(--space-sm);
    line-height: 1.5;
  }

  /* First div contains text content */
  .ngt-options-list li > div:first-child {
    margin-bottom: var(--space-sm);
    width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
  }

  /* Second div contains badges and action buttons in a horizontal row */
  .ngt-options-list li > div:last-child {
    display: flex;
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-sm);
    width: 100%;
  }

  /* Style for badges within the options list */
  .ngt-options-list li .ngt-badge {
    display: inline-flex;
    align-items: center;
    margin-bottom: var(--space-xs);
  }

  /* Style for action buttons container */
  .ngt-options-list li .action-buttons {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-sm);
    margin-top: var(--space-xs);
  }

  /* Make action buttons more compact on mobile */
  .ngt-options-list li .action-buttons .ngt-btn {
    padding: 4px 8px !important;
    font-size: 0.875rem;
  }

  /* Improve text wrapping and readability */
  .option-text {
    line-height: 1.6;
    margin-bottom: var(--space-xs);
    width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
  }

  /* Ensure text wrapping for all option text in both session and vote pages */
  .ngt-options-list li {
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
  }

  /* Voting form label adjustments */
  .ngt-form-label {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }

  .ngt-form-label i {
    margin-bottom: var(--space-xs);
  }

  /* Results display adjustments */
  .ngt-flex-between {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-sm);
  }

  /* Ensure proper wrapping of content in flex containers */
  .ngt-flex {
    flex-wrap: wrap;
  }

  /* Display badges horizontally */
  .ngt-flex-between .ngt-badge {
    display: inline-flex;
    margin-right: var(--space-sm);
    margin-top: var(--space-xs);
    word-break: keep-all;
    white-space: nowrap;
  }

  /* Ensure session header is responsive */
  @media (max-width: 600px) {
    .ngt-card .ngt-flex-between {
      flex-direction: column;
      align-items: flex-start;
    }

    .ngt-card .ngt-text-right {
      text-align: left;
      margin-top: var(--space-md);
      width: 100%;
    }
  }

  /* Action buttons repositioning */
  .action-buttons {
    display: inline-flex;
    justify-content: flex-start;
  }
}

/* Animations and transitions */
.ngt-fade-in {
  animation: fadeIn 0.3s ease-out;
}

.ngt-scale-in {
  animation: scaleIn 0.3s ease-out;
}

.ngt-slide-in {
  animation: slideIn 0.3s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes scaleIn {
  from { transform: scale(0.95); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

@keyframes slideIn {
  from { transform: translateY(10px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* Utility classes */
.ngt-text-center {
  text-align: center;
}

.ngt-text-primary {
  color: var(--primary-color);
}

.ngt-text-secondary {
  color: var(--secondary-color);
}

.ngt-text-success {
  color: var(--success-color);
}

.ngt-text-error {
  color: var(--error-color);
}

.ngt-mt-sm { margin-top: var(--space-sm); }
.ngt-mt-md { margin-top: var(--space-md); }
.ngt-mt-lg { margin-top: var(--space-lg); }
.ngt-mb-sm { margin-bottom: var(--space-sm); }
.ngt-mb-md { margin-bottom: var(--space-md); }
.ngt-mb-lg { margin-bottom: var(--space-lg); }
.ngt-mr-sm { margin-right: 0.375rem; /* 6px equivalent */ }

.ngt-flex {
  display: flex;
}

.ngt-flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.ngt-flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ngt-grid {
  display: grid;
}

.ngt-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
}

@media (max-width: 768px) {
  .ngt-grid-2 {
    grid-template-columns: 1fr;
  }

  /* Improve table display on tablets */
  .ngt-table th,
  .ngt-table td {
    padding: var(--space-sm);
  }
}

/* Additional mobile optimizations */
@media (max-width: 600px) {
  /* Improve result item display */
  .result-item {
    padding: var(--space-sm);
  }

  /* Adjust badge display in voting page */
  .ngt-form-label i.fas.fa-trophy {
    display: block;
    margin-bottom: var(--space-xs);
  }

  /* Ensure proper spacing in options display section */
  #options-display-section li {
    padding: var(--space-md) var(--space-sm);
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
    line-height: 1.6;
  }

  /* Optimize session page action buttons */
  #option-input-section .action-buttons button {
    padding: 4px 6px !important;
    font-size: 0.75rem !important;
  }

  #option-input-section .action-buttons button i {
    font-size: 0.875rem;
  }

  /* Ensure option text wraps properly */
  .option-text {
    display: block;
    width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
  }

  /* Improve modal content display on small screens */
  .ngt-modal-content {
    padding: var(--space-md);
    max-width: 95%;
    overflow-y: auto;
    max-height: 90vh;
  }

  /* Improve modal button layout on small screens */
  .ngt-modal-content .ngt-flex {
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-sm) !important;
  }

  /* Ensure buttons in modals are properly sized */
  .ngt-modal-content .ngt-btn {
    min-width: 100px;
    margin: var(--space-xs) 0;
  }

  /* Ensure proper spacing in alerts */
  .ngt-alert {
    padding: var(--space-md) var(--space-sm);
  }

  /* Improve form element spacing */
  .ngt-form-input,
  .ngt-form-select,
  .ngt-form-textarea {
    padding: var(--space-sm);
  }

  /* Improve responsive layout for alerts with buttons */
  .ngt-alert .ngt-flex-between {
    flex-direction: column;
    align-items: flex-start;
  }

  .ngt-alert .ngt-flex-between a,
  .ngt-alert .ngt-flex-between button {
    margin-top: var(--space-sm);
    align-self: flex-start;
  }

  /* Ensure admin controls are responsive */
  .ngt-card .ngt-flex {
    flex-wrap: wrap;
  }

  /* Table optimizations for mobile */
  .ngt-table th,
  .ngt-table td {
    padding: var(--space-xs) var(--space-xs);
    font-size: 0.75rem;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  /* Make session ID more compact */
  .ngt-session-id {
    font-size: 0.7rem;
    padding: var(--space-xs) var(--space-xs);
    display: inline-block;
    max-width: 60px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* Make the table container take up less width */
  .ngt-table-container {
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 0 -8px; /* Negative margin to allow table to be slightly wider than container */
    padding: 0 8px; /* Add padding to compensate for negative margin */
  }

  /* Reduce the width of the table on mobile */
  .ngt-table {
    width: auto;
    table-layout: fixed;
    font-size: 0.875rem;
    border-spacing: 0;
    border-collapse: collapse;
  }

  /* Set specific column widths for mobile */
  .ngt-table th:nth-child(1),
  .ngt-table td:nth-child(1) {
    max-width: 60px;
    width: 60px;
  }

  .ngt-table th:nth-child(2),
  .ngt-table td:nth-child(2) {
    max-width: 100px;
    width: 100px;
  }

  .ngt-table th:nth-child(3),
  .ngt-table td:nth-child(3) {
    max-width: 80px;
    width: 80px;
  }

  .ngt-table th:nth-child(4),
  .ngt-table td:nth-child(4) {
    max-width: 50px;
    width: 50px;
  }

  /* Optimize action buttons container */
  .ngt-table td .ngt-flex {
    flex-wrap: wrap;
    gap: 2px !important;
    justify-content: flex-start !important;
  }

  /* Make action buttons smaller and more compact */
  .ngt-table .ngt-btn {
    padding: 3px 6px !important;
    font-size: 0.75rem;
  }

  /* Ensure icons don't overflow */
  .ngt-table .ngt-btn i {
    font-size: 0.875rem;
  }

  /* Hide text-right alignment on mobile to prevent overflow */
  .ngt-table .text-right {
    text-align: left;
  }

  /* Hide email and CSV download buttons on mobile */
  .ngt-table [data-tooltip="Email Instructions"],
  .ngt-table [data-tooltip="Download CSV Data"] {
    display: none;
  }

  /* Hide "Actions" column title on mobile */
  .ngt-table th.text-right {
    display: none;
  }

  /* Make status badges smaller on mobile */
  .ngt-table .ngt-badge {
    font-size: 0.7rem;
    padding: 2px 4px;
    display: inline-block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  /* Format date for mobile screens */
  .ngt-table .date-cell {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 50px;
  }

  /* On mobile, transform the date to show only MM-YY */
  @media (max-width: 480px) {
    .ngt-table .date-cell span {
      display: none;
    }

    .ngt-table .date-cell::before {
      content: attr(data-mobile-date);
      font-size: 0.7rem;
    }

    /* Make container even narrower on phones */
    .ngt-container {
      padding: 0 var(--space-xs);
      max-width: 98%;
    }

    /* Reduce card padding on mobile */
    .ngt-card {
      padding: var(--space-sm);
    }

    /* Extremely small screens (under 360px) */
    @media (max-width: 360px) {
      /* Further reduce column widths */
      .ngt-table th:nth-child(1),
      .ngt-table td:nth-child(1) {
        max-width: 50px;
        width: 50px;
      }

      .ngt-table th:nth-child(2),
      .ngt-table td:nth-child(2) {
        max-width: 80px;
        width: 80px;
      }

      .ngt-table th:nth-child(3),
      .ngt-table td:nth-child(3) {
        max-width: 70px;
        width: 70px;
      }

      .ngt-table th:nth-child(4),
      .ngt-table td:nth-child(4) {
        max-width: 40px;
        width: 40px;
      }

      /* Make buttons even smaller */
      .ngt-table .ngt-btn {
        padding: 2px 4px !important;
        font-size: 0.7rem;
      }

      /* Reduce font size further */
      .ngt-table th,
      .ngt-table td {
        font-size: 0.7rem;
        padding: 2px 4px !important;
      }

      /* Make badges even smaller on very small screens */
      .ngt-table .ngt-badge {
        font-size: 0.65rem;
        padding: 1px 3px;
      }
    }
  }
}
/* End of file */