/* Celtic Horizon Tours - Customer Portal Styles */

/* Import FigTree Font */
@import url('https://fonts.googleapis.com/css2?family=Figtree:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

/* CSS Variables for Celtic Horizon Tours Brand */
:root {
  /* Celtic Horizon Tours Brand Colors - Updated to match live site */
  --cht-primary: #1070FF;
  --cht-primary-hover: #0D5CE6;
  --cht-primary-light: #E6F3FF;
  --cht-primary-dark: #0A56CC;
  
  /* Supporting Colors */
  --cht-secondary: #64748b;
  --cht-accent: #10b981;
  --cht-success: #059669;
  --cht-warning: #f59e0b;
  --cht-error: #dc2626;
  --cht-muted: #6b7280;
  
  /* Celtic Green Accents */
  --cht-green: #22c55e;
  --cht-green-light: #dcfce7;
  --cht-irish-green: #1b7340;
  
  /* Background Colors */
  --cht-bg-primary: #ffffff;
  --cht-bg-secondary: #f7f7f7;
  --cht-bg-tertiary: #f1f5f9;
  --cht-bg-blue-light: #f7f7f7;
  --cht-bg-card: #ffffff;
  
  /* Text Colors */
  --cht-text-primary: #0f172a;
  --cht-text-secondary: #475569;
  --cht-text-muted: #94a3b8;
  --cht-text-white: #ffffff;
  
  /* Border Colors */
  --cht-border: #e2e8f0;
  --cht-border-light: #f1f5f9;
  --cht-border-card: #e5e7eb;
  
  /* Shadows */
  --cht-shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --cht-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  --cht-shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --cht-shadow-card: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  
  /* Border Radius */
  --cht-radius: 0.5rem;
  --cht-radius-lg: 0.75rem;
  --cht-radius-xl: 1rem;
  --cht-radius-card: 0.75rem;
  
  /* Transitions */
  --cht-transition: all 0.2s ease-in-out;
  --cht-transition-fast: all 0.15s ease-in-out;
  
  /* Typography */
  --cht-font-family: 'Figtree', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --cht-font-weight-normal: 400;
  --cht-font-weight-medium: 500;
  --cht-font-weight-semibold: 600;
  --cht-font-weight-bold: 700;
}

/* Reset and Base Styles */
.cht-customer-portal * {
  box-sizing: border-box;
}

.cht-customer-portal {
  font-family: var(--cht-font-family);
  font-size: 14px;
  line-height: 1.6;
  color: var(--cht-text-primary);
  background: linear-gradient(135deg, var(--cht-bg-secondary) 0%, var(--cht-bg-blue-light) 100%);
  min-height: 100vh;
}

/* Portal Layout */
.cht-portal-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.cht-portal-layout {
  display: flex;
  flex: 1;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}

.cht-portal-sidebar {
  width: 280px;
  background: var(--cht-bg-primary);
  border-right: 1px solid var(--cht-border);
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  height: calc(100vh - 140px); /* Adjusted for new header height (90px + 50px nav) */
  overflow-y: hidden; /* Remove scrollbar */
  box-sizing: border-box;
  position: sticky;
  top: 140px; /* Adjusted for new header height */
}

.cht-portal-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.cht-portal-main {
  flex: 1;
  padding: 2rem;
  overflow-y: auto;
}

/* ========================
   BRAND HEADER STYLES
   ======================== */

/* Main Brand Header */
.cht-brand-header {
  background: var(--cht-bg-primary);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.cht-brand-header-content {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem; /* Increased padding */
  height: 90px; /* Increased from 70px for bigger header */
}

.cht-brand-logo {
  flex-shrink: 0;
}

.cht-logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
}

.cht-logo-img {
  height: 58px; /* Increased from 45px (30% bigger: 45 * 1.3 = 58.5) */
  width: auto;
  max-width: 230px; /* Proportionally increased from 180px */
  object-fit: contain;
  /* Removed white filter to show logo in original colors */
}

.cht-logo-placeholder {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.cht-logo-icon {
  font-size: 2rem;
  color: var(--cht-primary);
}

.cht-logo-text {
  font-size: 1.5rem;
  font-weight: var(--cht-font-weight-bold);
  color: var(--cht-primary);
}

.cht-header-actions {
  display: flex;
  align-items: center;
}

.cht-back-to-site {
  color: var(--cht-text-secondary);
  text-decoration: none;
  font-size: 0.875rem;
  padding: 0.5rem 1rem;
  border-radius: var(--cht-radius);
  transition: var(--cht-transition);
}

.cht-back-to-site:hover {
  background: var(--cht-bg-tertiary);
  color: var(--cht-primary);
}

/* Blue Navigation Bar */
.cht-nav-bar {
  background: var(--cht-primary);
  color: var(--cht-text-white);
  position: sticky;
  top: 90px; /* Adjusted for new header height */
  z-index: 999;
}

.cht-nav-bar-content {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  height: 50px;
}

.cht-nav-brand {
  flex-shrink: 0;
}

.cht-portal-title {
  font-size: 1.125rem;
  font-weight: var(--cht-font-weight-semibold);
  color: white;
}

.cht-nav-user {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.cht-balance-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.25rem 1rem;
  background: rgba(255, 255, 255, 0.15);
  border-radius: var(--cht-radius);
  backdrop-filter: blur(10px);
}

.cht-balance-label {
  font-size: 0.625rem;
  color: rgba(255, 255, 255, 0.8);
  text-transform: uppercase;
  letter-spacing: 0.025em;
  margin-bottom: 0.0625rem;
}

.cht-balance-amount {
  font-size: 0.875rem;
  font-weight: var(--cht-font-weight-bold);
  color: white;
}

.cht-user-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  position: relative;
}

.cht-user-avatar {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: var(--cht-font-weight-bold);
  font-size: 1rem;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.cht-user-details {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.cht-user-name {
  font-weight: var(--cht-font-weight-semibold);
  color: white;
  font-size: 0.875rem;
  line-height: 1.2;
}

.cht-user-email {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.2;
}

.cht-user-menu-btn {
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--cht-radius);
  color: white;
  padding: 0.5rem;
  cursor: pointer;
  transition: var(--cht-transition);
}

.cht-user-menu-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
}

.cht-user-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 0.5rem;
  min-width: 220px;
  background: var(--cht-bg-primary);
  border: 1px solid var(--cht-border-card);
  border-radius: var(--cht-radius-lg);
  box-shadow: var(--cht-shadow-lg);
  padding: 0.5rem 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: var(--cht-transition);
  z-index: 1000;
}

