/* ===== SIMPLIFIED MODERN THEME ===== */

:root {
  /* TopLifeAgent Logo-Inspired Color Palette */
  --primary-color: #1e3a8a;        /* Logo Navy Blue - Shield outline */
  --primary-hover: #1e40af;        /* Darker Navy Blue */
  --secondary-color: #f59e0b;      /* Logo Gold - Shield body */
  --secondary-hover: #d97706;      /* Darker Gold */
  --accent-color: #1e3a8a;         /* Logo Navy Blue - Rabbit suit */
  --accent-hover: #1e40af;         /* Darker Navy Blue */
  --warm-color: #a16207;           /* Logo Brown - Rabbit fur */
  --warm-hover: #92400e;           /* Darker Brown */
  --success-color: #1e3a8a;        /* Navy Blue success */
  --warning-color: #d97706;        /* Gold warning */
  --error-color: #dc2626;          /* Red error */
  --info-color: #1e3a8a;           /* Navy Blue info */
  
  /* Button colors based on logo */
  --orange-400: #fb923c;           /* Warm orange */
  --orange-500: #f59e0b;           /* Logo gold */
  --orange-600: #d97706;           /* Darker gold */
  --orange-700: #b45309;           /* Deep gold */
  --orange-50: #fffbeb;            /* Light gold */
  
  --green-400: #60a5fa;            /* Light navy blue */
  --green-500: #3b82f6;            /* Medium navy blue */
  --green-600: #1e3a8a;            /* Logo navy blue */
  --green-700: #1e40af;            /* Dark navy blue */
  --green-50: #eff6ff;            /* Light navy blue */
  --green-100: #dbeafe;           /* Lighter navy blue */
  
  --blue-400: #60a5fa;             /* Light blue */
  --blue-500: #3b82f6;             /* Medium blue */
  --blue-600: #1e3a8a;             /* Logo navy blue */
  --blue-700: #1e40af;             /* Dark navy blue */
  --blue-50: #eff6ff;             /* Light navy blue */
  --blue-100: #dbeafe;            /* Lighter navy blue */
  
  --red-400: #f87171;              /* Light red */
  --red-500: #ef4444;              /* Medium red */
  --red-600: #dc2626;              /* Dark red */
  --red-700: #b91c1c;              /* Deep red */
  --red-50: #fef2f2;               /* Light red */
  --red-100: #fee2e2;              /* Lighter red */
  
  /* Neutral grays with warm undertones */
  --white: #ffffff;
  --gray-50: #fafaf9;              /* Warm white */
  --gray-100: #f5f5f4;             /* Warm light gray */
  --gray-200: #e7e5e4;             /* Warm gray */
  --gray-300: #d6d3d1;             /* Medium warm gray */
  --gray-400: #a8a29e;             /* Warm medium gray */
  --gray-500: #78716c;             /* Warm gray */
  --gray-600: #57534e;             /* Warm dark gray */
  --gray-700: #44403c;             /* Warm darker gray */
  --gray-800: #292524;             /* Warm very dark gray */
  --gray-900: #1c1917;             /* Warm black */
  
  /* Typography */
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;
  --font-size-2xl: 1.5rem;
  --font-size-3xl: 1.875rem;
  
  /* Spacing */
  --spacing-1: 0.25rem;
  --spacing-2: 0.5rem;
  --spacing-3: 0.75rem;
  --spacing-4: 1rem;
  --spacing-5: 1.25rem;
  --spacing-6: 1.5rem;
  --spacing-8: 2rem;
  --spacing-10: 2.5rem;
  --spacing-12: 3rem;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  
  /* Border radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
}

/* ===== ADMIN AGENT MANAGEMENT STYLES ===== */

/* Agent status labels */
.ui.green.label {
  background-color: var(--green-500) !important;
  color: white !important;
}

.ui.red.label {
  background-color: var(--red-500) !important;
  color: white !important;
}

.ui.orange.label {
  background-color: var(--orange-500) !important;
  color: white !important;
}

/* Action buttons styling */
.ui.buttons .ui.button {
  margin-right: 0.25rem;
  margin-bottom: 0.25rem;
}

.ui.buttons .ui.button:last-child {
  margin-right: 0;
}

/* Enable/Disable button styling */
.ui.orange.button {
  background-color: var(--orange-500) !important;
  color: white !important;
}

.ui.orange.button:hover {
  background-color: var(--orange-600) !important;
}

.ui.green.button {
  background-color: var(--green-500) !important;
  color: white !important;
}

.ui.green.button:hover {
  background-color: var(--green-600) !important;
}

/* Table improvements */
.ui.celled.table th {
  background-color: var(--gray-50);
  font-weight: 600;
  color: var(--gray-800);
}

.ui.celled.table td {
  vertical-align: middle;
}

/* Responsive table */
@media (max-width: 768px) {
  .ui.celled.table {
    font-size: 0.9rem;
  }
  
  .ui.buttons .ui.button {
    margin-bottom: 0.5rem;
    width: 100%;
  }
}

/* ===== CHECKBOX TABLE DESIGN ===== */

/* Table-based checkbox layout for perfect alignment */
.checkbox-row {
  display: table;
  width: 100%;
  margin-bottom: 0.75rem;
}

.checkbox-cell {
  display: table-cell;
  vertical-align: top;
  width: 30px;
  padding-right: 12px;
}

.label-cell {
  display: table-cell;
  vertical-align: top;
}

/* Styled checkbox appearance */
.styled-checkbox {
  width: 20px;
  height: 20px;
  margin: 0;
  cursor: pointer;
  accent-color: var(--primary-color);
  border: 2px solid var(--gray-300);
  border-radius: 4px;
  background-color: white;
  transition: all 0.2s ease;
}

.styled-checkbox:checked {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.styled-checkbox:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* Checkbox text styling */
.checkbox-text {
  margin: 0;
  line-height: 1.5;
  cursor: pointer;
  font-size: 0.95rem;
  color: var(--gray-700);
  display: block;
  user-select: none;
}

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

/* Ensure proper spacing */
.field .checkbox-row:last-child {
  margin-bottom: 0;
}

/* ===== NAVBAR LOGO STYLES ===== */

.ui.fixed.inverted.menu {
  background: linear-gradient(135deg, var(--accent-color), var(--accent-color)) !important;
}

.ui.fixed.inverted.menu .header.item {
  display: flex;
  align-items: center;
  font-weight: 600;
  font-size: 1.2rem;
  color: white !important;
}

.ui.fixed.inverted.menu .header.item:hover {
  background-color: rgba(255, 255, 255, 0.1) !important;
}

.ui.fixed.inverted.menu .item {
  color: rgba(255, 255, 255, 0.9) !important;
  transition: all 0.2s ease;
}

.ui.fixed.inverted.menu .item:hover {
  color: white !important;
  background-color: rgba(255, 255, 255, 0.1) !important;
}

.ui.fixed.inverted.menu .dropdown.item {
  color: rgba(255, 255, 255, 0.9) !important;
}

.ui.fixed.inverted.menu .dropdown.item:hover {
  color: white !important;
  background-color: rgba(255, 255, 255, 0.1) !important;
}

.ui.fixed.inverted.menu .header.item img {
  height: 65px;
  width: auto;
  margin-right: 12px;
  vertical-align: middle;
  border-radius: 4px;
  transition: transform 0.2s ease;
}

.ui.fixed.inverted.menu .header.item img:hover {
  transform: scale(1.05);
  border-color: white;
}

/* ===== HERO LOGO STYLES ===== */

.logo-hero {
  margin-bottom: 1rem;
}

.hero-logo {
  height: 150px;
  width: auto;
}

.hero-logo:hover {
  transform: scale(1.05);
}

/* ===== TOPLIFEAGENT THEME COLORS ===== */

/* Logo-inspired button styles */
.btn-logo-primary {
  background-color: var(--primary-color);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  transition: all 0.2s ease;
}

.btn-logo-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-logo-secondary {
  background-color: var(--secondary-color);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  transition: all 0.2s ease;
}

.btn-logo-secondary:hover {
  background-color: var(--secondary-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-logo-accent {
  background-color: var(--accent-color);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  transition: all 0.2s ease;
}

.btn-logo-accent:hover {
  background-color: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

/* Logo-inspired card styles */
.card-logo-primary {
  border-left: 4px solid var(--primary-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}

.card-logo-primary:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.card-logo-secondary {
  border-left: 4px solid var(--secondary-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}

.card-logo-secondary:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.card-logo-accent {
  border-left: 4px solid var(--accent-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}

.card-logo-accent:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

/* Logo-inspired text colors */
.text-logo-primary { color: var(--primary-color); }
.text-logo-secondary { color: var(--secondary-color); }
.text-logo-accent { color: var(--accent-color); }
.text-logo-warm { color: var(--warm-color); }

/* Logo-inspired background colors */
.bg-logo-primary { background-color: var(--primary-color); }
.bg-logo-secondary { background-color: var(--secondary-color); }
.bg-logo-accent { background-color: var(--accent-color); }
.bg-logo-warm { background-color: var(--warm-color); }

.bg-logo-primary-light { background-color: var(--green-50); }
.bg-logo-secondary-light { background-color: var(--orange-50); }
.bg-logo-accent-light { background-color: var(--blue-50); }

/* ===== GLOBAL STYLES ===== */

* {
  box-sizing: border-box;
}

body {
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  line-height: 1.6;
  color: var(--gray-800);
  background-color: var(--gray-50);
  margin: 0;
  padding: 0;
  padding-top: 80px; /* Account for fixed navigation */
}

/* ===== TEXT COLOR FIXES ===== */

/* Ensure all text has proper contrast */
.ui.segment,
.ui.card,
.ui.form,
.ui.table,
.ui.dropdown,
.ui.message {
  color: var(--gray-800);
}

/* Ensure form inputs have proper text color */
.ui.form input,
.ui.form textarea,
.ui.form select {
  color: var(--gray-800) !important;
}

/* Ensure table content is readable */
.ui.table th,
.ui.table td {
  color: var(--gray-800) !important;
}

/* Ensure dropdown items are readable */
.ui.dropdown .menu .item {
  color: var(--gray-800) !important;
}

.ui.dropdown .menu .item:hover {
  color: var(--gray-900) !important;
}

/* Ensure labels are readable */
.ui.label {
  color: var(--gray-800) !important;
}

/* Ensure buttons have proper text color */
.ui.button {
  color: var(--gray-800) !important;
}

.ui.primary.button {
  color: var(--white) !important;
}

.ui.secondary.button {
  color: var(--white) !important;
}

/* Ensure statistics text is readable */
.ui.statistics .statistic .value,
.ui.statistics .statistic .label {
  color: var(--gray-800) !important;
}

.ui.three.statistics .statistic .value {
  color: var(--primary-color) !important;
}

.ui.three.statistics .statistic .label {
  color: var(--gray-700) !important;
}

/* ===== LAYOUT ===== */

.main-content {
  min-height: calc(100vh - 160px);
  padding: var(--spacing-6) 0;
}

.ui.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-4);
}

.ui.grid {
  margin: 0;
}

.ui.column {
  padding: var(--spacing-4);
}

/* ===== NAVIGATION ===== */

.ui.fixed.menu {
  background: var(--gray-800);
  border: none;
  border-bottom: 2px solid var(--blue-600);
  box-shadow: var(--shadow-sm);
  border-radius: 0;
  margin: 0;
  z-index: 1000;
}

.ui.fixed.menu .item {
  color: var(--gray-200) !important;
  font-weight: 500;
  padding: var(--spacing-4) var(--spacing-5);
  transition: all 0.2s ease;
}

.ui.fixed.menu .item:hover {
  background: var(--gray-700);
  color: var(--white) !important;
}

.ui.fixed.menu .active.item {
  background: var(--info-color);
  color: var(--white) !important;
  border-radius: var(--radius-md);
  margin: var(--spacing-2);
}

.ui.fixed.menu .header.item {
  font-weight: 700;
  font-size: var(--font-size-lg);
  color: var(--info-color);
}

.ui.fixed.menu .dropdown .menu {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  margin-top: var(--spacing-2);
  z-index: 1001;
}

.ui.fixed.menu .dropdown .menu .item {
  padding: var(--spacing-3) var(--spacing-4);
  color: var(--gray-700) !important;
}

.ui.fixed.menu .dropdown .menu .item:hover {
  background: var(--blue-50);
  color: var(--blue-700) !important;
}

/* User dropdown improvements */
.ui.fixed.menu .ui.dropdown.item {
  position: relative;
}

.ui.fixed.menu .ui.dropdown.item .menu {
  margin-top: var(--spacing-2);
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius-md);
  background: var(--white);
  min-width: 200px;
}

.ui.fixed.menu .ui.dropdown.item .menu .item {
  color: var(--gray-700) !important;
  padding: var(--spacing-3) var(--spacing-4);
  border-bottom: 1px solid var(--gray-100);
  transition: all 0.2s ease;
}

.ui.fixed.menu .ui.dropdown.item .menu .item:hover {
  color: var(--blue-700) !important;
}

.ui.fixed.menu .ui.dropdown.item .menu .item:last-child {
  border-bottom: none;
}

.ui.fixed.menu .ui.dropdown.item .menu .divider {
  margin: var(--spacing-2) 0;
  border-top: 1px solid var(--gray-200);
}

/* Logout button styling */
.ui.fixed.menu .ui.dropdown.item .menu button.ui.item {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: var(--spacing-3) var(--spacing-4);
  cursor: pointer;
  font-family: inherit;
  font-size: inherit;
  color: var(--gray-700) !important;
  transition: all 0.2s ease;
}

.ui.fixed.menu .ui.dropdown.item .menu button.ui.item:hover {
  color: var(--red-600) !important;
}

.ui.fixed.menu .ui.dropdown.item .menu button.ui.item i.icon {
  margin-right: var(--spacing-2);
}

/* Enhanced navbar styling */
.ui.fixed.menu .header.item i.icon {
  margin-right: var(--spacing-2);
  font-size: 1.2em;
}

.ui.fixed.menu .ui.dropdown.item.user-dropdown {
  background: linear-gradient(135deg, var(--info-color) 0%, var(--blue-600) 100%);
  border-radius: var(--radius-md);
  margin: var(--spacing-4);
  color: var(--white) !important;
  transition: all 0.3s ease;
}

.ui.fixed.menu .ui.dropdown.item.user-dropdown:hover {
  background: linear-gradient(135deg, var(--blue-600) 0%, var(--info-color) 100%);
}

.ui.fixed.menu .ui.dropdown.item.user-dropdown .text {
  color: var(--white) !important;
}

.ui.fixed.menu .ui.dropdown.item.user-dropdown i.dropdown.icon {
  color: var(--white) !important;
}

    /* ===== CLIENT CATEGORY STATISTICS ===== */
    
    .ui.three.statistics,
    .ui.four.statistics {
        margin: var(--spacing-8) 0;
        display: flex !important;
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: stretch !important;
        gap: var(--spacing-4);
    }
    
    .ui.three.statistics .statistic,
    .ui.four.statistics .statistic {
        text-align: center;
        padding: var(--spacing-6);
        background: var(--white);
        border: 1px solid var(--gray-200);
        border-radius: var(--radius-lg);
        box-shadow: var(--shadow-sm);
        transition: all 0.3s ease;
        flex: 1 !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        min-width: 0;
    }
    
    .ui.three.statistics .statistic:hover,
    .ui.four.statistics .statistic:hover {
        transform: translateY(-2px);
        box-shadow: var(--shadow-lg);
    }
    
    /* ===== CLICKABLE STATISTICS ===== */
    
    .ui.three.statistics .clickable-statistic,
    .ui.four.statistics .clickable-statistic {
        cursor: pointer;
        text-decoration: none !important;
        color: inherit !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        transition: all 0.3s ease;
        border-radius: var(--radius-lg);
        position: relative;
        overflow: hidden;
    }
    
    .ui.three.statistics .clickable-statistic:hover,
    .ui.four.statistics .clickable-statistic:hover {
        transform: translateY(-4px);
        box-shadow: var(--shadow-lg);
        background: linear-gradient(135deg, var(--blue-50), var(--blue-100));
        border-color: var(--blue-300);
    }
    
    .ui.three.statistics .clickable-statistic:hover .value,
    .ui.four.statistics .clickable-statistic:hover .value {
        color: var(--blue-700);
        transform: scale(1.05);
    }
    
    .ui.three.statistics .clickable-statistic:hover .label,
    .ui.four.statistics .clickable-statistic:hover .label {
        color: var(--blue-800);
        font-weight: 600;
    }
    
    .ui.three.statistics .clickable-statistic:hover .icon,
    .ui.four.statistics .clickable-statistic:hover .icon {
        color: var(--blue-600);
        transform: scale(1.1);
    }
    
    /* Add a subtle ripple effect */
    .ui.three.statistics .clickable-statistic::before,
    .ui.four.statistics .clickable-statistic::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 0;
        height: 0;
        background: rgba(30, 58, 138, 0.1);
        border-radius: 50%;
        transform: translate(-50%, -50%);
        transition: width 0.3s ease, height 0.3s ease;
    }
    
    .ui.three.statistics .clickable-statistic:active::before,
    .ui.four.statistics .clickable-statistic:active::before {
        width: 300px;
        height: 300px;
    }
    
    /* Active state for currently selected category */
    .ui.three.statistics .clickable-statistic.active,
    .ui.four.statistics .clickable-statistic.active {
        background: linear-gradient(135deg, var(--blue-100), var(--blue-200));
        border-color: var(--blue-500);
        box-shadow: var(--shadow-md);
    }
    
    .ui.three.statistics .clickable-statistic.active .value,
    .ui.four.statistics .clickable-statistic.active .value {
        color: var(--blue-700);
    }
    
    .ui.three.statistics .clickable-statistic.active .label,
    .ui.four.statistics .clickable-statistic.active .label {
        color: var(--blue-800);
        font-weight: 600;
    }
    
    .ui.three.statistics .clickable-statistic.active .icon,
    .ui.four.statistics .clickable-statistic.active .icon {
        color: var(--blue-600);
    }
    
    .ui.three.statistics .statistic .value,
    .ui.four.statistics .statistic .value {
        font-size: var(--font-size-3xl);
        font-weight: 700;
        color: var(--primary-color);
        margin-bottom: var(--spacing-2);
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .ui.three.statistics .statistic .value .icon,
    .ui.four.statistics .statistic .value .icon {
        font-size: 1.5em;
        margin-right: var(--spacing-3);
        color: var(--primary-color);
    }
    
    .ui.three.statistics .statistic .label,
    .ui.four.statistics .statistic .label {
        font-size: var(--font-size-lg);
        font-weight: 600;
        color: var(--gray-700);
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }
    
    /* ===== DISCLAIMER BOX ===== */
    
    .ui.info.message.disclaimer {
        background: linear-gradient(135deg, var(--blue-50), var(--blue-100));
        border: 1px solid var(--blue-200);
        border-left: 4px solid var(--info-color);
        border-radius: var(--radius-lg);
        box-shadow: var(--shadow-sm);
        margin: var(--spacing-6) 0;
        padding: var(--spacing-5);
        transition: all 0.3s ease;
    }
    
    .ui.info.message.disclaimer:hover {
        box-shadow: var(--shadow-md);
        transform: translateY(-1px);
    }
    
    .ui.info.message.disclaimer .header {
        color: var(--blue-800);
        font-weight: 600;
        font-size: var(--font-size-lg);
        margin-bottom: var(--spacing-2);
        display: flex;
        align-items: center;
        gap: var(--spacing-2);
    }
    
    .ui.info.message.disclaimer .header i.icon {
        color: var(--info-color);
        font-size: 1.2em;
    }
    
    .ui.info.message.disclaimer p {
        color: var(--blue-700);
        font-size: var(--font-size-sm);
        line-height: 1.6;
        margin: 0;
    }
    
    /* ===== PROFILING SECTION ===== */
    
    /* Profiling section container */
    .profiling-section {
        background: linear-gradient(135deg, var(--white), var(--gray-50));
        border: 3px solid var(--primary-color);
        border-radius: var(--radius-xl);
        box-shadow: var(--shadow-lg);
        margin: var(--spacing-10) 0;
        padding: var(--spacing-8);
        position: relative;
        overflow: hidden;
        isolation: isolate;
    }
    
    .profiling-section::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 6px;
        background: linear-gradient(90deg, var(--primary-color), var(--accent-color), var(--primary-color));
        z-index: 1;
    }
    
    .profiling-section::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(135deg, rgba(30, 58, 138, 0.02), rgba(8, 145, 178, 0.02));
        pointer-events: none;
        z-index: 0;
    }
    
    .profiling-section .ui.header {
        margin-bottom: var(--spacing-8);
        text-align: left;
        position: relative;
        z-index: 2;
        padding: var(--spacing-4);
        box-shadow: var(--shadow-sm);
    }
    
    .profiling-section .ui.header .icon {
        color: var(--primary-color);
        font-size: 2.5em;
        margin-bottom: var(--spacing-3);
        display: block;
    }
    
    .profiling-section .ui.header .content {
        color: var(--gray-900);
        font-size: var(--font-size-2xl);
        font-weight: 700;
        margin-bottom: var(--spacing-2);
    }
    
    .profiling-section .ui.header .sub.header {
        color: var(--gray-600);
        font-weight: 500;
        font-size: var(--font-size-lg);
        margin-top: var(--spacing-2);
    }
    
    .profiling-section .ui.checkbox {
        margin: var(--spacing-5) 0;
        padding: var(--spacing-6);
        border: 2px solid var(--gray-200);
        border-radius: var(--radius-lg);
        background: var(--white);
        transition: all 0.3s ease;
        position: relative;
        min-height: 100px;
        cursor: pointer;
        z-index: 2;
        box-shadow: var(--shadow-sm);
    }
    
    .profiling-section .ui.checkbox:hover {
        background: var(--blue-50);
        border-color: var(--blue-300);
        transform: translateY(-2px);
        box-shadow: var(--shadow-md);
    }
    
    .profiling-section .ui.checkbox.checked {
        background: var(--blue-100);
        border-color: var(--blue-400);
        box-shadow: var(--shadow-md);
    }
    
    .profiling-section .ui.checkbox input[type="checkbox"] {
        position: absolute;
        top: var(--spacing-4);
        left: var(--spacing-4);
        width: 20px;
        height: 20px;
        margin: 0;
        cursor: pointer;
        accent-color: var(--primary-color);
        z-index: 2;
    }
    
    .profiling-section .ui.checkbox label {
        display: block;
        margin: 0;
        padding-left: var(--spacing-10);
        cursor: pointer;
        width: 100%;
    }
    
    .profiling-section .ui.checkbox label strong {
        color: var(--gray-900);
        font-weight: 600;
        display: block;
        margin-bottom: var(--spacing-2);
        font-size: var(--font-size-lg);
        line-height: 1.4;
    }
    
    .profiling-section .ui.checkbox label .description {
        color: var(--gray-600);
        font-size: var(--font-size-sm);
        font-style: normal;
        line-height: 1.5;
        margin: 0;
        display: block;
    }
    
    .profiling-section .ui.checkbox.checked label strong {
        color: var(--blue-800);
    }
    
    .profiling-section .ui.checkbox.checked label .description {
        color: var(--blue-700);
    }
    
    /* Profiling score display */
    .profiling-section .ui.info.message {
        background: linear-gradient(135deg, var(--blue-50), var(--blue-100));
        border: 1px solid var(--blue-300);
        border-radius: var(--radius-lg);
        box-shadow: var(--shadow-sm);
    }
    
    .profiling-section .ui.info.message .header {
        font-weight: 600;
        color: var(--blue-800);
        text-align: center;
    }
    
    .profiling-section .ui.info.message .header #profilingScore {
        color: var(--primary-color);
        font-weight: 700;
        font-size: 1.4em;
        background: var(--white);
        padding: var(--spacing-1) var(--spacing-3);
        border-radius: var(--radius-md);
        border: 2px solid var(--primary-color);
        display: inline-block;
        margin: 0 var(--spacing-2);
    }
    
    .profiling-section .ui.info.message p {
        text-align: center;
        color: var(--blue-700);
        font-weight: 500;
    }

    /* ===== STAR RATING ===== */
    
    .star-rating {
        display: flex;
        align-items: center;
        gap: var(--spacing-1);
    }
    
    .star-rating .star.icon {
        color: var(--gray-300);
        font-size: 1.2em;
        transition: color 0.2s ease;
    }
    
    .star-rating .star.icon.filled {
        color: #fbbf24; /* Gold color for filled stars */
    }
    
    .star-rating .star.icon.half-filled {
        color: var(--gray-300);
        position: relative;
    }
    
    .star-rating .star.icon.half-filled::before {
        content: '★';
        position: absolute;
        left: 0;
        top: 0;
        width: 50%;
        overflow: hidden;
        color: #fbbf24;
        z-index: 1;
    }
    
    .star-rating .score-text {
        font-size: var(--font-size-sm);
        color: var(--gray-600);
        margin-left: var(--spacing-2);
        font-weight: 500;
    }
    
    /* Star rating in table cells */
    .ui.table .star-rating {
        justify-content: center;
        padding: var(--spacing-2) 0;
    }
    
    .ui.table .star-rating .star.icon {
        font-size: 1.1em;
    }
    
    /* Hover effect for star ratings */
    .star-rating:hover .star.icon.filled {
        color: #f59e0b; /* Slightly darker gold on hover */
    }
    
    /* Sortable Table Headers */
    .ui.table th.sortable {
        cursor: pointer;
        user-select: none;
        position: relative;
        transition: background-color 0.2s ease;
    }
    
    .ui.table th.sortable:hover {
        background-color: var(--blue-50);
    }
    
    .ui.table th.sortable a {
        color: inherit;
        text-decoration: none;
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        padding: 0.5rem 0;
    }
    
    .ui.table th.sortable a:hover {
        color: var(--primary-color);
    }
    
    .ui.table th.sortable a.sorted {
        color: var(--primary-color);
        font-weight: 600;
    }
    
    .ui.table th.sortable .sort.icon {
        opacity: 0.5;
        font-size: 0.9em;
        margin-left: 0.5rem;
        transition: opacity 0.2s ease;
    }
    
    .ui.table th.sortable:hover .sort.icon {
        opacity: 0.8;
    }
    
    .ui.table th.sortable a.sorted .sort.icon {
        opacity: 1;
        color: var(--primary-color);
    }
    
    .ui.table th.sortable .sort.up.icon::before {
        content: '\f0de'; /* FontAwesome sort-up */
    }
    
    .ui.table th.sortable .sort.down.icon::before {
        content: '\f0dd'; /* FontAwesome sort-down */
    }
    
    .ui.table th.sortable .sort.icon::before {
        content: '\f0dc'; /* FontAwesome sort */
    }
 
    /* ===== SEARCH SECTION ===== */
    
    .search-section {
        background: var(--white);
        border: 1px solid var(--gray-200);
        border-radius: var(--radius-lg);
        padding: var(--spacing-6);
        margin: var(--spacing-6) 0;
        box-shadow: var(--shadow-sm);
    }
    
    .search-section .ui.form .field {
        margin-bottom: 0;
    }
    
    .search-section .ui.form .field label {
        font-weight: 600;
        color: var(--gray-700);
        margin-bottom: var(--spacing-2);
    }
    
    .search-section .ui.buttons {
        display: flex;
        gap: var(--spacing-2);
    }
    
    .search-section .ui.buttons .ui.button {
        flex: 1;
        min-width: auto;
    }
    
    /* ===== AUTHENTICATION PAGES ===== */
    
    .ui.middle.aligned.center.aligned.grid .ui.segment {
        background: var(--white);
        border: 1px solid var(--gray-200);
        border-radius: var(--radius-lg);
        box-shadow: var(--shadow-lg);
        padding: var(--spacing-8);
        margin: 0;
    }
    
    .ui.middle.aligned.center.aligned.grid .ui.header {
        text-align: center;
        margin-bottom: var(--spacing-6);
    }
    
    .ui.middle.aligned.center.aligned.grid .ui.header .icon {
        font-size: 2.5em;
        color: var(--primary-color);
        margin-bottom: var(--spacing-4);
    }
    
    .ui.middle.aligned.center.aligned.grid .ui.header .content {
        font-size: var(--font-size-2xl);
        font-weight: 700;
        color: var(--gray-900);
        line-height: 1.2;
    }
    
    .ui.middle.aligned.center.aligned.grid .ui.header .sub.header {
        font-size: var(--font-size-lg);
        color: var(--gray-600);
        font-weight: 400;
        margin-top: var(--spacing-2);
    }
    
    .ui.middle.aligned.center.aligned.grid .ui.form .field {
        margin-bottom: var(--spacing-4);
        position: relative;
    }
    
    .ui.middle.aligned.center.aligned.grid .ui.form .field .ui.left.icon.input {
        position: relative !important;
        display: block !important;
        width: 100% !important;
    }
    
    .ui.middle.aligned.center.aligned.grid .ui.form .ui.left.icon.input {
        position: relative !important;
    }
    
    .ui.middle.aligned.center.aligned.grid .ui.form .ui.left.icon.input input {
        padding-left: 3rem !important;
        height: 48px !important;
        border: 1px solid var(--gray-300) !important;
        border-radius: var(--radius-md) !important;
        font-size: var(--font-size-base) !important;
        transition: all 0.2s ease !important;
        background: var(--white) !important;
        color: var(--gray-800) !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    
    .ui.middle.aligned.center.aligned.grid .ui.form .ui.left.icon.input input:focus {
        outline: none !important;
        border-color: var(--primary-color) !important;
        box-shadow: 0 0 0 3px rgb(34 197 94 / 0.1) !important;
    }
    
    .ui.middle.aligned.center.aligned.grid .ui.form .ui.left.icon.input .icon {
        position: absolute !important;
        left: 1rem !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        color: var(--gray-500) !important;
        font-size: 1.1em !important;
        z-index: 1 !important;
        pointer-events: none !important;
    }
    
    .ui.middle.aligned.center.aligned.grid .ui.button {
        height: 48px;
        font-size: var(--font-size-base);
        font-weight: 600;
        border-radius: var(--radius-md);
        transition: all 0.2s ease;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: var(--spacing-2);
    }
    
    .ui.middle.aligned.center.aligned.grid .ui.primary.button {
        background: var(--primary-color);
        color: var(--white);
        border: none;
    }
    
    .ui.middle.aligned.center.aligned.grid .ui.primary.button:hover {
        background: var(--primary-hover);
        transform: translateY(-1px);
        box-shadow: var(--shadow-md);
    }
    
    .ui.middle.aligned.center.aligned.grid .ui.message {
        background: var(--gray-50);
        border: 1px solid var(--gray-200);
        border-radius: var(--radius-md);
        padding: var(--spacing-4);
        margin-top: var(--spacing-4);
        text-align: center;
    }
    
    .ui.middle.aligned.center.aligned.grid .ui.horizontal.divider {
        margin: var(--spacing-4) 0;
        color: var(--gray-500);
        font-size: var(--font-size-sm);
        position: relative;
    }
    
    .ui.middle.aligned.center.aligned.grid .ui.horizontal.divider::before,
.ui.middle.aligned.center.aligned.grid .ui.horizontal.divider::after {
        border-top: 1px solid var(--gray-200);
    }
    
    .ui.middle.aligned.center.aligned.grid .ui.negative.message {
        background: rgb(220 38 38 / 0.1);
        border-color: var(--error-color);
        color: var(--error-color);
    }
    
    .ui.middle.aligned.center.aligned.grid .ui.error.message {
        background: rgb(220 38 38 / 0.1);
        border-color: var(--error-color);
        color: var(--error-color);
        display: none;
    }
    
    .ui.middle.aligned.center.aligned.grid .ui.primary.text {
        color: var(--primary-color);
        text-decoration: none;
        font-weight: 500;
    }
    
    .ui.middle.aligned.center.aligned.grid .ui.primary.text:hover {
        text-decoration: underline;
    }
    
    /* Override Semantic UI default icon positioning */
    .ui.middle.aligned.center.aligned.grid .ui.form .ui.left.icon.input .icon {
        position: absolute !important;
        left: 0rem !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        color: var(--gray-500) !important;
        font-size: 1.1em !important;
        z-index: 1 !important;
        pointer-events: none !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    .ui.middle.aligned.center.aligned.grid .ui.form .ui.left.icon.input input {
        padding-left: 3rem !important;
        height: 48px !important;
        border: 1px solid var(--gray-300) !important;
        border-radius: var(--radius-md) !important;
        font-size: var(--font-size-base) !important;
        transition: all 0.2s ease !important;
        background: var(--white) !important;
        color: var(--gray-800) !important;
        width: 100% !important;
        box-sizing: border-box !important;
        margin: 0 !important;
    }
    
    /* ===== CLIENTS TABLE ===== */
    
    .ui.segment .ui.celled.table {
        margin: 0 auto;
        border-collapse: collapse;
        width: 100%;
    }
    
    .ui.segment .ui.celled.table thead th {
        background: var(--gray-50);
        border: 1px solid var(--gray-200);
        padding: var(--spacing-3) var(--spacing-4);
        font-weight: 600;
        color: var(--gray-700);
        text-align: left;
    }
    
    .ui.segment .ui.celled.table tbody td {
        border: 1px solid var(--gray-200);
        padding: var(--spacing-3) var(--spacing-4);
        vertical-align: middle;
    }
    
    .ui.segment .ui.celled.table tbody tr:hover {
        background: var(--gray-50);
    }
    
    .ui.segment .ui.celled.table .ui.label {
        margin: 0;
        font-size: 0.8em;
    }
    
    .ui.segment .ui.celled.table .ui.dropdown {
        min-width: 120px;
    }
    
    .ui.segment .ui.celled.table .ui.small.buttons {
        display: flex;
        gap: var(--spacing-2);
        flex-wrap: wrap;
        justify-content: flex-start;
        align-items: center;
    }
    
    .ui.segment .ui.celled.table .ui.small.buttons .ui.button {
        padding: var(--spacing-3) var(--spacing-4);
        font-size: var(--font-size-sm);
        white-space: nowrap;
        min-width: auto;
        flex-shrink: 0;
        border-radius: var(--radius-md);
        font-weight: 500;
        transition: all 0.2s ease;
        display: inline-flex;
        align-items: center;
        gap: var(--spacing-2);
        box-shadow: var(--shadow-sm);
    }
    
    /* Icon-only buttons */
    .ui.segment .ui.celled.table .ui.small.buttons .ui.button.icon-only {
        padding: var(--spacing-3);
        min-width: 44px;
        justify-content: center;
    }
    
    .ui.segment .ui.celled.table .ui.small.buttons .ui.button.icon-only i.icon {
        margin: 0;
        font-size: 1.2em;
    }
    
    /* Enhanced hover effects for icon-only buttons */
    .ui.segment .ui.celled.table .ui.small.buttons .ui.button.icon-only:hover {
        transform: translateY(-2px);
        box-shadow: var(--shadow-lg);
    }
    
    .ui.segment .ui.celled.table .ui.small.buttons .ui.button.icon-only:hover i.icon {
        transform: scale(1.15);
    }
    
    .ui.segment .ui.celled.table .ui.small.buttons .ui.button:hover {
        transform: translateY(-1px);
        box-shadow: var(--shadow-md);
    }
    
    .ui.segment .ui.celled.table .ui.small.buttons .ui.button i.icon {
        font-size: 1.1em;
        margin-right: var(--spacing-1);
    }
    
    .ui.segment .ui.celled.table .ui.small.buttons .ui.basic.button {
        border: 2px solid var(--gray-300);
        background: var(--white);
        color: var(--gray-700);
        transition: all 0.2s ease;
        font-weight: 500;
    }
    
    .ui.segment .ui.celled.table .ui.small.buttons .ui.basic.button:hover {
        background: var(--gray-50);
        border-color: var(--gray-400);
        color: var(--gray-900);
        transform: translateY(-1px);
    }
    
    .ui.segment .ui.celled.table .ui.small.buttons .ui.basic.blue.button {
        border-color: var(--blue-400);
        color: var(--blue-600);
        background: var(--blue-50);
    }
    
    .ui.segment .ui.celled.table .ui.small.buttons .ui.basic.blue.button:hover {
        background: var(--blue-100);
        border-color: var(--blue-500);
        color: var(--blue-700);
    }
    
    .ui.segment .ui.celled.table .ui.small.buttons .ui.basic.green.button {
        border-color: var(--green-400);
        color: var(--green-600);
        background: var(--green-50);
    }
    
    .ui.segment .ui.celled.table .ui.small.buttons .ui.basic.green.button:hover {
        background: var(--green-100);
        border-color: var(--green-500);
        color: var(--green-700);
    }
    
    .ui.segment .ui.celled.table .ui.small.buttons .ui.basic.red.button {
        border-color: var(--red-400);
        color: var(--red-600);
        background: var(--red-50);
    }
    
    .ui.segment .ui.celled.table .ui.small.buttons .ui.basic.red.button:hover {
        background: var(--red-100);
        border-color: var(--red-500);
        color: var(--red-700);
    }
    
    /* ===== TINY BUTTONS (for admin templates, etc.) ===== */
    
    .ui.tiny.buttons {
        display: flex;
        gap: var(--spacing-2);
        flex-wrap: wrap;
        justify-content: flex-start;
        align-items: center;
    }
    
    .ui.tiny.buttons .ui.button {
        padding: var(--spacing-2) var(--spacing-3);
        font-size: var(--font-size-sm);
        white-space: nowrap;
        min-width: auto;
        flex-shrink: 0;
        border-radius: var(--radius-md);
        font-weight: 500;
        transition: all 0.2s ease;
        display: inline-flex;
        align-items: center;
        gap: var(--spacing-1);
        box-shadow: var(--shadow-sm);
    }
    
    /* Icon-only tiny buttons */
    .ui.tiny.buttons .ui.button.icon-only {
        padding: var(--spacing-2);
        min-width: 36px;
        justify-content: center;
    }
    
    .ui.tiny.buttons .ui.button.icon-only i.icon {
        margin: 0;
        font-size: 1.1em;
    }
    
    /* Enhanced hover effects for tiny icon-only buttons */
    .ui.tiny.buttons .ui.button.icon-only:hover {
        transform: translateY(-2px);
        box-shadow: var(--shadow-lg);
    }
    
    .ui.tiny.buttons .ui.button.icon-only:hover i.icon {
        transform: scale(1.15);
    }
    
    .ui.tiny.buttons .ui.button:hover {
        transform: translateY(-1px);
        box-shadow: var(--shadow-md);
    }
    
    .ui.tiny.buttons .ui.button i.icon {
        font-size: 1.1em;
    }
    
    .ui.tiny.buttons .ui.basic.button {
        border: 2px solid var(--gray-300);
        background: var(--white);
        color: var(--gray-700);
        transition: all 0.2s ease;
        font-weight: 500;
    }
    
    .ui.tiny.buttons .ui.basic.button:hover {
        background: var(--gray-50);
        border-color: var(--gray-400);
        color: var(--gray-900);
        transform: translateY(-1px);
    }
    
    .ui.tiny.buttons .ui.basic.blue.button {
        border-color: var(--blue-400);
        color: var(--blue-600);
        background: var(--blue-50);
    }
    
    .ui.tiny.buttons .ui.basic.blue.button:hover {
        background: var(--blue-100);
        border-color: var(--blue-500);
        color: var(--blue-700);
    }
    
    .ui.tiny.buttons .ui.basic.red.button {
        border-color: var(--red-400);
        color: var(--red-600);
        background: var(--red-50);
    }
    
    .ui.tiny.buttons .ui.basic.red.button:hover {
        background: var(--red-100);
        border-color: var(--red-500);
        color: var(--red-700);
    }
    
    /* ===== TOOLTIPS FOR ICON-ONLY BUTTONS ===== */
    
    .ui.button[title]:hover::after {
        content: attr(title);
        position: absolute;
        bottom: 100%;
        left: 50%;
        transform: translateX(-50%);
        background: var(--gray-800);
        color: var(--white);
        padding: var(--spacing-2) var(--spacing-3);
        border-radius: var(--radius-sm);
        font-size: var(--font-size-xs);
        white-space: nowrap;
        z-index: 1000;
        margin-bottom: var(--spacing-1);
        box-shadow: var(--shadow-md);
    }
    
    .ui.button[title]:hover::before {
        content: '';
        position: absolute;
        bottom: 100%;
        left: 50%;
        transform: translateX(-50%);
        border: 4px solid transparent;
        border-top-color: var(--gray-800);
        margin-bottom: calc(-1 * var(--spacing-1));
        z-index: 1000;
    }
    
    /* ===== HOME PAGE ===== */

.hero-section {
  background: linear-gradient(135deg, var(--white) 0%, var(--gray-50) 100%);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  padding: var(--spacing-12) var(--spacing-6);
  margin: var(--spacing-8) 0;
  text-align: center;
}

.hero-section .ui.huge.header {
  margin-bottom: var(--spacing-8);
}

.hero-section .ui.huge.header .icon {
  font-size: 3em;
  color: var(--primary-color);
  margin-bottom: var(--spacing-4);
}

.hero-section .ui.huge.header .content {
  font-size: var(--font-size-3xl);
  font-weight: 700;
  color: var(--gray-900);
  line-height: 1.2;
}

.hero-section .ui.huge.header .sub.header {
  font-size: var(--font-size-xl);
  color: var(--gray-600);
  font-weight: 400;
  margin-top: var(--spacing-4);
}

.hero-section .ui.statistics {
  margin: var(--spacing-8) 0;
}

.hero-section .ui.statistics .statistic {
  margin: 0 var(--spacing-4);
}

.hero-section .ui.statistics .statistic .value {
  font-size: var(--font-size-lg);
  font-weight: 600;
  color: var(--gray-800);
  margin-bottom: var(--spacing-2);
}

.hero-section .ui.statistics .statistic .value .icon {
  margin-right: var(--spacing-2);
  color: var(--primary-color);
}

.hero-section .ui.statistics .statistic .label {
  font-size: var(--font-size-sm);
  color: var(--gray-600);
  font-weight: 500;
}

.hero-section .ui.buttons {
  margin: var(--spacing-8) 0;
}

.hero-section .ui.primary.huge.button {
  background: var(--primary-color);
  color: var(--white);
  font-size: var(--font-size-lg);
  font-weight: 600;
  padding: var(--spacing-5) var(--spacing-8);
  border-radius: var(--radius-lg);
  transition: all 0.3s ease;
  margin: 0 var(--spacing-2);
}

.hero-section .ui.primary.huge.button:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.hero-section .ui.secondary.huge.button {
  background: var(--secondary-color);
  color: var(--white);
  border: 1px solid var(--secondary-color);
  font-size: var(--font-size-lg);
  font-weight: 600;
  padding: var(--spacing-5) var(--spacing-8);
  border-radius: var(--radius-lg);
  transition: all 0.3s ease;
  margin: 0 var(--spacing-2);
}

.hero-section .ui.secondary.huge.button:hover {
  background: var(--orange-700);
  color: var(--white);
  border-color: var(--orange-700);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.hero-section .ui.three.stackable.cards {
  margin-top: var(--spacing-10);
}

.hero-section .ui.card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  height: 100%;
}

.hero-section .ui.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.hero-section .ui.card .content {
  padding: var(--spacing-6);
  text-align: center;
}

.hero-section .ui.card .header {
  font-size: var(--font-size-xl);
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: var(--spacing-3);
}

.hero-section .ui.card .meta {
  font-size: var(--font-size-sm);
  color: var(--primary-color);
  font-weight: 500;
  margin-bottom: var(--spacing-4);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.hero-section .ui.card .description {
  color: var(--gray-600);
  line-height: 1.6;
}

.hero-section .ui.card .right.floated.icon {
  font-size: 2em;
  color: var(--primary-color);
  margin-bottom: var(--spacing-4);
}

/* ===== AUTHENTICATION PAGES ===== */

.ui.middle.aligned.center.aligned.grid {
  min-height: 80vh;
}

.ui.middle.aligned.center.aligned.grid .column {
  max-width: 450px;
}

.ui.middle.aligned.center.aligned.grid .column[style*="600px"] {
  max-width: 600px;
}

.ui.middle.aligned.center.aligned.grid .ui.segment {
  padding: var(--spacing-8);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--gray-200);
}

.ui.middle.aligned.center.aligned.grid .ui.header {
  text-align: center;
  margin-bottom: var(--spacing-6);
}

.ui.middle.aligned.center.aligned.grid .ui.header .icon {
  font-size: 2.5em;
  color: var(--primary-color);
  margin-bottom: var(--spacing-4);
}

.ui.middle.aligned.center.aligned.grid .ui.header .content {
  font-size: var(--font-size-2xl);
  font-weight: 700;
  color: var(--gray-900);
}

.ui.middle.aligned.center.aligned.grid .ui.header .sub.header {
  font-size: var(--font-size-base);
  color: var(--gray-600);
  font-weight: 400;
  margin-top: var(--spacing-2);
}

.ui.middle.aligned.center.aligned.grid .ui.form .field {
  margin-bottom: var(--spacing-5);
}

.ui.middle.aligned.center.aligned.grid .ui.form .ui.left.icon.input {
  position: relative;
}

.ui.middle.aligned.center.aligned.grid .ui.form .ui.left.icon.input input {
  padding-left: var(--spacing-12);
  height: 48px;
  font-size: var(--font-size-base);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-md);
  transition: all 0.2s ease;
}

.ui.middle.aligned.center.aligned.grid .ui.form .ui.left.icon.input input:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgb(37 99 235 / 0.1);
}

.ui.middle.aligned.center.aligned.grid .ui.form .ui.left.icon.input .icon {
  position: absolute;
  left: var(--spacing-4);
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray-400);
  font-size: var(--font-size-lg);
}

.ui.middle.aligned.center.aligned.grid .ui.button {
  height: 48px;
  font-size: var(--font-size-base);
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: all 0.2s ease;
}

.ui.middle.aligned.center.aligned.grid .ui.primary.button {
  background: var(--primary-color);
  color: var(--white);
}

.ui.middle.aligned.center.aligned.grid .ui.primary.button:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.ui.middle.aligned.center.aligned.grid .ui.message {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: var(--spacing-4);
  margin-top: var(--spacing-4);
}

.ui.middle.aligned.center.aligned.grid .ui.horizontal.divider {
  margin: var(--spacing-4) 0;
  color: var(--gray-500);
  font-size: var(--font-size-sm);
}

.ui.middle.aligned.center.aligned.grid .ui.horizontal.divider::before,
.ui.middle.aligned.center.aligned.grid .ui.horizontal.divider::after {
  border-top: 1px solid var(--gray-200);
}

.ui.middle.aligned.center.aligned.grid .ui.negative.message {
  background: rgb(220 38 38 / 0.1);
  border-color: var(--error-color);
  color: var(--error-color);
}

.ui.middle.aligned.center.aligned.grid .ui.error.message {
  background: rgb(220 38 38 / 0.1);
  border-color: var(--error-color);
  color: var(--error-color);
  display: none;
}

.ui.middle.aligned.center.aligned.grid .ui.primary.text {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
}

.ui.middle.aligned.center.aligned.grid .ui.primary.text:hover {
  text-decoration: underline;
}

/* ===== TYPOGRAPHY ===== */

h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.25;
  margin: 0 0 var(--spacing-4) 0;
  color: var(--gray-900);
}

