/* Game Tables Manager - Theme System */

:root {
  --gtm-transition: all 0.3s ease;
  --gtm-border-radius: 8px;
  --gtm-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* ==========================================================================
   THEME SETTINGS UI
   ========================================================================== */

.gtm-theme-settings-section {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #ddd;
}

.gtm-theme-settings {
  background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
  border: 1px solid #ddd;
  border-radius: var(--gtm-border-radius);
  padding: 25px;
  margin: 20px 0;
  box-shadow: var(--gtm-shadow);
}

.gtm-theme-settings h3 {
  margin: 0 0 20px 0;
  color: #23282d;
  font-size: 18px;
  font-weight: 600;
  border-bottom: 2px solid #0073aa;
  padding-bottom: 10px;
}

.gtm-theme-selector {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
  flex-wrap: wrap;
  padding: 15px;
  background: rgba(0, 115, 170, 0.05);
  border-radius: 6px;
}

.gtm-theme-selector label {
  font-weight: 600;
  color: #23282d;
}

.gtm-theme-selector select {
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  min-width: 180px;
  background: #fff;
  transition: var(--gtm-transition);
}

.gtm-theme-selector select:focus {
  border-color: #0073aa;
  outline: none;
  box-shadow: 0 0 0 2px rgba(0, 115, 170, 0.1);
}

.gtm-theme-selector .button {
  padding: 8px 16px;
  border-radius: 4px;
  font-weight: 500;
  transition: var(--gtm-transition);
}

.gtm-theme-preview {
  padding: 15px;
  background: rgba(255, 193, 7, 0.1);
  border-radius: 6px;
  border: 1px solid #ffc107;
  margin-bottom: 15px;
}

.gtm-debug-mode {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  background: rgba(108, 117, 125, 0.1);
  border-radius: 4px;
}

.gtm-debug-mode label {
  font-weight: 500;
  color: #495057;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ==========================================================================
   DARK THEME
   ========================================================================== */

.gtm-theme-dark {
  --gtm-bg: #2c3e50;
  --gtm-card: #34495e;
  --gtm-text: #ecf0f1;
  --gtm-muted: #bdc3c7;
  --gtm-border: #4a5f7a;
  --gtm-header-bg: #2c3e50;
  --gtm-hover: #3a4f66;
  --gtm-primary: #3498db;
}

.gtm-theme-dark .gtm-table-container,
.gtm-theme-dark .gtm-year-grid-wrapper {
  background: var(--gtm-card);
  color: var(--gtm-text);
  border-color: var(--gtm-border);
}

.gtm-theme-dark .gtm-table-header {
  background: var(--gtm-header-bg);
  border-color: var(--gtm-border);
}

.gtm-theme-dark .gtm-table th,
.gtm-theme-dark .gtm-enhanced-table th,
.gtm-theme-dark .gtm-year-grid th {
  background: linear-gradient(135deg, #34495e 0%, #2c3e50 100%);
  color: var(--gtm-text);
  border-color: var(--gtm-border);
}

.gtm-theme-dark .gtm-table td,
.gtm-theme-dark .gtm-enhanced-table td,
.gtm-theme-dark .gtm-year-grid td {
  background: var(--gtm-card);
  color: var(--gtm-text);
  border-color: var(--gtm-border);
}

.gtm-theme-dark .gtm-table tbody tr:hover,
.gtm-theme-dark .gtm-enhanced-table tbody tr:hover,
.gtm-theme-dark .gtm-year-grid tbody tr:hover {
  background: var(--gtm-hover);
}

.gtm-theme-dark .gtm-year-link {
  background: linear-gradient(135deg, #34495e 0%, #2c3e50 100%);
  color: var(--gtm-text);
  border-color: var(--gtm-border);
}

.gtm-theme-dark .gtm-year-link:hover {
  background: linear-gradient(135deg, #3a4f66 0%, #34495e 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.gtm-theme-dark .gtm-na-year {
  color: var(--gtm-muted);
  opacity: 0.6;
}

/* ==========================================================================
   SUNSET YELLOW THEME
   ========================================================================== */

.gtm-theme-sunset-yellow {
  --gtm-bg: #fff8e1;
  --gtm-card: #fffbf0;
  --gtm-text: #5d4037;
  --gtm-muted: #8d6e63;
  --gtm-border: #ffcc02;
  --gtm-header-bg: #ff9800;
  --gtm-hover: #ffecb3;
  --gtm-primary: #ff9800;
}

.gtm-theme-sunset-yellow .gtm-table-container,
.gtm-theme-sunset-yellow .gtm-year-grid-wrapper {
  background: var(--gtm-card);
  color: var(--gtm-text);
  border-color: var(--gtm-border);
}

.gtm-theme-sunset-yellow .gtm-table-header {
  background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
  color: white;
}

.gtm-theme-sunset-yellow .gtm-table th,
.gtm-theme-sunset-yellow .gtm-enhanced-table th,
.gtm-theme-sunset-yellow .gtm-year-grid th {
  background: linear-gradient(135deg, #ffb74d 0%, #ff9800 100%);
  color: white;
  border-color: var(--gtm-border);
  text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.gtm-theme-sunset-yellow .gtm-table td,
.gtm-theme-sunset-yellow .gtm-enhanced-table td,
.gtm-theme-sunset-yellow .gtm-year-grid td {
  background: var(--gtm-card);
  color: var(--gtm-text);
  border-color: var(--gtm-border);
}

.gtm-theme-sunset-yellow .gtm-table tbody tr:hover,
.gtm-theme-sunset-yellow .gtm-enhanced-table tbody tr:hover,
.gtm-theme-sunset-yellow .gtm-year-grid tbody tr:hover {
  background: var(--gtm-hover);
}

.gtm-theme-sunset-yellow .gtm-year-link {
  background: linear-gradient(135deg, #ffb74d 0%, #ff9800 100%);
  color: white;
  border-color: var(--gtm-border);
  text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

.gtm-theme-sunset-yellow .gtm-year-link:hover {
  background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 152, 0, 0.4);
}

/* ==========================================================================
   OCEAN BLUE THEME
   ========================================================================== */

.gtm-theme-blue {
  --gtm-bg: #e3f2fd;
  --gtm-card: #f3f8ff;
  --gtm-text: #0d47a1;
  --gtm-muted: #1976d2;
  --gtm-border: #90caf9;
  --gtm-header-bg: #1976d2;
  --gtm-hover: #bbdefb;
  --gtm-primary: #2196f3;
}

.gtm-theme-blue .gtm-table-container,
.gtm-theme-blue .gtm-year-grid-wrapper {
  background: var(--gtm-card);
  color: var(--gtm-text);
  border-color: var(--gtm-border);
}

.gtm-theme-blue .gtm-table-header {
  background: linear-gradient(135deg, #1976d2 0%, #1565c0 100%);
  color: white;
}

.gtm-theme-blue .gtm-table th,
.gtm-theme-blue .gtm-enhanced-table th,
.gtm-theme-blue .gtm-year-grid th {
  background: linear-gradient(135deg, #42a5f5 0%, #1976d2 100%);
  color: white;
  border-color: var(--gtm-border);
  text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.gtm-theme-blue .gtm-table td,
.gtm-theme-blue .gtm-enhanced-table td,
.gtm-theme-blue .gtm-year-grid td {
  background: var(--gtm-card);
  color: var(--gtm-text);
  border-color: var(--gtm-border);
}

.gtm-theme-blue .gtm-table tbody tr:hover,
.gtm-theme-blue .gtm-enhanced-table tbody tr:hover,
.gtm-theme-blue .gtm-year-grid tbody tr:hover {
  background: var(--gtm-hover);
}

.gtm-theme-blue .gtm-year-link {
  background: linear-gradient(135deg, #42a5f5 0%, #1976d2 100%);
  color: white;
  border-color: var(--gtm-border);
  text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

.gtm-theme-blue .gtm-year-link:hover {
  background: linear-gradient(135deg, #1976d2 0%, #1565c0 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(25, 118, 210, 0.4);
}

/* ==========================================================================
   VIBRANT ORANGE THEME
   ========================================================================== */

.gtm-theme-orange {
  --gtm-bg: #fff3e0;
  --gtm-card: #fffaf5;
  --gtm-text: #bf360c;
  --gtm-muted: #d84315;
  --gtm-border: #ffab91;
  --gtm-header-bg: #ff5722;
  --gtm-hover: #ffccbc;
  --gtm-primary: #ff5722;
}

.gtm-theme-orange .gtm-table-container,
.gtm-theme-orange .gtm-year-grid-wrapper {
  background: var(--gtm-card);
  color: var(--gtm-text);
  border-color: var(--gtm-border);
}

.gtm-theme-orange .gtm-table-header {
  background: linear-gradient(135deg, #ff5722 0%, #d84315 100%);
  color: white;
}

.gtm-theme-orange .gtm-table th,
.gtm-theme-orange .gtm-enhanced-table th,
.gtm-theme-orange .gtm-year-grid th {
  background: linear-gradient(135deg, #ff7043 0%, #d84315 100%);
  color: white;
  border-color: var(--gtm-border);
  text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.gtm-theme-orange .gtm-table td,
.gtm-theme-orange .gtm-enhanced-table td,
.gtm-theme-orange .gtm-year-grid td {
  background: var(--gtm-card);
  color: var(--gtm-text);
  border-color: var(--gtm-border);
}

.gtm-theme-orange .gtm-table tbody tr:hover,
.gtm-theme-orange .gtm-enhanced-table tbody tr:hover,
.gtm-theme-orange .gtm-year-grid tbody tr:hover {
  background: var(--gtm-hover);
}

.gtm-theme-orange .gtm-year-link {
  background: linear-gradient(135deg, #ff7043 0%, #ff5722 100%);
  color: white;
  border-color: var(--gtm-border);
  text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

.gtm-theme-orange .gtm-year-link:hover {
  background: linear-gradient(135deg, #ff5722 0%, #d84315 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 87, 34, 0.4);
}

/* ==========================================================================
   RAINBOW GRADIENT THEME
   ========================================================================== */

.gtm-theme-gradient {
  --gtm-bg: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --gtm-card: rgba(255, 255, 255, 0.1);
  --gtm-text: #fff;
  --gtm-muted: rgba(255, 255, 255, 0.8);
  --gtm-border: rgba(255, 255, 255, 0.3);
  --gtm-header-bg: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  --gtm-hover: rgba(255, 255, 255, 0.2);
  --gtm-primary: #f093fb;
}

.gtm-theme-gradient .gtm-table-container,
.gtm-theme-gradient .gtm-year-grid-wrapper {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: var(--gtm-text);
  border-color: var(--gtm-border);
}

.gtm-theme-gradient .gtm-table-header {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  color: white;
}

.gtm-theme-gradient .gtm-table th,
.gtm-theme-gradient .gtm-enhanced-table th,
.gtm-theme-gradient .gtm-year-grid th {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  color: white;
  border-color: var(--gtm-border);
  text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.gtm-theme-gradient .gtm-table td,
.gtm-theme-gradient .gtm-enhanced-table td,
.gtm-theme-gradient .gtm-year-grid td {
  background: rgba(255, 255, 255, 0.1);
  color: var(--gtm-text);
  border-color: var(--gtm-border);
}

.gtm-theme-gradient .gtm-table tbody tr:hover,
.gtm-theme-gradient .gtm-enhanced-table tbody tr:hover,
.gtm-theme-gradient .gtm-year-grid tbody tr:hover {
  background: var(--gtm-hover);
}

.gtm-theme-gradient .gtm-year-link {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.3) 100%);
  color: white;
  border-color: var(--gtm-border);
  text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.gtm-theme-gradient .gtm-year-link:hover {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(240, 147, 251, 0.4);
}

/* ==========================================================================
   CLEAN MINIMAL THEME
   ========================================================================== */

.gtm-theme-minimal {
  --gtm-bg: #ffffff;
  --gtm-card: #ffffff;
  --gtm-text: #2d3748;
  --gtm-muted: #718096;
  --gtm-border: #e2e8f0;
  --gtm-header-bg: #f7fafc;
  --gtm-hover: #edf2f7;
  --gtm-primary: #4299e1;
}

.gtm-theme-minimal .gtm-table-container,
.gtm-theme-minimal .gtm-year-grid-wrapper {
  background: var(--gtm-card);
  color: var(--gtm-text);
  border-color: var(--gtm-border);
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.gtm-theme-minimal .gtm-table-header {
  background: var(--gtm-header-bg);
  border-color: var(--gtm-border);
}
.gtm-theme-minimal .gtm-table th,
.gtm-theme-minimal .gtm-enhanced-table th,
.gtm-theme-minimal .gtm-year-grid th {
  background: var(--gtm-header-bg);
  color: var(--gtm-text);
  border-color: var(--gtm-border);
  font-weight: 600;
}

.gtm-theme-minimal .gtm-table td,
.gtm-theme-minimal .gtm-enhanced-table td,
.gtm-theme-minimal .gtm-year-grid td {
  background: var(--gtm-card);
  color: var(--gtm-text);
  border-color: var(--gtm-border);
}

.gtm-theme-minimal .gtm-table tbody tr:hover,
.gtm-theme-minimal .gtm-enhanced-table tbody tr:hover,
.gtm-theme-minimal .gtm-year-grid tbody tr:hover {
  background: var(--gtm-hover);
}

.gtm-theme-minimal .gtm-year-link {
  background: var(--gtm-card);
  color: var(--gtm-primary);
  border-color: var(--gtm-border);
  font-weight: 500;
}

.gtm-theme-minimal .gtm-year-link:hover {
  background: var(--gtm-primary);
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(66, 153, 225, 0.3);
}

.gtm-theme-minimal .gtm-na-year {
  color: var(--gtm-muted);
  opacity: 0.7;
}

/* ==========================================================================
   RESPONSIVE DESIGN FOR ALL THEMES
   ========================================================================== */

@media (max-width: 768px) {
  .gtm-theme-selector {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  
  .gtm-theme-selector select {
    min-width: auto;
    width: 100%;
  }
  
  .gtm-theme-selector .button {
    width: 100%;
    text-align: center;
  }
}

/* ==========================================================================
   THEME TRANSITIONS
   ========================================================================== */

.gtm-table-container,
.gtm-year-grid-wrapper,
.gtm-table th,
.gtm-table td,
.gtm-enhanced-table th,
.gtm-enhanced-table td,
.gtm-year-grid th,
.gtm-year-grid td,
.gtm-year-link {
  transition: var(--gtm-transition);
}

/* ==========================================================================
   PRINT STYLES FOR ALL THEMES
   ========================================================================== */

@media print {
  .gtm-theme-settings-section {
    display: none !important;
  }
  
  [class*="gtm-theme-"] .gtm-table-container,
  [class*="gtm-theme-"] .gtm-year-grid-wrapper {
    background: white !important;
    color: black !important;
    border: 1px solid black !important;
  }
  
  [class*="gtm-theme-"] .gtm-table th,
  [class*="gtm-theme-"] .gtm-table td,
  [class*="gtm-theme-"] .gtm-enhanced-table th,
  [class*="gtm-theme-"] .gtm-enhanced-table td,
  [class*="gtm-theme-"] .gtm-year-grid th,
  [class*="gtm-theme-"] .gtm-year-grid td {
    background: white !important;
    color: black !important;
    border: 1px solid black !important;
  }
  
  [class*="gtm-theme-"] .gtm-year-link {
    background: white !important;
    color: black !important;
    border: 1px solid black !important;
  }
}

/* ==========================================================================
   ACCESSIBILITY ENHANCEMENTS
   ========================================================================== */

@media (prefers-contrast: high) {
  [class*="gtm-theme-"] {
    --gtm-border: #000 !important;
    --gtm-text: #000 !important;
  }
  
  [class*="gtm-theme-"] .gtm-table th,
  [class*="gtm-theme-"] .gtm-enhanced-table th,
  [class*="gtm-theme-"] .gtm-year-grid th {
    background: #000 !important;
    color: #fff !important;
    border: 2px solid #000 !important;
  }
  
  [class*="gtm-theme-"] .gtm-table td,
  [class*="gtm-theme-"] .gtm-enhanced-table td,
  [class*="gtm-theme-"] .gtm-year-grid td {
    background: #fff !important;
    color: #000 !important;
    border: 2px solid #000 !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  [class*="gtm-theme-"] * {
    transition: none !important;
    animation: none !important;
  }
}

/* ==========================================================================
   THEME LOADING ANIMATION
   ========================================================================== */

.gtm-theme-loading {
  position: relative;
  overflow: hidden;
}

.gtm-theme-loading::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  animation: gtm-theme-shimmer 1.5s infinite;
}

@keyframes gtm-theme-shimmer {
  0% { left: -100%; }
  100% { left: 100%; }
}

/* ==========================================================================
   ADMIN THEME PREVIEW STYLES
   ========================================================================== */

.gtm-admin-theme-preview {
  margin-top: 20px;
  padding: 20px;
  border: 1px solid #ddd;
  border-radius: var(--gtm-border-radius);
  background: #f9f9f9;
}

.gtm-admin-theme-preview h4 {
  margin: 0 0 15px 0;
  color: #23282d;
}

.gtm-admin-theme-preview .gtm-preview-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.gtm-admin-theme-preview .gtm-preview-table th,
.gtm-admin-theme-preview .gtm-preview-table td {
  padding: 8px;
  border: 1px solid #ddd;
  text-align: center;
}

/* ==========================================================================
   NOTIFICATION STYLES FOR THEME SYSTEM
   ========================================================================== */

.gtm-theme-notification {
  position: fixed;
  top: 32px;
  right: 20px;
  padding: 12px 20px;
  border-radius: 4px;
  color: white;
  font-weight: 500;
  z-index: 9999;
  animation: gtm-slide-in 0.3s ease-out;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  min-width: 250px;
}

.gtm-theme-notification.success {
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
}

.gtm-theme-notification.error {
  background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
}

.gtm-theme-notification.info {
  background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
}

@keyframes gtm-slide-in {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* ==========================================================================
   THEME SELECTOR ENHANCEMENTS
   ========================================================================== */

.gtm-theme-selector select option {
  padding: 8px;
  font-size: 14px;
}

.gtm-theme-selector select option[value="dark"]::before {
  content: "🌙 ";
}

.gtm-theme-selector select option[value="sunset-yellow"]::before {
  content: "🌅 ";
}

.gtm-theme-selector select option[value="blue"]::before {
  content: "🌊 ";
}

.gtm-theme-selector select option[value="orange"]::before {
  content: "🔥 ";
}

.gtm-theme-selector select option[value="gradient"]::before {
  content: "🌈 ";
}

.gtm-theme-selector select option[value="minimal"]::before {
  content: "✨ ";
}

/* ==========================================================================
   THEME SPECIFIC ENHANCEMENTS
   ========================================================================== */

/* Dark theme enhancements */
.gtm-theme-dark .gtm-table-header h3 {
  color: #ecf0f1;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

/* Sunset theme enhancements */
.gtm-theme-sunset-yellow .gtm-table-header h3 {
  color: white;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

/* Blue theme enhancements */
.gtm-theme-blue .gtm-table-header h3 {
  color: white;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.4);
}

/* Orange theme enhancements */
.gtm-theme-orange .gtm-table-header h3 {
  color: white;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.4);
}

/* Gradient theme enhancements */
.gtm-theme-gradient .gtm-table-header h3 {
  color: white;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

/* Minimal theme enhancements */
.gtm-theme-minimal .gtm-table-header h3 {
  color: #2d3748;
  font-weight: 600;
}

/* ==========================================================================
   MOBILE RESPONSIVE THEME ADJUSTMENTS
   ========================================================================== */

@media (max-width: 480px) {
  .gtm-theme-settings {
    padding: 15px;
    margin: 15px 0;
  }
  
  .gtm-theme-selector {
    padding: 10px;
  }
  
  .gtm-theme-notification {
    right: 10px;
    left: 10px;
    min-width: auto;
  }
}

/* ==========================================================================
   THEME PERFORMANCE OPTIMIZATIONS
   ========================================================================== */

.gtm-table-container,
.gtm-year-grid-wrapper {
  contain: layout style paint;
}

.gtm-year-link {
  will-change: transform, background-color;
}

/* ==========================================================================
   TABLE PAGE DATE COLUMN HIGHLIGHTING
   ========================================================================== */

/* First column (Day/Date) highlighting for all themes */
.gtm-enhanced-table .gtm-col-0,
.gtm-table .gtm-col-0 {
  font-weight: 700;
  text-align: center;
  background: color-mix(in srgb, var(--gtm-header-bg) 50%, transparent);
  border-right: 2px solid var(--gtm-border);
  position: sticky;
  left: 0;
  z-index: 5;
}

/* Header for first column */
.gtm-enhanced-table th.gtm-col-0,
.gtm-table th.gtm-col-0 {
  background: var(--gtm-header-bg);
  font-weight: 800;
  text-align: center;
  border-right: 2px solid var(--gtm-border);
  position: sticky;
  left: 0;
  z-index: 15;
}

/* ==========================================================================
   THEME-SPECIFIC DATE COLUMN STYLES
   ========================================================================== */

/* Dark Theme */
.gtm-theme-dark .gtm-enhanced-table .gtm-col-0,
.gtm-theme-dark .gtm-table .gtm-col-0 {
  background: linear-gradient(135deg, #34495e 0%, #2c3e50 100%);
  color: var(--gtm-text);
  border-right-color: var(--gtm-border);
}

.gtm-theme-dark .gtm-enhanced-table th.gtm-col-0,
.gtm-theme-dark .gtm-table th.gtm-col-0 {
  background: linear-gradient(135deg, #2c3e50 0%, #1a252f 100%);
  color: var(--gtm-text);
}

/* Sunset Yellow Theme */
.gtm-theme-sunset-yellow .gtm-enhanced-table .gtm-col-0,
.gtm-theme-sunset-yellow .gtm-table .gtm-col-0 {
  background: linear-gradient(135deg, #ffb74d 0%, #ff9800 100%);
  color: white;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
  border-right-color: var(--gtm-border);
}

.gtm-theme-sunset-yellow .gtm-enhanced-table th.gtm-col-0,
.gtm-theme-sunset-yellow .gtm-table th.gtm-col-0 {
  background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
  color: white;
}

/* Ocean Blue Theme */
.gtm-theme-blue .gtm-enhanced-table .gtm-col-0,
.gtm-theme-blue .gtm-table .gtm-col-0 {
  background: linear-gradient(135deg, #42a5f5 0%, #1976d2 100%);
  color: white;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
  border-right-color: var(--gtm-border);
}

.gtm-theme-blue .gtm-enhanced-table th.gtm-col-0,
.gtm-theme-blue .gtm-table th.gtm-col-0 {
  background: linear-gradient(135deg, #1976d2 0%, #1565c0 100%);
  color: white;
}

/* Vibrant Orange Theme */
.gtm-theme-orange .gtm-enhanced-table .gtm-col-0,
.gtm-theme-orange .gtm-table .gtm-col-0 {
  background: linear-gradient(135deg, #ff7043 0%, #ff5722 100%);
  color: white;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
  border-right-color: var(--gtm-border);
}

.gtm-theme-orange .gtm-enhanced-table th.gtm-col-0,
.gtm-theme-orange .gtm-table th.gtm-col-0 {
  background: linear-gradient(135deg, #ff5722 0%, #d84315 100%);
  color: white;
}

/* Rainbow Gradient Theme */
.gtm-theme-gradient .gtm-enhanced-table .gtm-col-0,
.gtm-theme-gradient .gtm-table .gtm-col-0 {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  color: white;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
  border-right-color: var(--gtm-border);
}

.gtm-theme-gradient .gtm-enhanced-table th.gtm-col-0,
.gtm-theme-gradient .gtm-table th.gtm-col-0 {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

/* Clean Minimal Theme */
.gtm-theme-minimal .gtm-enhanced-table .gtm-col-0,
.gtm-theme-minimal .gtm-table .gtm-col-0 {
  background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
  color: var(--gtm-primary);
  font-weight: 700;
  border-right-color: var(--gtm-primary);
}

.gtm-theme-minimal .gtm-enhanced-table th.gtm-col-0,
.gtm-theme-minimal .gtm-table th.gtm-col-0 {
  background: linear-gradient(135deg, #edf2f7 0%, #e2e8f0 100%);
  color: var(--gtm-text);
  border-right-color: var(--gtm-primary);
}

/* ==========================================================================
   HOVER EFFECTS FOR DATE COLUMN
   ========================================================================== */

.gtm-enhanced-table tbody tr:hover .gtm-col-0,
.gtm-table tbody tr:hover .gtm-col-0 {
  transform: scale(1.02);
  box-shadow: 2px 0 8px rgba(0,0,0,0.1);
  z-index: 6;
}

/* ==========================================================================
   RESPONSIVE ADJUSTMENTS FOR DATE COLUMN
   ========================================================================== */

@media (max-width: 768px) {
  .gtm-enhanced-table .gtm-col-0,
  .gtm-table .gtm-col-0,
  .gtm-enhanced-table th.gtm-col-0,
  .gtm-table th.gtm-col-0 {
    min-width: 60px;
    font-size: 0.9rem;
    padding: 8px 10px;
  }
}

@media (max-width: 480px) {
  .gtm-enhanced-table .gtm-col-0,
  .gtm-table .gtm-col-0,
  .gtm-enhanced-table th.gtm-col-0,
  .gtm-table th.gtm-col-0 {
    min-width: 50px;
    font-size: 0.8rem;
    padding: 6px 8px;
  }
}

/* ==========================================================================
   PRINT STYLES FOR DATE COLUMN
   ========================================================================== */

@media print {
  .gtm-enhanced-table .gtm-col-0,
  .gtm-table .gtm-col-0,
  .gtm-enhanced-table th.gtm-col-0,
  .gtm-table th.gtm-col-0 {
    background: #f5f5f5 !important;
    color: #000 !important;
    border-right: 2px solid #000 !important;
  }
}

/* ==========================================================================
   ACCESSIBILITY ENHANCEMENTS FOR DATE COLUMN
   ========================================================================== */

@media (prefers-contrast: high) {
  .gtm-enhanced-table .gtm-col-0,
  .gtm-table .gtm-col-0,
  .gtm-enhanced-table th.gtm-col-0,
  .gtm-table th.gtm-col-0 {
    background: #000 !important;
    color: #fff !important;
    border-right: 3px solid #fff !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .gtm-enhanced-table tbody tr:hover .gtm-col-0,
  .gtm-table tbody tr:hover .gtm-col-0 {
    transform: none !important;
    box-shadow: none !important;
  }
}

/* ==========================================================================
   ADDITIONAL DATE COLUMN ENHANCEMENTS
   ========================================================================== */

/* Add subtle animation for date column */
.gtm-enhanced-table .gtm-col-0,
.gtm-table .gtm-col-0 {
  transition: all 0.2s ease;
}

/* Special styling for current date (if applicable) */
.gtm-enhanced-table .gtm-col-0[data-current="true"],
.gtm-table .gtm-col-0[data-current="true"] {
  position: relative;
}

.gtm-enhanced-table .gtm-col-0[data-current="true"]::after,
.gtm-table .gtm-col-0[data-current="true"]::after {
  content: "●";
  position: absolute;
  top: 2px;
  right: 4px;
  color: var(--gtm-success);
  font-size: 0.7rem;
  animation: gtm-pulse 2s infinite;
}

@keyframes gtm-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* Enhanced border styling */
.gtm-enhanced-table .gtm-col-0,
.gtm-table .gtm-col-0 {
  border-right-width: 2px;
  border-right-style: solid;
}

/* Focus styles for accessibility */
.gtm-enhanced-table .gtm-col-0:focus,
.gtm-table .gtm-col-0:focus {
  outline: 2px solid var(--gtm-primary);
  outline-offset: -2px;
}

/* ==========================================================================
   END OF THEME STYLES
   ========================================================================== */