/* التنسيق العام */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

.container {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    margin-top: 2rem;
    margin-bottom: 2rem;
    padding: 2rem;
    z-index: 1000;
}

/* تنسيق الصفحة الرئيسية */
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    opacity: 0.9;
}

.content-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    width: 100%;
    padding: 0 2rem;
}

/* تحسينات للموبايل */
@media (max-width: 768px) {
    .content-center {
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        padding: 2rem 1rem;
        min-height: 300px;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
    
    .content-center h1,
    .content-center h2 {
        font-size: 1.5rem !important;
        margin-bottom: 1rem !important;
    }
    
    .content-center p {
        font-size: 0.9rem !important;
        margin-bottom: 1rem !important;
    }
    
    .channel-preview {
        margin-bottom: 1.5rem !important;
    }
    
    .channel-preview .row {
        align-items: center;
    }
    
    .channel-preview img {
        width: 50px !important;
        height: 50px !important;
    }
    
    .channel-preview h5 {
        font-size: 1rem !important;
        margin-bottom: 0.5rem !important;
    }
    
    .stat-number {
        font-size: 0.9rem !important;
        font-weight: bold;
    }
    
    .stat-label {
        font-size: 0.7rem !important;
    }
    
    .login-container {
        padding: 1.5rem !important;
        margin: 1rem;
        border-radius: 10px;
    }
    
    .login-container h2,
    .login-container h3 {
        font-size: 1.5rem !important;
        margin-bottom: 1rem !important;
    }
    
    .form-control {
        padding: 10px 12px !important;
        font-size: 16px !important; /* لمنع التكبير التلقائي في iOS */
    }
    
    .btn {
        padding: 12px 20px !important;
        font-size: 14px !important;
    }
    
    .container-fluid {
        padding: 0 !important;
    }
    
    .row.min-vh-100 {
        min-height: auto !important;
    }
    
    .col-12.col-lg-6 {
        min-height: 50vh;
    }
    
    .col-12.col-lg-6:first-child {
        min-height: 40vh;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .col-12.col-lg-6:last-child {
        min-height: 60vh;
        background: white;
    }
}

.features {
    display: flex;
    justify-content: space-around;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.feature-item {
    text-align: center;
    margin: 1rem;
    flex: 1;
    min-width: 200px;
}

.feature-item h5 {
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.feature-item p {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* تنسيق النماذج */
.login-container,
.register-container {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.form-control {
    border-radius: 8px;
    border: 2px solid #e9ecef;
    padding: 12px 15px;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

.btn {
    border-radius: 8px;
    padding: 12px 24px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
}

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

/* تنسيق البطاقات */
.card {
    border: none;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
}

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

.card-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 20px 20px 0 0 !important;
    border: none;
    padding: 1.5rem;
}

.card-body {
    padding: 2rem;
}

.card-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 15px 15px 0 0 !important;
    border: none;
}

/* تنسيق الجدول */
.table {
    border-radius: 10px;
    overflow: hidden;
}

.table thead th {
    background: #f8f9fa;
    border: none;
    font-weight: 600;
    color: #495057;
}

.table tbody tr {
    transition: all 0.3s ease;
}

.table tbody tr:hover {
    background-color: #f8f9fa;
}

/* تنسيق الشارات */
.badge {
    border-radius: 20px;
    padding: 8px 16px;
    font-weight: 500;
}

/* تنسيق التنبيهات */
.alert {
    border: none;
    border-radius: 10px;
    padding: 15px 20px;
}

/* تنسيق شريط التنقل */
.navbar {
    background: linear-gradient(135deg, #ffffff, #f5f5f5);
    border-bottom: 1px solid #e0e0e0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    padding: 10px 30px;
    border-radius: 0 0 10px 10px;
    transition: all 0.3s ease;
    z-index: 1000;
}


.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
}

/* تنسيق القوائم المنسدلة */
.dropdown-menu {
    border: none;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
      z-index: 1000;
}

.dropdown-item {
    padding: 10px 20px;
    transition: all 0.3s ease;
    z-index: 1000;
    
}

.dropdown-item:hover {
    background-color: #f8f9fa;
    color: #667eea;
}

/* تنسيق معاينة الملفات */
.file-preview {
    border: 2px dashed #dee2e6;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
}

.file-preview:hover {
    border-color: #667eea;
    background-color: #f8f9fa;
}

/* تنسيق المرفقات */
.attachment-item {
    display: inline-block;
    margin: 5px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 8px;
    text-decoration: none;
    color: #495057;
    transition: all 0.3s ease;
}

.attachment-item:hover {
    background: #e9ecef;
    color: #667eea;
    text-decoration: none;
}

/* تنسيق الإجابات */
.answer-item {
    border-left: 4px solid #667eea;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.answer-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

.answer-attachments {
    background: rgba(248, 249, 250, 0.8);
    border-radius: 10px;
    padding: 1rem;
    margin-top: 1rem;
}

.youtube-embed {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.youtube-embed iframe {
    border-radius: 15px;
}

.answer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.answer-author {
    font-weight: 600;
    color: #667eea;
}

.answer-date {
    color: #6c757d;
    font-size: 0.9rem;
}

/* تنسيق متجاوب */
@media (max-width: 768px) {
    .features {
        flex-direction: column;
    }
    
    .feature-item {
        margin: 1rem 0;
    }
    
    .content-center {
        padding: 0 1rem;
    }
    
    .login-container,
    .register-container {
        margin: 1rem;
    }
}

/* تنسيق خاص بالصور والفيديوهات */
.media-preview {
    max-width: 100%;
    border-radius: 10px;
    margin: 10px 0;
}

.video-preview {
    width: 100%;
    max-width: 400px;
    border-radius: 10px;
}

/* تنسيق حالة التحميل */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* تنسيق النص العربي */
.text-rtl {
    direction: rtl;
    text-align: right;
}

/* تنسيق الأيقونات */
.icon-large {
    font-size: 2rem;
}

.icon-medium {
    font-size: 1.5rem;
}

/* تنسيق الألوان المخصصة */
.text-primary-custom {
    color: #667eea !important;
}

.bg-primary-custom {
    background-color: #667eea !important;
}

.border-primary-custom {
    border-color: #667eea !important;
}

/* تنسيق محتوى يوتيوب */
.youtube-content-card {
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.youtube-content-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: #dc3545;
}

.youtube-thumbnail {
    width: 60px;
    height: 45px;
    object-fit: cover;
    border-radius: 6px;
    transition: transform 0.3s ease;
}

.youtube-thumbnail:hover {
    transform: scale(1.1);
}

.youtube-link {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.youtube-link:hover {
    color: #dc3545;
    text-decoration: none;
}

.youtube-stats {
    font-size: 0.85rem;
    color: #6c757d;
}

.youtube-card-header {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
}

.youtube-videos-header {
    background: linear-gradient(135deg, #dc3545 0%, #fd7e14 100%);
}

.youtube-btn {
    border-radius: 20px;
    padding: 8px 16px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.youtube-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.youtube-empty-state {
    padding: 2rem;
    text-align: center;
}

.youtube-empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

/* تحسينات للأجهزة المحمولة */
@media (max-width: 768px) {
    .youtube-thumbnail {
        width: 50px;
        height: 37px;
    }
    
    .youtube-content-card {
        margin-bottom: 1rem;
    }
    
    .youtube-btn {
        font-size: 0.8rem;
        padding: 6px 12px;
    }
}

/* تنسيقات إضافية للوحة التحكم */
.stats-card {
    background: rgba(255, 255, 255, 0.8);
    border-radius: 15px;
    padding: 1.5rem;
    backdrop-filter: blur(10px);
}

.stats-card h2 {
    font-size: 2.5rem;
    font-weight: bold;
}

/* تنسيق الأزرار المحسنة */
.btn {
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
    padding: 0.75rem 1.5rem;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* تنسيق الجداول المحسنة */
.table {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.table thead th {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    font-weight: 600;
}

/* تنسيق التنبيهات المحسنة */
.alert {
    border-radius: 15px;
    border: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* تنسيق النافبار المحسن */
.navbar {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding: 1rem 0;
    border-radius: 0 0 20px 20px;
}

.navbar-brand {
    font-weight: 800;
    font-size: 1.8rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: all 0.3s ease;
}

.navbar-brand:hover {
    transform: scale(1.05);
    filter: brightness(1.1);
}

.navbar-nav .nav-link {
    color: #333 !important;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.75rem 1.25rem !important;
    border-radius: 25px;
    margin: 0 0.25rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.navbar-nav .nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.1), transparent);
    transition: left 0.5s ease;
}

.navbar-nav .nav-link:hover::before {
    left: 100%;
}

.navbar-nav .nav-link:hover {
    color: #667eea !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
    background: rgba(102, 126, 234, 0.05);
}

.navbar-nav .nav-link.active {
    color: #667eea !important;
    font-weight: 700;
    background: rgba(102, 126, 234, 0.1);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}

.navbar-toggler {
    border: 2px solid rgba(102, 126, 234, 0.3);
    border-radius: 10px;
    color: #333;
    padding: 0.5rem;
    transition: all 0.3s ease;
}

.navbar-toggler:hover {
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.05);
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.3rem rgba(102, 126, 234, 0.25);
}

.navbar-nav .dropdown-menu {
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 0.5rem;
    margin-top: 0.5rem;
    animation: dropdownFadeIn 0.3s ease;
}

@keyframes dropdownFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.navbar-nav .dropdown-item {
    color: #333;
    font-weight: 500;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    margin: 0.25rem 0;
    transition: all 0.3s ease;
}

.navbar-nav .dropdown-item:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    color: #667eea;
    transform: translateX(5px);
}

/* تنسيق إضافي لضمان وضوح النصوص */
.navbar .navbar-text {
    color: rgba(255, 255, 255, 0.9) !important;
}

.navbar .btn {
    color: white;
    border-color: rgba(255, 255, 255, 0.3);
}

.navbar .btn:hover {
    color: white;
    border-color: white;
    background: rgba(255, 255, 255, 0.1);
}

/* تنسيق للشعار والعلامة التجارية */
.navbar-brand img {
    filter: brightness(0) invert(1);
}

/* تنسيق للقوائم المنسدلة في الـ navbar */
.navbar .dropdown-toggle::after {
    border-top-color: rgba(255, 255, 255, 0.7);
}

.navbar .dropdown-toggle:hover::after {
    border-top-color: white;
}

/* تنسيق للـ badges في الـ navbar */
.navbar .badge {
    font-size: 0.65rem;
    padding: 0.35rem 0.6rem;
    border-radius: 15px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.navbar .badge:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.navbar .badge.bg-success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%) !important;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.navbar .badge.bg-warning {
    background: linear-gradient(135deg, #ffc107 0%, #ffb300 100%) !important;
    color: #212529;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* تنسيق إضافي للـ badges في الـ navbar الأبيض */
.navbar .badge {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* تنسيق للأيقونات في الـ navbar */
.navbar .nav-link i {
    transition: all 0.3s ease;
}

.navbar .nav-link:hover i {
    transform: scale(1.1);
}

.navbar .dropdown-toggle::after {
    border-top-color: #333;
    border-width: 0.3em;
    margin-right: 0.5em;
    transition: all 0.3s ease;
}

.navbar .dropdown-toggle:hover::after {
    border-top-color: #667eea;
    transform: rotate(180deg);
}

/* تأثيرات إضافية للـ navbar */
.navbar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.3), transparent);
}

.navbar .container {
    position: relative;
    z-index: 10;
}

/* تأثير النبض للـ brand */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

.navbar-brand:hover {
    animation: pulse 2s infinite;
}

/* تأثير التموج للروابط */
.navbar-nav .nav-link {
    position: relative;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: #667eea;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.navbar-nav .nav-link:hover::after {
    width: 80%;
}

.navbar-nav .nav-link.active::after {
    width: 80%;
    background: #667eea;
}

/* تنسيق شريط التنقل للشاشات الصغيرة */
@media (max-width: 768px) {
    .navbar {
        padding: 0.75rem 0;
    }
    
    .navbar-brand {
        font-size: 1.5rem;
    }
    
    .navbar-nav {
        background: rgba(102, 126, 234, 0.05);
        border-radius: 15px;
        padding: 1.5rem;
        margin-top: 1rem;
        border: 1px solid rgba(102, 126, 234, 0.1);
    }
    
    .navbar-nav .nav-link {
        color: #333 !important;
        padding: 1rem 1.25rem;
        border-radius: 12px;
        margin: 0.5rem 0;
        font-weight: 600;
        text-align: center;
    }
    
    .navbar-nav .nav-link:hover {
        background: rgba(102, 126, 234, 0.1);
        color: #667eea !important;
        transform: translateY(-2px);
    }
    
    .navbar-nav .nav-link.active {
        background: rgba(102, 126, 234, 0.15);
        color: #667eea !important;
        box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
    }
    
    .navbar-nav .dropdown-menu {
        background: white;
        border: 1px solid rgba(0, 0, 0, 0.1);
        border-radius: 12px;
        margin-top: 0.5rem;
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    }
    
    .navbar-nav .dropdown-item {
        text-align: center;
        padding: 1rem;
        border-radius: 8px;
        margin: 0.25rem 0;
    }
    
    .navbar .badge {
        font-size: 0.6rem;
        padding: 0.3rem 0.5rem;
    }
}

/* تنسيق شريط التنقل للشاشات المتوسطة */
@media (min-width: 769px) and (max-width: 1200px) {
    .navbar-nav .nav-link {
        padding: 0.6rem 1rem !important;
        font-size: 0.9rem;
    }
    
    .navbar-brand {
        font-size: 1.6rem;
    }
}

/* تأثير التمرير لشريط التنقل */
.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    padding: 0.75rem 0;
}

/* تنسيق خاص للصفحات التي تستخدم navbar-dark */
.navbar.navbar-dark {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: white;
}

.navbar.navbar-dark .navbar-brand {
    color: white !important;
    background: none;
    -webkit-text-fill-color: white;
}

.navbar.navbar-dark .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
}

.navbar.navbar-dark .navbar-nav .nav-link:hover {
    color: white !important;
    background: rgba(255, 255, 255, 0.1);
}

.navbar.navbar-dark .navbar-nav .nav-link.active {
    color: white !important;
    background: rgba(255, 255, 255, 0.2);
}

.navbar.navbar-dark .navbar-toggler {
    border-color: rgba(255, 255, 255, 0.5);
    color: white;
}

.navbar.navbar-dark .dropdown-menu {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
}

.navbar.navbar-dark .dropdown-item {
    color: #333;
}

.navbar.navbar-dark .dropdown-item:hover {
    color: #667eea;
    background: rgba(102, 126, 234, 0.1);
}

/* تنسيق القوائم المنسدلة */
.dropdown-menu {
    border-radius: 15px;
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
} 

/* Upload Progress Modal Styles */
#uploadProgressModal .modal-content {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

#uploadProgressModal .modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 15px 15px 0 0;
    border-bottom: none;
}

#uploadProgressModal .modal-title {
    font-weight: 600;
    font-size: 1.1rem;
}

#uploadProgressModal .modal-body {
    padding: 2rem;
}

#uploadProgressModal .progress {
    height: 12px;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

#uploadProgressModal .progress-bar {
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
    transition: width 0.3s ease;
    position: relative;
}

#uploadProgressModal .progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.3) 50%, transparent 100%);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

#uploadProgressModal .upload-text {
    font-weight: 500;
    color: #333;
}

#uploadProgressModal .upload-percentage {
    font-weight: 600;
    color: #667eea;
    font-size: 1.1rem;
}

#uploadProgressModal .current-file-name {
    font-weight: 500;
    color: #667eea;
}