h1 { font-size: var(--font-size-3xl); }
h2 { font-size: var(--font-size-2xl); }
h3 { font-size: var(--font-size-xl); }
h4 { font-size: var(--font-size-lg); }
h5 { font-size: var(--font-size-base); }
h6 { font-size: var(--font-size-sm); }

p {
  margin: 0 0 var(--spacing-4) 0;
  color: var(--gray-700);
}

/* ===== CARDS & SEGMENTS ===== */

.ui.segment {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: var(--spacing-6);
  margin: var(--spacing-4) 0;
}

.ui.card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}

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

.ui.card .content {
  padding: var(--spacing-5);
}

.ui.card .header {
  font-size: var(--font-size-lg);
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: var(--spacing-3);
}

/* ===== FORMS ===== */

.ui.form .field {
  margin-bottom: var(--spacing-5);
}

.ui.form .field label {
  display: block;
  font-weight: 500;
  color: var(--gray-700) !important;
  margin-bottom: var(--spacing-2);
}

.ui.form .field input,
.ui.form .field textarea,
.ui.form .field select {
  width: 100%;
  padding: var(--spacing-3) var(--spacing-4);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-md);
  font-size: var(--font-size-base);
  transition: all 0.2s ease;
  background: var(--white);
}

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

.ui.form .field.error input,
.ui.form .field.error textarea,
.ui.form .field.error select {
  border-color: var(--error-color);
}