.cht-user-dropdown.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.cht-dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  color: var(--cht-text-secondary);
  text-decoration: none;
  font-size: 0.875rem;
  transition: var(--cht-transition);
}

.cht-dropdown-item:hover {
  background: var(--cht-bg-blue-light);
  color: var(--cht-primary);
}

.cht-dropdown-icon {
  font-size: 1rem;
  width: 1rem;
  text-align: center;
}

.cht-dropdown-divider {
  height: 1px;
  background: var(--cht-border);
  margin: 0.5rem 0;
}

/* ========================
   SIDEBAR STYLES
   ======================== */

.cht-sidebar-content {
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 1rem 0; /* Reduced from 1.5rem */
}

/* Welcome Section */
.cht-sidebar-welcome {
  display: flex;
  align-items: center;
  gap: 0.75rem; /* Reduced from 1rem */
  padding: 0 1.5rem 1rem; /* Reduced from 1.5rem */
  border-bottom: 1px solid var(--cht-border-light);
  margin-bottom: 1rem; /* Reduced from 1.5rem */
}

.cht-welcome-avatar {
  width: 2.5rem; /* Reduced from 3rem */
  height: 2.5rem; /* Reduced from 3rem */
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cht-primary) 0%, var(--cht-primary-hover) 100%);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: var(--cht-font-weight-bold);
  font-size: 1rem; /* Reduced from 1.25rem */
  border: 2px solid var(--cht-primary-light); /* Reduced from 3px */
}

.cht-welcome-text h3 {
  font-size: 0.875rem; /* Reduced from 1.125rem */
  font-weight: var(--cht-font-weight-semibold);
  color: var(--cht-text-primary);
  margin: 0 0 0.1rem 0; /* Reduced margin */
}

.cht-welcome-text p {
  font-size: 0.75rem; /* Reduced from 0.875rem */
  color: var(--cht-text-muted);
  margin: 0;
}

/* Sidebar Navigation */
.cht-sidebar-nav {
  flex: 1;
  overflow-y: hidden; /* Remove scrollbar */
  padding-bottom: 0.5rem;
  min-height: 0;
}

.cht-nav-section {
  margin-bottom: 1rem; /* Reduced from 2rem to save space */
}

.cht-nav-heading {
  font-size: 0.7rem;
  font-weight: var(--cht-font-weight-semibold);
  color: var(--cht-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem; /* Reduced from 0.75rem */
  padding: 0 1.5rem;
}

.cht-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.cht-nav-item {
  margin-bottom: 0.25rem;
}

.cht-nav-link {
  display: flex;
  align-items: center;
  gap: 0.5rem; /* Reduced from 1rem */
  padding: 0.5rem 1.5rem; /* Reduced from 0.75rem */
  color: var(--cht-text-secondary);
  text-decoration: none;
  font-size: 0.8rem; /* Reduced from default */
  transition: var(--cht-transition-fast);
  border-left: 3px solid transparent;
}

.cht-nav-link:hover {
  background: var(--cht-bg-blue-light);
  color: var(--cht-primary);
  border-left-color: var(--cht-primary);
}

.cht-nav-link.active {
  background: var(--cht-primary-light);
  color: var(--cht-primary);
  border-left-color: var(--cht-primary);
  font-weight: var(--cht-font-weight-medium);
}

.cht-nav-icon {
  font-size: 1rem; /* Reduced from 1.25rem */
  flex-shrink: 0;
  width: 1.25rem; /* Reduced from 1.5rem */
  text-align: center;
}

.cht-nav-content {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
  flex: 1;
}

.cht-nav-title {
  font-size: 0.875rem; /* 14px - increased from 0.8rem (12.8px) */
  font-weight: var(--cht-font-weight-medium);
  line-height: 1.1;
  color: var(--cht-text-primary);
}

.cht-nav-desc {
  font-size: 0.7rem; /* Reduced from 0.75rem */
  color: var(--cht-text-muted);
  line-height: 1.1; /* Reduced from 1.2 */
  margin-top: 0.1rem; /* Add small top margin for spacing */
}

.cht-nav-link.active .cht-nav-desc {
  color: var(--cht-primary);
  opacity: 0.8;
}

/* Action Navigation Items - Now styled like regular menu items */
.cht-nav-action {
  background: transparent;
  color: var(--cht-text-secondary) !important;
  margin-top: 0;
  border-radius: 0;
  box-shadow: none;
  border-left: 3px solid transparent !important;
}

.cht-nav-action:hover {
  background: var(--cht-bg-blue-light);
  color: var(--cht-primary) !important;
  border-left-color: var(--cht-primary);
  transform: none;
  box-shadow: none;
}

.cht-nav-action.active {
  background: var(--cht-primary-light);
  color: var(--cht-primary) !important;
  border-left-color: var(--cht-primary);
  font-weight: var(--cht-font-weight-medium);
}

.cht-nav-action .cht-nav-content .cht-nav-title {
  color: var(--cht-text-primary) !important;
}

.cht-nav-action .cht-nav-content .cht-nav-desc {
  color: var(--cht-text-muted) !important;
}

.cht-nav-action:hover .cht-nav-content .cht-nav-title,
.cht-nav-action:hover .cht-nav-content .cht-nav-desc {
  color: var(--cht-primary) !important;
}

.cht-nav-action .cht-nav-desc {
  opacity: 1;
}

.cht-nav-action .cht-nav-icon {
  background: transparent;
  border-radius: 0;
  padding: 0;
}

/* Logout link styling - Also styled like regular menu items */
.cht-nav-logout {
  background: transparent !important;
  color: var(--cht-text-secondary) !important;
  margin-top: 0;
  border-radius: 0;
  box-shadow: none;
  border-left: 3px solid transparent !important;
}

.cht-nav-logout:hover {
  background: var(--cht-bg-blue-light) !important;
  color: var(--cht-primary) !important;
  border-left-color: var(--cht-primary);
  transform: none;
  box-shadow: none;
}

.cht-nav-logout .cht-nav-content .cht-nav-title {
  color: var(--cht-text-primary) !important;
}

.cht-nav-logout .cht-nav-content .cht-nav-desc {
  color: var(--cht-text-muted) !important;
}

.cht-nav-logout:hover .cht-nav-content .cht-nav-title,
.cht-nav-logout:hover .cht-nav-content .cht-nav-desc {
  color: var(--cht-primary) !important;
}

.cht-nav-logout .cht-nav-desc {
  opacity: 1;
}

.cht-nav-logout .cht-nav-icon {
  background: transparent;
  border-radius: 0;
  padding: 0;
}



/* ========================
   AUTHENTICATION STYLES
   ======================== */

.cht-auth-container {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 2rem 1rem;
  background: var(--cht-bg-secondary);
  position: relative;
}

.cht-auth-card {
  width: 100%;
  max-width: 400px;
  background: var(--cht-bg-primary);
  border-radius: var(--cht-radius-xl);
  box-shadow: var(--cht-shadow-lg);
  padding: 2rem;
  border: 1px solid var(--cht-border);
}

.cht-auth-header {
  text-align: center;
  margin-bottom: 2rem;
}

.cht-auth-logo {
  margin-bottom: 1.5rem;
  text-align: center;
}

.cht-auth-logo-img {
  height: 80px;
  width: auto;
  max-width: 280px;
  object-fit: contain;
}

.cht-auth-logo-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.cht-auth-logo-icon {
  font-size: 2.5rem;
  color: var(--cht-primary);
}

.cht-auth-logo-text {
  font-size: 1.5rem;
  font-weight: var(--cht-font-weight-bold);
  color: var(--cht-primary);
}

.cht-auth-header h1 {
  font-size: 1.875rem;
  font-weight: var(--cht-font-weight-bold);
  color: var(--cht-text-primary);
  margin: 0 0 0.5rem 0;
}

.cht-auth-header p {
  color: var(--cht-text-secondary);
  margin: 0;
  font-size: 0.875rem;
}

/* Form Styles */
.cht-auth-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.cht-auth-form .cht-form-group {
  margin-bottom: 0;
  position: relative;
  min-height: auto;
}

.cht-form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.cht-form-group label {
  font-weight: 600;
  color: var(--cht-text-primary);
  font-size: 0.875rem;
}

.cht-form-group input,
.cht-form-group select {
  padding: 0.75rem 1rem;
  border: 1px solid var(--cht-border);
  border-radius: var(--cht-radius);
  font-size: 0.875rem;
  transition: var(--cht-transition);
  background: var(--cht-bg-primary);
  color: var(--cht-text-primary);
  width: 100%;
}

.cht-form-group input:focus,
.cht-form-group select:focus {
  outline: none;
  border-color: var(--cht-primary);
  box-shadow: 0 0 0 3px rgb(37 99 235 / 0.1);
}

/* Checkbox Styles */
.cht-form-inline {
  flex-direction: row;
  align-items: center;
  gap: 0.75rem;
}

.cht-checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--cht-text-secondary);
  cursor: pointer;
}

