/* أنماط التصميم المحسنة */
:root {
    --margin-large: 150px;
    --margin-medium: 50px;
    --margin-small: 20px;
    --primary-color: #3797EE;
    --secondary-color: #0d6efd;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    
    /* متغيرات الخطوط الاحترافية */
    --font-primary: 'Cairo', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --font-secondary: 'Almarai', 'Arial', sans-serif;
    --font-heading: 'Tajawal', 'Trebuchet MS', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-primary);
    -webkit-tap-highlight-color: transparent;
}

body {
    background: #f5f5f5;
    min-height: 100vh;
    color: #333;
    line-height: 1.7;
    font-family: var(--font-primary);
    font-weight: 400;
    letter-spacing: 0.3px;
    -webkit-text-size-adjust: 100%;
    touch-action: manipulation;
}

/* Navigation */
nav {
    background-color: #3797EE;
    padding: 15px 0;
    margin: 18px 20px 30px 20px;
    border-radius: 30px;
    position: sticky;
    top: 18px;
    z-index: 1000;
    box-shadow: 0 10px 30px rgba(55, 151, 238, 0.3);
    transition: transform 0.3s ease-in-out;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.nav-logo {
    display: flex;
    align-items: center;
}

.logo {
    height: 40px;
    width: auto;
    border-radius: 5px;
    margin-left: 150px;
}

nav ul {
    display: flex;
    align-items: center;
    justify-content: space-between;
    list-style: none;
    width: 100%;
    padding: 0 20px;
}

nav ul li {
    margin: 12px 5px;
    display: inline-block;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-size: 20px;
    padding: 0px 10px;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: #c7c7c7;
}

.back-button-nav {
    background-color: #ffffff;
    color: rgb(53, 53, 53);
    border: none;
    padding: 10px 20px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s;
    margin-right: 50px;
    text-decoration: none;
    display: inline-block;
}

.back-button-nav:hover {
    background-color: #f4f4f4;
    color: #333;
    transform: translateY(-2px);
}

.nav-links {
    display: flex;
    gap: 20px;
    list-style: none;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.container {
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

/* Mobile Menu Styles */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 8px;
}

.hamburger-line {
    width: 25px;
    height: 3px;
    background: white;
    margin: 3px 0;
    transition: 0.3s;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

.mobile-menu {
    display: none;
    flex-direction: column;
    background: #3797EE;
    border-radius: 30px 30px 30px 30px;
    padding: 15px 0;
    position: absolute;
    top: calc(100% + 10px);
    left: 20px;
    right: 20px;
    z-index: 1000;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    text-align: center;
    margin-top: 10px;
}

.mobile-menu.active {
    display: flex;
}

.mobile-nav-link {
    color: white;
    text-decoration: none;
    font-size: 18px;
    padding: 12px 20px;
    transition: background-color 0.3s;
}

/* تنسيق خاص لعناصر li داخل mobile menu */
.mobile-menu li {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-menu li a {
    color: #ffffff !important;
    text-decoration: none;
    font-size: 18px;
    font-weight: 600;
    padding: 15px 20px;
    display: block;
    text-align: center;
    transition: all 0.3s ease;
    border-radius: 8px;
    margin: 5px 10px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    letter-spacing: 0.5px;
}

.mobile-nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
}

.mobile-menu li a:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    color: white !important;
}

/* Hero Section */
.hero-section {
    text-align: center;
    margin: 50px var(--margin-large);
    padding: 60px 40px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 30px;
    color: #333;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.hero-section h1 {
    font-size: 55px;
    margin-bottom: 20px;
    font-weight: 800;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-section p {
    font-size: 24px;
    margin-bottom: 40px;
    color: #666;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

/* Admin Dashboard */
.admin-dashboard {
    margin: 40px var(--margin-large);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.admin-section {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 30px;
    padding: 40px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease;
}

.admin-section:hover {
    transform: translateY(-5px);
}

.section-header {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 3px solid var(--primary-color);
}

.section-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-left: 15px;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: #333;
}

/* Form Styles */
.form-group {
    margin-bottom: 25px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 1.1rem;
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #e9ecef;
    border-radius: 15px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: #fff;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(55, 151, 238, 0.1);
    transform: translateY(-2px);
}

.form-textarea {
    min-height: 120px;
    resize: vertical;
}

/* Image Upload Styles */
.image-upload-container {
    position: relative;
    margin-top: 10px;
}

.image-input {
    display: none;
}

.image-upload-label {
    display: block;
    padding: 40px 20px;
    border: 3px dashed var(--primary-color);
    border-radius: 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(55, 151, 238, 0.05);
    color: var(--primary-color);
}

.image-upload-label:hover {
    background: rgba(55, 151, 238, 0.1);
    border-color: var(--secondary-color);
    transform: translateY(-2px);
}

.image-upload-label i {
    font-size: 2.5rem;
    margin-bottom: 15px;
    display: block;
}

.image-upload-label span {
    font-size: 1.2rem;
    font-weight: 600;
    display: block;
    margin-bottom: 5px;
}

.image-upload-label small {
    font-size: 0.9rem;
    color: #666;
    display: block;
}

.image-preview {
    margin-top: 15px;
    text-align: center;
}

.image-preview img {
    max-width: 200px;
    max-height: 150px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    object-fit: cover;
}

.image-preview .remove-image {
    display: block;
    margin-top: 10px;
    color: var(--danger-color);
    cursor: pointer;
    font-size: 0.9rem;
    text-decoration: underline;
}

.image-preview .remove-image:hover {
    color: #dc3545;
}

/* Upload Progress */
.upload-progress {
    margin-top: 10px;
    background: #f0f0f0;
    border-radius: 10px;
    overflow: hidden;
    height: 6px;
}

.upload-progress-bar {
    height: 100%;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    width: 0%;
    transition: width 0.3s ease;
}

.upload-status {
    margin-top: 10px;
    font-size: 0.9rem;
    text-align: center;
}

.upload-status.success {
    color: var(--success-color);
}

.upload-status.error {
    color: var(--danger-color);
}

/* Button Styles */
.btn {
    padding: 15px 30px;
    border: none;
    border-radius: 15px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: white;
    box-shadow: 0 8px 20px rgba(55, 151, 238, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(55, 151, 238, 0.4);
}

.btn-success {
    background: linear-gradient(45deg, var(--success-color), #20c997);
    color: white;
    box-shadow: 0 8px 20px rgba(40, 167, 69, 0.3);
}

.btn-success:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(40, 167, 69, 0.4);
}

.btn-danger {
    background: linear-gradient(45deg, var(--danger-color), #e74c3c);
    color: white;
    box-shadow: 0 8px 20px rgba(220, 53, 69, 0.3);
}

.btn-danger:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(220, 53, 69, 0.4);
}

/* تأثير لمعة للأزرار */
.btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: -75px;
    width: 50px;
    height: 100%;
    background: rgba(255, 255, 255, 0.5);
    transform: skewX(-25deg);
    transition: none;
}

.btn:hover::before {
    animation: shine 0.8s forwards;
}

@keyframes shine {
    0% { left: -75px; }
    100% { left: 120%; }
}

/* Management Lists */
.management-list {
    margin-top: 30px;
    max-height: 400px;
    overflow-y: auto;
}
        
/* Filter Section */
.filter-section {
    margin-top: 25px;
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 10px;
    border: 1px solid #e9ecef;
}
        
.filter-controls {
    display: flex;
    gap: 10px;
    margin-top: 8px;
}
        
.filter-controls .form-select {
    flex: 1;
}
        
.filter-controls .btn {
    white-space: nowrap;
}
        
.filter-info {
    background-color: #e8f4fd;
    padding: 10px 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    font-size: 0.95rem;
    color: #0d6efd;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-right: 4px solid #0d6efd;
}

.list-item {
    background: #f8f9fa;
    padding: 20px;
    margin-bottom: 15px;
    border-radius: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.list-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

/* Course Image Styles */
.course-image-container {
    margin-left: 15px;
    flex-shrink: 0;
}

.course-thumbnail {
    width: 80px;
    height: 60px;
    border-radius: 10px;
    object-fit: cover;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
}

.default-course-image {
    width: 80px;
    height: 60px;
    border-radius: 10px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.item-info h4 {
    color: #333;
    margin-bottom: 5px;
    font-size: 1.2rem;
}

.item-info p {
    color: #666;
    font-size: 0.9rem;
}

.item-actions {
    display: flex;
    gap: 10px;
}

.btn-sm {
    padding: 8px 15px;
    font-size: 14px;
}

/* Loading and Messages */
.loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    color: var(--primary-color);
    font-size: 1.2rem;
    font-weight: 600;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #e1e5e9;
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.message {
    padding: 15px 20px;
    border-radius: 10px;
    margin: 15px 0;
    font-weight: 600;
}

.message-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.message-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Responsive Design */
@media screen and (max-width: 1199px) {
    nav {
        margin: 18px 20px;
    }
    
    .logo {
        margin-left: 20px;
    }
    
    .back-button-nav {
        margin-right: 20px;
    }

    .hero-section {
        margin: 50px var(--margin-medium);
        padding: 60px 30px;
    }

    .hero-section h1 {
        font-size: 45px;
    }

    .admin-dashboard {
        margin: 40px var(--margin-medium);
        gap: 30px;
    }
}

@media screen and (max-width: 767px) {
    /* Navigation */
    nav {
        margin: 10px 20px 20px 20px;
        padding: 10px 0;
        position: sticky;
        top: 10px;
        z-index: 1000;
    }

    .logo {
        margin-left: 0;
        height: 35px;
    }

    .nav-links {
        display: none;
    }

    .back-button-nav {
        background: white;
        color: #3797EE;
        border: none;
        padding: 10px 20px;
        border-radius: 25px;
        font-size: 16px;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.3s;
        box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
        margin-right: 0;
    }

    .back-button-nav:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(255, 255, 255, 0.4);
        background: #f8f9fa;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    nav ul {
        justify-content: space-between;
        padding: 0 15px;
        align-items: center;
        position: relative;
    }

    .container {
        justify-content: space-between;
        padding: 0 15px;
        position: relative;
    }

    /* إضافة أنماط لضمان ظهور النص بشكل صحيح */
    .mobile-menu.active {
        display: flex !important;
        animation: slideDown 0.3s ease-out;
    }

    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    /* Hero Section */
    .hero-section {
        margin: 30px var(--margin-small);
        padding: 40px 20px;
    }

    .hero-section h1 {
        font-size: 32px;
    }

    .hero-section p {
        font-size: 18px;
    }

    /* Dashboard Grid */
    .admin-dashboard {
        margin: 30px var(--margin-small);
        grid-template-columns: 1fr;
        gap: 30px;
    }

    /* Mobile menu styles */
    .mobile-menu {
        margin: 10px 0;
        left: 10px;
        right: 10px;
    }

    .mobile-menu li a {
        padding: 18px 20px;
        font-size: 16px;
        font-weight: 600;
        color: white !important;
        text-align: center;
        display: block;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        margin: 0;
        border-radius: 0;
    }

    .mobile-menu li:last-child a {
        border-bottom: none;
    }

    .mobile-nav-link {
        padding: 15px 20px;
        font-size: 16px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .mobile-nav-link:last-child {
        border-bottom: none;
    }
}

/* Extra small screens */
@media screen and (max-width: 480px) {
    .hero-section {
        margin: 20px 15px;
        padding: 30px 15px;
    }

    .hero-section h1 {
        font-size: 28px;
    }

    .admin-dashboard {
        margin: 20px 15px;
    }

    .admin-section {
        padding: 20px 15px;
    }

    /* تحسينات إضافية للشاشات الصغيرة جداً */
    .mobile-menu {
        left: 5px;
        right: 5px;
        border-radius: 12px;
    }

    .mobile-menu li a {
        font-size: 15px;
        padding: 16px 15px;
    }

    nav {
        margin: 10px 15px 20px 15px;
    }

    .form-input,
    .form-textarea,
    .form-select {
        padding: 12px 15px;
    }

    .btn {
        padding: 12px 20px;
        font-size: 14px;
    }

    .list-item {
        padding: 15px;
        flex-direction: column;
        align-items: flex-start;
    }

    .item-actions .btn {
        padding: 8px 12px;
        font-size: 12px;
    }
}

/* Animation for new items */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Modal Styles */
.edit-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    backdrop-filter: blur(5px);
}

.modal-content {
    background: white;
    border-radius: 20px;
    padding: 30px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--primary-color);
}

.modal-header h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
}

.modal-header h3 i {
    margin-left: 10px;
}

.modal-close {
    background: none;
    border: none;
    font-size: 2rem;
    color: #999;
    cursor: pointer;
    transition: color 0.3s;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    color: var(--danger-color);
}

.modal-actions {
    display: flex;
    gap: 15px;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.modal-actions .btn {
    flex: 1;
}

/* Responsive Modal */
@media screen and (max-width: 767px) {
    .modal-content {
        width: 95%;
        padding: 20px;
    }

    .modal-header h3 {
        font-size: 1.2rem;
    }

    .modal-actions {
        flex-direction: column;
    }

    .modal-actions .btn {
        width: 100%;
        margin-bottom: 10px;
    }

    /* Image Upload Mobile Styles */
    .image-upload-label {
        padding: 20px 15px;
    }

    .image-upload-label i {
        font-size: 1.8rem;
    }

    .image-upload-label span {
        font-size: 1rem;
    }

    .course-thumbnail {
        width: 60px;
        height: 45px;
    }

    .default-course-image {
        width: 60px;
        height: 45px;
        font-size: 1.2rem;
    }

    .course-image-container {
        margin-left: 10px;
    }
}

/* أنماط عرض الاختبارات */
.quiz-preview {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 5px;
    padding: 10px;
    margin-top: 10px;
}

.quiz-preview ul {
    padding-right: 20px;
    margin: 5px 0;
}

.quiz-preview li {
    margin-bottom: 5px;
}

.correct-option {
    color: var(--success-color);
    font-weight: bold;
}

.badge {
    background-color: #6f42c1;
    color: white;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
}

.small-text {
    font-size: 0.8rem;
    color: #6c757d;
    margin-top: 5px;
}

/* أنماط الاختبارات */
.quiz-builder {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
}
        
.quiz-instructions {
    background-color: #e2f0ff;
    border-radius: 6px;
    padding: 10px;
    margin-bottom: 15px;
    font-size: 0.9rem;
}
        
.no-questions-message {
    color: #6c757d;
    text-align: center;
    padding: 20px;
    font-style: italic;
}
        
.quiz-question {
    background-color: white;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    position: relative;
}
        
.quiz-question .question-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}
        
.quiz-question .question-number {
    font-weight: bold;
    color: #0d6efd;
}
        
.quiz-question .question-actions {
    display: flex;
    gap: 5px;
}
        
.quiz-question .form-group {
    margin-bottom: 10px;
}
        
.quiz-options {
    padding-right: 15px;
}
        
.quiz-option {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
    border: 1px solid #f0f0f0;
    padding: 10px;
    border-radius: 8px;
}
        
.quiz-option input[type="radio"] {
    margin-top: 12px;
    margin-left: 10px;
    width: 18px;
    height: 18px;
}
        
.radio-label {
    margin-top: 10px;
    margin-left: 10px;
    font-size: 14px;
    font-weight: bold;
    color: #0056b3;
    cursor: pointer;
}
        
.option-content {
    flex: 1;
    padding-right: 10px;
}
        
.quiz-option .option-text {
    margin-bottom: 8px;
}
        
.quiz-option-correct {
    color: #198754;
    margin-right: 10px;
}
        
.quiz-option .btn-remove-option {
    color: #dc3545;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
    padding: 5px;
    margin-top: 5px;
}
        
.input-help {
    font-size: 0.85rem;
    color: #6c757d;
    margin-top: 5px;
}
        
.notice-box {
    background-color: #fff3cd;
    border: 1px solid #ffeeba;
    border-radius: 10px;
    padding: 10px 15px;
    margin-top: 10px;
    color: #856404;
    font-size: 0.9rem;
    line-height: 1.5;
}
        
.notice-box strong {
    font-weight: 600;
}

/* أنماط صور الاختبار */
.small-upload-label {
    padding: 10px;
    margin-top: 5px;
    font-size: 0.9rem;
}
        
.small-upload-label i {
    font-size: 1.5rem;
    margin-bottom: 5px;
}
        
.small-label {
    font-size: 0.9rem;
    margin-top: 5px;
    color: #555;
}
        
.option-image-container {
    margin-top: 0;
}
        
.option-image-preview {
    margin-top: 5px;
}
        
.option-image-preview img {
    max-width: 150px;
    max-height: 100px;
    border-radius: 5px;
}
        
.preview-container {
    position: relative;
    display: inline-block;
}
        
.preview-image {
    border-radius: 6px;
    border: 1px solid #ddd;
}
        
.remove-image {
    position: absolute;
    top: -10px;
    right: -10px;
    background: #ff5c5c;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}
        
.mb-5 {
    margin-bottom: 5px !important;
}
        
.mb-0 {
    margin-bottom: 0 !important;
}

/* إظهار عناصر النافبار الإدارية بقوة */
.super-admin-only,
.courses-admin-only,
.store-admin-only {
    display: block;
}

/* تصميم الملف الشخصي في النافبار */
.profile-button {
    background-color: white !important;
    color: #3797EE !important;
    border: 2px solid white !important;
    padding: 10px 20px !important;
    border-radius: 25px !important;
    text-decoration: none !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 2px 10px rgba(255, 255, 255, 0.2) !important;
}

.profile-button:hover {
    background-color: rgba(255, 255, 255, 0.9) !important;
    color: #2976cc !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3) !important;
}

.profile-button i {
    font-size: 18px !important;
    color: inherit !important;
}

/* responsive design للملف الشخصي */
@media screen and (max-width: 767px) {
    .profile-button {
        padding: 8px 15px !important;
        font-size: 14px !important;
    }
    
    .profile-button i {
        font-size: 16px !important;
    }
}