.ui.form .field .error.message {
  color: var(--error-color);
  font-size: var(--font-size-sm);
  margin-top: var(--spacing-2);
}

/* ===== BUTTONS ===== */

.ui.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-3) var(--spacing-5);
  border: none;
  border-radius: var(--radius-md);
  font-size: var(--font-size-base);
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  gap: var(--spacing-2);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

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

.ui.button i.icon {
  font-size: 1.1em;
  transition: transform 0.2s ease;
}

.ui.button:hover i.icon {
  transform: scale(1.1);
}

.ui.primary.button {
  background: var(--primary-color);
  color: var(--white);
}

.ui.primary.button:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.ui.secondary.button {
  background: var(--secondary-color);
  color: var(--white);
  border: 1px solid var(--secondary-color);
}

.ui.secondary.button:hover {
  background: var(--orange-700);
  color: var(--white);
  border-color: var(--orange-700);
}

.ui.basic.button {
  background: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  font-weight: 500;
}

.ui.basic.button:hover {
  background: var(--primary-color);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.ui.button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}

/* ===== BASIC BUTTON VARIANTS ===== */

.ui.basic.blue.button {
  border-color: var(--blue-400);
  color: var(--blue-600);
  background: var(--blue-50);
}

.ui.basic.blue.button:hover {
  background: var(--blue-100);
  border-color: var(--blue-500);
  color: var(--blue-700);
}

