/* HR Management Dashboard Styles */

/* Base Styles */
body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    background-color: rgb(249 250 251);
    color: rgb(17 24 39);
}

/* Page Visibility */
.page { 
    display: none; 
}

.page.active { 
    display: block; 
}

/* Sidebar Navigation */
.sidebar-link.active { 
    background-color: rgb(59 130 246);
    color: white;
}

/* Modal Styles */
.modal { 
    display: none; 
}

.modal.active { 
    display: flex; 
}

/* Star Rating Styles */
.star-rating {
    color: #fbbf24;
}

/* Custom Utility Classes */
.bg-gray-50 { background-color: rgb(249 250 251); }
.bg-white { background-color: white; }
.bg-blue-600 { background-color: rgb(37 99 235); }
.bg-blue-700 { background-color: rgb(29 78 216); }
.bg-blue-100 { background-color: rgb(219 234 254); }
.bg-blue-50 { background-color: rgb(239 246 255); }
.bg-green-600 { background-color: rgb(34 197 94); }
.bg-green-700 { background-color: rgb(21 128 61); }
.bg-green-100 { background-color: rgb(220 252 231); }
.bg-red-600 { background-color: rgb(220 38 38); }
.bg-red-700 { background-color: rgb(185 28 28); }
.bg-red-100 { background-color: rgb(254 226 226); }
.bg-yellow-600 { background-color: rgb(202 138 4); }
.bg-yellow-700 { background-color: rgb(161 98 7); }
.bg-yellow-100 { background-color: rgb(254 249 195); }
.bg-purple-600 { background-color: rgb(147 51 234); }
.bg-purple-100 { background-color: rgb(237 233 254); }
.bg-orange-600 { background-color: rgb(249 115 22); }
.bg-orange-100 { background-color: rgb(255 237 213); }
.bg-teal-600 { background-color: rgb(20 184 166); }
.bg-teal-100 { background-color: rgb(204 251 241); }
.bg-indigo-600 { background-color: rgb(79 70 229); }
.bg-indigo-100 { background-color: rgb(224 231 255); }
.bg-gray-200 { background-color: rgb(229 231 235); }
.bg-gray-100 { background-color: rgb(243 244 246); }
.bg-black { background-color: black; }

.text-white { color: white; }
.text-gray-800 { color: rgb(31 41 55); }
.text-gray-700 { color: rgb(55 65 81); }
.text-gray-600 { color: rgb(75 85 99); }
.text-gray-500 { color: rgb(107 114 128); }
.text-gray-400 { color: rgb(156 163 175); }
.text-gray-300 { color: rgb(209 213 219); }
.text-gray-900 { color: rgb(17 24 39); }
.text-blue-600 { color: rgb(37 99 235); }
.text-blue-800 { color: rgb(30 64 175); }
.text-blue-900 { color: rgb(30 58 138); }
.text-green-800 { color: rgb(22 101 52); }
.text-red-800 { color: rgb(153 27 27); }
.text-yellow-400 { color: rgb(251 191 36); }
.text-purple-600 { color: rgb(147 51 234); }
.text-orange-600 { color: rgb(249 115 22); }
.text-teal-600 { color: rgb(20 184 166); }
.text-indigo-600 { color: rgb(79 70 229); }

.text-xs { font-size: 0.75rem; line-height: 1rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }

.font-sans { font-family: ui-sans-serif, system-ui, sans-serif; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-full { border-radius: 9999px; }

.shadow-md { box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1); }
.shadow-xl { box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1); }
.shadow-lg { box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1); }

.border { border-width: 1px; }
.border-2 { border-width: 2px; }
.border-gray-200 { border-color: rgb(229 231 235); }
.border-gray-300 { border-color: rgb(209 213 219); }
.border-t { border-top-width: 1px; }
.border-b { border-bottom-width: 1px; }

