* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Cairo', sans-serif;
    background-color: #ffffff;
    color: #333;
    line-height: 1.6;
    direction: rtl;
    overflow-x: hidden;
    position: relative;
}

/* دوائر خلفية */
.background-circles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.circle {
    position: absolute;
    border-radius: 50%;
    background: rgba(76, 175, 80, 0.1);
    animation: float 6s ease-in-out infinite;
}

.circle-1 {
    width: 200px;
    height: 200px;
    top: 10%;
    right: 10%;
    animation-delay: 0s;
}

.circle-2 {
    width: 150px;
    height: 150px;
    top: 60%;
    left: 5%;
    animation-delay: 2s;
}

.circle-3 {
    width: 100px;
    height: 100px;
    top: 20%;
    left: 20%;
    animation-delay: 4s;
}

.circle-4 {
    width: 120px;
    height: 120px;
    bottom: 20%;
    right: 20%;
    animation-delay: 1s;
}

.circle-5 {
    width: 80px;
    height: 80px;
    top: 80%;
    right: 30%;
    animation-delay: 3s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
    position: relative;
    z-index: 1;
}

/* نظام الصفحات */
.page {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
}

.page.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

header {
    text-align: center;
    margin-bottom: 40px;
}

.site-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: #2c5530;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
    background: linear-gradient(135deg, #4CAF50, #2c5530);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.main-message {
    font-size: 1.3rem;
    color: #555;
    font-weight: 600;
    line-height: 1.8;
    max-width: 600px;
    margin: 0 auto;
    margin-bottom: 10px;
}

.sub-message {
    font-size: 1rem;
    color: #4CAF50;
    font-weight: 500;
    font-style: italic;
    margin-bottom: 20px;
}

/* نموذج الدرجات */
.grades-form {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border: 2px solid rgba(76, 175, 80, 0.2);
    backdrop-filter: blur(10px);
    max-width: 600px;
    margin: 0 auto;
}

.grades-form h2 {
    color: #2c5530;
    font-size: 2rem;
    margin-bottom: 30px;
    text-align: center;
    font-weight: 700;
}

.grades-section {
    margin-bottom: 30px;
}

.grades-section h3 {
    color: #4CAF50;
    font-size: 1.3rem;
    margin-bottom: 20px;
    text-align: center;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 1rem;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 1rem;
    font-family: 'Cairo', sans-serif;
    background: white;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #4CAF50;
    box-shadow: 0 0 0 4px rgba(76, 175, 80, 0.1);
    transform: translateY(-2px);
}

.form-group small {
    display: block;
    margin-top: 5px;
    color: #4CAF50;
    font-weight: 600;
    font-size: 0.9rem;
}

/* الأزرار */
.btn {
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Cairo', sans-serif;
    min-width: 250px;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #45a049, #3d8b40);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(76, 175, 80, 0.4);
}