#uploadProgressModal .uploaded-count,
#uploadProgressModal .total-files {
    font-weight: 600;
    color: #667eea;
}

#uploadProgressModal .modal-footer {
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    padding: 1rem 2rem;
}

#uploadProgressModal .btn-secondary {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    border: none;
    border-radius: 8px;
    color: white;
    font-weight: 500;
    transition: all 0.3s ease;
}

#uploadProgressModal .btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(245, 87, 108, 0.4);
}

/* Upload Status Animation */
.upload-status {
    animation: fadeInUp 0.5s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* File Preview Enhancements */
#filePreview .card {
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    overflow: hidden;
}

#filePreview .card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

#filePreview .card-body {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

/* Form Enhancements */
.form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

.form-label {
    font-weight: 500;
    color: #333;
}

.form-text {
    color: #6c757d;
    font-size: 0.875rem;
} 

/* Attachment Styles */
.attachments, .answer-attachments {
    background: rgba(255, 255, 255, 0.8);
    border-radius: 10px;
    padding: 1rem;
    margin: 1rem 0;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.attachments h6, .answer-attachments h6 {
    color: #667eea;
    font-weight: 600;
    margin-bottom: 1rem;
}

.attachments .col-md-4, .answer-attachments .col-md-4 {
    transition: all 0.3s ease;
}

.attachments .col-md-4:hover, .answer-attachments .col-md-4:hover {
    transform: translateY(-2px);
}

.attachments img, .answer-attachments img {
    border: 2px solid rgba(102, 126, 234, 0.2);
    transition: all 0.3s ease;
}

.attachments img:hover, .answer-attachments img:hover {
    border-color: #667eea;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.attachments video, .answer-attachments video {
    border: 2px solid rgba(102, 126, 234, 0.2);
    transition: all 0.3s ease;
}

.attachments video:hover, .answer-attachments video:hover {
    border-color: #667eea;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.attachments .text-info, .answer-attachments .text-info {
    font-weight: 500;
}

/* File Type Icons */
.attachment-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 0.5rem;
    margin-bottom: 1rem;
}