.cht-checkbox-custom {
  width: 1rem;
  height: 1rem;
  border: 1px solid var(--cht-border);
  border-radius: 3px;
  position: relative;
}

input[type="checkbox"]:checked + .cht-checkbox-custom {
  background: var(--cht-primary);
  border-color: var(--cht-primary);
}

input[type="checkbox"]:checked + .cht-checkbox-custom::after {
  content: '✓';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
}

input[type="checkbox"] {
  display: none;
}

/* Button Styles */
.cht-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border: 1px solid transparent;
  border-radius: var(--cht-radius);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: var(--cht-transition);
  min-height: 2.5rem;
}

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

.cht-btn-primary:hover {
  background: var(--cht-primary-hover);
}

.cht-btn-secondary {
  background: var(--cht-bg-tertiary);
  color: var(--cht-text-secondary);
  border-color: var(--cht-border);
}

.cht-btn-secondary:hover {
  background: var(--cht-bg-gray);
  color: var(--cht-text-primary);
}

.cht-btn-block {
  width: 100%;
}

.cht-btn-small {
  padding: 0.5rem 1rem;
  font-size: 0.75rem;
}

.cht-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.cht-btn-loading {
  display: none;
}

.cht-btn:disabled .cht-btn-text {
  display: none;
}

.cht-btn:disabled .cht-btn-loading {
  display: inline;
}

/* Form Links */
.cht-form-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
  font-size: 0.875rem;
}

.cht-form-links a {
  color: var(--cht-primary);
  text-decoration: none;
}

.cht-form-links a:hover {
  text-decoration: underline;
}

.cht-link-separator {
  color: var(--cht-text-muted);
}

/* Message Styles */
.cht-messages {
  margin-top: 1rem;
}

.cht-notification-message {
  padding: 0.75rem 1rem;
  border-radius: var(--cht-radius);
  margin-bottom: 0.75rem;
  font-size: 0.875rem;
}

.cht-notification-message:last-child {
  margin-bottom: 0;
}

.cht-notification-message-success {
  background: #dcfce7;
  color: #166534;
  border: 1px solid #bbf7d0;
}

.cht-notification-message-error {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.cht-notification-message-warning {
  background: #fffbeb;
  color: #92400e;
  border: 1px solid #fed7aa;
}

.cht-notification-message-info {
  background: #eff6ff;
  color: #1e40af;
  border: 1px solid #dbeafe;
}

/* Inline Error Messages */
.error-message {
  display: block;
  color: #dc2626 !important;
  font-size: 0.8125rem !important;
  margin-top: 0.375rem;
  line-height: 1.4;
  font-weight: 400 !important;
  opacity: 1 !important;
  position: relative;
  z-index: 1;
  text-shadow: none !important;
  letter-spacing: normal !important;
  text-transform: none !important;
}

/* Error State Styles */
.cht-form-group input.error,
.cht-form-group select.error {
  border-color: #f87171;
  box-shadow: 0 0 0 1px #f87171;
}

.cht-form-group input.error:focus,
.cht-form-group select.error:focus {
  border-color: #ef4444;
  box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.2);
}

