/* Personnel Management Custom Styles */

/* Glass Morphism Enhanced */
.glass-morphism-enhanced {
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(148, 163, 184, 0.15);
    box-shadow: 
        0 8px 32px 0 rgba(31, 38, 135, 0.15),
        inset 0 1px 0 0 rgba(255, 255, 255, 0.05);
}

/* Avatar Gradients */
.avatar-gradient-blue { background: linear-gradient(135deg, #3B82F6, #1E40AF); }
.avatar-gradient-green { background: linear-gradient(135deg, #10B981, #059669); }
.avatar-gradient-purple { background: linear-gradient(135deg, #8B5CF6, #7C3AED); }
.avatar-gradient-pink { background: linear-gradient(135deg, #EC4899, #DB2777); }
.avatar-gradient-indigo { background: linear-gradient(135deg, #6366F1, #4F46E5); }
.avatar-gradient-red { background: linear-gradient(135deg, #EF4444, #DC2626); }
.avatar-gradient-yellow { background: linear-gradient(135deg, #F59E0B, #D97706); }
.avatar-gradient-teal { background: linear-gradient(135deg, #14B8A6, #0D9488); }
.avatar-gradient-orange { background: linear-gradient(135deg, #F97316, #EA580C); }
.avatar-gradient-cyan { background: linear-gradient(135deg, #06B6D4, #0891B2); }

/* Avatar Hover Effects */
.avatar-container {
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.avatar-container:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
}

.avatar-container:hover::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(45deg, #6366F1, #8B5CF6, #EC4899);
    border-radius: 50%;
    z-index: -1;
    opacity: 0.3;
    animation: avatar-glow 2s infinite alternate;
}

@keyframes avatar-glow {
    0% { opacity: 0.3; transform: scale(1); }
    100% { opacity: 0.6; transform: scale(1.05); }
}

/* Status Indicator Animation */
.status-indicator {
    position: relative;
    overflow: hidden;
}

.status-indicator::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: status-shine 3s infinite;
}

@keyframes status-shine {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Table Row Hover Effects */
.table-row {
    transition: all 0.3s ease;
    position: relative;
}

.table-row:hover {
    background: rgba(30, 41, 59, 0.6);
    transform: translateX(4px);
}

.table-row:hover::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, #6366F1, #8B5CF6);
    border-radius: 0 2px 2px 0;
}

/* Pagination Enhanced Styles */
.pagination-button {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.pagination-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(99, 102, 241, 0.3);
    transition: all 0.6s ease;
    transform: translate(-50%, -50%);
}

.pagination-button:hover::before {
    width: 120%;
    height: 120%;
}

.pagination-button.active {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(139, 92, 246, 0.2));
    border-color: rgba(99, 102, 241, 0.4);
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.3);
}

/* Progress Bar Enhancements */
.progress-bar {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

.progress-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: progress-shine 2s infinite;
}

@keyframes progress-shine {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Import History Cards */
.import-history-card {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.import-history-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.import-history-card:hover::before {
    left: 100%;
}

.import-history-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* Search Input Enhancements */
.search-input {
    position: relative;
    transition: all 0.3s ease;
}

.search-input:focus-within {
    transform: scale(1.02);
}

.search-input input:focus {
    box-shadow: 
        0 0 0 3px rgba(99, 102, 241, 0.1),
        0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Filter Dropdown Animations */
.filter-dropdown {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.filter-dropdown:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Button Hover Effects */
.btn-enhanced {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-enhanced::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transition: all 0.6s ease;
    transform: translate(-50%, -50%);
}

.btn-enhanced:hover::before {
    width: 300px;
    height: 300px;
}

.btn-enhanced:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* Stats Card Animations */
.stats-card {
    transition: all 0.3s ease;
    position: relative;
}

.stats-card:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

.stats-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: inherit;
}

.stats-card:hover::after {
    opacity: 1;
}

/* File Upload Zone */
.upload-zone {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.upload-zone::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent, rgba(99, 102, 241, 0.1), transparent);
    animation: upload-zone-rotate 6s linear infinite;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.upload-zone:hover::before {
    opacity: 1;
}

@keyframes upload-zone-rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.upload-zone.dragover {
    border-color: #6366F1;
    background: rgba(99, 102, 241, 0.1);
    transform: scale(1.02);
}

/* Notification Enhancements */
.notification {
    animation: notification-slide-in 0.5s ease-out;
}

@keyframes notification-slide-in {
    0% {
        opacity: 0;
        transform: translateX(100%) scale(0.8);
    }
    100% {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

/* Loading Spinner */
.loading-spinner {
    position: relative;
}

.loading-spinner::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(99, 102, 241, 0.3);
    border-top: 2px solid #6366F1;
    border-radius: 50%;
    animation: loading-spin 1s linear infinite;
    transform: translate(-50%, -50%);
}

@keyframes loading-spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Responsive Enhancements */
@media (max-width: 768px) {
    .avatar-container {
        transform: scale(0.9);
    }
    
    .stats-card:hover {
        transform: translateY(-2px) scale(1.01);
    }
    
    .table-row:hover {
        transform: none;
    }
    
    .btn-enhanced:hover {
        transform: none;
    }
}

/* Dark Mode Specific Enhancements */
@media (prefers-color-scheme: dark) {
    .glass-morphism-enhanced {
        background: rgba(15, 23, 42, 0.9);
        border-color: rgba(148, 163, 184, 0.1);
    }
}

/* High Performance Mode */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}