.btn-secondary {
    background: linear-gradient(135deg, #66BB6A, #4CAF50);
    color: white;
    box-shadow: 0 6px 20px rgba(102, 187, 106, 0.3);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #4CAF50, #388E3C);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(102, 187, 106, 0.4);
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* عرض النتيجة */
.result-display {
    margin-top: 30px;
    text-align: center;
}

.final-score {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 20px;
    box-shadow: 0 8px 25px rgba(76, 175, 80, 0.3);
}

.final-score h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.score-number {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

/* صفحة التخصصات */
.specialties-container {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 30px;
    align-items: start;
}

.specialties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.specialty-card {
    background: white;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border: 2px solid #e0e0e0;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.specialty-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #4CAF50, #66BB6A);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.specialty-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    border-color: #4CAF50;
}

.specialty-card:hover::before {
    transform: scaleX(1);
}

.specialty-card.selected {
    border-color: #4CAF50;
    background: linear-gradient(135deg, #f8fff8, #f0fff0);
}

.specialty-card.selected::before {
    transform: scaleX(1);
}

.specialty-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.specialty-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #2c5530;
    margin-bottom: 5px;
}

.specialty-percentage {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.specialty-description {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 15px;
}

.specialty-university {
    color: #4CAF50;
    font-weight: 600;
    font-size: 0.9rem;
}

/* سلة التخصصات */
.cart-section {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border: 2px solid #e0e0e0;
    position: sticky;
    top: 20px;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.cart-header h3 {
    color: #2c5530;
    font-size: 1.3rem;
    font-weight: 700;
}

.cart-count {
    background: #4CAF50;
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.cart-items {
    max-height: 400px;
    overflow-y: auto;
    margin-bottom: 20px;
}

.cart-item {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.cart-item:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transform: translateY(-1px);
}

.cart-item-content {
    flex: 1;
}

.cart-item-title {
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

.cart-item-university {
    font-size: 0.9em;
    color: #666;
}

.remove-btn {
    background: #ff4757;
    color: white;
    border: none;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-left: 8px;
    flex-shrink: 0;
}

.remove-btn:hover {
    background: #ff3742;
    transform: scale(1.1);
}

.remove-btn i {
    font-size: 12px;
}

/* صفحة السلة */
.cart-container {
    max-width: 800px;
    margin: 0 auto;
}

.cart-items-sortable {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border: 2px solid #e0e0e0;
    margin-bottom: 30px;
}

.sortable-item {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    cursor: grab;
    transition: all 0.3s ease;
    position: relative;
}

.sortable-item:hover {
    border-color: #4CAF50;
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.2);
    transform: translateY(-2px);
}

.sortable-item.dragging {
    opacity: 0.5;
    transform: rotate(5deg);
}

.sortable-remove-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
    background: #ff4757;
    color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.sortable-remove-btn:hover {
    background: #ff3742;
    transform: scale(1.1);
}

.sortable-remove-btn i {
    font-size: 10px;
}

.sortable-item .rank {
    background: #4CAF50;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
}

.sortable-item .content {
    flex: 1;
    margin: 0 20px;
}

.sortable-item .title {
    font-weight: 700;
    color: #2c5530;
    margin-bottom: 5px;
}

.sortable-item .university {
    color: #666;
    font-size: 0.9rem;
}

.sortable-item .percentage {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.cart-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.cart-actions .btn {
    min-width: auto;
    padding: 12px 20px;
    font-size: 0.95rem;
}

/* صفحة الاختبار */
.test-container {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border: 2px solid rgba(76, 175, 80, 0.2);
    backdrop-filter: blur(10px);
    max-width: 700px;
    margin: 0 auto;
}

.test-container h2 {
    color: #2c5530;
    font-size: 2rem;
    margin-bottom: 30px;
    text-align: center;
    font-weight: 700;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .specialties-container {
        grid-template-columns: 1fr;
    }
    
    .cart-section {
        position: static;
        margin-top: 30px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .site-title {
        font-size: 2.5rem;
    }
    
    .main-message {
        font-size: 1.1rem;
    }
    
    .grades-form,
    .test-container {
        padding: 25px;
    }
    
    .btn {
        min-width: 200px;
        padding: 12px 25px;
        font-size: 1rem;
    }
    
    .specialties-grid {
        grid-template-columns: 1fr;
    }
    
    .cart-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .cart-actions .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .developer-contact {
        margin-top: 40px;
        padding: 30px 20px;
    }
    
    .contact-container h3 {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .site-title {
        font-size: 2rem;
    }
    
    .main-message {
        font-size: 1rem;
    }
    
    .btn {
        min-width: 180px;
        padding: 10px 20px;
    }
    
    .grades-form,
    .test-container {
        padding: 20px;
    }
    
    .score-number {
        font-size: 2.5rem;
    }
    
    .developer-contact {
        margin-top: 30px;
        padding: 25px 15px;
    }
    
    .contact-container h3 {
        font-size: 1.2rem;
    }
    
    .btn-instagram {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

/* تحسينات إضافية */
.specialty-card.selected .specialty-title {
    color: #4CAF50;
}

.cart-item .remove-btn {
    background: #ff4444;
    color: white;
    border: none;
    border-radius: 50%;
    width: 25px;
    height: 25px;
    cursor: pointer;
    font-size: 0.8rem;
    margin-right: 10px;
    transition: all 0.3s ease;
}

.cart-item .remove-btn:hover {
    background: #cc0000;
    transform: scale(1.1);
}

/* تأثيرات التحميل */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #4CAF50;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* زر إزالة جميع الرغبات */
.btn-danger {
    background: linear-gradient(135deg, #ff4444, #cc0000);
    color: white;
    box-shadow: 0 6px 20px rgba(255, 68, 68, 0.3);
}

.btn-danger:hover {
    background: linear-gradient(135deg, #cc0000, #aa0000);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 68, 68, 0.4);
}

/* زر انستغرام */
.btn-instagram {
    background: linear-gradient(135deg, #833AB4, #FD1D1D, #F77737);
    color: white;
    box-shadow: 0 6px 20px rgba(131, 58, 180, 0.3);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-instagram:hover {
    background: linear-gradient(135deg, #FD1D1D, #F77737, #833AB4);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(131, 58, 180, 0.4);
    color: white;
    text-decoration: none;
}

/* التواصل مع المطور */
.developer-contact {
    margin-top: 60px;
    padding: 40px 0;
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.1), rgba(76, 175, 80, 0.05));
    border-radius: 20px;
    text-align: center;
}

.contact-container h3 {
    color: #2c5530;
    font-size: 1.5rem;
    margin-bottom: 20px;
    font-weight: 700;
}

/* صفحة التأكيد */
.confirmation-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 70vh;
    padding: 20px;
}

.confirmation-card {
    background: white;
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    max-width: 600px;
    width: 100%;
}

.confirmation-icon {
    font-size: 80px;
    color: #4CAF50;
    margin-bottom: 20px;
    animation: bounce 1s ease-in-out;
}

.confirmation-title {
    color: #333;
    margin-bottom: 20px;
    font-size: 2em;
}

.confirmation-message {
    margin-bottom: 30px;
}

.confirmation-message p {
    color: #666;
    font-size: 1.1em;
    margin-bottom: 15px;
}

.confirmation-message .specialty-name {
    color: #4CAF50;
    font-weight: 600;
    font-size: 1.2em;
    margin: 20px 0;
    padding: 15px;
    background: rgba(76, 175, 80, 0.1);
    border-radius: 10px;
    border-right: 4px solid #4CAF50;
    box-shadow: 0 2px 10px rgba(76, 175, 80, 0.2);
}

.confirmation-message .team-signature {
    color: #4CAF50;
    font-weight: 600;
    margin-top: 20px;
    font-style: italic;
        font-size: 1.1em;
}

/* تصميم النافذة المنبثقة */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s ease-in-out;
}

.modal-content {
    background-color: white;
    margin: 2% auto;
    padding: 0;
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideInDown 0.3s ease-out;
    position: relative;
}

.modal-header {
    background: linear-gradient(135deg, #4CAF50, #66BB6A);
    color: white;
    padding: 20px;
    border-radius: 20px 20px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.3em;
    font-weight: 600;
}

.close {
    color: white;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.close:hover {
    transform: scale(1.1);
    opacity: 0.8;
}

.modal-body {
    padding: 30px;
}

.modal-body .form-group {
    margin-bottom: 20px;
}

.modal-body .form-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 600;
}

.modal-body .form-group input,
.modal-body .form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    font-family: 'Cairo', sans-serif;
    transition: all 0.3s ease;
    background: white;
}

.modal-body .form-group input:focus,
.modal-body .form-group textarea:focus {
    outline: none;
    border-color: #4CAF50;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
}

.modal-body .form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.modal-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    margin-top: 25px;
}

.modal-actions .btn {
    min-width: 120px;
}

/* تصغير زر اقتراح التخصص */
#suggestSpecialty {
    font-size: 1em;
    padding: 12px 20px;
    min-width: 200px;
    margin-bottom: 15px;
    width: 100%;
    max-width: 300px;
}

/* تنسيق زر العودة للصفحة الرئيسية */
#backToHome {
    font-size: 1em;
    padding: 12px 20px;
    min-width: 200px;
    width: 100%;
    max-width: 300px;
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* تصميم متجاوب للنافذة المنبثقة */
@media (max-width: 768px) {
    .modal-content {
        margin: 10% auto;
        width: 95%;
    }
    
    .modal-body {
        padding: 20px;
    }
    
    .modal-actions {
        flex-direction: column;
    }
    
    .modal-actions .btn {
        width: 100%;
    }
}

.motivational-message {
    background: linear-gradient(135deg, #f8fff8, #e8f5e8);
    border-radius: 15px;
    padding: 25px;
    margin: 25px 0;
    border-left: 5px solid #4CAF50;
}

.motivational-message h3 {
    color: #2c5530;
    margin-bottom: 15px;
    font-size: 1.3em;
}

.motivational-message p {
    color: #555;
    margin-bottom: 10px;
    line-height: 1.6;
}

.prayer {
    color: #4CAF50 !important;
    font-weight: 600;
    font-size: 1.1em;
    margin: 15px 0 !important;
}

.team-signature {
    color: #2c5530 !important;
    font-weight: 600;
    font-style: italic;
    margin-top: 15px !important;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-20px);
    }
    60% {
        transform: translateY(-10px);
    }
}

/* تصميم حقل البريد الإلكتروني */
.form-group input[type="email"] {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: white;
}

.form-group input[type="email"]:focus {
    outline: none;
    border-color: #4CAF50;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
}

.form-group small {
    display: block;
    color: #666;
    font-size: 0.9em;
    margin-top: 5px;
    font-style: italic;
}

/* تصميم صفحة الانتظار */
.waiting-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80vh;
    padding: 20px;
}

.waiting-card {
    background: white;
    border-radius: 20px;
    padding: 50px;
    text-align: center;
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
    max-width: 500px;
    width: 100%;
    animation: slideInUp 0.6s ease-out;
}

.waiting-icon {
    font-size: 80px;
    color: #4CAF50;
    margin-bottom: 25px;
    animation: pulse 2s infinite;
}

.waiting-title {
    color: #333;
    margin-bottom: 30px;
    font-size: 1.8em;
    font-weight: 600;
    transition: all 0.3s ease;
}

.waiting-title.completed {
    color: #4CAF50;
    animation: celebration 0.6s ease-in-out;
}

.queue-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
    background: linear-gradient(135deg, #f8fff8, #e8f5e8);
    padding: 20px;
    border-radius: 15px;
    border-left: 5px solid #4CAF50;
}

.queue-number, .waiting-time {
    text-align: center;
    flex: 1;
}

.queue-label, .time-label {
    display: block;
    color: #666;
    font-size: 0.9em;
    margin-bottom: 8px;
}

.queue-value, .time-value {
    display: block;
    color: #4CAF50;
    font-size: 1.5em;
    font-weight: 700;
    font-family: 'Courier New', monospace;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
    margin-bottom: 25px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #4CAF50, #66BB6A);
    border-radius: 4px;
    width: 0%;
    transition: width 0.3s ease;
    animation: progressAnimation 2s ease-in-out infinite;
}

.waiting-message {
    margin-bottom: 20px;
}

.waiting-message p {
    color: #666;
    margin-bottom: 10px;
    line-height: 1.6;
}

.processing-text {
    color: #4CAF50 !important;
    font-weight: 600;
    animation: blink 1.5s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

@keyframes progressAnimation {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@keyframes blink {
    0%, 50% {
        opacity: 1;
    }
    51%, 100% {
        opacity: 0.3;
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes celebration {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

/* تصميم متجاوب لصفحة الانتظار */
@media (max-width: 768px) {
    .waiting-card {
        padding: 30px 20px;
    }
    
    .queue-info {
        flex-direction: column;
        gap: 15px;
    }
    
    .waiting-title {
        font-size: 1.5em;
    }
    
    .queue-value, .time-value {
        font-size: 1.3em;
    }
} 