/* Auth Form Specific Error Messages */
.cht-auth-form .error-message,
.cht-auth-card .error-message {
  display: block;
  color: #dc2626 !important;
  font-size: 0.8125rem !important;
  margin-top: 0.375rem;
  line-height: 1.4;
  font-weight: 400 !important;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif !important;
  opacity: 1 !important;
  position: relative;
  z-index: 1;
  background: transparent;
  padding: 0;
  text-align: left;
  width: 100%;
  max-width: 100%;
  text-shadow: none !important;
  letter-spacing: normal !important;
  text-transform: none !important;
}

/* Ensure auth form inputs have proper styling */
.cht-auth-form input[type="email"],
.cht-auth-form input[type="password"] {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  background: #ffffff;
  position: relative;
  z-index: 2;
}

/* Hide placeholder pseudo-elements that might interfere */
.cht-auth-form input.error::placeholder {
  opacity: 0.3;
}

/* Ensure error messages don't overlap with anything */
.cht-auth-form .cht-form-group:has(.error-message) {
  margin-bottom: 0.5rem;
}

/* Override any Avada theme styles that might interfere */
.cht-auth-container .error-message,
.cht-auth-container span.error-message {
  all: unset;
  display: block !important;
  color: #dc2626 !important;
  font-size: 0.8125rem !important;
  margin-top: 0.375rem !important;
  line-height: 1.4 !important;
  font-weight: 400 !important;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif !important;
  opacity: 1 !important;
  position: relative !important;
  z-index: 1 !important;
  background: transparent !important;
  padding: 0 !important;
  text-align: left !important;
  width: 100% !important;
  max-width: 100% !important;
  text-shadow: none !important;
  letter-spacing: normal !important;
  text-transform: none !important;
  visibility: visible !important;
}

/* ========================
   PAGE CONTENT STYLES
   ======================== */

.cht-page-header {
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--cht-border);
}

.cht-page-header h1 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--cht-text-primary);
  margin: 0 0 0.5rem 0;
}

.cht-page-header p {
  color: var(--cht-text-secondary);
  font-size: 1rem;
  margin: 0;
}

/* ========================
   ENGAGING CARD LAYOUTS
   ======================== */

.cht-dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.cht-card {
  background: var(--cht-bg-card);
  border: 1px solid var(--cht-border-light);
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  transition: all 0.2s ease;
  position: relative;
}

.cht-card:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border-color: var(--cht-primary);
}

.cht-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem 0.75rem;
  background: transparent;
  position: relative;
}

.cht-card-title {
  font-size: 1rem;
  font-weight: var(--cht-font-weight-semibold);
  color: var(--cht-text-primary);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.cht-card-icon {
  font-size: 1.25rem;
  color: var(--cht-text-secondary);
}

.cht-card-badge {
  background: var(--cht-primary);
  color: white;
  font-size: 0.75rem;
  font-weight: var(--cht-font-weight-medium);
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  text-transform: uppercase;
  letter-spacing: 0.025em;
}

.cht-card-content {
  padding: 0 1.25rem 1rem;
}

.cht-card-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.cht-stat-item {
  text-align: center;
  padding: 1rem 0.75rem;
  background: var(--cht-bg-tertiary);
  border-radius: 6px;
  border: 1px solid var(--cht-border-light);
}

.cht-stat-number {
  display: block;
  font-size: 1.5rem;
  font-weight: var(--cht-font-weight-bold);
  color: var(--cht-primary);
  margin-bottom: 0.25rem;
}

.cht-stat-label {
  font-size: 0.75rem;
  color: var(--cht-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.025em;
  font-weight: var(--cht-font-weight-medium);
}

.cht-card-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.cht-card-action {
  padding: 0.5rem 1rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: var(--cht-font-weight-medium);
  transition: all 0.2s ease;
  text-align: center;
  flex: 1;
  font-size: 0.875rem;
  min-width: 140px;
}

/* Empty State Cards */
.cht-empty-state {
  text-align: center;
  padding: 1.5rem 1rem;
  background: var(--cht-bg-tertiary);
  border: 1px solid var(--cht-border-light);
  border-radius: 6px;
  margin-bottom: 1rem;
}

.cht-empty-icon {
  font-size: 2rem;
  color: var(--cht-text-muted);
  margin-bottom: 0.5rem;
  opacity: 0.6;
}

.cht-empty-title {
  font-size: 1rem;
  font-weight: var(--cht-font-weight-semibold);
  color: var(--cht-text-primary);
  margin: 0 0 0.25rem 0;
}

.cht-empty-description {
  font-size: 0.8rem;
  color: var(--cht-text-muted);
  margin: 0 0 1rem 0;
  line-height: 1.4;
}

.cht-empty-actions {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* ========================
   PROFILE PAGE STYLES
   ======================== */

/* Profile Grid Layout */
.cht-profile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

/* Profile Cards */
.cht-profile-card {
  background: var(--cht-bg-card);
  border: 1px solid var(--cht-border-card);
  border-radius: var(--cht-radius-card);
  box-shadow: var(--cht-shadow-card);
  overflow: visible;
  transition: var(--cht-transition);
  position: relative;
}

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

.cht-card-header {
  padding: 1.25rem 1.5rem;
  background: linear-gradient(135deg, var(--cht-bg-tertiary) 0%, var(--cht-bg-secondary) 100%);
  border-bottom: 1px solid var(--cht-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cht-card-title {
  font-size: 1rem; /* Reduced from default h2 size */
  font-weight: var(--cht-font-weight-semibold);
  color: var(--cht-text-primary);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.cht-card-icon {
  color: var(--cht-primary);
  opacity: 0.8;
}

.cht-card-content {
  padding: 1.5rem;
}

/* Profile Form Styles */
.cht-profile-form .cht-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.cht-profile-form .cht-form-group {
  margin-bottom: 1rem;
  position: relative;
}

.cht-profile-form label {
  display: block;
  font-weight: var(--cht-font-weight-medium);
  color: var(--cht-text-primary);
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
}

.cht-profile-form input,
.cht-profile-form select,
.cht-profile-form textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--cht-border);
  border-radius: var(--cht-radius);
  font-size: 0.875rem;
  background: var(--cht-bg-primary);
  color: var(--cht-text-primary);
  transition: var(--cht-transition);
}

.cht-profile-form input:focus,
.cht-profile-form select:focus,
.cht-profile-form textarea:focus {
  outline: none;
  border-color: var(--cht-primary);
  box-shadow: 0 0 0 3px rgba(16, 112, 255, 0.1);
}

.cht-profile-form textarea {
  resize: vertical;
  min-height: 80px;
}

/* Security Actions */
.cht-security-info {
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: var(--cht-bg-tertiary);
  border-radius: var(--cht-radius);
  color: var(--cht-text-secondary);
}

.cht-security-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.cht-btn-full {
  width: 100%;
  justify-content: center;
}

.cht-password-form {
  padding-top: 1.5rem;
  border-top: 1px solid var(--cht-border);
  margin-top: 1.5rem;
}

/* Communication Preferences */
.cht-checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cht-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  cursor: pointer;
  padding: 1rem;
  border: 1px solid var(--cht-border);
  border-radius: var(--cht-radius);
  transition: var(--cht-transition);
}

.cht-checkbox-label:hover {
  background: var(--cht-bg-tertiary);
  border-color: var(--cht-primary);
}

.cht-checkbox-custom {
  width: 20px;
  height: 20px;
  border: 2px solid var(--cht-border);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: var(--cht-transition);
}

.cht-checkbox-label input[type="checkbox"] {
  display: none;
}

.cht-checkbox-label input[type="checkbox"]:checked + .cht-checkbox-custom {
  background: var(--cht-primary);
  border-color: var(--cht-primary);
}

.cht-checkbox-label input[type="checkbox"]:checked + .cht-checkbox-custom::after {
  content: '✓';
  color: white;
  font-size: 14px;
  font-weight: bold;
}

.cht-checkbox-content {
  flex: 1;
}

.cht-checkbox-content strong {
  display: block;
  color: var(--cht-text-primary);
  font-weight: var(--cht-font-weight-semibold);
  margin-bottom: 0.25rem;
}

.cht-checkbox-content p {
  margin: 0;
  color: var(--cht-text-secondary);
  font-size: 0.875rem;
  line-height: 1.4;
}

/* Field Help Text */
.cht-field-help {
  font-size: 0.75rem;
  color: var(--cht-text-muted);
  margin-top: 0.25rem;
  line-height: 1.4;
}

/* Form Actions */
.cht-form-actions {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 1rem;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--cht-border-light);
  min-height: 60px;
}

/* Searchable Select Dropdown */
.cht-searchable-select {
  position: relative;
  display: block;
}

.cht-searchable-select input[type="text"] {
  width: 100%;
  padding: 0.75rem 2.5rem 0.75rem 1rem;
  border: 1px solid var(--cht-border);
  border-radius: var(--cht-radius);
  font-size: 0.875rem;
  background: var(--cht-bg-primary);
  color: var(--cht-text-primary);
  cursor: pointer;
}

.cht-searchable-select input[type="text"]:focus {
  outline: none;
  border-color: var(--cht-primary);
  box-shadow: 0 0 0 3px rgba(16, 112, 255, 0.1);
  cursor: text;
}

.cht-dropdown-arrow {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--cht-text-muted);
  pointer-events: none;
  transition: var(--cht-transition);
}

.cht-searchable-select.open .cht-dropdown-arrow {
  transform: translateY(-50%) rotate(180deg);
}

.cht-select-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--cht-bg-primary);
  border: 1px solid var(--cht-border);
  border-top: none;
  border-radius: 0 0 var(--cht-radius) var(--cht-radius);
  max-height: 200px;
  overflow-y: auto;
  z-index: 9999;
  display: none;
  box-shadow: var(--cht-shadow-lg);
}