.attachment-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
}

/* Responsive Attachment Grid */
@media (max-width: 768px) {
    .attachments .col-md-4, .answer-attachments .col-md-4 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

@media (min-width: 769px) and (max-width: 1200px) {
    .attachments .col-md-4, .answer-attachments .col-md-4 {
        flex: 0 0 50%;
        max-width: 50%;
    }
} 

/* YouTube Channel Styles */
.channel-banner {
    position: relative;
    overflow: hidden;
    border-radius: 10px 10px 0 0;
}

.channel-banner img {
    transition: transform 0.3s ease;
}

.channel-banner:hover img {
    transform: scale(1.05);
}

.channel-profile {
    position: relative;
    margin-top: -60px;
    z-index: 10;
}

.channel-profile img {
    transition: all 0.3s ease;
}

.channel-profile img:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2) !important;
}

.channel-info h4 {
    color: #333;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.stat-item {
    padding: 1rem;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.875rem;
    font-weight: 500;
}

/* YouTube Content Cards */
.youtube-content-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
}

.youtube-content-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    color: inherit;
}

.youtube-content-card img {
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.youtube-content-card:hover img {
    transform: scale(1.05);
}

/* Channel Statistics Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.channel-info {
    animation: fadeInUp 0.6s ease;
}

.stat-item {
    animation: fadeInUp 0.6s ease;
    animation-delay: calc(var(--animation-order) * 0.1s);
}

.stat-item:nth-child(1) { --animation-order: 1; }
.stat-item:nth-child(2) { --animation-order: 2; }
.stat-item:nth-child(3) { --animation-order: 3; }

/* Responsive Channel Info */
@media (max-width: 768px) {
    .channel-profile {
        margin-top: -40px;
    }
    
    .channel-profile img {
        width: 80px !important;
        height: 80px !important;
    }
    
    .channel-info h4 {
        font-size: 1.25rem;
        text-align: center;
    }
    
    .stat-item {
        margin-bottom: 1rem;
    }
    
    .stat-number {
        font-size: 1.25rem;
    }
}

/* Channel Banner Overlay */
.channel-banner::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255,0,0,0.1), rgba(0,0,255,0.1));
    pointer-events: none;
}

