* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #f8f9ff 0%, #f0f2ff 25%, #e8ecff 50%, #f4f6ff 75%, #fafbff 100%);
    min-height: 100vh;
    padding: 20px;
    color: #333;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.03) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.header {
    text-align: center;
    margin-bottom: 60px;
    padding: 50px 30px 40px;
    position: relative;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
}

.header h1 {
    color: #2d3748;
    font-size: 3.5rem;
    margin-bottom: 16px;
    font-weight: 800;
    letter-spacing: -2px;
    background: linear-gradient(135deg, #4a5568 0%, #667eea 50%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    z-index: 1;
}

.header p {
    color: #64748b;
    font-size: 1.25rem;
    font-weight: 400;
    max-width: 650px;
    margin: 0 auto;
    line-height: 1.7;
    opacity: 0.9;
}

.search-container {
    margin-bottom: 45px;
    display: flex;
    justify-content: center;
    gap: 18px;
    flex-wrap: wrap;
}

.search-box {
    padding: 14px 22px;
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: 12px;
    font-size: 16px;
    width: 320px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
}

.search-box:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.08);
    background: rgba(255, 255, 255, 0.95);
}

.filter-select {
    padding: 14px 22px;
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: 12px;
    font-size: 16px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.08);
}

.user-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 28px;
    margin-bottom: 30px;
}

.user-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.user-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.user-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
    background: rgba(255, 255, 255, 0.98);
}

.user-card:hover::before {
    transform: scaleX(1);
}

.profile-picture {
    width: 85px;
    height: 85px;
    border-radius: 50%;
    margin: 0 auto 22px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.2);
}

.user-card:hover .profile-picture {
    transform: scale(1.08);
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.3);
}

.user-name {
    font-size: 1.35rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 10px;
    letter-spacing: -0.5px;
}

.user-email {
    color: #64748b;
    margin-bottom: 16px;
    font-size: 0.95rem;
    font-weight: 400;
}

.user-department {
    background: linear-gradient(135deg, #f8f9ff 0%, #e8ecff 100%);
    color: #4a5568;
    padding: 8px 18px;
    border-radius: 24px;
    font-size: 0.85rem;
    font-weight: 500;
    display: inline-block;
    border: 1px solid rgba(102, 126, 234, 0.1);
}

.no-results {
    text-align: center;
    padding: 60px;
    color: #64748b;
    font-size: 1.2rem;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.stats {
    display: flex;
    justify-content: center;
    gap: 35px;
    margin-bottom: 45px;
    flex-wrap: wrap;
}

.stat-item {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    padding: 28px 38px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
}

.stat-number {
    font-size: 2.2rem;
    font-weight: 700;
    color: #667eea;
    display: block;
    letter-spacing: -1px;
}

.stat-label {
    color: #64748b;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
    margin-top: 4px;
}

@media (max-width: 768px) {
    .header h1 {
        font-size: 2.8rem;
        letter-spacing: -1px;
    }
    
    .search-container {
        flex-direction: column;
        align-items: center;
    }
    
    .search-box {
        width: 100%;
        max-width: 320px;
    }
    
    .user-grid {
        grid-template-columns: 1fr;
    }
    
    .stats {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    body {
        padding: 15px;
    }
    
    .header {
        padding: 40px 20px 30px;
    }
    
    .header h1 {
        font-size: 2.4rem;
    }
    
    .user-card {
        padding: 24px;
    }
    
    .stats {
        gap: 20px;
    }
    
    .stat-item {
        padding: 24px 32px;
    }
}

/* Add User Button */
.add-user-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #667eea 100%);
    color: white;
    border: none;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.3);
    transition: all 0.3s ease;
    z-index: 1000;
}

.add-user-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 30px rgba(16, 185, 129, 0.4);
}

/* Delete Button */
.delete-btn {
    background: linear-gradient(135deg, #cb3e3e 0%, #dc2626 100%);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.8rem;
    cursor: pointer;
    margin-top: 12px;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(10px);
}

.user-card:hover .delete-btn {
    opacity: 1;
    transform: translateY(0);
}

.delete-btn:hover {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    transform: scale(1.05);
}
