/* ACT Performance Evaluation System - Complete Styles */

/* Search Input Styles for Dropdowns */
.dropdown-menu .form-control-sm {
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 0.875rem;
    padding: 0.5rem 0.75rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.dropdown-menu .form-control-sm:focus {
    border-color: #ff6600;
    box-shadow: 0 0 0 0.2rem rgba(255, 102, 0, 0.25);
    outline: 0;
}

.dropdown-menu .form-control-sm::placeholder {
    color: #6c757d;
    opacity: 0.8;
}

/* Enhanced dropdown menu width and positioning */
#managersDropdownMenu,
#employeesDropdownMenu {
    min-width: 550px !important;
    width: 550px !important;
    max-width: 600px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border: 1px solid #e0e0e0;
    border-radius: 8px;
}

/* Force dropdown width override any Bootstrap defaults */
.dropdown-menu#managersDropdownMenu,
.dropdown-menu#employeesDropdownMenu {
    min-width: 550px !important;
    width: 550px !important;
    max-width: 600px !important;
}

/* Enhanced dropdown item styles for better search experience */
.dropdown-item.evaluator-manager,
.dropdown-item.evaluator-employee {
    transition: all 0.15s ease-in-out;
    padding: 0.6rem 0.8rem;
    border: none;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 50px;
    word-wrap: break-word;
    white-space: normal;
    overflow: visible;
}

.dropdown-item.evaluator-manager:hover,
.dropdown-item.evaluator-employee:hover {
    background-color: #fff3e6;
    border-left: 4px solid #ff6600;
    transform: translateX(2px);
    color: #ff6600;
}

.dropdown-item.evaluator-manager.selected,
.dropdown-item.evaluator-employee.selected {
    background-color: #fff3e6;
    border-left: 4px solid #ff6600;
    font-weight: 500;
    color: #ff6600;
}

.dropdown-item.evaluator-manager:hover strong,
.dropdown-item.evaluator-employee:hover strong,
.dropdown-item.evaluator-manager.selected strong,
.dropdown-item.evaluator-employee.selected strong {
    color: #ff6600;
}

/* User info layout in dropdown items */
.dropdown-item > div:first-child {
    flex: 1;
    min-width: 0;
    margin-right: 0.5rem;
}

.dropdown-item > div:first-child strong {
    display: block;
    font-size: 0.9rem;
    color: #333;
    margin-bottom: 2px;
    word-break: break-word;
}

.dropdown-item > div:first-child small {
    display: block;
    font-size: 0.75rem;
    color: #6c757d;
    line-height: 1.2;
    word-break: break-word;
}

/* Badge and check icon container */
.dropdown-item > div:last-child {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-shrink: 0;
}

.dropdown-item .badge {
    font-size: 0.7rem;
    padding: 0.25rem 0.4rem;
    border-radius: 12px;
}

.dropdown-item .evaluator-check {
    font-size: 0.9rem;
}

/* Search input container styling */
.dropdown-menu .px-3.py-2.border-bottom {
    background-color: #f8f9fa;
    border-bottom: 2px solid #e9ecef !important;
    position: sticky;
    top: 0;
    z-index: 1;
}

/* Ensure proper positioning for search container */
.dropdown-menu .position-relative {
    position: relative !important;
    display: block !important;
}

/* Orange search icon styling */
.search-icon-orange {
    position: absolute !important;
    left: 20px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    color: #ff6600 !important;
    font-size: 0.9rem !important;
    pointer-events: none !important;
    z-index: 10 !important;
    display: block !important;
}

/* Search input with icon padding */
.dropdown-menu .form-control-sm.ps-5 {
    padding-left: 2.5rem !important;
    position: relative !important;
    z-index: 1 !important;
}

/* Modal-specific search icon fix */
.modal .dropdown-menu .search-icon-orange {
    position: absolute !important;
    left: 20px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    color: #ff6600 !important;
    font-size: 0.9rem !important;
    pointer-events: none !important;
    z-index: 10 !important;
    display: inline-block !important;
}

/* Empty state styling */
.dropdown-item.text-muted {
    text-align: center;
    padding: 1rem;
    font-style: italic;
    color: #adb5bd !important;
}

/* Scrollbar styling for dropdown content */
#managersDropdownMenu,
#employeesDropdownMenu {
    scrollbar-width: thin;
    scrollbar-color: #ccc #f8f9fa;
}

#managersDropdownMenu::-webkit-scrollbar,
#employeesDropdownMenu::-webkit-scrollbar {
    width: 6px;
}

#managersDropdownMenu::-webkit-scrollbar-track,
#employeesDropdownMenu::-webkit-scrollbar-track {
    background: #f8f9fa;
    border-radius: 3px;
}

#managersDropdownMenu::-webkit-scrollbar-thumb,
#employeesDropdownMenu::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

#managersDropdownMenu::-webkit-scrollbar-thumb:hover,
#employeesDropdownMenu::-webkit-scrollbar-thumb:hover {
    background: #999;
}

/* User Chips Styles */
.user-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border-radius: 14px;
    background: var(--gray-100);
    border: 1px solid var(--gray-200);
    margin: 4px 6px 4px 0;
    font-weight: 600;
    color: var(--primary-color);
}

.user-chip .remove-chip {
    cursor: pointer;
    color: var(--gray-500);
    font-size: 0.9rem;
    transition: var(--transition-fast);
}

.user-chip .remove-chip:hover {
    color: var(--primary-color);
}

/* HR All Users Page Specific Styles */
.navbar {
    background: #ffffff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    padding: 0.75rem 1rem;
}

.navbar-brand {
    color: #ff6600;
    font-weight: 700;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.navbar-brand i {
    color: #ff6600;
    font-size: 1.4rem;
}

/* Table Styles */
.table-card {
    border: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-radius: 20px;
    background: #fff;
    overflow: visible;
    flex: 1;
    display: flex;
    flex-direction: column;
    margin: 1.5rem auto;
    width: 1400px !important;
    max-width: 1400px;
    min-width: auto;
    margin-left: auto;
    margin-right: auto;
}
   

/* Make header area roomier so Add button sits lower and table area shows more rows */
.table-card .card-header {
    padding: 0.9rem 1.2rem; /* increase vertical padding */
    align-items: center;
    gap: 0.5rem;
    min-height: 64px;
}

.table-card .card-header .btn-add {
    padding: 0.5rem 0.9rem;
    border-radius: 10px;
    font-size: 0.95rem;

    
}

.table-responsive {
    border-radius: 0 0 20px 20px;
    flex: 1;
    overflow: visible;
}

/* Pagination Styles */
.pagination-container {
    padding: 0.75rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    background: white;
    border-radius: 0 0 20px 20px;
    margin-top: auto;
}

.pagination-button {
    padding: 0.5rem 1rem;
    border: 1px solid var(--gray-300);
    background: white;
    color: var(--primary-color);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pagination-button:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.pagination-button.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.pagination-button:disabled {
    background: var(--gray-200);
    color: var(--gray-500);
    cursor: not-allowed;
    border-color: var(--gray-300);
}

table { 
    font-size: 0.75rem; /* slightly larger but overall compact */
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
    min-width: auto;
}

table thead {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    font-weight: 600;
    font-size: 0.9rem;
    position: sticky;
    top: 0;
    z-index: 1;
}

table thead th {
    border: none;
    padding: 0.25rem 0.4rem;
    color: #ff6600;
    text-transform: uppercase;
    letter-spacing: 0.2px;
    border-bottom: 2px solid #ffd4b3;
    height: 34px; /* make header area a bit taller so Add button sits lower visually */
    font-size: 0.72rem;
    white-space: nowrap;
}

table tbody td { 
    vertical-align: middle; 
    padding: 0.3rem 0.5rem;
    border-bottom: 1px solid #f8f9fa;
    font-size: 0.82rem;
    white-space: normal; /* allow wrapping to avoid horizontal scroll */
    word-break: break-word;
    min-width: 0;
}

table tbody tr {
    transition: all 0.18s ease;
    border-bottom: 1px solid #f1f3f4;
    height: auto; /* allow rows to shrink/grow with wrapped content */
    padding: 0;
}

/* Make the actions column narrower for this specific users table to help avoid horizontal scroll */
#usersTable th:last-child, #usersTable td:last-child {
    width: 120px; /* reduced from 200px */
    max-width: 140px;
    text-align: center;
    white-space: nowrap;
}

/* Make badges and buttons compact inside table */
#usersTable .badge, #usersTable .btn-sm {
    font-size: 0.72rem;
    padding: 0.25rem 0.4rem;
}