/* تنسيق الردود */
.user-replies {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 15px;
    margin-top: 15px;
}

.user-replies h6 {
    color: #6c757d;
    font-weight: 600;
    margin-bottom: 15px;
}

.reply-item {
    background: white;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.reply-item:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transform: translateY(-1px);
}

.reply-header {
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 8px;
    margin-bottom: 10px;
}

.reply-author {
    font-weight: 600;
    color: #495057;
}

.reply-date {
    font-size: 0.85rem;
}

.reply-content {
    color: #212529;
    line-height: 1.6;
}

.reply-attachments {
    background: #f8f9fa;
    border-radius: 6px;
    padding: 8px;
    margin-top: 8px;
}

.reply-attachments .col-md-3 {
    margin-bottom: 8px;
}

.reply-attachments img,
.reply-attachments video {
    border-radius: 6px;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
}

.reply-attachments img:hover,
.reply-attachments video:hover {
    border-color: #007bff;
    transform: scale(1.02);
}

.reply-actions {
    border-top: 1px solid #e9ecef;
    padding-top: 8px;
    margin-top: 10px;
}

.reply-actions .btn {
    margin-right: 5px;
    font-size: 0.8rem;
    padding: 4px 8px;
}

.add-reply-form {
    border-top: 1px solid #e9ecef;
    padding-top: 15px;
    margin-top: 15px;
}

