/* EO Bangkok Metropolitan Custom Styles */
/* EO Brand Colors - White Base Palette: 
   Base White: #FFFFFF
   Base Blue: #0C0C31
   EO Blue: #3D46F2
   Light Accent Blue: #A3A7E4
   Dark Accent Blue: #1D007F
   Primary Pink: #FF346F
   Primary Orange: #FA653C
   Primary Yellow: #EFB82E
   Primary Green: #1EA691
   Primary Gray: #5E617D
*/

:root {
  --base-white: #FFFFFF;
  --base-blue: #0C0C31;
  --eo-blue: #3D46F2;
  --light-accent-blue: #A3A7E4;
  --dark-accent-blue: #1D007F;
  --primary-pink: #FF346F;
  --primary-orange: #FA653C;
  --primary-yellow: #EFB82E;
  --primary-green: #1EA691;
  --primary-gray: #5E617D;
  
  /* Legacy color variables for compatibility */
  --eo-red: var(--primary-pink);
  --eo-red-dark: var(--dark-accent-blue);
  --eo-red-light: var(--base-white);
  --eo-blue-main: var(--eo-blue);
  --eo-green: var(--primary-green);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
}

/* Custom animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-in {
  animation: fadeIn 0.5s ease-out;
}

/* EO Logo styles */
.eo-logo {
  background: transparent;
  mix-blend-mode: screen;
  filter: contrast(1.2) brightness(1.1);
}

/* Additional logo transparency helper */
img[alt*="EO Bangkok Metropolitan"] {
  background: transparent !important;
  mix-blend-mode: screen;
}

/* Status badges */
.status-regular {
  background-color: var(--primary-green);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
  border: 2px solid var(--primary-green);
}

.status-secondary {
  background-color: var(--eo-blue);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
  border: 2px solid var(--eo-blue);
}

.status-affiliate {
  background-color: var(--primary-orange);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
  border: 2px solid var(--primary-orange);
}

/* Forum badges */
.forum-badge {
  background-color: var(--base-blue);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  font-weight: 600;
  border: 2px solid var(--base-blue);
}

/* Hover effects */
.member-row:hover {
  background-color: var(--light-accent-blue);
  transition: background-color 0.2s ease;
}

/* Loading states */
.loading-shimmer {
  background: linear-gradient(-90deg, #f0f0f0 0%, #e0e0e0 50%, #f0f0f0 100%);
  background-size: 400% 400%;
  animation: shimmer 1.2s ease-in-out infinite;
}

@keyframes shimmer {
  0% { background-position: 0% 0%; }
  100% { background-position: -135% 0%; }
}

/* Custom scrollbar */
.custom-scrollbar::-webkit-scrollbar {
  width: 8px;
}

.custom-scrollbar::-webkit-scrollbar-track {
  background: var(--light-accent-blue);
  border-radius: 4px;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
  background: var(--eo-blue);
  border-radius: 4px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
  background: var(--dark-accent-blue);
}

/* Responsive table */
@media (max-width: 768px) {
  .table-responsive {
    font-size: 0.875rem;
  }
  
  .table-responsive th,
  .table-responsive td {
    padding: 0.75rem 1rem;
    vertical-align: middle;
  }
}

/* Table improvements for badge visibility */
.member-table td {
  padding: 1rem 1.5rem;
  vertical-align: middle;
  min-height: 3rem;
}

.member-table th {
  padding: 1rem 1.5rem;
  vertical-align: middle;
}

/* Modal backdrop blur */
.modal-backdrop {
  backdrop-filter: blur(4px);
}

/* Button focus states */
.btn-focus:focus {
  outline: 2px solid var(--eo-blue);
  outline-offset: 2px;
}

/* Error and success messages */
.message-error {
  @apply bg-red-100 border border-red-300 text-red-700 px-4 py-3 rounded mb-4;
}

.message-success {
  @apply bg-green-100 border border-green-300 text-green-700 px-4 py-3 rounded mb-4;
}

/* Print styles */
@media print {
  .no-print {
    display: none !important;
  }
  
  body {
    background: white !important;
  }
}