.cht-searchable-select.open .cht-select-dropdown {
  display: block;
}

.cht-select-option {
  padding: 0.75rem 1rem;
  cursor: pointer;
  transition: var(--cht-transition);
  border-bottom: 1px solid var(--cht-border-light);
}

.cht-select-option:last-child {
  border-bottom: none;
}

.cht-select-option:hover {
  background: var(--cht-bg-tertiary);
}

.cht-select-option.selected {
  background: var(--cht-primary-light);
  color: var(--cht-primary);
  font-weight: var(--cht-font-weight-medium);
}

.cht-select-option.highlighted {
  background: var(--cht-bg-tertiary);
  color: var(--cht-text-primary);
}

.cht-select-option.hidden {
  display: none;
}

/* Last Login Info */
.cht-last-login-info {
  margin-top: 0.5rem;
  padding: 0.5rem 0;
}

.cht-last-login-text {
  font-size: 0.8rem;
  color: var(--cht-text-muted);
  font-style: italic;
  opacity: 0.8;
}

/* Profile Messages */
.cht-messages {
  margin: 1rem 0;
}

.cht-notification-message {
  padding: 0.75rem 1rem;
  border-radius: var(--cht-radius);
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
  font-weight: var(--cht-font-weight-medium);
  animation: slideIn 0.3s ease-out;
}

.cht-notification-message-success {
  background: #d1fae5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.cht-notification-message-error {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fca5a5;
}

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

/* Responsive Design */
@media (max-width: 768px) {
  .cht-profile-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .cht-profile-form .cht-form-row {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  
  .cht-card-header {
    padding: 1rem;
  }
  
  .cht-card-content {
    padding: 1rem;
  }
  
  .cht-security-actions {
    gap: 0.75rem;
  }
  
  .cht-select-dropdown {
    max-height: 150px;
  }
}

/* Account Balance Card */
.cht-feature-card {
  background: var(--cht-primary);
  color: white;
  border: none;
  position: relative;
  overflow: hidden;
}

.cht-feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 100px;
  height: 100px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transform: translate(30px, -30px);
}

.cht-feature-card .cht-card-header {
  background: transparent;
}

.cht-feature-card .cht-card-title {
  color: white;
  font-size: 1rem;
}

.cht-feature-card .cht-card-icon {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.25rem;
}

.cht-feature-card .cht-card-badge {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Gift Vouchers Card */
.cht-success-card {
  background: #10b981;
  color: white;
  border: none;
  position: relative;
  overflow: hidden;
}

.cht-success-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, transparent 100%);
  pointer-events: none;
}

.cht-success-card .cht-card-header {
  background: transparent;
}

.cht-success-card .cht-card-title {
  color: white;
}

.cht-success-card .cht-card-icon {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.25rem;
}