.reply-form {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    border: 1px solid #e9ecef;
}

.reply-form .form-control {
    border-radius: 6px;
    border: 1px solid #ced4da;
}

.reply-form .form-control:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,0.25);
}

.reply-form .btn {
    font-size: 0.85rem;
    padding: 6px 12px;
}

/* تحسينات للردود على الأجهزة المحمولة */
@media (max-width: 768px) {
    .reply-item {
        padding: 10px;
    }
    
    .reply-header {
        flex-direction: column;
        align-items: flex-start !important;
    }
    
    .reply-date {
        margin-top: 5px;
    }
    
    .reply-actions {
        text-align: center;
    }
    
    .reply-actions .btn {
        margin: 2px;
    }
    
    .reply-form {
        padding: 10px;
    }
    
    .reply-attachments .col-md-3 {
        width: 50%;
    }
}

/* تأثيرات بصرية للردود */
.reply-item {
    animation: fadeInUp 0.5s ease-out;
}

.reply-item:nth-child(1) { animation-delay: 0.1s; }
.reply-item:nth-child(2) { animation-delay: 0.2s; }
.reply-item:nth-child(3) { animation-delay: 0.3s; }
.reply-item:nth-child(4) { animation-delay: 0.4s; }
.reply-item:nth-child(5) { animation-delay: 0.5s; }

