/* شاشة التحميل الرئيسية */
.splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}

.splash-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    transform: translateY(-10%); /* تعديل طفيف للتوازن البصري */
    width: 100%;
    max-width: 300px;
}

.splash-content > * {
    align-self: center;
    justify-self: center;
    text-align: center;
    margin: 0 auto;
}

.splash-logo {
    width: 150px;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    justify-self: center;
    text-align: center;
}

/* تأثير التحميل الدائري */
.loading-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #4CAF50;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
    display: block;
    align-self: center;
    justify-self: center;
    text-align: center;
}

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

/* تأثير التحميل للمحتوى */
.content-loader {
    background: #f0f0f0;
    height: 20px;
    border-radius: 4px;
    margin: 10px 0;
    animation: loading 1.5s infinite;
    opacity: 0.7;
}

@keyframes loading {
    0% { opacity: 0.7; }
    50% { opacity: 0.5; }
    100% { opacity: 0.7; }
}

/* تأثير النص المتحرك */
.loading-text {
    color: #4CAF50;
    font-size: 1.2rem;
    margin: 0;
    opacity: 0.8;
}

.loading-dots::after {
    content: '';
    animation: dots 1.5s infinite;
}

@keyframes dots {
    0% { content: '.'; }
    33% { content: '..'; }
    66% { content: '...'; }
    100% { content: '.'; }
}

/* تصميم النسبة المئوية - أرقام فقط بدون شريط تقدم */
.loading-percentage {
    font-size: 2.5rem;
    font-weight: 700;
    color: #4CAF50;
    margin: 0;
    font-family: 'Tajawal', sans-serif;
    text-shadow: 0 2px 4px rgba(76, 175, 80, 0.2);
    letter-spacing: 2px;
    background: linear-gradient(135deg, #4CAF50, #45a049);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: all 0.3s ease;
}

/* شريط تحديث البيانات */
.data-refresh-bar {
    position: fixed;
    top: 80px;
    right: 20px;
    background: linear-gradient(135deg, #ff9800, #f57c00);
    color: white;
    border-radius: 12px;
    padding: 15px 20px;
    box-shadow: 0 8px 25px rgba(255, 152, 0, 0.3);
    z-index: 1000;
    max-width: 400px;
    animation: slideInRight 0.5s ease-out;
}

.refresh-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.refresh-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 14px;
}

.refresh-title i {
    color: #fff3e0;
    font-size: 16px;
}

.refresh-actions {
    display: flex;
    gap: 10px;
}

.refresh-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.refresh-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.refresh-close-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.3s ease;
}

.refresh-close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* تأثير التلاشي */
.fade-out {
    opacity: 0;
    visibility: hidden;
} 