/* Custom Styles for HR 360 Evaluation System */

@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;600;700;800&display=swap');

* {
    font-family: 'Cairo', sans-serif;
}

body {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-attachment: fixed;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

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

::-webkit-scrollbar-thumb {
    background: #667eea;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #764ba2;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

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

.slide-in {
    animation: slideIn 0.5s ease-out;
}

.pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Card Styles */
.card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

/* Button Styles */
.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: #f3f4f6;
    color: #374151;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-secondary:hover {
    background: #e5e7eb;
}

/* Rating Stars */
.rating-star {
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 2rem;
    color: #d1d5db;
}

.rating-star.active {
    color: #fbbf24;
}

.rating-star:hover {
    transform: scale(1.2);
}

/* Progress Bar */
.progress-bar {
    height: 8px;
    background: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    transition: width 0.5s ease;
}

/* Badge Styles */
.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
}

.badge-excellent {
    background: #d1fae5;
    color: #065f46;
}

.badge-very-good {
    background: #dbeafe;
    color: #1e40af;
}

.badge-good {
    background: #e0e7ff;
    color: #4338ca;
}

.badge-acceptable {
    background: #fef3c7;
    color: #92400e;
}

.badge-weak {
    background: #fee2e2;
    color: #991b1b;
}

/* Print Styles */
@media print {
    body {
        background: white;
    }
    
    header, footer, .no-print {
        display: none !important;
    }
    
    .card {
        box-shadow: none;
        border: 1px solid #e5e7eb;
        page-break-inside: avoid;
    }
    
    .page-break {
        page-break-before: always;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .rating-star {
        font-size: 1.5rem;
    }
    
    .card {
        margin-bottom: 1rem;
    }
}

/* Custom Select */
.custom-select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: left 0.75rem center;
    background-size: 1.5em 1.5em;
    padding-left: 2.5rem;
}

/* Loading Spinner */
.spinner {
    border: 3px solid #f3f4f6;
    border-top: 3px solid #667eea;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

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

/* Tooltip */
.tooltip {
    position: relative;
}

.tooltip:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #1f2937;
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    white-space: nowrap;
    font-size: 0.875rem;
    margin-bottom: 8px;
    z-index: 1000;
}

/* Dashboard Tabs */
.dashboard-tab {
    transition: all 0.3s ease;
}

.dashboard-tab:hover {
    background: #f3f4f6;
}

.dashboard-tab.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

/* Admin Login */
.admin-login-form {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}

/* Statistics Cards */
.stat-card {
    transform-style: preserve-3d;
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px) rotateX(5deg);
}

/* Evaluation Items */
.evaluation-item {
    transition: all 0.3s ease;
}

.evaluation-item:hover {
    border-left: 4px solid #667eea;
}

/* Employee List Items */
.employee-list-item {
    transition: all 0.3s ease;
}

.employee-list-item:hover {
    border-right: 4px solid #764ba2;
}

/* Charts Container */
.chart-container {
    position: relative;
    height: 300px;
}

/* Data Export Button */
.export-btn {
    position: relative;
    overflow: hidden;
}

.export-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
}

.export-btn:hover::before {
    left: 100%;
}

/* No Print Elements */
@media print {
    .no-print {
        display: none !important;
    }
}