/* تنسيق زر إضافة رد */
.add-reply-form .btn-outline-info {
    border-color: #17a2b8;
    color: #17a2b8;
    transition: all 0.3s ease;
}

.add-reply-form .btn-outline-info:hover {
    background-color: #17a2b8;
    border-color: #17a2b8;
    color: white;
    transform: translateY(-1px);
}

/* تنسيق مرفقات الردود */
.reply-attachments small {
    color: #6c757d;
    font-weight: 500;
}

.reply-attachments .text-muted {
    font-size: 0.75rem;
    margin-top: 4px;
}

/* تنسيق المرفقات القابلة للنقر */
.attachment-preview {
    transition: all 0.3s ease;
    border: 2px solid transparent;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
}

.attachment-preview:hover {
    transform: scale(1.05);
    border-color: #667eea;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
    z-index: 10;
}

.attachment-preview::before {
    content: '\f065';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 5px 8px;
    border-radius: 50%;
    font-size: 12px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 5;
}

.attachment-preview:hover::before {
    opacity: 1;
}

/* تنسيق modal المرفقات */
#attachmentModal .modal-dialog {
    max-width: 90vw;
    max-height: 90vh;
}

#attachmentModal .modal-content {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border: none;
    border-radius: 15px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

#attachmentModal .modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 15px 15px 0 0;
    border: none;
}

#attachmentModal .modal-title {
    font-weight: 600;
    font-size: 1.2rem;
}

#attachmentModal .modal-body {
    padding: 2rem;
    text-align: center;
    max-height: 70vh;
    overflow-y: auto;
}

#attachmentModal .modal-footer {
    border-top: 1px solid #e9ecef;
    padding: 1rem 2rem;
    background: #f8f9fa;
    border-radius: 0 0 15px 15px;
}

#attachmentModal #attachmentContent img,
#attachmentModal #attachmentContent video {
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

#attachmentModal #attachmentContent img:hover,
#attachmentModal #attachmentContent video:hover {
    transform: scale(1.02);
}

#attachmentModal #attachmentFileName {
    background: #f8f9fa;
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: 500;
    color: #6c757d;
    display: inline-block;
    margin-top: 1rem;
}

#attachmentModal .btn {
    border-radius: 8px;
    padding: 10px 20px;
    font-weight: 600;
    transition: all 0.3s ease;
}

#attachmentModal .btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
}

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

#attachmentModal .btn-secondary {
    background: #6c757d;
    border: none;
}

#attachmentModal .btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

/* تحسينات للموبايل */
@media (max-width: 768px) {
    #attachmentModal .modal-dialog {
        max-width: 95vw;
        margin: 10px;
    }
    
    #attachmentModal .modal-body {
        padding: 1rem;
        max-height: 60vh;
    }
    
    #attachmentModal #attachmentContent img,
    #attachmentModal #attachmentContent video {
        max-width: 100%;
        max-height: 50vh;
    }
    
    .attachment-preview::before {
        font-size: 10px;
        padding: 3px 6px;
    }
}