/* Warning Cards */
.cht-warning-card {
  background: linear-gradient(135deg, var(--cht-warning) 0%, #ea580c 100%);
  color: white;
  border: none;
}

.cht-warning-card .cht-card-header {
  background: transparent;
}

.cht-warning-card .cht-card-title,
.cht-warning-card .cht-card-icon {
  color: white;
}

/* ========================
   FOOTER STYLES
   ======================== */

.cht-portal-footer {
  background: var(--cht-bg-primary);
  border: 1px solid var(--cht-border);
  border-radius: var(--cht-radius-lg);
  margin: 1rem 2rem 2rem 2rem; /* Add space around footer */
  box-shadow: var(--cht-shadow-sm);
  z-index: 1001;
  position: relative;
}

.cht-footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.5fr;
  gap: 1rem;
  padding: 0.75rem 1rem; /* Optimized padding */
  align-items: center; /* Center align for better balance */
}

.cht-footer-left {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.cht-footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.cht-footer-logo-img {
  height: 48px; /* Increased by 50% for better visibility */
  width: auto;
  max-width: 225px; /* Increased by 50% to maintain proportions */
  object-fit: contain;
  margin-bottom: 0.125rem;
}

.cht-footer-tagline {
  font-size: 0.8rem; /* Increased for readability */
  color: var(--cht-text-muted);
  font-style: italic;
  margin: 0;
  line-height: 1.2;
}

.cht-footer-copyright {
  font-size: 0.75rem; /* Increased for readability */
  color: var(--cht-text-muted);
  margin: 0;
  line-height: 1.2;
}

.cht-footer-center {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
  justify-content: center;
  align-items: center;
}

.cht-footer-links {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.cht-footer-link {
  color: var(--cht-text-secondary);
  text-decoration: none;
  font-size: 0.8rem; /* Increased for readability */
  transition: var(--cht-transition);
  padding: 0.125rem 0.25rem;
  white-space: nowrap;
}

.cht-footer-link:hover {
  color: var(--cht-primary);
  text-decoration: underline;
}

.cht-footer-right {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  align-items: flex-end;
}

.cht-footer-contact {
  text-align: right;
  line-height: 1.3;
}

.cht-footer-contact p {
  margin: 0.05rem 0;
  font-size: 0.8rem; /* Increased for readability */
  color: var(--cht-text-secondary);
  line-height: 1.3;
}

.cht-footer-contact p:first-child {
  font-weight: var(--cht-font-weight-semibold);
  color: var(--cht-text-primary);
  margin-bottom: 0.125rem;
  font-size: 0.85rem; /* Slightly larger for header */
}

.cht-footer-security {
  display: flex;
  justify-content: flex-end;
}

.cht-security-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.75rem; /* Increased for readability */
  color: var(--cht-success);
  font-weight: var(--cht-font-weight-medium);
  background: none;
  border: none;
  padding: 0;
}

/* ========================
   RESPONSIVE DESIGN
   ======================== */

@media (max-width: 1200px) {
  .cht-brand-header-content,
  .cht-nav-bar-content {
    padding: 0 1rem;
  }
  
  .cht-portal-main {
    padding: 1.5rem;
  }
  
  .cht-balance-chip {
    display: flex;
    flex-direction: row;
    gap: 0.5rem;
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
  }
  
  .cht-balance-label {
    font-size: 0.7rem;
  }
  
  .cht-balance-amount {
    font-size: 0.875rem;
  }
}

@media (max-width: 1024px) {
  .cht-portal-layout {
    max-width: 100%;
  }
  
  .cht-portal-sidebar {
    width: 260px;
    height: calc(100vh - 140px); /* Adjusted for new header height */
  }
  
  .cht-dashboard-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
  
  .cht-user-details {
    display: none;
  }
}

@media (max-width: 768px) {
  .cht-brand-header-content {
    height: 70px;
    padding: 0 1rem;
  }
  
  .cht-nav-bar-content {
    height: 50px;
    padding: 0 1rem;
  }
  
  .cht-nav-bar {
    top: 90px; /* Adjusted for new header height */
  }
  
  .cht-portal-layout {
    flex-direction: column;
  }
  
  .cht-portal-sidebar {
    width: 100%;
    order: 2;
    border-right: none;
    border-top: 1px solid var(--cht-border);
    height: auto;
    min-height: auto; /* Remove fixed height on mobile */
    position: static; /* Reset sticky positioning on mobile */
  }
  
  .cht-portal-content {
    order: 1;
  }
  
  .cht-portal-main {
    padding: 1rem;
  }
  
  .cht-sidebar-content {
    padding: 1rem 0;
  }
  
  .cht-sidebar-welcome {
    padding: 0 1rem 1rem;
    margin-bottom: 1rem;
  }
  
  .cht-nav-section {
    margin-bottom: 1.5rem;
  }
  
  .cht-nav-heading {
    padding: 0 1rem;
  }
  
  .cht-nav-link {
    padding: 0.5rem 1rem;
  }
  
  .cht-sidebar-actions {
    padding: 1rem;
  }
  
  .cht-dashboard-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .cht-footer-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 1.5rem;
    padding: 1.5rem 1rem;
  }
  
  .cht-footer-links {
    flex-direction: row;
    justify-content: center;
    gap: 1rem;
  }
}

@media (max-width: 480px) {
  .cht-auth-card {
    padding: 1.5rem;
    margin: 1rem;
    max-width: calc(100% - 2rem);
  }
  
  .cht-brand-header-content {
    height: 60px;
  }
  
  .cht-nav-bar-content {
    height: 45px;
  }
  
  .cht-nav-bar {
    top: 60px;
  }
  
  .cht-portal-main {
    padding: 0.75rem;
  }
  
  .cht-card-content {
    padding: 1rem;
  }
  
  .cht-card-header {
    padding: 1rem 1rem 0.75rem;
  }
  
  .cht-welcome-avatar {
    width: 2.5rem;
    height: 2.5rem;
    font-size: 1rem;
  }
  
  .cht-nav-content {
    gap: 0.0625rem;
  }
  
  .cht-nav-desc {
    display: none;
  }
  
  .cht-nav-action {
    margin-top: 0.25rem;
    margin-bottom: 0.25rem;
  }
  
  .cht-nav-action .cht-nav-desc {
    display: none; /* Hide descriptions on small screens */
  }
}