.ui.basic.green.button {
  border-color: var(--green-400);
  color: var(--green-600);
  background: var(--green-50);
}

.ui.basic.green.button:hover {
  background: var(--green-100);
  border-color: var(--green-500);
  color: var(--green-700);
}

.ui.basic.red.button {
  border-color: var(--red-400);
  color: var(--red-600);
  background: var(--red-50);
}

.ui.basic.red.button:hover {
  background: var(--red-100);
  border-color: var(--red-500);
  color: var(--red-700);
}

/* ===== TABLES ===== */

.ui.table {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.ui.table thead th {
  background: var(--gray-50);
  color: var(--gray-700) !important;
  font-weight: 600;
  padding: var(--spacing-4);
  border-bottom: 1px solid var(--gray-200);
  text-align: left;
}

.ui.table tbody td {
  padding: var(--spacing-4);
  border-bottom: 1px solid var(--gray-100);
  color: var(--gray-800) !important;
}

.ui.table tbody tr:hover {
  background: var(--gray-50);
}

.ui.table tbody tr:last-child td {
  border-bottom: none;
}

/* ===== BADGES & LABELS ===== */

.ui.label {
  display: inline-flex;
  align-items: center;
  padding: var(--spacing-1) var(--spacing-3);
  border-radius: var(--radius-sm);
  font-size: var(--font-size-sm);
  font-weight: 500;
  text-decoration: none;
}

.ui.primary.label {
  background: var(--primary-color);
  color: var(--white);
}

.ui.success.label {
  background: var(--success-color);
  color: var(--white);
}

.ui.warning.label {
  background: var(--warning-color);
  color: var(--white);
}

.ui.error.label {
  background: var(--error-color);
  color: var(--white);
}

.ui.info.label {
  background: var(--info-color);
  color: var(--white);
}

/* ===== DROPDOWNS ===== */

/* Multiple selection dropdowns */
.ui.multiple.selection.dropdown {
  min-height: 2.5em;
}

.ui.multiple.selection.dropdown .label {
  display: inline-flex;
  align-items: center;
  margin: 0.25em 0.25em 0.25em 0;
  padding: 0.5em 0.75em;
  font-size: 0.875em;
  background: var(--blue-100);
  color: var(--blue-700);
  border: 1px solid var(--blue-200);
  border-radius: var(--radius-sm);
  font-weight: 500;
  transition: all 0.2s ease;
}

.ui.multiple.selection.dropdown .label:hover {
  background: var(--blue-200);
  border-color: var(--blue-400);
}

.ui.multiple.selection.dropdown .label .delete {
  margin-left: 0.5em;
  color: var(--blue-500);
  opacity: 0.7;
  transition: opacity 0.2s ease;
  cursor: pointer;
}

.ui.multiple.selection.dropdown .label .delete:hover {
  opacity: 1;
  color: var(--blue-700);
}

.ui.multiple.selection.dropdown .menu {
  max-height: 200px;
  overflow-y: auto;
}

.ui.multiple.selection.dropdown .menu .item {
  padding: var(--spacing-3) var(--spacing-4);
  border-bottom: 1px solid var(--gray-100);
}

.ui.multiple.selection.dropdown .menu .item:hover {
  background: var(--gray-50);
}

.ui.multiple.selection.dropdown .menu .item.selected {
  background: var(--blue-50);
  color: var(--blue-700);
  font-weight: 500;
}

/* Manual dropdown fallback styles */
.ui.multiple.selection.dropdown.active .menu {
  display: block !important;
}

.ui.multiple.selection.dropdown .labels {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25em;
  margin-top: 0.5em;
}

.ui.multiple.selection.dropdown .default.text {
  color: var(--gray-500);
  font-style: italic;
}

.ui.multiple.selection.dropdown.active .default.text {
  color: var(--gray-700);
  font-style: normal;
}

/* ===== CHECKBOXES ===== */

.ui.checkbox {
  display: block;
  margin: var(--spacing-2) 0;
}

.ui.checkbox input[type="checkbox"] {
  margin-right: var(--spacing-2);
}

.ui.checkbox label {
  cursor: pointer;
  font-weight: 500;
  color: var(--gray-700);
  transition: all 0.2s ease;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  padding: var(--spacing-2) var(--spacing-3);
}

.ui.checkbox label:hover {
  color: var(--gray-900);
  background-color: var(--gray-50);
  border-color: var(--gray-200);
}

.ui.checkbox input[type="checkbox"]:checked + label {
  color: var(--blue-700);
  font-weight: 600;
  background-color: var(--blue-50);
  border-color: var(--blue-200);
}

/* Client selection container styling */
.ui.segment .ui.checkbox {
  margin: var(--spacing-1) 0;
}

.ui.segment .ui.checkbox label {
  margin: 0;
  width: 100%;
  box-sizing: border-box;
}

/* ===== MULTIPLE SELECTION DROPDOWN ===== */

/* Basic multiple selection dropdown styling */
.ui.multiple.search.selection.dropdown {
  min-height: 3.5em;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-md);
  transition: all 0.3s ease;
}