/* تنسيقات جديدة لصفحة تسجيل الدخول */
.container-fluid {
    min-height: 100vh;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.9) 0%, rgba(102, 126, 234, 0.9) 100%);
    z-index: 1;
}

.content-center {
    position: relative;
    z-index: 2;
    padding: 3rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.features {
    margin-top: 2rem;
}

.feature-item {
    text-align: center;
    margin-bottom: 2rem;
    padding: 1rem;
    border-radius: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.feature-item h5 {
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.feature-item p {
    margin-bottom: 0;
    opacity: 0.9;
}

.channel-preview {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 1rem;
}

.support-message {
    background: rgba(255, 255, 255, 0.15) !important;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.login-container,
.register-container {
    background: white;
    border-radius: 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* تنسيق رسالة الدعم في لوحة التحكم */
.support-message {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 1rem;
    border: 2px solid #dee2e6;
    transition: all 0.3s ease;
}

.support-message:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-color: #667eea;
}

.support-message h5 {
    color: #495057;
    font-weight: 600;
}

.support-message .btn {
    border-radius: 25px;
    padding: 8px 20px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.support-message .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
} 

/* تنسيقات إضافية لشريط التنقل */
.navbar .nav-item {
    position: relative;
}

.navbar .nav-item::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    transition: all 0.3s ease;
    transform: translateX(-50%);
    border-radius: 1px;
}

.navbar .nav-item:hover::before {
    width: 80%;
}

.navbar .nav-item.active::before {
    width: 80%;
}

/* تأثير التوهج للروابط النشطة */
.navbar-nav .nav-link.active {
    position: relative;
    overflow: hidden;
}

.navbar-nav .nav-link.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.2), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* تنسيق خاص للأيقونات في شريط التنقل */
.navbar .nav-link i {
    display: inline-block;
    transition: all 0.3s ease;
    margin-right: 0.5rem;
    font-size: 1.1em;
}

.navbar .nav-link:hover i {
    transform: scale(1.2) rotate(5deg);
    color: #667eea;
}

.navbar .nav-link.active i {
    color: #667eea;
    transform: scale(1.1);
}

/* تنسيق الشعار في شريط التنقل */
.navbar-brand {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.navbar-brand i {
    font-size: 1.5em;
    transition: all 0.3s ease;
    color: #667eea;
}

.navbar-brand:hover i {
    transform: rotate(360deg) scale(1.1);
    color: #764ba2;
}

/* تنسيق زر القائمة المنسدلة */
.navbar .dropdown-toggle {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.navbar .dropdown-toggle::after {
    transition: all 0.3s ease;
    margin-left: 0.5rem;
}

.navbar .dropdown-toggle:hover::after {
    transform: rotate(180deg);
}

/* تنسيق القوائم المنسدلة المحسن */
.navbar .dropdown-menu {
    border: none;
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(15px);
    background: rgba(255, 255, 255, 0.95);
    padding: 0.75rem;
    min-width: 220px;
    animation: dropdownSlideIn 0.3s ease;
}

@keyframes dropdownSlideIn {
    from {
        opacity: 0;
        transform: translateY(-10px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.navbar .dropdown-item {
    border-radius: 10px;
    margin: 0.25rem 0;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.navbar .dropdown-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    transition: width 0.3s ease;
    z-index: -1;
}

.navbar .dropdown-item:hover::before {
    width: 100%;
}

.navbar .dropdown-item:hover {
    transform: translateX(8px);
    color: #667eea;
    background: transparent;
}

.navbar .dropdown-item i {
    transition: all 0.3s ease;
    font-size: 1.1em;
    width: 1.2em;
    text-align: center;
}

.navbar .dropdown-item:hover i {
    transform: scale(1.2);
    color: #667eea;
}

/* تنسيق فاصل القائمة المنسدلة */
.navbar .dropdown-divider {
    margin: 0.5rem 0;
    border-color: rgba(102, 126, 234, 0.2);
    border-width: 1px;
}

/* تنسيق الشارات في شريط التنقل */
.navbar .badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.65rem;
    padding: 0.35rem 0.6rem;
    border-radius: 15px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.navbar .badge::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 ease;
}

.navbar .badge:hover::before {
    left: 100%;
}

.navbar .badge:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.navbar .badge i {
    font-size: 0.8em;
    transition: all 0.3s ease;
}

.navbar .badge:hover i {
    transform: scale(1.1);
} 

/* تنسيقات المرفقات المحسنة */
.attachment-card {
    border: 1px solid #e9ecef;
    border-radius: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.attachment-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: #007bff;
}

.attachment-card .card-body {
    padding: 0.75rem;
}

.attachment-card .card-footer {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-top: 1px solid #dee2e6;
    padding: 0.5rem;
}

.attachment-preview-container {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    background: #f8f9fa;
}

.attachment-preview {
    transition: all 0.3s ease;
    border-radius: 8px;
}

.attachment-preview:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.attachment-overlay {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 12px;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.attachment-overlay:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: scale(1.1);
}

/* تنسيقات خاصة بالردود */
.reply-attachments .attachment-card {
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

.reply-attachments .attachment-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.reply-attachments .attachment-preview-container {
    border-radius: 6px;
}

.reply-attachments .attachment-overlay {
    font-size: 10px;
    padding: 1px 4px;
    border-radius: 3px;
}

/* تحسينات للـ Modal */
#attachmentModal .modal-xl {
    max-width: 90%;
}

#attachmentModal .modal-content {
    border-radius: 15px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

#attachmentModal .modal-header {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    border-radius: 15px 15px 0 0;
}

#attachmentModal .modal-title {
    font-weight: 600;
}

#attachmentModal .modal-body {
    padding: 2rem;
    text-align: center;
}

#attachmentModal #attachmentContent {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
}

#attachmentModal #attachmentContent img,
#attachmentModal #attachmentContent video {
    max-width: 100%;
    max-height: 70vh;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

#attachmentModal .modal-footer {
    background: #f8f9fa;
    border-radius: 0 0 15px 15px;
    padding: 1rem 2rem;
}

#attachmentModal .btn {
    border-radius: 8px;
    font-weight: 500;
    padding: 0.5rem 1.5rem;
    transition: all 0.3s ease;
}