.p-2 { padding: 0.5rem; }
.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.px-2 { padding-left: 0.5rem; padding-right: 0.5rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.pt-6 { padding-top: 1.5rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mr-2 { margin-right: 0.5rem; }
.mr-3 { margin-right: 0.75rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mt-12 { margin-top: 3rem; }

.flex { display: flex; }
.flex-1 { flex: 1 1 0%; }
.flex-shrink-0 { flex-shrink: 0; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.justify-between { justify-content: space-between; }
.justify-end { justify-content: flex-end; }
.justify-center { justify-content: center; }
.space-x-2 > :not([hidden]) ~ :not([hidden]) { --tw-space-x-reverse: 0; margin-right: calc(0.5rem * var(--tw-space-x-reverse)); margin-left: calc(0.5rem * calc(1 - var(--tw-space-x-reverse))); }
.space-x-3 > :not([hidden]) ~ :not([hidden]) { --tw-space-x-reverse: 0; margin-right: calc(0.75rem * var(--tw-space-x-reverse)); margin-left: calc(0.75rem * calc(1 - var(--tw-space-x-reverse))); }
.space-x-4 > :not([hidden]) ~ :not([hidden]) { --tw-space-x-reverse: 0; margin-right: calc(1rem * var(--tw-space-x-reverse)); margin-left: calc(1rem * calc(1 - var(--tw-space-x-reverse))); }
.space-y-2 > :not([hidden]) ~ :not([hidden]) { --tw-space-y-reverse: 0; margin-top: calc(0.5rem * calc(1 - var(--tw-space-y-reverse))); margin-bottom: calc(0.5rem * var(--tw-space-y-reverse)); }
.space-y-3 > :not([hidden]) ~ :not([hidden]) { --tw-space-y-reverse: 0; margin-top: calc(0.75rem * calc(1 - var(--tw-space-y-reverse))); margin-bottom: calc(0.75rem * var(--tw-space-y-reverse)); }
.space-y-4 > :not([hidden]) ~ :not([hidden]) { --tw-space-y-reverse: 0; margin-top: calc(1rem * calc(1 - var(--tw-space-y-reverse))); margin-bottom: calc(1rem * var(--tw-space-y-reverse)); }

.grid { display: grid; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }

.h-6 { height: 1.5rem; }
.h-8 { height: 2rem; }
.h-10 { height: 2.5rem; }
.h-12 { height: 3rem; }
.h-20 { height: 5rem; }
.h-screen { height: 100vh; }
.max-h-\\[90vh\\] { max-height: 90vh; }

.w-4 { width: 1rem; }
.w-5 { width: 1.25rem; }
.w-6 { width: 1.5rem; }
.w-8 { width: 2rem; }
.w-10 { width: 2.5rem; }
.w-12 { width: 3rem; }
.w-16 { width: 4rem; }
.w-20 { width: 5rem; }
.w-24 { width: 6rem; }
.w-32 { width: 8rem; }
.w-64 { width: 16rem; }
.w-full { width: 100%; }
.max-w-2xl { max-width: 42rem; }
.max-w-md { max-width: 28rem; }

.overflow-hidden { overflow: hidden; }
.overflow-y-auto { overflow-y: auto; }
.overflow-x-auto { overflow-x: auto; }

.cursor-pointer { cursor: pointer; }
.select-none { user-select: none; }
.pointer-events-none { pointer-events: none; }

.fixed { position: fixed; }
.relative { position: relative; }
.absolute { position: absolute; }
.inset-0 { inset: 0px; }
.z-50 { z-index: 50; }
.left-4 { left: 1rem; }
.top-4 { top: 1rem; }

.text-left { text-align: left; }
.text-center { text-align: center; }
.uppercase { text-transform: uppercase; }
.tracking-wider { letter-spacing: 0.05em; }

.whitespace-nowrap { white-space: nowrap; }
.break-words { overflow-wrap: break-word; }

.bg-opacity-50 { --tw-bg-opacity: 0.5; }
.bg-opacity-75 { --tw-bg-opacity: 0.75; }

.transition-colors { transition-property: color, background-color, border-color, text-decoration-color, fill, stroke; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.transition-all { transition-property: all; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.duration-300 { transition-duration: 300ms; }

.hover\\:bg-gray-50:hover { background-color: rgb(249 250 251); }
.hover\\:bg-blue-50:hover { background-color: rgb(239 246 255); }
.hover\\:bg-blue-700:hover { background-color: rgb(29 78 216); }
.hover\\:bg-green-700:hover { background-color: rgb(21 128 61); }
.hover\\:bg-red-700:hover { background-color: rgb(185 28 28); }
.hover\\:bg-gray-100:hover { background-color: rgb(243 244 246); }
.hover\\:text-blue-800:hover { color: rgb(30 64 175); }
.hover\\:text-blue-900:hover { color: rgb(30 58 138); }
.hover\\:text-gray-600:hover { color: rgb(75 85 99); }
.hover\\:text-gray-800:hover { color: rgb(31 41 55); }

.focus\\:outline-none:focus { outline: 2px solid transparent; outline-offset: 2px; }
.focus\\:ring-2:focus { --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color); --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color); box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000); }
.focus\\:ring-blue-500:focus { --tw-ring-color: rgb(59 130 246); }
.focus\\:border-blue-500:focus { border-color: rgb(59 130 246); }

.divide-y > :not([hidden]) ~ :not([hidden]) { --tw-divide-y-reverse: 0; border-top-width: calc(1px * calc(1 - var(--tw-divide-y-reverse))); border-bottom-width: calc(1px * var(--tw-divide-y-reverse)); }
.divide-gray-200 > :not([hidden]) ~ :not([hidden]) { border-color: rgb(229 231 235); }

.transform { transform: translateX(var(--tw-translate-x), 0) translateY(var(--tw-translate-y), 0) rotate(var(--tw-rotate, 0)) skewX(var(--tw-skew-x, 0)) skewY(var(--tw-skew-y, 0)) scaleX(var(--tw-scale-x, 1)) scaleY(var(--tw-scale-y, 1)); }
.-translate-x-full { --tw-translate-x: -100%; transform: translateX(var(--tw-translate-x), 0) translateY(var(--tw-translate-y), 0) rotate(var(--tw-rotate, 0)) skewX(var(--tw-skew-x, 0)) skewY(var(--tw-skew-y, 0)) scaleX(var(--tw-scale-x, 1)) scaleY(var(--tw-scale-y, 1)); }

@media (min-width: 640px) {
    .sm\\:flex-row { flex-direction: row; }
    .sm\\:items-center { align-items: center; }
    .sm\\:justify-between { justify-content: space-between; }
    .sm\\:mt-0 { margin-top: 0px; }
    .sm\\:text-sm { font-size: 0.875rem; line-height: 1.25rem; }
}

@media (min-width: 768px) {
    .md\\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .md\\:text-xs { font-size: 0.75rem; line-height: 1rem; }
}

@media (min-width: 1024px) {
    .lg\\:block { display: block; }
    .lg\\:flex { display: flex; }
    .lg\\:hidden { display: none; }
    .lg\\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .lg\\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .lg\\:text-xs { font-size: 0.75rem; line-height: 1rem; }
}

/* Enhanced Employee Table Styles */
.employee-table {
    background: white;
    border-radius: 12px;
    box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    overflow: hidden;
    border: 1px solid rgb(229 231 235);
}

.employee-table-header {
    background: linear-gradient(135deg, rgb(248 250 252) 0%, rgb(241 245 249) 100%);
    border-bottom: 2px solid rgb(229 231 235);
}

.employee-table-header th {
    padding: 1rem 1.5rem;
    text-align: left;
    font-size: 0.75rem;
    font-weight: 600;
    color: rgb(71 85 105);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: transparent;
    border: none;
}

.employee-table-body tr {
    border-bottom: 1px solid rgb(243 244 246);
    transition: all 0.2s ease;
    position: relative;
}

.employee-table-body tr:hover {
    background: linear-gradient(90deg, rgb(248 250 252) 0%, rgb(249 250 251) 100%);
    transform: translateY(-1px);
    box-shadow: 0 2px 4px -1px rgb(0 0 0 / 0.06);
}

.employee-table-body tr:last-child {
    border-bottom: none;
}

.employee-table-body td {
    padding: 1.25rem 1.5rem;
    vertical-align: middle;
    border: none;
}

.employee-cell {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.employee-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid white;
    box-shadow: 0 0 0 1px rgb(229 231 235);
    transition: all 0.2s ease;
}

.employee-table-body tr:hover .employee-avatar {
    transform: scale(1.05);
    box-shadow: 0 0 0 3px rgb(59 130 246 / 0.1);
}

.employee-name {
    font-weight: 600;
    color: rgb(17 24 39);
    font-size: 0.875rem;
    line-height: 1.25rem;
}

.employee-title {
    color: rgb(107 114 128);
    font-size: 0.813rem;
    line-height: 1.125rem;
    margin-top: 0.125rem;
}

.employee-dept {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
    background: rgb(239 246 255);
    color: rgb(37 99 235);
    border: 1px solid rgb(219 234 254);
}

.employee-email {
    color: rgb(55 65 81);
    font-size: 0.875rem;
    text-decoration: none;
    transition: color 0.2s ease;
}

.employee-email:hover {
    color: rgb(37 99 235);
}

.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.375rem 0.875rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    border: 1px solid;
    transition: all 0.2s ease;
}

.status-badge.active {
    background: linear-gradient(135deg, rgb(220 252 231) 0%, rgb(187 247 208) 100%);
    color: rgb(21 128 61);
    border-color: rgb(134 239 172);
    box-shadow: 0 1px 2px 0 rgb(34 197 94 / 0.1);
}

.status-badge.inactive {
    background: linear-gradient(135deg, rgb(254 226 226) 0%, rgb(254 202 202) 100%);
    color: rgb(185 28 28);
    border-color: rgb(252 165 165);
    box-shadow: 0 1px 2px 0 rgb(220 38 38 / 0.1);
}

.view-details-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, rgb(59 130 246) 0%, rgb(37 99 235) 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.813rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px 0 rgb(59 130 246 / 0.2);
    text-decoration: none;
}

.view-details-btn:hover {
    background: linear-gradient(135deg, rgb(37 99 235) 0%, rgb(29 78 216) 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px 0 rgb(59 130 246 / 0.3);
}

.view-details-btn:active {
    transform: translateY(0);
}

/* Enhanced Employee Details Modal */
.employee-details-modal {
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    border: 1px solid rgb(229 231 235);
    max-width: 600px;
    width: 90vw;
    max-height: 85vh;
    overflow-y: auto;
}

.modal-header-enhanced {
    background: linear-gradient(135deg, rgb(248 250 252) 0%, rgb(241 245 249) 100%);
    padding: 1.5rem;
    border-bottom: 1px solid rgb(229 231 235);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 10;
}

.modal-title-enhanced {
    font-size: 1.25rem;
    font-weight: 700;
    color: rgb(17 24 39);
    margin: 0;
}

.modal-close-btn {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: none;
    background: transparent;
    color: rgb(107 114 128);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.modal-close-btn:hover {
    background: rgb(243 244 246);
    color: rgb(55 65 81);
}

.employee-profile-header {
    padding: 2rem 1.5rem 1.5rem;
    background: linear-gradient(135deg, rgb(249 250 251) 0%, rgb(243 244 246) 100%);
    border-bottom: 1px solid rgb(229 231 235);
}

.profile-info {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid white;
    box-shadow: 0 0 0 2px rgb(59 130 246 / 0.1), 0 4px 6px -1px rgb(0 0 0 / 0.1);
}

.profile-details h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: rgb(17 24 39);
    margin: 0 0 0.25rem 0;
}

.profile-details p {
    color: rgb(107 114 128);
    font-size: 0.938rem;
    margin: 0;
}

.employee-info-grid {
    padding: 1.5rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.25rem;
}

.info-item {
    padding: 1rem;
    background: rgb(248 250 252);
    border-radius: 12px;
    border: 1px solid rgb(229 231 235);
    transition: all 0.2s ease;
}

.info-item:hover {
    background: white;
    box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1);
    transform: translateY(-1px);
}

.info-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: rgb(107 114 128);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.375rem;
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.info-value {
    font-size: 0.875rem;
    font-weight: 500;
    color: rgb(17 24 39);
    word-break: break-word;
}

.modal-actions {
    padding: 1.5rem;
    background: rgb(248 250 252);
    border-top: 1px solid rgb(229 231 235);
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.action-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    border: none;
    border-radius: 10px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.action-btn.primary {
    background: linear-gradient(135deg, rgb(59 130 246) 0%, rgb(37 99 235) 100%);
    color: white;
    box-shadow: 0 2px 4px 0 rgb(59 130 246 / 0.2);
}

.action-btn.primary:hover {
    background: linear-gradient(135deg, rgb(37 99 235) 0%, rgb(29 78 216) 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px 0 rgb(59 130 246 / 0.3);
}

.action-btn.danger {
    background: linear-gradient(135deg, rgb(239 68 68) 0%, rgb(220 38 38) 100%);
    color: white;
    box-shadow: 0 2px 4px 0 rgb(239 68 68 / 0.2);
}

.action-btn.danger:hover {
    background: linear-gradient(135deg, rgb(220 38 38) 0%, rgb(185 28 28) 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px 0 rgb(239 68 68 / 0.3);
}

.reviews-section {
    padding: 1.5rem;
    border-top: 1px solid rgb(229 231 235);
}

.reviews-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
}

.reviews-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: rgb(17 24 39);
    margin: 0;
}

.add-review-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, rgb(34 197 94) 0%, rgb(22 163 74) 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.813rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px 0 rgb(34 197 94 / 0.2);
}

.add-review-btn:hover {
    background: linear-gradient(135deg, rgb(22 163 74) 0%, rgb(21 128 61) 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px 0 rgb(34 197 94 / 0.3);
}

.review-card {
    background: white;
    border: 1px solid rgb(229 231 235);
    border-radius: 12px;
    padding: 1.25rem;
    margin-bottom: 0.75rem;
    transition: all 0.2s ease;
}

.review-card:hover {
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    transform: translateY(-1px);
}

.review-card:last-child {
    margin-bottom: 0;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
}

.review-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.review-stars {
    display: flex;
    gap: 0.125rem;
}

.review-date {
    font-size: 0.75rem;
    color: rgb(107 114 128);
    font-weight: 500;
}

.review-summary {
    color: rgb(55 65 81);
    font-size: 0.875rem;
    line-height: 1.5;
}

.empty-reviews {
    text-align: center;
    padding: 2rem;
    color: rgb(107 114 128);
    font-size: 0.875rem;
}

/* Custom scrollbar styles */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Print styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    .page {
        display: block !important;
    }
    
    .modal {
        display: none !important;
    }
}

/* Mobile Header */
.mobile-header {
    display: none !important;
}

@media (max-width: 1023px) {
    /* Sidebar Mobile Styles */
    #sidebar {
        position: fixed;
        left: 0;
        top: 0;
        height: 100vh;
        z-index: 50;
        transform: translateX(-100%) !important;
        transition: transform 0.3s ease-in-out;
    }

    #sidebar.active {
        transform: translateX(0) !important;
    }

    /* Mobile Menu Overlay */
    .mobile-menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 40;
        display: none !important;
    }

    .mobile-menu-overlay.active {
        display: block !important;
    }

    /* Main Content Mobile */
    main {
        margin-left: 0;
        padding: 1rem;
    }

    /* Mobile Header */
    .mobile-header {
        display: flex !important;
        align-items: center;
        justify-content: space-between;
        padding: 1rem;
        background: white;
        border-bottom: 1px solid rgb(229 231 235);
        position: sticky;
        top: 0;
        z-index: 30;
    }
    
    .mobile-menu-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        border: none;
        background: transparent;
        border-radius: 8px;
        cursor: pointer;
        transition: background-color 0.2s ease;
    }
    
    .mobile-menu-btn:hover {
        background: rgb(243 244 246);
    }
    
    .mobile-title {
        font-size: 1.25rem;
        font-weight: 700;
        color: rgb(17 24 39);
    }
    
    /* Dashboard Mobile */
    .dashboard-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .stat-card {
        padding: 1rem;
    }
    
    .stat-card .text-3xl {
        font-size: 2rem;
    }
    
    /* Employee Table Mobile */
    .employee-table {
        border-radius: 8px;
        margin: 0 -1rem;
        width: calc(100% + 2rem);
    }
    
    .employee-table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .employee-table-body td {
        padding: 0.75rem 1rem;
        font-size: 0.813rem;
    }
    
    .employee-avatar {
        width: 32px;
        height: 32px;
    }
    
    .employee-name {
        font-size: 0.813rem;
    }
    
    .employee-title {
        font-size: 0.75rem;
    }
    
    .employee-dept {
        font-size: 0.688rem;
        padding: 0.188rem 0.5rem;
    }
    
    .view-details-btn {
        padding: 0.375rem 0.75rem;
        font-size: 0.75rem;
    }
    
    .status-badge {
        font-size: 0.688rem;
        padding: 0.25rem 0.625rem;
    }
    
    /* Modals Mobile */
    .employee-details-modal {
        width: 95vw;
        max-height: 90vh;
        margin: 1rem;
        border-radius: 12px;
    }
    
    .modal-header-enhanced {
        padding: 1rem;
        position: sticky;
        top: 0;
        z-index: 10;
    }
    
    .modal-title-enhanced {
        font-size: 1.125rem;
    }
    
    .employee-profile-header {
        padding: 1.5rem 1rem 1rem;
    }
    
    .profile-avatar {
        width: 60px;
        height: 60px;
    }
    
    .profile-details h3 {
        font-size: 1.25rem;
    }
    
    .profile-details p {
        font-size: 0.875rem;
    }
    
    .employee-info-grid {
        padding: 1rem;
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .info-item {
        padding: 0.75rem;
    }
    
    .modal-actions {
        padding: 1rem;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .action-btn {
        padding: 0.75rem 1rem;
        justify-content: center;
    }
    
    .reviews-section {
        padding: 1rem;
    }
    
    .reviews-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .add-review-btn {
        width: 100%;
        justify-content: center;
    }
    
    .review-card {
        padding: 1rem;
    }
    
    /* Reports Mobile */
    .reports-filters {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .report-summary-cards {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .report-section {
        padding: 1rem;
        margin: 0 -1rem;
        width: calc(100% + 2rem);
        border-radius: 0;
    }
    
    .report-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .employee-reports-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .top-performers-table {
        font-size: 0.75rem;
    }
    
    .top-performers-table td {
        padding: 0.5rem 0.75rem;
    }
    
    /* Search Bar Mobile */
    .search-container {
        margin: 0 -1rem;
        padding: 0 1rem;
    }
    
    .search-input {
        font-size: 1rem;
        padding: 0.75rem 1rem 0.75rem 2.5rem;
    }
    
    /* Button Mobile */
    .btn-mobile {
        padding: 0.75rem 1rem;
        font-size: 0.875rem;
        min-height: 44px; /* Touch-friendly */
    }
    
    /* Typography Mobile */
    .page-title {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }
    
    .page-subtitle {
        font-size: 0.875rem;
        margin-bottom: 1rem;
    }
    
    /* Spacing Mobile */
    .section-spacing {
        margin-bottom: 1.5rem;
    }
    
    .card-spacing {
        margin-bottom: 1rem;
    }
}

/* Tablet Responsive Design */
@media (min-width: 769px) and (max-width: 1024px) {
    /* Sidebar Tablet */
    #sidebar {
        width: 240px;
    }
    
    main {
        margin-left: 0;
        padding: 1.5rem;
    }
    
    /* Dashboard Tablet */
    .dashboard-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Employee Table Tablet */
    .employee-table-body td {
        padding: 1rem 1.25rem;
    }
    
    /* Reports Tablet */
    .report-summary-cards {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .employee-reports-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .report-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Large Mobile (Phablets) */
@media (min-width: 481px) and (max-width: 768px) {
    .dashboard-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .employee-info-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Touch-friendly interactions */
@media (hover: none) and (pointer: coarse) {
    .view-details-btn,
    .action-btn,
    .add-review-btn,
    .mobile-menu-btn {
        min-height: 44px;
        min-width: 44px;
    }
    
    .employee-table-body tr:hover,
    .review-card:hover,
    .info-item:hover {
        transform: none;
    }
    
    .employee-table-body tr:active,
    .review-card:active,
    .info-item:active {
        transform: scale(0.98);
        transition: transform 0.1s ease;
    }
}

/* Landscape Mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .employee-details-modal {
        max-height: 95vh;
    }
    
    .employee-profile-header {
        padding: 1rem;
    }
    
    .profile-avatar {
        width: 50px;
        height: 50px;
    }
    
    .employee-info-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Employee Report Cards */
.employee-report-card {
    transition: all 0.3s ease;
    border: 1px solid #e5e7eb;
}

.employee-report-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-color: #3b82f6;
}

.employee-report-card img {
    border: 2px solid #f3f4f6;
}

.employee-report-card .text-yellow-500 {
    color: #fbbf24;
}

.employee-report-card button {
    transition: all 0.2s ease;
}

.employee-report-card button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

/* Department Color Coding */
.text-blue-600 { color: #2563eb; }
.text-green-600 { color: #059669; }
.text-yellow-600 { color: #d97706; }
.text-purple-600 { color: #7c3aed; }
.text-red-600 { color: #dc2626; }
.text-indigo-600 { color: #4f46e5; }

/* Modal Styles for Employee Reports */
#employeeReportModal {
    backdrop-filter: blur(8px);
    background: rgba(0, 0, 0, 0.6);
}

#employeeReportModal .bg-white {
    animation: modalSlideIn 0.4s ease-out;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* Enhanced Report Card Styles */
.employee-report-card {
    transition: all 0.3s ease;
    border: 1px solid #e5e7eb;
    background: linear-gradient(135deg, #ffffff 0%, #f9fafb 100%);
}

.employee-report-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border-color: #3b82f6;
    background: linear-gradient(135deg, #ffffff 0%, #eff6ff 100%);
}

.employee-report-card img {
    border: 3px solid #f3f4f6;
    transition: all 0.3s ease;
}

.employee-report-card:hover img {
    border-color: #3b82f6;
    transform: scale(1.05);
}

.employee-report-card .text-yellow-500 {
    color: #fbbf24;
    text-shadow: 0 1px 2px rgba(251, 191, 36, 0.3);
}

.employee-report-card button {
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border: none;
    position: relative;
    overflow: hidden;
}

.employee-report-card button::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;
}

.employee-report-card button:hover::before {
    left: 100%;
}

.employee-report-card button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.4);
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
}

/* Gradient Backgrounds for Metrics */
.bg-gradient-to-br {
    background-size: 200% 200%;
    animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Performance Badge Animations */
.performance-badge {
    animation: pulse 2s infinite;
}

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

/* Enhanced Review Cards */
.review-card-enhanced {
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}

.review-card-enhanced:hover {
    transform: translateX(4px);
    border-left-color: #3b82f6;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Action Button Styles */
.action-button {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.action-button::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.action-button:hover::after {
    width: 300px;
    height: 300px;
}

/* Progress Bar Animations */
.progress-bar-animated {
    background: linear-gradient(90deg, #fbbf24 0%, #f59e0b 50%, #fbbf24 100%);
    background-size: 200% 100%;
    animation: progressAnimation 2s linear infinite;
}

@keyframes progressAnimation {
    0% { background-position: 0% 0%; }
    100% { background-position: 200% 0%; }
}

/* Department Color Coding with Gradients */
.text-blue-600 { 
    color: #2563eb; 
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.text-green-600 { 
    color: #059669; 
    background: linear-gradient(135deg, #059669, #10b981);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.text-yellow-600 { 
    color: #d97706; 
    background: linear-gradient(135deg, #d97706, #f59e0b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.text-purple-600 { 
    color: #7c3aed; 
    background: linear-gradient(135deg, #7c3aed, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.text-red-600 { 
    color: #dc2626; 
    background: linear-gradient(135deg, #dc2626, #ef4444);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.text-indigo-600 { 
    color: #4f46e5; 
    background: linear-gradient(135deg, #4f46e5, #6366f1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Calendar Styles */
.calendar-grid {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.calendar-header {
    border-bottom: 2px solid #e5e7eb;
}

.calendar-body {
    min-height: 400px;
}

.calendar-day {
    position: relative;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.calendar-day:hover {
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1);
    z-index: 10;
}

.calendar-day.bg-blue-50 {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%) !important;
    border-color: #3b82f6;
}

.calendar-day .text-blue-600 {
    font-weight: 600;
}

/* Event Type Colors */
.bg-red-100 { background-color: #fee2e2 !important; }
.text-red-700 { color: #b91c1c !important; }
.bg-pink-100 { background-color: #fce7f3 !important; }
.text-pink-700 { color: #be185d !important; }
.bg-blue-100 { background-color: #dbeafe !important; }
.text-blue-700 { color: #1d4ed8 !important; }
.bg-green-100 { background-color: #dcfce7 !important; }
.text-green-700 { color: #15803d !important; }
.bg-yellow-100 { background-color: #fef3c7 !important; }
.text-yellow-700 { color: #a16207 !important; }

/* Event Cards */
.event-card {
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
    cursor: pointer;
}

.event-card:hover {
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.event-card.holiday { border-left-color: #ef4444; }
.event-card.birthday { border-left-color: #ec4899; }
.event-card.company { border-left-color: #3b82f6; }
.event-card.team { border-left-color: #10b981; }
.event-card.meeting { border-left-color: #f59e0b; }

/* Calendar Controls */
.calendar-controls {
    background: linear-gradient(135deg, #ffffff 0%, #f9fafb 100%);
    border: 1px solid #e5e7eb;
}

.calendar-controls button {
    transition: all 0.2s ease;
}

.calendar-controls button:hover {
    background-color: #f3f4f6;
    transform: scale(1.05);
}

.calendar-controls button:active {
    transform: scale(0.95);
}

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

.modal .bg-white {
    animation: modalSlideIn 0.3s ease-out;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Responsive Calendar */
@media (max-width: 768px) {
    .calendar-day {
        h-20 !important;
        p-1 !important;
    }
    
    .calendar-header div {
        p-2 !important;
        text-xs !important;
    }
    
    .calendar-day span {
        text-xs !important;
    }
    
    .calendar-day .text-xs {
        text-xs !important;
    }
}

@media (max-width: 640px) {
    .calendar-day {
        h-16 !important;
        p-1 !important;
    }
    
    .calendar-body {
        gap: 1px !important;
    }
    
    .calendar-day .truncate {
        line-clamp: 1 !important;
        -webkit-line-clamp: 1 !important;
    }
}

/* Calendar Loading Animation */
.calendar-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 400px;
}

.calendar-loading::after {
    content: '';
    width: 40px;
    height: 40px;
    border: 4px solid #e5e7eb;
    border-top: 4px solid #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Event Badge Animation */
.event-badge {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Today Highlight */
.today-highlight {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    font-weight: 600;
}

.today-highlight:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
}

/* Event Filter Pills */
.filter-pill {
    transition: all 0.2s ease;
    border: 2px solid transparent;
}

.filter-pill:hover {
    border-color: #3b82f6;
    transform: translateY(-1px);
}

.filter-pill.active {
    background-color: #3b82f6;
    color: white;
    border-color: #3b82f6;
}

/* Calendar Legend */
.legend-item {
    transition: all 0.2s ease;
}

.legend-item:hover {
    transform: scale(1.05);
}

.legend-item .w-4 {
    transition: all 0.2s ease;
}

.legend-item:hover .w-4 {
    transform: scale(1.2);
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    #sidebar,
    .mobile-menu-overlay,
    .view-details-btn,
    .action-btn,
    .review-card,
    .info-item {
        transition: none;
    }
}

/* Theme Toggle Button Styles */
.theme-toggle-btn {
    background: rgb(243 244 246);
    border: 1px solid rgb(229 231 235);
    color: rgb(107 114 128);
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 8px;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle-btn:hover {
    background: rgb(229 231 235);
    color: rgb(55 65 81);
    transform: translateY(-1px);
}

.theme-toggle-btn:active {
    transform: translateY(0);
}

/* Hidden utility class */
.hidden {
    display: none !important;
}