.ui.multiple.search.selection.dropdown:hover {
  border-color: var(--blue-300);
  box-shadow: var(--shadow-sm);
}

.ui.multiple.search.selection.dropdown.active {
  border-color: var(--blue-500);
  box-shadow: var(--shadow-md);
}

/* Selected labels styling */
.ui.multiple.search.selection.dropdown .label {
  background: var(--blue-100);
  color: var(--blue-700);
  border: 1px solid var(--blue-200);
  border-radius: var(--radius-sm);
  padding: 0.5em 0.75em;
  margin: 0.25em 0.25em 0.25em 0;
  font-size: 0.875em;
  font-weight: 500;
  transition: all 0.2s ease;
}

.ui.multiple.search.selection.dropdown .label:hover {
  background: var(--blue-200);
  border-color: var(--blue-300);
}

.ui.multiple.search.selection.dropdown .label .delete {
  margin-left: 0.5em;
  opacity: 0.7;
  transition: opacity 0.2s ease;
  cursor: pointer;
}

.ui.multiple.search.selection.dropdown .label .delete:hover {
  opacity: 1;
  color: var(--red-500);
}

/* Menu items styling */
.ui.multiple.search.selection.dropdown .menu {
  max-height: 250px;
  overflow-y: auto;
}

.ui.multiple.search.selection.dropdown .menu .item {
  padding: 0.75em 1em;
  border-bottom: 1px solid var(--gray-100);
  transition: all 0.2s ease;
}