/* Hide sidebar on very small screens */
@media (max-width: 320px) {
  .cht-portal-sidebar {
    display: none;
  }
}

/* Mobile Navigation Overlay (for future implementation) */
.cht-mobile-nav {
  display: none;
  position: fixed;
  top: 60px;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--cht-bg-primary);
  border-top: 1px solid var(--cht-border);
  z-index: 999;
}

.cht-mobile-nav.show {
  display: block;
}

.cht-mobile-nav-menu {
  list-style: none;
  margin: 0;
  padding: 1rem 0;
}

.cht-mobile-nav-item {
  border-bottom: 1px solid var(--cht-border-light);
}

.cht-mobile-nav-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.5rem;
  color: var(--cht-text-secondary);
  text-decoration: none;
  font-weight: 500;
  transition: var(--cht-transition);
}

.cht-mobile-nav-link:hover,
.cht-mobile-nav-link.active {
  background: var(--cht-bg-tertiary);
  color: var(--cht-primary);
}

/* ===== TRANSACTION TABLE STYLES ===== */
.cht-transactions-section {
  background: var(--cht-bg-card);
  border-radius: var(--cht-radius-lg);
  padding: 1.5rem;
  box-shadow: var(--cht-shadow-card);
  border: 1px solid var(--cht-border-card);
  margin-bottom: 2rem;
}

.cht-transactions-section h2 {
  margin: 0 0 1.5rem 0;
  color: var(--cht-text-primary);
  font-size: 1.25rem;
  font-weight: 600;
}

.cht-transactions-table {
  width: 100%;
  border-radius: var(--cht-radius);
  overflow: hidden;
  border: 1px solid var(--cht-border);
}

.cht-table-header {
  display: grid;
  grid-template-columns: 120px 1fr 120px 100px 100px 80px;
  gap: 0;
  background: var(--cht-bg-tertiary);
  border-bottom: 2px solid var(--cht-border);
  font-weight: 600;
  color: var(--cht-text-primary);
}

.cht-transaction-row {
  display: grid;
  grid-template-columns: 120px 1fr 120px 100px 100px 80px;
  gap: 0;
  border-bottom: 1px solid var(--cht-border-light);
  transition: background-color 0.2s ease;
}

.cht-transaction-row:hover {
  background: var(--cht-bg-secondary);
}

.cht-transaction-row:last-child {
  border-bottom: none;
}

.cht-table-col {
  padding: 0.75rem;
  display: flex;
  align-items: center;
  border-right: 1px solid var(--cht-border-light);
  font-size: 0.875rem;
  line-height: 1.4;
}

.cht-table-col:last-child {
  border-right: none;
}