table tbody tr:hover { 
    background: linear-gradient(135deg, #fff3e6 0%, #ffe8d1 100%);
    transform: scale(1.001);
}

/* Filter Styles */
.filters-container {
    background: white;
    padding: 1.5rem;
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    margin: 1.5rem auto;
    width: 1400px !important;
}

/* Evaluation Management Page - Match search container width */
.card.mb-2.mx-auto,
.card.mx-auto.mb-3 {
    width: 1400px !important;
    max-width: 1400px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.filters {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    align-items: center;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filter-label {
    font-weight: 600;
    color: #ff6600;
    font-size: 0.9rem;
}

/* Button Styles */
.btn {
    font-size: 0.95rem;
    padding: 0.6rem 1.2rem;
    border-radius: 12px;
    border: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

.btn:hover { 
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.btn-add    { background: linear-gradient(135deg, #ff6600 0%, #ff6600 100%); color: #fff; }
.btn-edit   { background: linear-gradient(135deg, #17a2b8 0%, #20c997 100%); color: #fff; }
.btn-delete { background: linear-gradient(135deg, #dc3545 0%, #e74c3c 100%); color: #fff; }
.btn-view   { background: linear-gradient(135deg, #ff6600 0%, #ff6600 100%); color: #fff; }
.btn-export { background: linear-gradient(135deg, #28a745 0%, #20c997 100%); color: #fff; }

/* Welcome Section */
.welcome-section {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    margin-bottom: 2rem;
}

.welcome-section .page-title {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: #2c3e50;
}

.welcome-section .page-title i {
    color: #ff6600;
    font-size: 1.8rem;
}

/* Import/Export Buttons */
.import-export-buttons {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.file-input-wrapper {
    position: relative;
    overflow: hidden;
    display: inline-block;
}

.file-input-wrapper input[type=file] {
    position: absolute;
    left: -9999px;
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1050;
}

.toast {
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    max-width: 400px;
    background: white;
}

.toast-success { background-color: #28a745; color: white; }
.toast-error { background-color: #dc3545; color: white; }

/* Selection Counter */
.selection-counter {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #1976d2;
  color: white;
  padding: 10px 20px;
  border-radius: 25px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  z-index: 1000;
  display: none;
}

.selection-counter.show {
  display: block;
  animation: slideInUp 0.3s ease;
}

/* Bulk Actions */
.bulk-actions {
  position: fixed;
  bottom: 70px;
  right: 20px;
  display: none;
  flex-direction: column;
  gap: 10px;
  z-index: 1001;
}

.bulk-actions.show {
  display: flex;
  animation: slideInUp 0.3s ease;
}

/* Row Selection Styles */
.selectable-row {
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.selectable-row:hover {
  background-color: rgba(40, 167, 69, 0.1) !important;
}

.selectable-row.selected {
  background-color: rgba(40, 167, 69, 0.2) !important;
  border-left: 4px solid #28a745;
}

.selectable-row.selected:hover {
  background-color: rgba(40, 167, 69, 0.25) !important;
}

/* Selection Animations */
.row-press {
  animation: rowPress 220ms ease;
}

@keyframes rowPress {
  0% { transform: scale(1); box-shadow: none; }
  50% { transform: scale(1.02); box-shadow: 0 6px 18px rgba(0,0,0,0.08); }
  100% { transform: scale(1); box-shadow: none; }
}

@keyframes slideInUp {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* CSS Variables */

:root {
    --primary-color: #ff6600;
    --primary-dark: #e55a00;
    --primary-light: #ff6600;
    --secondary-color: #ff6600;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --info-color: #17a2b8;
    --light-color: #fff3e6;
    --dark-color: #e55a00;
    --white: #ffffff;
    --gray-100: #fff3e6;
    --gray-200: #ffe8d1;
    --gray-300: #ffd4b3;
    --gray-400: #ffc299;
    --gray-500: #ffb380;
    --gray-600: #ffa366;
    --gray-700: #ff944d;
    --gray-800: #ff8533;
    --gray-900: #ff751a;
    
    /* Enhanced UI Variables */
    --shadow-sm: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    --shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 1rem 3rem rgba(0, 0, 0, 0.175);
    --border-radius: 0.5rem;
    --border-radius-lg: 1rem;
    --transition: all 0.3s ease;
    --transition-fast: all 0.15s ease;
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body { 
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    font-size: 0.98rem;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    line-height: 1.6;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    margin-bottom: 1rem;
}

.page-title {
    font-size: 2rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.page-subtitle {
    font-size: 1rem;
    color: #6b4603;
    margin-bottom: 0;
}

.page-subtitle {
    opacity: 0.9;
    font-size: 1.1rem;
}

/* Arabic Text Support */
.arabic-text {
    font-family: 'Arial', 'Tahoma', sans-serif;
    direction: rtl;
    text-align: right;
}

/* Enhanced Navigation */
.navbar {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 249, 250, 0.98) 100%) !important;
    /* backdrop-filter: blur(20px); - Removed for performance */
    border-bottom: 3px solid #ff6600;
    box-shadow: 0 4px 25px rgba(255, 140, 51, 0.15);
    padding: 1rem 0;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.navbar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #ff6600 0%, #e67a2b 50%, #ff6600 100%);
    /* animation: shimmer 3s ease-in-out infinite; - Removed for performance */
}

@keyframes shimmer {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.navbar-brand {
    font-weight: 800;
    color: #ff6600 !important;
    font-size: 1.6rem;
    text-decoration: none;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.navbar-brand:hover {
    color: #e67a2b !important;
    transform: scale(1.05);
    text-shadow: 0 2px 4px rgba(255, 140, 51, 0.3);
}

.navbar-brand i {
    margin-right: 0.75rem;
    font-size: 1.3em;
    background: linear-gradient(135deg, #ff6600 0%, #e67a2b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* User Info Styling */
.navbar .me-3.fw-bold {
    color: #2c3e50;
    font-weight: 600;
    padding: 0.5rem 1rem;
    background: rgba(255, 140, 51, 0.1);
    border-radius: 20px;
    border: 1px solid rgba(255, 140, 51, 0.2);
    transition: all 0.3s ease;
}

.navbar .me-3.fw-bold:hover {
    background: rgba(255, 140, 51, 0.15);
    border-color: rgba(255, 140, 51, 0.3);
    transform: translateY(-1px);
}

/* Enhanced Logout Button */
.navbar .btn-outline-danger {
    border-color: #dc3545;
    color: #dc3545;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.navbar .btn-outline-danger::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.navbar .btn-outline-danger:hover::before {
    left: 100%;
}

.navbar .btn-outline-danger:hover {
    background-color: #dc3545;
    border-color: #dc3545;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.3);
}

/* Mobile Navigation Enhancements */
@media (max-width: 991.98px) {
    .navbar {
        padding: 0.75rem 0;
    }
    
    .navbar-brand {
        font-size: 1.4rem;
    }
    
    .navbar .me-3.fw-bold {
        font-size: 0.9rem;
        padding: 0.4rem 0.8rem;
    }
    
    .navbar .btn-outline-danger {
        padding: 0.4rem 0.8rem;
        font-size: 0.9rem;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .navbar {
        background: linear-gradient(135deg, rgba(33, 37, 41, 0.98) 0%, rgba(52, 58, 64, 0.98) 100%) !important;
        border-bottom-color: #ff6600;
    }
    
    .navbar .me-3.fw-bold {
        color: #f8f9fa;
        background: rgba(255, 140, 51, 0.2);
        border-color: rgba(255, 140, 51, 0.3);
    }
}

/* Navigation Enhancements */
.navbar-nav {
    align-items: center;
}

.navbar-toggler {
    border: 2px solid #ff6600;
    border-radius: 8px;
    padding: 0.5rem;
    transition: all 0.3s ease;
}

.navbar-toggler:hover {
    border-color: #e67a2b;
    background: rgba(255, 140, 51, 0.1);
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(255, 140, 51, 0.25);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 140, 51, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Floating Navigation Elements */
.navbar-floating {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1050;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.navbar-floating .btn {
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.navbar-floating .btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg, #ff6600 0%, #e67a2b 100%);
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(255, 140, 51, 0.3);
    transition: all 0.3s ease;
    z-index: 1000;
}

.scroll-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 140, 51, 0.4);
}

.scroll-to-top.show {
    display: flex;
}

/* Notification Badge */
.navbar .notification-badge {
    position: relative;
}

.navbar .notification-badge::after {
    content: '';
    position: absolute;
    top: -5px;
    right: -5px;
    width: 12px;
    height: 12px;
    background: #dc3545;
    border-radius: 50%;
    border: 2px solid white;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(220, 53, 69, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0);
    }
}

/* Enhanced Breadcrumb Navigation */
.breadcrumb-nav {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 249, 250, 0.95) 100%);
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 140, 51, 0.2);
    margin-bottom: 2rem;
    box-shadow: 0 2px 15px rgba(255, 140, 51, 0.1);
    /* backdrop-filter: blur(10px); - Removed for performance */
}

.breadcrumb {
    background: none;
    padding: 0;
    margin: 0;
    font-size: 0.95rem;
    font-weight: 500;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "›";
    color: #ff6600;
    font-weight: bold;
    margin: 0 0.75rem;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.breadcrumb-item a {
    color: #ff6600;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    display: flex;
    align-items: center;
}

.breadcrumb-item a:hover {
    color: #e67a2b;
    background: rgba(255, 140, 51, 0.1);
    transform: translateY(-1px);
}

.breadcrumb-item a i {
    margin-right: 0.5rem;
    font-size: 0.9rem;
}

.breadcrumb-item.active {
    color: #6c757d;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    background: rgba(108, 117, 125, 0.1);
    border-radius: 6px;
}

/* Breadcrumb Animation */
.breadcrumb-item {
    animation: fadeInUp 0.6s ease-out;
}

.breadcrumb-item:nth-child(1) { animation-delay: 0.1s; }
.breadcrumb-item:nth-child(2) { animation-delay: 0.2s; }
.breadcrumb-item:nth-child(3) { animation-delay: 0.3s; }
.breadcrumb-item:nth-child(4) { animation-delay: 0.4s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 3rem 0;
    margin-bottom: 2rem;
    border-radius: 0 0 var(--border-radius-lg) var(--border-radius-lg);
    box-shadow: var(--shadow);
}

.page-header h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.page-header p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin: 0;
}

/* Enhanced Cards */
.card {
    border: none;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow);
    background: var(--white);
    overflow: hidden;
    height: 100%;
    transition: var(--transition);
    position: relative;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.card-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--white);
    border: none;
    padding: 1.5rem;
    font-weight: 600;
}

.card-body {
    padding: 2rem;
}

/* Loading States */
.loading {
    position: relative;
    overflow: hidden;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Skeleton Loading */
.skeleton {
    background: linear-gradient(90deg, var(--gray-200) 25%, var(--gray-300) 50%, var(--gray-200) 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.skeleton-text {
    height: 1rem;
    margin-bottom: 0.5rem;
    border-radius: var(--border-radius);
}

.skeleton-text:last-child {
    width: 60%;
}


/* Progress Indicators */
.progress-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 1rem 0;
}

.progress-step {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: var(--gray-300);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin: 0 0.5rem;
    transition: var(--transition);
}

.progress-step.active {
    background: var(--primary-color);
}

.progress-step.completed {
    background: var(--success-color);
}

.progress-line {
    width: 3rem;
    height: 2px;
    background: var(--gray-300);
    margin: 0 0.25rem;
}

.progress-line.completed {
    background: var(--success-color);
}

.card-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
        font-weight: 700;
        font-size: 1rem;
        padding: 0.6rem 1rem;
    border: none;
}

/* HR Users Evaluation Styles */
.filters-container {
    background: white;
    padding: 1.5rem;
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    width: 1100px;
   
}

.filters {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    align-items: center;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filter-label {
    font-weight: 600;
    color: var(--gray-700);
    font-size: 0.9rem;
}

.table-responsive {
    max-height: none;
    overflow-y: visible;
    border-radius: 0 0 12px 12px;
}

table {
    font-size: 1rem;
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
}

table thead {
    background: var(--gray-100);
    font-weight: 700;
    font-size: 1rem;
    position: sticky;
    top: 0;
    z-index: 1;
}

table thead th {
    border: none;
    padding: 0.75rem 1rem;
    color: #495057; /* muted dark */
    white-space: nowrap;
    font-weight: 700;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    text-shadow: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #dee2e6;
}

table tbody td {
    vertical-align: middle;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--gray-100);
    font-size: 0.95rem;
}

table tbody tr {
    transition: all 0.3s ease;
}

table tbody tr:hover {
    background: linear-gradient(135deg, #fff3e6 0%, #ffe8d1 100%);
}

.status-badge {
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-block;
    text-align: center;
    min-width: 80px;
}

.status-completed {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.status-pending {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.page-header {
    padding: 2rem 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    border-radius: 0 0 25px 25px;
    margin-bottom: 1.5rem;
}

.small-muted {
    color: var(--gray-600);
}

.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1050;
}

.section-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-body {
    padding: 2rem;
}

/* Option Cards */
.option-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: none;
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: inherit;
    position: relative;
    overflow: hidden;
}

.option-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.option-card:hover::before {
    transform: scaleX(1);
}

.option-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 40px rgba(255, 102, 0, 0.2);
    color: inherit;
    text-decoration: none;
}

.option-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.option-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 0.5rem;
}

.option-description {
    color: #666;
    font-size: 0.9rem;
    text-align: center;
    max-width: 200px;
}

/* Status Badges */
.status-badge {
    
    top: 15px;
    right: 15px;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
}

.status-completed {
    background: var(--success-color);
    color: white;
}

.status-pending {
    background: var(--warning-color);
    color: white;
}

.status-in-progress {
    background: var(--info-color);
    color: white;
}

/* Welcome Section */
.welcome-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 2rem;
    text-align: center;
}

/* Language Toggle */
.language-toggle {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 1000;
}

/* Enhanced Buttons */
.btn {
    border-radius: var(--border-radius);
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: var(--transition);
}

.btn:hover::before {
    left: 100%;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn:active {
    transform: translateY(0);
}

.btn i {
    margin-right: 0.5rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--white);
    box-shadow: var(--shadow);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
    box-shadow: 0 5px 15px rgba(255, 102, 0, 0.3);
}

.btn-outline-primary {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
}

.btn-success {
    background: linear-gradient(135deg, var(--success-color) 0%, #20c997 100%);
    color: var(--white);
    box-shadow: var(--shadow);
}

.btn-warning {
    background: linear-gradient(135deg, var(--warning-color) 0%, #ffb300 100%);
    color: var(--gray-800);
    box-shadow: var(--shadow);
}

.btn-danger {
    background: linear-gradient(135deg, var(--danger-color) 0%, #e74c3c 100%);
    color: var(--white);
    box-shadow: var(--shadow);
}

.btn-info {
    background: linear-gradient(135deg, var(--info-color) 0%, #20c997 100%);
    color: var(--white);
    box-shadow: var(--shadow);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #495057 100%);
    color: var(--white);
    box-shadow: var(--shadow);
}

/* Button Sizes */
.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

/* Floating Action Button */
.fab {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    transition: var(--transition);
}

.fab:hover {
    transform: scale(1.1);
}

/* Enhanced Forms */
.form-control {
    border-radius: var(--border-radius);
    border: 2px solid var(--gray-300);
    padding: 0.75rem 1rem;
    transition: var(--transition);
    background: var(--white);
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(255, 102, 0, 0.25);
    outline: none;
    transform: translateY(-1px);
}

.form-control:hover {
    border-color: var(--primary-light);
}

.form-label {
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
    display: block;
}

.form-select {
    border-radius: var(--border-radius);
    border: 2px solid var(--gray-300);
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: var(--transition);
    background: var(--white);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m1 6 7 7 7-7'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px 12px;
    padding-right: 2.5rem;
}

.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(255, 102, 0, 0.25);
    outline: none;
}

/* Form Groups */
.form-group {
    margin-bottom: 1.5rem;
}

/* Form Validation */
.is-valid {
    border-color: var(--success-color) !important;
}

.is-invalid {
    border-color: var(--danger-color) !important;
}

.valid-feedback {
    display: none;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 0.875rem;
    color: var(--success-color);
}

.invalid-feedback {
    display: none;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 0.875rem;
    color: var(--danger-color);
}

.is-valid ~ .valid-feedback {
    display: block;
}

.is-invalid ~ .invalid-feedback {
    display: block;
}

.form-select {
    border-radius: 10px;
    border: 2px solid var(--gray-300);
    padding: 0.75rem 1rem;
}

.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(255, 102, 0, 0.25);
}

/* Evaluator Selection Styles */
.dropdown-menu {
    border: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    border-radius: 15px;
    padding: 0.5rem;
    max-height: 300px;
    overflow-y: auto;
}

.evaluator-manager,
.evaluator-hr,
.evaluator-employee {
    border-radius: 10px;
    margin: 2px 0;
    padding: 0.8rem 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.evaluator-manager:hover,
.evaluator-hr:hover,
.evaluator-employee:hover {
    background: var(--gray-100);
    transform: translateX(5px);
}

.evaluator-manager.selected,
.evaluator-hr.selected,
.evaluator-employee.selected {
    background: var(--light-color);
}

.evaluator-check {
    opacity: 0;
    transform: scale(0);
    transition: all 0.3s ease;
    color: var(--primary-color) !important;
}

.evaluator-manager.selected .evaluator-check,
.evaluator-hr.selected .evaluator-check {
    opacity: 1;
    transform: scale(1);
    animation: check-pop 0.3s ease-out;
}

@keyframes check-pop {
    0% { transform: scale(0); opacity: 0; }
    50% { transform: scale(1.2); opacity: 1; }
    100% { transform: scale(1); opacity: 1; }
}

.evaluator-manager .badge,
.evaluator-hr .badge,
.evaluator-employee .badge {
    transition: all 0.3s ease;
}

.evaluator-manager.selected .badge {
    background: #ffc107 !important;
    color: #212529 !important;
}

.evaluator-hr.selected .badge,
.evaluator-employee.selected .badge {
    background: var(--primary-color) !important;
    color: white !important;
}

#managersDropdownBtn {
    background: linear-gradient(135deg, #ffc107 0%, #ffb300 100%);
    color: #212529;
    border: none;
    transition: all 0.3s ease;
    border-radius: 12px;
    padding: 0.8rem 1rem;
    font-weight: 600;
}

#hrDropdownBtn,
#employeesDropdownBtn {
    background: linear-gradient(135deg, #ff6600 0%, #ff6600 100%);
    color: white;
    border: none;
    transition: all 0.3s ease;
    border-radius: 12px;
    padding: 0.8rem 1rem;
    font-weight: 600;
}

#managersDropdownBtn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 193, 7, 0.3);
}

#hrDropdownBtn:hover,
#employeesDropdownBtn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 140, 51, 0.2);
}

#managersDropdownBtn:active,
#hrDropdownBtn:active,
#employeesDropdownBtn:active {
    transform: translateY(0);
}

/* Tables */
.table {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    font-size: 1rem;
}

.table thead th {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    border: none;
    font-weight: 700;
    padding: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 1rem;
}

.table tbody td {
    padding: 1rem;
    vertical-align: middle;
    border-color: var(--gray-200);
    font-size: 0.95rem;
}

.table tbody tr:hover {
    background-color: var(--gray-100);
}

/* Specific overrides for HR users evaluation tables: make rows white and text black for clarity */
#employeesTable tbody td,
#managersTable tbody td,
#hrTable tbody td {
    background: #ffffff;
    color: #000000;
    font-size: 1rem;
    padding: 0.75rem 1rem;
}

/* Make the role badge use darker text when placed on light row backgrounds */
#employeesTable .status-badge,
#managersTable .status-badge,
#hrTable .status-badge {
    color: #000000 !important;
    background-color: transparent !important;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    display: inline-block;
    font-weight: 700;
    font-size: 0.9rem;
}

/* Progress Bars */
.progress {
    height: 1.5rem;
    border-radius: 10px;
    background-color: var(--gray-200);
    overflow: hidden;
}

.progress-bar {
    border-radius: 10px;
    transition: width 0.6s ease;
}

/* Alerts */
.alert {
    border: none;
    border-radius: 10px;
    padding: 1rem 1.5rem;
    margin-bottom: 1rem;
}

.alert-success {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
}

.alert-warning {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    color: #856404;
}

.alert-danger {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    color: #721c24;
}

.alert-info {
    background: linear-gradient(135deg, #d1ecf1 0%, #bee5eb 100%);
    color: #0c5460;
}

/* Modals - Performance Optimized */
.modal-content {
    border: none;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    /* Remove heavy backdrop-filter to prevent freezing */
    backdrop-filter: none;
    /* Use will-change for better performance */
    will-change: transform, opacity;
}

/* Custom wider modal for group details */
.modal-dialog-wide {
    max-width: 95vw !important;
    width: 95vw !important;
}

@media (min-width: 1200px) {
    .modal-dialog-wide {
        max-width: 90vw !important;
        width: 90vw !important;
    }
}

@media (min-width: 1400px) {
    .modal-dialog-wide {
        max-width: 85vw !important;
        width: 85vw !important;
    }
}

/* Override mobile responsive modal sizing for wide modals */
@media (max-width: 768px) {
    .modal-dialog-wide {
        max-width: 95vw !important;
        width: 95vw !important;
        margin: 0.5rem !important;
    }
}

/* Group Details Modal Performance Fixes */
#groupDetailsModal .modal-content,
#groupDetailsModal .modal-dialog,
#groupDetailsModal .modal-body {
    /* Force hardware acceleration */
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    /* Prevent layout thrashing */
    contain: layout style paint;
    /* Optimize rendering */
    will-change: auto;
}

/* Prevent modal backdrop from causing performance issues */
.modal-backdrop {
    /* Remove heavy backdrop-filter */
    backdrop-filter: none !important;
    /* Use simple background instead */
    background-color: rgba(0, 0, 0, 0.5) !important;
}

/* Optimize table rendering in modals */
.modal-body .table {
    /* Force table to use hardware acceleration */
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    /* Prevent layout recalculations */
    table-layout: fixed;
}

/* Optimize card rendering in modals */
.modal-body .card {
    /* Prevent unnecessary repaints */
    contain: layout style paint;
    /* Use hardware acceleration */
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

.modal-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    border-radius: 15px 15px 0 0;
    border: none;
    padding: 1.5rem;
}

.modal-body {
    padding: 2rem;
    /* Optimize for performance */
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    /* Prevent layout thrashing */
    contain: layout style paint;
}

.modal-footer {
    border: none;
    padding: 1.5rem 2rem;
}

/* Toast Notifications */
.toast-container {
    z-index: 1055;
}

.toast {
    border: none;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

/* Statistics Cards */
.stat-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: none;
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.stat-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--gray-600);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Evaluation Forms */
.evaluation-form {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.question-card {
    background: var(--gray-100);
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border-left: 4px solid var(--primary-color);
}

.question-text {
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 1rem;
}

.rating-options {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.rating-option {
    flex: 1;
    min-width: 120px;
}

.rating-option input[type="radio"] {
    display: none;
}

.rating-option label {
    display: block;
    padding: 0.75rem 1rem;
    background: white;
    border: 2px solid var(--gray-300);
    border-radius: 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.rating-option input[type="radio"]:checked + label {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.rating-option label:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

/* Animations */
.fade-in {
    animation: fadeIn 0.8s ease-out;
}

@keyframes fadeIn {
    from { 
        opacity: 0; 
        transform: translateY(30px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

.slide-in {
    animation: slideIn 0.6s ease-out;
}

@keyframes slideIn {
    from { 
        opacity: 0; 
        transform: translateX(-30px); 
    }
    to { 
        opacity: 1; 
        transform: translateX(0); 
    }
}

.bounce-in {
    animation: bounceIn 0.8s ease-out;
}

@keyframes bounceIn {
    0% { 
        opacity: 0; 
        transform: scale(0.3); 
    }
    50% { 
        opacity: 1; 
        transform: scale(1.05); 
    }
    70% { 
        transform: scale(0.9); 
    }
    100% { 
        opacity: 1; 
        transform: scale(1); 
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .page-title {
        font-size: 2rem;
    }
    
    .option-card {
        min-height: 150px;
    }
    
    .option-icon {
        font-size: 2rem;
    }
    
    .option-title {
        font-size: 1rem;
    }
    
    .rating-options {
        flex-direction: column;
    }
    
    .rating-option {
        min-width: 100%;
    }
    
    .language-toggle {
        position: relative;
        top: auto;
        right: auto;
        margin-bottom: 1rem;
        text-align: center;
    }
    
    /* Mobile table improvements */
    .table-responsive {
        font-size: 0.8rem;
    }
    
    .table th, .table td {
        padding: 0.3rem 0.4rem;
        white-space: nowrap;
    }
    
    .action-buttons {
        flex-direction: column;
        gap: 0.2rem;
    }
    
    .action-buttons .btn {
        padding: 0.2rem 0.4rem;
        font-size: 0.7rem;
    }
    
    .table-card {
        margin-bottom: 1rem;
    }
    
    .filters {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
}

/* Enhanced Container Styling */
.container.mt-4 {
    position: relative;
    background: linear-gradient(135deg, rgba(229, 90, 0, 0.15) 0%, rgba(255, 140, 51, 0.12) 50%, rgba(229, 90, 0, 0.15) 100%);
    border-radius: 20px;
    padding: 2rem;
    margin-top: 2rem !important;
    box-shadow: 0 8px 32px rgba(229, 90, 0, 0.25);
    /* backdrop-filter: blur(10px); - Removed for performance */
    border: 3px solid rgba(229, 90, 0, 0.4);
    transition: all 0.3s ease;
    overflow: hidden;
}

.container.mt-4::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #e55a00 0%, #ff6600 50%, #e55a00 100%);
    border-radius: 20px 20px 0 0;
}

.container.mt-4::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(229, 90, 0, 0.1) 0%, rgba(255, 140, 51, 0.09) 50%, rgba(229, 90, 0, 0.1) 100%);
    border-radius: 20px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.container.mt-4:hover::after {
    opacity: 1;
}

.container.mt-4:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(229, 90, 0, 0.35);
    border-color: rgba(229, 90, 0, 0.6);
}

/* Container Content Enhancements */
.container.mt-4 .card {
    border: 2px solid rgba(229, 90, 0, 0.25);
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(229, 90, 0, 0.18);
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.88);
    /* backdrop-filter: blur(10px); - Removed for performance */
}

.container.mt-4 .card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(229, 90, 0, 0.3);
    border-color: rgba(229, 90, 0, 0.5);
}

.container.mt-4 .card-header {
    background: linear-gradient(135deg, rgba(229, 90, 0, 0.18) 0%, rgba(255, 140, 51, 0.15) 100%);
    border-bottom: 4px solid rgba(229, 90, 0, 0.3);
    border-radius: 15px 15px 0 0 !important;
    padding: 1.5rem;
}

.container.mt-4 .card-body {
    padding: 2rem;
    background: rgba(255, 255, 255, 0.9);
}

/* Welcome Section Enhancements */
.container.mt-4 .welcome-section {
    background: linear-gradient(135deg, rgba(229, 90, 0, 0.15) 0%, rgba(255, 140, 51, 0.12) 100%);
    border-radius: 15px;
    padding: 2.5rem;
    margin-bottom: 2rem;
    border: 3px solid rgba(229, 90, 0, 0.4);
    position: relative;
    overflow: hidden;
}

.container.mt-4 .welcome-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(229, 90, 0, 0.12) 0%, transparent 70%);
    /* animation: rotate 20s linear infinite; - Removed for performance */
    z-index: -1;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Page Title Enhancements */
.container.mt-4 .page-title {
    background: linear-gradient(135deg, #e55a00 0%, #ff6600 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
    text-shadow: 2px 2px 4px rgba(229, 90, 0, 0.3);
}



/* Global Header Styling - Make All Headers Bold Throughout System */
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
    font-weight: 900 !important;
    letter-spacing: 0.8px;
    text-shadow: 2px 2px 4px rgba(229, 90, 0, 0.3);
}

/* Enhanced Header Styling - Make All Headers Obvious */
.container.mt-4 h1,
.container.mt-4 h2,
.container.mt-4 h3,
.container.mt-4 h4,
.container.mt-4 h5,
.container.mt-4 h6,
.container.mt-4 .h1,
.container.mt-4 .h2,
.container.mt-4 .h3,
.container.mt-4 .h4,
.container.mt-4 .h5,
.container.mt-4 .h6 {
    color: #e55a00 !important;
    font-weight: 900 !important;
    text-shadow: 2px 2px 4px rgba(229, 90, 0, 0.3);
    margin-bottom: 1rem;
    position: relative;
    letter-spacing: 0.8px;
}

.container.mt-4 h1::after,
.container.mt-4 h2::after,
.container.mt-4 h3::after,
.container.mt-4 h4::after,
.container.mt-4 h5::after,
.container.mt-4 h6::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #e55a00 0%, #ff6600 100%);
    border-radius: 1px;
    opacity: 0.6;
}

/* White Headers - Make Them Obvious */
.container.mt-4 .text-white,
.container.mt-4 .text-light,
.container.mt-4 .bg-white h1,
.container.mt-4 .bg-white h2,
.container.mt-4 .bg-white h3,
.container.mt-4 .bg-white h4,
.container.mt-4 .bg-white h5,
.container.mt-4 .bg-white h6 {
    color: #e55a00 !important;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    font-weight: 900 !important;
    letter-spacing: 0.8px;
}

/* Card Title Enhancements */
.container.mt-4 .card-title,
.container.mt-4 .card-header h1,
.container.mt-4 .card-header h2,
.container.mt-4 .card-header h3,
.container.mt-4 .card-header h4,
.container.mt-4 .card-header h5,
.container.mt-4 .card-header h6 {
    color: #e55a00 !important;
    font-weight: 900 !important;
    text-shadow: 2px 2px 4px rgba(229, 90, 0, 0.3);
    letter-spacing: 0.8px;
}

/* Modal Header Enhancements */
.container.mt-4 .modal-title,
.container.mt-4 .modal-header h1,
.container.mt-4 .modal-header h2,
.container.mt-4 .modal-header h3,
.container.mt-4 .modal-header h4,
.container.mt-4 .modal-header h5,
.container.mt-4 .modal-header h6 {
    color: #e55a00 !important;
    font-weight: 900 !important;
    text-shadow: 2px 2px 4px rgba(229, 90, 0, 0.3);
    letter-spacing: 0.8px;
}

.container.mt-4 .page-subtitle {
    color: #6b4603;
    font-weight: 500;
}

/* Form Enhancements */
.container.mt-4 .form-control,
.container.mt-4 .form-select {
    border: 2px solid rgba(229, 90, 0, 0.3);
    border-radius: 10px;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
}

.container.mt-4 .form-control:focus,
.container.mt-4 .form-select:focus {
    border-color: #e55a00;
    box-shadow: 0 0 0 0.3rem rgba(229, 90, 0, 0.4);
    background: rgba(255, 255, 255, 1);
}

/* Button Enhancements */
.container.mt-4 .btn {
    border-radius: 10px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.container.mt-4 .btn-primary {
    background: linear-gradient(135deg, #e55a00 0%, #ff6600 100%);
    border: none;
    color: white;
}

.container.mt-4 .btn-primary:hover {
    background: linear-gradient(135deg, #c94d00 0%, #e67a2b 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(229, 90, 0, 0.6);
}

/* Animation for container elements */
.container.mt-4 .row > * {
    animation: fadeInUp 0.6s ease-out;
}

.container.mt-4 .row > *:nth-child(1) { animation-delay: 0.1s; }
.container.mt-4 .row > *:nth-child(2) { animation-delay: 0.2s; }
.container.mt-4 .row > *:nth-child(3) { animation-delay: 0.3s; }
.container.mt-4 .row > *:nth-child(4) { animation-delay: 0.4s; }

/* Enhanced Table Styling */
.container.mt-4 .table {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(229, 90, 0, 0.18);
    border: 3px solid rgba(229, 90, 0, 0.25);
}

.container.mt-4 .table thead th {
    background: linear-gradient(135deg, rgba(229, 90, 0, 0.2) 0%, rgba(255, 140, 51, 0.18) 100%);
    border-bottom: 4px solid rgba(229, 90, 0, 0.4);
    color: #e55a00;
    font-weight: 700;
    padding: 1rem;
    text-shadow: 1px 1px 2px rgba(229, 90, 0, 0.2);
}

.container.mt-4 .table tbody tr {
    transition: all 0.3s ease;
}

.container.mt-4 .table tbody tr:hover {
    background: rgba(229, 90, 0, 0.12);
    transform: scale(1.01);
}

/* Enhanced Alert Styling */
.container.mt-4 .alert {
    border: none;
    border-radius: 10px;
    padding: 1rem 1.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.container.mt-4 .alert-warning {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.2) 0%, rgba(255, 140, 51, 0.18) 100%);
    border-left: 6px solid #e55a00;
    color: #856404;
}

.container.mt-4 .alert-info {
    background: linear-gradient(135deg, rgba(13, 202, 240, 0.2) 0%, rgba(229, 90, 0, 0.12) 100%);
    border-left: 6px solid #0dcaf0;
    color: #055160;
}

.container.mt-4 .alert-success {
    background: linear-gradient(135deg, rgba(25, 135, 84, 0.2) 0%, rgba(229, 90, 0, 0.12) 100%);
    border-left: 6px solid #198754;
    color: #0a3622;
}

/* Enhanced List Styling */
.container.mt-4 .list-group-item {
    border: 2px solid rgba(229, 90, 0, 0.25);
    border-radius: 8px !important;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
}

.container.mt-4 .list-group-item:hover {
    background: rgba(229, 90, 0, 0.12);
    border-color: rgba(229, 90, 0, 0.4);
    transform: translateX(5px);
}

/* Enhanced Progress Bar */
.container.mt-4 .progress {
    height: 8px;
    border-radius: 10px;
    background: rgba(229, 90, 0, 0.2);
    overflow: hidden;
    border: 3px solid rgba(229, 90, 0, 0.3);
}

.container.mt-4 .progress-bar {
    background: linear-gradient(90deg, #ff6600 0%, #ff6600 100%);
    border-radius: 10px;
    transition: width 0.6s ease;
}

/* Enhanced Badge Styling */
.container.mt-4 .badge {
    border-radius: 20px;
    padding: 0.5rem 1rem;
    font-weight: 600;
    font-size: 0.85rem;
}

.container.mt-4 .badge.bg-primary {
    background: linear-gradient(135deg, #e55a00 0%, #ff6600 100%) !important;
}

/* Enhanced Modal Styling */
.container.mt-4 .modal-content {
    border: none;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(229, 90, 0, 0.2);
    overflow: hidden;
}

.container.mt-4 .modal-header {
    background: linear-gradient(135deg, rgba(229, 90, 0, 0.05) 0%, rgba(255, 140, 51, 0.05) 100%);
    border-bottom: 2px solid rgba(229, 90, 0, 0.1);
    border-radius: 20px 20px 0 0;
}

/* Enhanced Dropdown Styling */
.container.mt-4 .dropdown-menu {
    border: none;
    border-radius: 15px;
    box-shadow: 0 8px 30px rgba(229, 90, 0, 0.15);
    /* backdrop-filter: blur(10px); - Removed for performance */
    background: rgba(255, 255, 255, 0.95);
}

.container.mt-4 .dropdown-item {
    border-radius: 8px;
    margin: 0.25rem;
    transition: all 0.3s ease;
}

.container.mt-4 .dropdown-item:hover {
    background: rgba(229, 90, 0, 0.1);
    color: #e55a00;
}

/* Enhanced Input Group Styling */
.container.mt-4 .input-group .form-control {
    border-radius: 10px 0 0 10px;
}

.container.mt-4 .input-group .btn {
    border-radius: 0 10px 10px 0;
    border-left: none;
}

/* Enhanced Nav Styling */
.container.mt-4 .nav-tabs {
    border-bottom: 2px solid rgba(229, 90, 0, 0.1);
}

.container.mt-4 .nav-tabs .nav-link {
    border: none;
    border-radius: 10px 10px 0 0;
    color: #6c757d;
    transition: all 0.3s ease;
    margin-right: 0.5rem;
}

.container.mt-4 .nav-tabs .nav-link.active {
    background: linear-gradient(135deg, #e55a00 0%, #ff6600 100%);
    color: white;
    border: none;
}

.container.mt-4 .nav-tabs .nav-link:hover {
    background: rgba(229, 90, 0, 0.1);
    color: #e55a00;
    border: none;
}

/* Special Effects for Container */
.container.mt-4 {
    position: relative;
}

.container.mt-4::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #e55a00, #ff6600, #e55a00, #ff6600);
    border-radius: 22px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
    /* animation: borderGlow 3s ease-in-out infinite; - Removed for performance */
}

@keyframes borderGlow {
    0%, 100% { opacity: 0; }
    50% { opacity: 0.3; }
}

.container.mt-4:hover::before {
    opacity: 0.9;
}

/* Enhanced Responsive Design */
@media (max-width: 768px) {
    .container.mt-4 {
        padding: 1.5rem;
        border-radius: 15px;
        margin-top: 1.5rem !important;
    }
    
    .container.mt-4 .welcome-section {
        padding: 1.5rem;
        border-radius: 10px;
    }
    
    .container.mt-4 .card-header {
        padding: 1rem;
    }
    
    .container.mt-4 .card-body {
        padding: 1.5rem;
    }
    
    .container.mt-4 .btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
    
    .container.mt-4 .form-control,
    .container.mt-4 .form-select {
        padding: 0.6rem 0.8rem;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 1rem;
    }
    
    .container.mt-4 {
        padding: 1rem;
        border-radius: 12px;
        margin-top: 1rem !important;
    }
    
    .container.mt-4 .welcome-section {
        padding: 1rem;
        border-radius: 8px;
    }
    
    .container.mt-4 .card-header {
        padding: 0.75rem;
    }
    
    .container.mt-4 .card-body {
        padding: 1rem;
    }
    
    .container.mt-4 .btn {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }
    
    .container.mt-4 .form-control,
    .container.mt-4 .form-select {
        padding: 0.5rem 0.75rem;
        font-size: 0.9rem;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .welcome-section {
        padding: 1.5rem;
    }
    
    .page-title {
        font-size: 1.5rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    /* Extra small mobile improvements */
    .table-responsive {
        font-size: 0.75rem;
    }
    
    .table th, .table td {
        padding: 0.2rem 0.3rem;
    }
    
    .btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
    
    .action-buttons .btn {
        padding: 0.15rem 0.3rem;
        font-size: 0.65rem;
    }
    
    .table-card .card-header {
        padding: 0.5rem 0.75rem;
        font-size: 0.9rem;
    }
    
    .filters-container {
        padding: 1rem;
        
    }
}

/* Loading Spinner */
.spinner {
    display: inline-block;
    width: 2rem;
    height: 2rem;
    border: 0.25rem solid var(--gray-300);
    border-right-color: var(--primary-color);
    border-radius: 50%;
    animation: spinner-border 0.75s linear infinite;
}

@keyframes spinner-border {
    to { transform: rotate(360deg); }
}

/* Utility Classes */
.text-primary { color: var(--primary-color) !important; }
.text-secondary { color: var(--secondary-color) !important; }
.text-success { color: var(--success-color) !important; }
.text-warning { color: var(--warning-color) !important; }
.text-danger { color: var(--danger-color) !important; }
.text-info { color: var(--info-color) !important; }

.bg-primary { background-color: var(--primary-color) !important; }
.bg-secondary { background-color: var(--secondary-color) !important; }
.bg-success { background-color: var(--success-color) !important; }
.bg-warning { background-color: var(--warning-color) !important; }
.bg-danger { background-color: var(--danger-color) !important; }
.bg-info { background-color: #ff6600 !important; }

/* Question Management Page - Make Headers Obvious */
.card-header.bg-info h1,
.card-header.bg-info h2,
.card-header.bg-info h3,
.card-header.bg-info h4,
.card-header.bg-info h5,
.card-header.bg-info h6,
.card-header.bg-info .card-title {
    color: white !important;
    font-weight: 900 !important;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8) !important;
    letter-spacing: 0.8px !important;
}

/* Make card headers with bg-info use orange background */
.card-header.bg-info {
    background: linear-gradient(135deg, #ff6600 0%, #e67a2b 100%) !important;
    border-bottom: 3px solid rgba(255, 255, 255, 0.3) !important;
}

/* Make regular headers more obvious */
h1, h2, h3, h4, h5, h6 {
    color: #2c3e50 !important;
    font-weight: 900 !important;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2) !important;
    letter-spacing: 0.5px !important;
}

.border-primary { border-color: var(--primary-color) !important; }
.border-secondary { border-color: var(--secondary-color) !important; }
.border-success { border-color: var(--success-color) !important; }
.border-warning { border-color: var(--warning-color) !important; }
.border-danger { border-color: var(--danger-color) !important; }
.border-info { border-color: var(--info-color) !important; }

.shadow-sm { box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important; }
.shadow { box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important; }
.shadow-lg { box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.175) !important; }

.rounded { border-radius: 0.375rem !important; }
.rounded-sm { border-radius: 0.25rem !important; }
.rounded-lg { border-radius: 0.5rem !important; }
.rounded-xl { border-radius: 1rem !important; }
.rounded-xxl { border-radius: 1.5rem !important; }

/* Export modal styles */
#exportModal .card {
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

#exportModal .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-color);
}

#exportModal .card .fa-3x {
    transition: all 0.3s ease;
}

#exportModal .card:hover .fa-3x {
    transform: scale(1.1);
}

#exportModal .text-danger {
    color: #dc3545 !important;
}

#exportModal .text-success {
    color: #198754 !important;
}

#exportModal .text-info {
    color: #0dcaf0 !important;
}

/* small role label placed next to username in HR tables */
.role-label {
    display: inline-block;
    margin-left: 8px;
    padding: 2px 6px;
    font-size: 12px;
    color: #6c757d; /* muted */
    background: transparent;
    border-radius: 6px;
}

/* Role badge used in hr_users_evaluation - keep similar look to hr_all_users */
.role-badge {
    display: inline-block;
    padding: 0.35rem 0.6rem;
    border-radius: 0.5rem;
    font-weight: 600;
    color: #fff;
    font-size: 0.85rem;
}
.role-badge.badge.bg-primary { background-color: #0d6efd; }
.role-badge.badge.bg-warning { background-color: #ffc107; color: #212529; }
.role-badge.badge.bg-info { background-color: #0dcaf0; color: #212529; }

/* selection helpers */
.row-select { 
    width: 18px; 
    height: 18px;
    accent-color: var(--primary-color);
}

#doneSelectBtn { 
    z-index: 2000; 
    padding: 0.6rem 1rem; 
}

.btn-select {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border: none;
    color: white;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(255, 102, 0, 0.3);
    transition: all 0.3s ease;
}

.btn-select:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 102, 0, 0.4);
}

.btn-select:active {
    transform: translateY(0);
}

/* Selection checkmark icon */
.select-check {
    display: none !important;
    color: var(--primary-color) !important;
    font-size: 0.9rem;
}

tr.selected .select-check {
    display: inline-block !important;
    animation: checkmark-pop 0.3s ease-out;
}

@keyframes checkmark-pop {
    0% { 
        transform: scale(0); 
        opacity: 0; 
    }
    50% { 
        transform: scale(1.2); 
    }
    100% { 
        transform: scale(1); 
        opacity: 1; 
    }
}

#exportModal .text-warning {
    color: #ffc107 !important;
}

/* Overrides to make hr_users_evaluation tables compact and match hr_all_users look */
.table-card {
    border: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    border-radius: 20px;
    background: #fff;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.table-card .card-header {
    background: linear-gradient(135deg, #ff6600 0%, #ff6600 100%);
    color: #fff;
    font-weight: 600;
    font-size: 1.05rem;
    padding: 0.9rem 1.25rem;
    border: none;
}

.table-card .card-body.p-0 { padding: 0; }
.table-card .table-responsive { border-radius: 0 0 20px 20px; }

/* Better spacing between table rows */
.table tbody tr {
    border-bottom: 1px solid #f1f3f4;
    transition: all 0.2s ease;
}

.table tbody tr:last-child {
    border-bottom: none;
}

.table tbody tr:hover {
    background-color: #f8f9fa;
    transform: none;
}

/* compact table rows */
.table-card table { font-size: 1rem; }
.table-card table thead { background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%); }
.table-card table thead th { 
    padding: 0.75rem 1rem; 
    color: #495057; 
    font-weight: 700; 
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #dee2e6;
}
.table-card table tbody td { 
    padding: 0.75rem 1rem; 
    font-size: 0.95rem;
    vertical-align: middle;
}

/* ensure role badges remain visible */
.table-card .role-badge { margin-right: 6px; }

/* Question translation styles */
.question-translation {
    font-style: italic;
    font-size: 0.9em;
    margin-top: 0.5rem;
    margin-bottom: 1rem;
    padding-right: 1rem;
    border-right: 3px solid var(--primary-color);
    background-color: #f8f9fa;
    padding: 0.5rem;
    border-radius: 0.25rem;
}

/* Print Styles */
@media print {
    .navbar,
    .language-toggle,
    .btn,
    .toast-container {
        display: none !important;
    }
    
    .card {
        box-shadow: none !important;
        border: 1px solid var(--gray-300) !important;
    }
    
    body {
        background: white !important;
    }
}

/* Evaluator Dropdown Styles */
.dropdown-menu {
    border: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    border-radius: 15px;
    padding: 0.5rem;
    max-height: 300px;
    overflow-y: auto;
}

.evaluator-manager,
.evaluator-hr {
    border-radius: 10px;
    margin: 2px 0;
    padding: 0.8rem 1rem;
    transition: all 0.3s ease;
}

.evaluator-manager:hover,
.evaluator-hr:hover,
.evaluator-employee:hover {
    background: var(--gray-100);
    transform: translateX(5px);
}

.evaluator-manager.selected,
.evaluator-hr.selected,
.evaluator-employee.selected {
    background: var(--light-color);
}

.evaluator-check {
    opacity: 0;
    transform: scale(0);
    transition: all 0.3s ease;
    color: var(--primary-color) !important;
}

.evaluator-manager.selected .evaluator-check,
.evaluator-employee.selected .evaluator-check {
    opacity: 1;
    transform: scale(1);
    animation: check-pop 0.3s ease-out;
}

@keyframes check-pop {
    0% { transform: scale(0); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* Badge styles in dropdown */
.evaluator-manager .badge,
.evaluator-hr .badge,
.evaluator-employee .badge {
    transition: all 0.3s ease;
}

.evaluator-manager.selected .badge {
    background: #ffc107 !important;
    color: #212529 !important;
}

.evaluator-hr.selected .badge,
.evaluator-employee.selected .badge {
    background: var(--primary-color) !important;
    color: white !important;
}

/* Dropdown buttons */
#managersDropdownBtn {
    background: linear-gradient(135deg, #ffc107 0%, #ffb300 100%);
    color: #212529;
    border: none;
    transition: all 0.3s ease;
    border-radius: 12px;
    padding: 0.8rem 1rem;
    font-weight: 600;
    position: relative;
    overflow: hidden;
}

#hrDropdownBtn,
#employeesDropdownBtn {
    background: linear-gradient(135deg, #ff6600 0%, #ff6600 100%);
    color: white;
    border: none;
    transition: all 0.3s ease;
    border-radius: 12px;
    padding: 0.8rem 1rem;
    font-weight: 600;
    position: relative;
    overflow: hidden;
}

#managersDropdownBtn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 193, 7, 0.3);
}

#hrDropdownBtn:hover,
#employeesDropdownBtn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 140, 51, 0.2);
}

#managersDropdownBtn:active,
#hrDropdownBtn:active,
#employeesDropdownBtn:active {
    transform: translateY(0);
}

/* Enhanced Group Name Input Styling */
#groupNameInput:focus,
#editGroupName:focus {
    border-color: #ff6600 !important;
    box-shadow: 0 0 0 0.2rem rgba(255, 140, 51, 0.25) !important;
    outline: none !important;
}

#groupNameInput:hover,
#editGroupName:hover {
    border-color: #ff6600 !important;
    transition: border-color 0.3s ease;
}

/* Enhanced Mobile Responsiveness */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }

    .page-title {
        font-size: 2rem;
    }

    .page-subtitle {
        font-size: 1rem;
    }

    .option-card {
        margin-bottom: 1rem;
        padding: 1.5rem;
    }

    .option-card h3 {
        font-size: 1.2rem;
    }

    .stat-card {
        margin-bottom: 1rem;
        padding: 1.5rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .navbar-brand {
        font-size: 1.2rem;
    }

    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }

    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }

    .card-body {
        padding: 1.5rem;
    }

    .breadcrumb-nav {
        padding: 0.75rem 0;
    }

    .breadcrumb {
        font-size: 0.8rem;
    }

    .fab {
        bottom: 1rem;
        right: 1rem;
        width: 3rem;
        height: 3rem;
    }

    .table-responsive {
        font-size: 0.875rem;
    }

    .modal-dialog {
        margin: 0.5rem;
    }

    .modal-content {
        border-radius: var(--border-radius);
    }

    .form-control {
        font-size: 16px; /* Prevents zoom on iOS */
    }
}

@media (max-width: 576px) {
    .page-title {
        font-size: 1.5rem;
    }

    .option-card {
        padding: 1rem;
    }

    .stat-card {
        padding: 1rem;
    }

    .stat-number {
        font-size: 1.5rem;
    }

    .btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }

    .card-body {
        padding: 1rem;
    }

    .breadcrumb-item {
        font-size: 0.75rem;
    }

    .table th,
    .table td {
        padding: 0.5rem 0.25rem;
        font-size: 0.75rem;
    }
}

/* Toast positioning and styling */
.toast-container {
    position: fixed !important;
    top: 0 !important;
    right: 2rem !important;
    z-index: 9999 !important;
    padding: 1rem !important;
    max-width: 350px !important;
}

.toast {
    margin-bottom: 0.5rem !important;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
    border-radius: 0.375rem !important;
}

.toast.show {
    opacity: 1 !important;
    transform: none !important;
}

/* Ensure toasts appear above modals */
.modal {
    z-index: 1055;
}

.toast-container {
    z-index: 1060 !important;
}

/* Custom Orange Scrollbar Styling */
/* Webkit browsers (Chrome, Safari, Edge) */
::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 6px;
}

::-webkit-scrollbar-thumb {
    background: #ff6600;
    border-radius: 6px;
    border: 2px solid #f1f1f1;
}

::-webkit-scrollbar-thumb:hover {
    background: #ff5500;
}

::-webkit-scrollbar-thumb:active {
    background: #ff4400;
}

::-webkit-scrollbar-corner {
    background: #f1f1f1;
}

/* Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: #ff6600 #f1f1f1;
}

/* For specific elements that might need different styling */
body {
    scrollbar-width: thin;
    scrollbar-color: #ff6600 #f1f1f1;
}

/* Modal scrollbars */
.modal-body {
    scrollbar-width: thin;
    scrollbar-color: #ff6600 #f1f1f1;
}

.modal-body::-webkit-scrollbar {
    width: 8px;
}

.modal-body::-webkit-scrollbar-track {
    background: #f8f9fa;
    border-radius: 4px;
}

.modal-body::-webkit-scrollbar-thumb {
    background: #ff6600;
    border-radius: 4px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
    background: #ff5500;
}

/* Table scrollbars */
.table-responsive {
    scrollbar-width: thin;
    scrollbar-color: #ff6600 #f1f1f1;
}

.table-responsive::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.table-responsive::-webkit-scrollbar-track {
    background: #f8f9fa;
    border-radius: 4px;
}

.table-responsive::-webkit-scrollbar-thumb {
    background: #ff6600;
    border-radius: 4px;
}

.table-responsive::-webkit-scrollbar-thumb:hover {
    background: #ff5500;
}

.form-check-input:checked {
    background-color: #ff6600;
    border-color: #ff6600;
}

/* Rating Scale Table Styles */
.rating-table-container {
    overflow: visible !important;
    max-height: none !important;
}

.rating-instruction {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    color: #6c757d;
    font-style: italic;
    font-weight: 500;
}

.rating-instruction i {
    color: #ff6600;
    font-size: 1rem;
}

.rating-scale-table {
    border-radius: 0 0 20px 20px;
    overflow: visible;
    box-shadow: none;
    border: none;
}

.rating-scale-table thead {
    background: white;
    color: #2c3e50;
}

.rating-scale-table thead th {
    border: none;
    padding: 0.75rem 1rem;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    vertical-align: middle;
}

.rating-scale-table thead th i {
    font-size: 1.1rem;
    margin-right: 0.5rem;
}

.rating-scale-table tbody td {
    padding: 0.75rem 1rem;
    border-bottom: 2px solid #dee2e6;
    vertical-align: top;
}

.rating-scale-table tbody tr:last-child td {
    border-bottom: 2px solid #dee2e6;
}

.rating-scale-table tbody tr {
    border-bottom: 2px solid #dee2e6;
}

.rating-scale-table tbody tr:hover {
    background: linear-gradient(135deg, #fff3e6 0%, #ffe8d1 100%);
    transform: none;
}

.rating-scale-table tbody tr:nth-child(even) {
    background-color: #f8f9fa;
}

.rating-scale-table tbody tr:nth-child(even):hover {
    background: linear-gradient(135deg, #fff3e6 0%, #ffe8d1 100%);
}

/* Rating Level Styles */
.rating-level {
    width: 200px;
    min-width: 180px;
    vertical-align: middle;
}

.rating-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.rating-badge i {
    font-size: 1.1rem;
    margin-right: 0.5rem;
}

/* Individual Rating Badge Colors */
.rating-poor-badge {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
}

.rating-basic-badge {
    background: linear-gradient(135deg, #fd7e14 0%, #e55a00 100%);
    color: white;
}

.rating-developing-badge {
    background: linear-gradient(135deg, #ffc107 0%, #e0a800 100%);
    color: #212529;
}

.rating-competent-badge {
    background: linear-gradient(135deg, #28a745 0%, #1e7e34 100%);
    color: white;
}

.rating-proficient-badge {
    background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
    color: white;
}

/* Definition Content Styles */
.rating-definition {
    vertical-align: top;
}

.definition-content {
    line-height: 1.4;
}

.definition-en {
    margin: 0 0 0.5rem 0;
    font-size: 0.85rem;
    color: #495057;
    font-weight: 500;
}

.definition-ar {
    margin: 0;
    font-size: 0.8rem;
    color: #6c757d;
    font-style: italic;
    direction: rtl;
    text-align: right;
    border-top: 1px solid #e9ecef;
    padding-top: 0.5rem;
}

/* Arabic Text Support */
.arabic-text .definition-en {
    text-align: right;
    direction: rtl;
}

.arabic-text .definition-ar {
    text-align: left;
    direction: ltr;
}

/* Mobile Responsiveness for Rating Table */
@media (max-width: 768px) {
    .rating-scale-table thead th {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
    
    .rating-scale-table tbody td {
        padding: 1rem;
    }
    
    .rating-level {
        width: 150px;
        min-width: 130px;
    }
    
    .rating-badge {
        padding: 0.6rem 0.8rem;
        font-size: 0.85rem;
    }
    
    .definition-en,
    .definition-ar {
        font-size: 0.85rem;
    }
    
    .rating-instruction {
        font-size: 0.8rem;
    }
}

@media (max-width: 576px) {
    .rating-scale-table {
        font-size: 0.8rem;
    }
    
    .rating-scale-table thead th {
        padding: 0.6rem 0.75rem;
        font-size: 0.8rem;
    }
    
    .rating-scale-table tbody td {
        padding: 0.75rem;
    }
    
    .rating-level {
        width: 120px;
        min-width: 100px;
    }
    
    .rating-badge {
        padding: 0.5rem 0.6rem;
        font-size: 0.75rem;
    }
    
    .rating-badge i {
        font-size: 0.9rem;
        margin-right: 0.3rem;
    }
    
    .definition-en,
    .definition-ar {
        font-size: 0.8rem;
    }
    
    .rating-instruction {
        font-size: 0.75rem;
    }
    
    .card-header {
        flex-direction: column;
        align-items: flex-start !important;
    }
    
    .rating-instruction {
        margin-top: 0.5rem;
    }
}

/* Your existing CSS (keep this) */
.btn .badge {
    position: relative;
    top: -1px;
}
.bg-light {
    --bs-bg-opacity: 1;
    background-color: rgba(var(--bs-light-rgb), var(--bs-bg-opacity)) !important;
}

/* Enhancements: Better badge styling and animation */
.dropdown .btn .badge {
    /* Make it pill-shaped, rounded, and more prominent */
    border-radius: 50px; /* Pill shape instead of square */
    padding: 0.25em 0.6em; /* More padding for comfort */
    font-weight: bold; /* Bolder text */
    font-size: 0.85em; /* Slightly smaller but readable */
    min-width: 1.5em; /* Ensures consistent width even for single digits */
    text-align: center; /* Center the number */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
    border: 1px solid rgba(0, 0, 0, 0.1); /* Light border for definition */
    transition: all 0.2s ease; /* Smooth transitions for hover/color changes */
    display: inline-block; /* Ensures proper float-end behavior */
}

/* Pulse animation for increments */
@keyframes badgePulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); } /* Quick scale up */
    100% { transform: scale(1); }
}

.badge-pulse {
    animation: badgePulse 0.3s ease-in-out; /* Apply pulse for 0.3s */
}

/* Hover effect on button (optional - highlights the badge) */
.dropdown .btn:hover .badge {
    background-color: rgba(255, 193, 7, 0.8) !important; /* Lighter yellow on hover */
    color: #000 !important;
    transform: translateY(-1px); /* Slight lift on hover */
}

/* Responsive: Adjust for small screens */
@media (max-width: 768px) {
    .dropdown .btn .badge {
        font-size: 0.8em;
        padding: 0.2em 0.4em;
    }
}

/* Form Selection Card Styles */
.form-selection-card {
    transition: all 0.3s ease;
    cursor: pointer;
    border-width: 2px !important;
}

.form-selection-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.form-selection-card.border-primary:hover {
    border-color: #0d6efd !important;
    box-shadow: 0 8px 25px rgba(13, 110, 253, 0.2);
}

.form-selection-card.border-success:hover {
    border-color: #198754 !important;
    box-shadow: 0 8px 25px rgba(25, 135, 84, 0.2);
}

.form-selection-card .card-body {
    padding: 1.5rem;
}

.form-selection-card .card-title {
    font-weight: 600;
    color: #2c3e50;
    font-size: 1.1rem;
}

.form-selection-card .badge {
    font-size: 0.8rem;
    padding: 0.5rem 0.75rem;
}

.form-selection-card .btn {
    font-weight: 500;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.form-selection-card .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Mobile Responsiveness for Form Selection Cards */
@media (max-width: 768px) {
    .form-selection-card .card-body {
        padding: 1rem;
    }
    
    .form-selection-card .card-title {
        font-size: 1rem;
    }
    
    .form-selection-card .btn {
        padding: 0.6rem 0.8rem;
        font-size: 0.9rem;
    }
}