.ui.multiple.search.selection.dropdown .menu .item:hover {
  background: var(--blue-50);
  color: var(--blue-700);
}

.ui.multiple.search.selection.dropdown .menu .item.selected {
  background: var(--blue-100);
  color: var(--blue-700);
  font-weight: 600;
}

/* Button styling for the control buttons */
.ui.tiny.buttons .ui.button {
  padding: 0.5em 1em;
  font-size: 0.875em;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
  margin: 0 0.25rem;
}

.ui.tiny.buttons .ui.button:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.ui.tiny.buttons .ui.button:first-child {
  margin-left: 0;
}

.ui.tiny.buttons .ui.button:last-child {
  margin-right: 0;
}

/* Button styling for the control buttons */
.ui.tiny.buttons .ui.button {
  padding: 0.5em 1em;
  font-size: 0.875em;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
  margin: 0 0.25rem;
}

.ui.tiny.buttons .ui.button:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.ui.tiny.buttons .ui.button:first-child {
  margin-left: 0;
}

.ui.tiny.buttons .ui.button:last-child {
  margin-right: 0;
}

/* ===== SEARCH & FILTERS ===== */

.ui.search {
  position: relative;
}

.ui.search input {
  width: 100%;
  padding: var(--spacing-3) var(--spacing-4);
  padding-left: var(--spacing-10);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-md);
  font-size: var(--font-size-base);
}