.cht-table-header .cht-table-col {
  font-weight: 600;
  background: var(--cht-bg-tertiary);
  color: var(--cht-text-primary);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Column specific styles */
.cht-col-date {
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.cht-col-description {
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.cht-col-type,
.cht-col-amount,
.cht-col-balance {
  justify-content: center;
}

.cht-col-actions {
  justify-content: center;
}

/* Transaction specific styles */
.cht-transaction-date {
  font-weight: 500;
  color: var(--cht-text-primary);
  margin-bottom: 0.25rem;
}

.cht-transaction-time {
  font-size: 0.75rem;
  color: var(--cht-text-muted);
}

.cht-transaction-description {
  font-weight: 500;
  color: var(--cht-text-primary);
  margin-bottom: 0.25rem;
}

.cht-transaction-reference {
  font-size: 0.75rem;
  color: var(--cht-text-muted);
}

.cht-transaction-type {
  padding: 0.25rem 0.5rem;
  border-radius: 0.375rem;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: capitalize;
  background: var(--cht-bg-secondary);
  color: var(--cht-text-secondary);
}

.cht-type-payment {
  background: var(--cht-primary-light);
  color: var(--cht-primary);
}

.cht-type-refund {
  background: var(--cht-green-light);
  color: var(--cht-irish-green);
}

.cht-type-gift_certificate_purchase,
.cht-type-gift_certificate_redemption {
  background: #fef3c7;
  color: #d97706;
}

.cht-transaction-amount {
  font-weight: 600;
  font-size: 0.875rem;
}

.cht-amount-positive {
  color: var(--cht-success);
}

.cht-amount-negative {
  color: var(--cht-error);
}

.cht-running-balance {
  font-weight: 500;
  color: var(--cht-text-primary);
}

/* Empty state */
.cht-transactions-empty {
  text-align: center;
  padding: 3rem 1.5rem;
  color: var(--cht-text-muted);
}

.cht-transactions-empty h3 {
  color: var(--cht-text-secondary);
  margin-bottom: 0.5rem;
}

/* Mobile responsive styles for transactions */
@media (max-width: 768px) {
  .cht-table-header {
    display: none;
  }
  
  .cht-transaction-row {
    display: block;
    padding: 1rem;
    margin-bottom: 0.5rem;
    border-radius: var(--cht-radius);
    border: 1px solid var(--cht-border);
    background: var(--cht-bg-card);
  }
  
  .cht-table-col {
    display: block;
    padding: 0.25rem 0;
    border-right: none;
    border-bottom: none;
  }
  
  .cht-table-col:before {
    content: attr(data-label) ": ";
    font-weight: 600;
    color: var(--cht-text-secondary);
    display: inline-block;
    width: 80px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }
  
  .cht-col-date:before { content: "Date: "; }
  .cht-col-description:before { content: "Description: "; }
  .cht-col-type:before { content: "Type: "; }
  .cht-col-amount:before { content: "Amount: "; }
  .cht-col-balance:before { content: "Balance: "; }
  .cht-col-actions:before { content: "Actions: "; }
  
  .cht-col-date,
  .cht-col-description {
    flex-direction: row;
    align-items: center;
  }
  
  .cht-transaction-date,
  .cht-transaction-time {
    display: inline;
    margin: 0 0.5rem 0 0;
  }
  
  .cht-transaction-description,
  .cht-transaction-reference {
    display: inline;
    margin: 0 0.5rem 0 0;
  }
}

/* ======================================
   NEW DASHBOARD DESIGN STYLES - 2025
   ====================================== */

/* Dashboard Main Layout */
.cht-dashboard-main {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.cht-dashboard-primary {
  min-width: 0; /* Prevent grid blowout */
}

.cht-dashboard-secondary {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 320px;
}

/* Bookings Card - Primary Focus */
.cht-bookings-card {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05);
  transition: all 0.2s ease;
}

.cht-bookings-card:hover {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
}

.cht-bookings-card .cht-card-header {
  padding: 1.5rem;
  background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cht-bookings-card .cht-card-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #111827;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0;
}

.cht-card-status {
  display: inline-flex;
  align-items: center;
  padding: 0.375rem 0.875rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
}

.cht-status-active {
  background: #dbeafe;
  color: #1e40af;
}

/* Empty State */
.cht-empty-bookings {
  padding: 3rem 2rem;
  text-align: center;
}

.cht-empty-illustration {
  margin: 0 auto 2rem;
  display: flex;
  justify-content: center;
}

.cht-empty-bookings .cht-empty-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #111827;
  margin: 0 0 0.5rem;
}

.cht-empty-bookings .cht-empty-description {
  font-size: 1rem;
  color: #6b7280;
  margin: 0 0 2rem;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

.cht-btn-lg {
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 8px;
}

.cht-btn-lg svg {
  width: 16px;
  height: 16px;
}

/* Bookings Content */
.cht-bookings-content {
  padding: 1.5rem;
}

.cht-stats-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.cht-stat-box {
  text-align: center;
  padding: 1.5rem;
  background: #f9fafb;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
}

.cht-stat-value {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 0.25rem;
}

.cht-stat-label {
  display: block;
  font-size: 0.875rem;
  color: #6b7280;
}

.cht-btn-block {
  display: block;
  width: 100%;
  text-align: center;
}

/* Compact Cards */
.cht-balance-card,
.cht-vouchers-card {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.2s ease;
}

.cht-balance-card:hover,
.cht-vouchers-card:hover {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
  border-color: #d1d5db;
}

.cht-card-compact {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cht-card-compact-icon {
  width: 40px;
  height: 40px;
  background: #f3f4f6;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6b7280;
}

.cht-card-compact-content {
  flex: 1;
}

.cht-card-label {
  display: block;
  font-size: 0.875rem;
  color: #6b7280;
  margin-bottom: 0.25rem;
}

.cht-card-value {
  display: block;
  font-size: 1.5rem;
  font-weight: 600;
  color: #111827;
}

.cht-card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  color: #2563eb;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.cht-card-link:hover {
  color: #1d4ed8;
  gap: 0.5rem;
}

.cht-card-link svg {
  width: 16px;
  height: 16px;
  transition: transform 0.2s ease;
}

.cht-card-link:hover svg {
  transform: translateX(2px);
}

/* Updated Footer Styles */
.cht-portal-footer {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  margin: 2rem;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05);
}

.cht-footer-content {
  padding: 2rem;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 3rem;
  align-items: start;
}

.cht-footer-section {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Brand Section */
.cht-footer-brand-section {
  align-items: flex-start;
}

.cht-footer-logo {
  height: 40px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
}

.cht-footer-tagline {
  font-size: 0.875rem;
  color: #6b7280;
  font-style: italic;
  margin: 0;
}

.cht-footer-copyright {
  font-size: 0.875rem;
  color: #9ca3af;
  margin: 0;
}

/* Links Section */
.cht-footer-links-section {
  align-items: center;
  justify-content: center;
}

.cht-footer-nav {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
}

.cht-footer-link {
  color: #4b5563;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.2s ease;
  padding: 0.25rem 0.5rem;
}

.cht-footer-link:hover {
  color: #2563eb;
}

.cht-footer-separator {
  color: #d1d5db;
  font-size: 0.75rem;
}

/* Contact Section */
.cht-footer-contact-section {
  align-items: flex-end;
  text-align: right;
}

.cht-footer-heading {
  font-size: 0.875rem;
  font-weight: 600;
  color: #111827;
  margin: 0 0 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.cht-footer-contact-info {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.cht-footer-contact-item {
  font-size: 0.875rem;
}

.cht-footer-label {
  color: #6b7280;
  margin-right: 0.5rem;
}

.cht-footer-value {
  color: #111827;
  text-decoration: none;
  font-weight: 500;
}

.cht-footer-value:hover {
  color: #2563eb;
  text-decoration: underline;
}

.cht-footer-address {
  font-size: 0.875rem;
  color: #6b7280;
  line-height: 1.5;
  margin-top: 0.5rem;
}

.cht-footer-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
  padding: 0.375rem 0.75rem;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 500;
  color: #047857;
}

.cht-footer-badge svg {
  width: 16px;
  height: 16px;
}

/* Responsive Design */
@media (max-width: 1200px) {
  .cht-dashboard-main {
    grid-template-columns: 1fr;
  }
  
  .cht-dashboard-secondary {
    width: 100%;
    flex-direction: row;
  }
  
  .cht-balance-card,
  .cht-vouchers-card {
    flex: 1;
  }
}

@media (max-width: 768px) {
  .cht-dashboard-secondary {
    flex-direction: column;
  }
  
  .cht-footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: left;
  }
  
  .cht-footer-links-section,
  .cht-footer-contact-section {
    align-items: flex-start;
    text-align: left;
  }
  
  .cht-footer-nav {
    justify-content: flex-start;
  }
}

/* Hide old styles to prevent conflicts */
.cht-feature-card,
.cht-success-card {
  display: none !important;
}

/* Navigation Badge for Unread Messages */
.cht-nav-badge {
    display: inline-block;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    margin-left: 8px;
    background: #dc2626;
    color: white;
    font-size: 11px;
    font-weight: 600;
    text-align: center;
    line-height: 20px;
    border-radius: 10px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.cht-nav-link.active .cht-nav-badge {
    background: white;
    color: #2563eb;
}

/* Dashboard Message Alert */
.cht-dashboard-messages {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.cht-dashboard-messages .cht-message-icon {
    font-size: 32px;
}

.cht-dashboard-messages .cht-message-content {
    flex: 1;
}

.cht-dashboard-messages h3 {
    margin: 0 0 5px 0;
    font-size: 18px;
    color: #333;
}

.cht-dashboard-messages p {
    margin: 0;
    color: #666;
}

.cht-dashboard-messages .cht-button {
    background: #2563eb;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    transition: background 0.2s;
}

.cht-dashboard-messages .cht-button:hover {
    background: #1d4ed8;
}
