/* تصميم حديث لبطاقات الموظفين */
.staff-member-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    margin-bottom: 30px;
    position: relative;
}

.staff-member-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.staff-image {
    height: 280px;
    overflow: hidden;
    position: relative;
}

.staff-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.staff-member-card:hover .staff-image img {
    transform: scale(1.05);
}

.staff-info {
    padding: 25px;
    text-align: center;
}

.staff-name {
    font-size: 1.4em;
    margin-bottom: 8px;
    color: #2c3e50;
}

.staff-position {
    font-size: 1em;
    color: #3498db;
    margin-bottom: 15px;
    font-weight: 600;
}

.staff-bio {
    color: #7f8c8d;
    margin-bottom: 20px;
    line-height: 1.6;
}

.staff-meta {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.staff-email a, .staff-phone a, .staff-facebook a, .staff-twitter a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f8f9fa;
    color: #3498db;
    transition: all 0.3s ease;
}

.staff-email a:hover, .staff-phone a:hover,
.staff-facebook a:hover, .staff-twitter a:hover {
    background: #3498db;
    color: #ffffff;
    transform: translateY(-3px);
}

/* تصميم محرك البحث */
.modern-search-form {
    display: flex;
    max-width: 600px;
    margin: 0 auto 40px;
    border-radius: 50px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

#staff-search-input {
    flex: 1;
    padding: 18px 25px;
    border: none;
    font-size: 1.1em;
    background: #ffffff;
}

#staff-search-input:focus {
    outline: none;
}

.modern-search-form button {
    background: #3498db;
    color: white;
    border: none;
    padding: 0 25px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.modern-search-form button:hover {
    background: #2980b9;
}

.staff-search-results {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    padding: 20px;
}

/* تصميم متجاوب */
@media (max-width: 768px) {
    .staff-list-container, .staff-search-results {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }

    .modern-search-form {
        margin-bottom: 30px;
    }

    #staff-search-input {
        padding: 15px 20px;
    }
}

@media (max-width: 480px) {
    .staff-list-container, .staff-search-results {
        grid-template-columns: 1fr;
    }
}

/* مؤشر التحميل */
.loading-spinner {
    display: inline-block;
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto;
}

.loading-spinner div {
    position: absolute;
    top: 33px;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: #3498db;
    animation-timing-function: cubic-bezier(0, 1, 1, 0);
}

.loading-spinner div:nth-child(1) {
    left: 8px;
    animation: loading-spinner1 0.6s infinite;
}

.loading-spinner div:nth-child(2) {
    left: 8px;
    animation: loading-spinner2 0.6s infinite;
}

.loading-spinner div:nth-child(3) {
    left: 32px;
    animation: loading-spinner2 0.6s infinite;
}

.loading-spinner div:nth-child(4) {
    left: 56px;
    animation: loading-spinner3 0.6s infinite;
}

@keyframes loading-spinner1 {
    0% { transform: scale(0); }
    100% { transform: scale(1); }
}

@keyframes loading-spinner3 {
    0% { transform: scale(1); }
    100% { transform: scale(0); }
}

@keyframes loading-spinner2 {
    0% { transform: translate(0, 0); }
    100% { transform: translate(24px, 0); }
}