.ui.search .search.icon {
  position: absolute;
  left: var(--spacing-3);
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray-400);
}

/* ===== PAGINATION ===== */

.ui.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-2);
  margin: var(--spacing-6) 0;
}

.ui.pagination .item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: var(--spacing-2);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-md);
  background: var(--white);
  color: var(--gray-700) !important;
  text-decoration: none;
  transition: all 0.2s ease;
}

.ui.pagination .item:hover {
  background: var(--gray-50);
  border-color: var(--gray-400);
}

.ui.pagination .active.item {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: var(--white);
}

.ui.pagination .disabled.item {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ===== MESSAGES ===== */

.ui.message {
  padding: var(--spacing-4);
  border-radius: var(--radius-md);
  margin: var(--spacing-4) 0;
  border: 1px solid;
}

.ui.success.message {
  background: rgb(5 150 105 / 0.1);
  border-color: var(--success-color);
  color: var(--success-color);
}

.ui.error.message {
  background: rgb(220 38 38 / 0.1);
  border-color: var(--error-color);
  color: var(--error-color);
}

.ui.warning.message {
  background: rgb(217 119 6 / 0.1);
  border-color: var(--warning-color);
  color: var(--warning-color);
}

.ui.info.message {
  background: rgb(8 145 178 / 0.1);
  border-color: var(--info-color);
  color: var(--info-color);
}

.ui.message .header {
  font-weight: 600;
  margin-bottom: var(--spacing-2);
}

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

@media (max-width: 768px) {
  body {
    padding-top: 60px;
  }
  
  .ui.container {
    padding: 0 var(--spacing-3);
  }
  
  .ui.column {
    padding: var(--spacing-3);
  }
  
  .ui.segment {
    padding: var(--spacing-4);
  }
  
  .ui.fixed.menu .item {
    padding: var(--spacing-3) var(--spacing-4);
  }
  
  .ui.button {
    padding: var(--spacing-3) var(--spacing-4);
  }
  
  .ui.middle.aligned.center.aligned.grid .ui.segment {
    padding: var(--spacing-6);
  }
  
  .ui.middle.aligned.center.aligned.grid .column {
    max-width: 100% !important;
  }
  
  .hero-section {
    padding: var(--spacing-8) var(--spacing-4);
    margin: var(--spacing-4) 0;
  }
  
  .hero-section .ui.huge.header .content {
    font-size: var(--font-size-2xl);
  }
  
  .hero-section .ui.huge.header .sub.header {
    font-size: var(--font-size-lg);
  }
  
  .hero-section .ui.buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .hero-section .ui.primary.huge.button,
  .hero-section .ui.secondary.huge.button {
    margin: var(--spacing-2) 0;
    width: 100%;
    max-width: 300px;
  }
  
  .hero-section .ui.statistics {
    flex-direction: column;
    align-items: center;
  }
  
  .hero-section .ui.statistics .statistic {
    margin: var(--spacing-2) 0;
  }
}

/* ===== UTILITIES ===== */

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: var(--spacing-1); }
.mt-2 { margin-top: var(--spacing-2); }
.mt-3 { margin-top: var(--spacing-3); }
.mt-4 { margin-top: var(--spacing-4); }
.mt-5 { margin-top: var(--spacing-5); }
.mt-6 { margin-top: var(--spacing-6); }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: var(--spacing-1); }
.mb-2 { margin-bottom: var(--spacing-2); }
.mb-3 { margin-bottom: var(--spacing-3); }
.mb-4 { margin-bottom: var(--spacing-4); }
.mb-5 { margin-bottom: var(--spacing-5); }
.mb-6 { margin-bottom: var(--spacing-6); }

.p-0 { padding: 0; }
.p-1 { padding: var(--spacing-1); }
.p-2 { padding: var(--spacing-2); }
.p-3 { padding: var(--spacing-3); }
.p-4 { padding: var(--spacing-4); }
.p-5 { padding: var(--spacing-5); }
.p-6 { padding: var(--spacing-6); }

/* ===== ANIMATIONS ===== */

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

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

/* ===== LOADING STATES ===== */

.ui.loading {
  position: relative;
  pointer-events: none;
}

.ui.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid var(--gray-300);
  border-top: 2px solid var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