#attachmentModal .btn-primary {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    border: none;
}

#attachmentModal .btn-primary:hover {
    background: linear-gradient(135deg, #0056b3 0%, #004085 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.4);
}

#attachmentModal .btn-secondary {
    background: linear-gradient(135deg, #6c757d 0%, #545b62 100%);
    border: none;
}

#attachmentModal .btn-secondary:hover {
    background: linear-gradient(135deg, #545b62 0%, #3d4449 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.4);
}

/* أزرار التحكم في التكبير */
#attachmentModal .position-absolute .btn {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

#attachmentModal .position-absolute .btn:hover {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* تحسينات للموبايل */
@media (max-width: 768px) {
    .attachment-card {
        margin-bottom: 1rem;
    }
    
    .attachment-card .card-body {
        padding: 0.5rem;
    }
    
    .attachment-card .card-footer {
        padding: 0.25rem;
    }
    
    .attachment-card .card-footer .btn {
        font-size: 0.75rem;
        padding: 0.25rem 0.5rem;
    }
    
    #attachmentModal .modal-xl {
        max-width: 95%;
        margin: 1rem;
    }
    
    #attachmentModal .modal-body {
        padding: 1rem;
    }
    
    #attachmentModal #attachmentContent {
        min-height: 300px;
    }
    
    #attachmentModal #attachmentContent img,
    #attachmentModal #attachmentContent video {
        max-height: 60vh;
    }
    
    #attachmentModal .modal-footer {
        padding: 0.75rem 1rem;
    }
    
    #attachmentModal .btn {
        padding: 0.375rem 1rem;
        font-size: 0.875rem;
    }
}

/* تحسينات للشاشات المتوسطة */
@media (min-width: 769px) and (max-width: 1200px) {
    .attachment-card {
        margin-bottom: 1.5rem;
    }
    
    #attachmentModal .modal-xl {
        max-width: 85%;
    }
}

/* تحسينات للشاشات الكبيرة */
@media (min-width: 1201px) {
    .attachment-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2);
    }
    
    #attachmentModal .modal-xl {
        max-width: 80%;
    }
    
    #attachmentModal #attachmentContent {
        min-height: 500px;
    }
} 