/**
 * Timika Course Content Manager Styles
 * استایل‌های مدیریت محتوای پیشرفته دوره‌ها
 */

/* ============================================
   Modal Base Styles
   ============================================ */
.timika-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 20px;
}

.timika-modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.timika-modal-container {
    background: #ffffff;
    border-radius: 16px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.timika-modal-overlay.show .timika-modal-container {
    transform: scale(1);
}

.timika-modal-header {
    padding: 24px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e9ecef;
    background: white;
}

.modal-header-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.modal-header-content i {
    font-size: 24px;
}

.modal-header-content h2,
.modal-header-content h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
}

.timika-modal-close {
    width: 36px;
    height: 36px;
    border: none;
    background: #f8f9fa;
    border-radius: 8px;
    color: #495057;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.timika-modal-close:hover {
    background: #e9ecef;
    color: #dc3545;
}

.timika-modal-body {
    padding: 32px;
    overflow-y: auto;
    flex: 1;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.timika-modal-body.p-0 {
    padding: 0;
}

/* ============================================
   Modal Container
   ============================================ */
.content-manager-container {
    max-width: 1400px !important;
    width: 95% !important;
    max-height: 90vh;
}

.type-selector-modal {
    max-width: 900px !important;
}

.content-editor-container {
    max-width: 1000px !important;
}

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

/* ============================================
   Layout - لایه‌بندی جذاب
   ============================================ */
.content-manager-layout {
    display: flex;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    height: 70vh;
}

.content-sidebar {
    width: 320px;
    background: white;
    border-left: 1px solid #e9ecef;
    padding: 24px;
    overflow-y: auto;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.05);
    flex-shrink: 0;
}

.content-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.content-toolbar {
    padding: 15px 20px;
    background: white;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.contents-list {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

/* ============================================
   Sidebar Title - عنوان سایدبار
   ============================================ */
.sidebar-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 2px solid #f1f3f5;
}

.sidebar-title h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 700;
    color: #2d3748;
    margin: 0;
}

.sidebar-title i {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.add-chapter-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
    margin-bottom: 20px;
}

.add-chapter-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.add-chapter-btn i {
    font-size: 16px;
}

/* ============================================
   Chapter Items - آیتم‌های فصل خیلی جذاب
   ============================================ */
.chapters-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.chapter-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 12px;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.chapter-item::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 4px;
    height: 100%;
    background: var(--chapter-color, #667eea);
    transform: scaleY(0);
    transition: transform 0.3s;
}

.chapter-item:hover::before {
    transform: scaleY(1);
}

.chapter-item:hover {
    border-color: var(--chapter-color, #667eea);
    background: white;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transform: translateX(-4px);
}

.chapter-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    position: relative;
}

.chapter-icon::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.3), transparent);
}

.chapter-info {
    flex: 1;
    min-width: 0;
}

.chapter-info h4 {
    margin: 0 0 4px 0;
    font-size: 15px;
    font-weight: 700;
    color: #2d3748;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chapter-info span {
    font-size: 12px;
    color: #718096;
    display: flex;
    align-items: center;
    gap: 4px;
}

.chapter-info span::before {
    content: '📚';
    font-size: 14px;
}

.chapter-actions {
    display: flex;
    gap: 6px;
    opacity: 0;
    transform: translateX(10px);
    transition: all 0.3s;
}

.chapter-item:hover .chapter-actions {
    opacity: 1;
    transform: translateX(0);
}

.chapter-actions button {
    width: 32px;
    height: 32px;
    border: none;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    font-size: 13px;
    color: #4a5568;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.chapter-actions button:hover {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    transform: scale(1.1);
}

.chapter-actions button:last-child:hover {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
}

/* ============================================
   Content Toolbar - تولبار خیلی جذاب
   ============================================ */
.content-toolbar {
    padding: 20px 24px;
    background: white;
    border-bottom: 2px solid #f1f3f5;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.toolbar-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 18px;
    font-weight: 700;
    color: #2d3748;
}

.toolbar-title i {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.toolbar-actions {
    display: flex;
    gap: 12px;
}

.toolbar-search {
    position: relative;
    width: 250px;
}

.toolbar-search input {
    width: 100%;
    padding: 10px 40px 10px 16px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 14px;
    transition: all 0.3s;
}

.toolbar-search input:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    outline: none;
}

.toolbar-search i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #a0aec0;
}

/* ============================================
   Content Sections - بخش‌های محتوا خیلی جذاب
   ============================================ */
.content-chapter-section {
    background: white;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    border: 2px solid #f1f3f5;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.content-chapter-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--chapter-color, #667eea), transparent);
}

.content-chapter-section:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.chapter-header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid #f1f3f5;
}

.chapter-title {
    display: flex;
    align-items: center;
    gap: 14px;
}

.chapter-title .chapter-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    position: relative;
}

.chapter-title .chapter-icon::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.3), transparent);
}

.chapter-title h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #2d3748;
}

/* ============================================
   Content Cards - کارت‌های محتوا خیلی جذاب
   ============================================ */
.contents-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.content-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 16px;
    padding: 20px;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 14px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.content-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--content-color, #667eea);
    transform: scaleX(0);
    transition: transform 0.3s;
}

.content-card:hover::before {
    transform: scaleX(1);
}

.content-card:hover {
    border-color: var(--content-color, #667eea);
    background: white;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    transform: translateY(-4px);
}

.content-card-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 26px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
    position: relative;
    flex-shrink: 0;
}

.content-card-icon::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.3), transparent);
}

.content-card-body {
    flex: 1;
}

.content-card-body h4 {
    margin: 0 0 12px 0;
    font-size: 16px;
    font-weight: 700;
    color: #2d3748;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.5;
}

.content-card-meta {
    display: flex;
    gap: 16px;
    font-size: 13px;
    color: #718096;
    margin-top: 8px;
}

.content-card-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: #f8f9fa;
    border-radius: 8px;
    transition: all 0.3s;
}

.content-card-meta span:hover {
    background: #667eea15;
    color: #667eea;
}

.content-card-meta span i {
    font-size: 14px;
}

.content-card-actions {
    display: flex;
    gap: 8px;
    margin-top: auto;
    padding-top: 16px;
    border-top: 2px solid #f1f3f5;
    opacity: 0;
    transform: translateY(5px);
    transition: all 0.3s;
}

.content-card:hover .content-card-actions {
    opacity: 1;
    transform: translateY(0);
}

.content-card-actions button {
    flex: 1;
    height: 36px;
    border: none;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    color: #4a5568;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.content-card-actions button:hover {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.content-card-actions button.text-danger:hover {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.3);
}

/* ============================================
   Content Type Selector
   ============================================ */
.content-type-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    padding: 20px 0;
}

.content-type-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 25px 15px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

.content-type-option:hover {
    border-color: #667eea;
    background: white;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
    transform: translateY(-3px);
}

.content-type-option .type-icon {
    width: 60px;
    height: 60px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 28px;
}

.content-type-option span {
    font-size: 14px;
    font-weight: 600;
    color: #2d3748;
}

/* ============================================
   Empty States
   ============================================ */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #718096;
}

.empty-state i {
    color: #cbd5e0;
    margin-bottom: 20px;
}

.empty-state h3 {
    font-size: 20px;
    color: #4a5568;
    margin: 15px 0 10px;
}

.empty-state p {
    color: #a0aec0;
    font-size: 14px;
}

.empty-state-small {
    text-align: center;
    padding: 30px 15px;
    color: #a0aec0;
    font-size: 13px;
}

.empty-state-small i {
    font-size: 32px;
    margin-bottom: 10px;
    display: block;
    color: #cbd5e0;
}

.empty-placeholder {
    text-align: center;
    padding: 40px 20px;
    color: #a0aec0;
    background: #f8f9fa;
    border-radius: 8px;
    font-size: 14px;
}

/* ============================================
   Form Styles
   ============================================ */
.form-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

.form-check {
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-check-input {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.form-check-label {
    cursor: pointer;
    user-select: none;
    margin: 0;
    font-size: 14px;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 1200px) {
    .content-manager-layout {
        flex-direction: column;
    }
    
    .content-sidebar {
        width: 100%;
        border-left: none;
        border-bottom: 1px solid #e9ecef;
        max-height: 200px;
    }
    
    .contents-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    }
}

@media (max-width: 768px) {
    .content-type-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contents-grid {
        grid-template-columns: 1fr;
    }
    
    .content-manager-container {
        width: 98% !important;
    }
}

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

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

.content-card {
    animation: fadeInUp 0.3s ease;
}

.chapter-item {
    animation: fadeInUp 0.3s ease;
}

/* ============================================
   Content Type Selector Modal - جذاب و مدرن
   ============================================ */
.gradient-purple {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: white !important;
}

.modal-subtitle {
    font-size: 13px;
    opacity: 0.9;
    margin: 4px 0 0 0;
    font-weight: 400;
}

.content-types-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    padding: 10px 0;
}

.content-type-card {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 24px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.content-type-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--type-color, #667eea), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.content-type-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border-color: var(--type-color, #667eea);
}

.content-type-card:hover::before {
    opacity: 1;
}

.type-card-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.type-icon-wrapper {
    width: 80px;
    height: 80px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    position: relative;
}

.type-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
}

.type-title {
    font-size: 16px;
    font-weight: 700;
    color: #2d3748;
    margin: 0 0 8px 0;
}

.type-description {
    font-size: 13px;
    color: #718096;
    margin: 0 0 12px 0;
}

.type-badge {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s;
}

.content-type-card:hover .type-badge {
    opacity: 1;
    transform: translateX(0);
}

/* ============================================
   Content Field Sections - فرم‌های پیشرفته
   ============================================ */
.content-field-section {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 20px;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 16px;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e9ecef;
}

.section-title i {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white !important;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

/* Video Provider Tabs */
.video-provider-tabs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.provider-tab {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 16px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
}

.provider-tab i {
    font-size: 24px;
    color: #718096;
    transition: all 0.3s;
}

.provider-tab span {
    font-size: 13px;
    font-weight: 600;
    color: #4a5568;
}

.provider-tab:hover {
    border-color: #667eea;
    background: #667eea10;
}

.provider-tab.active {
    border-color: #667eea;
    background: linear-gradient(135deg, #667eea15, #764ba215);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

.provider-tab.active i {
    color: #667eea;
}

.provider-tab.active span {
    color: #667eea;
}

/* Upload Box */
.upload-box {
    background: white;
    border: 2px dashed #cbd5e0;
    border-radius: 12px;
    padding: 48px 32px;
    text-align: center;
    transition: all 0.3s;
}

.upload-box:hover {
    border-color: #667eea;
    background: #667eea05;
}

.upload-box i {
    font-size: 64px;
    color: #667eea;
    margin-bottom: 16px;
}

.upload-box h4 {
    font-size: 18px;
    font-weight: 700;
    color: #2d3748;
    margin: 0 0 8px 0;
}

.upload-box p {
    font-size: 14px;
    color: #718096;
    margin: 0 0 24px 0;
}

/* Modern Input */
.modern-input {
    border: 2px solid #e9ecef !important;
    border-radius: 10px !important;
    padding: 12px 16px !important;
    font-size: 14px !important;
    transition: all 0.3s !important;
}

.modern-input:focus {
    border-color: #667eea !important;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1) !important;
}

/* Editor Toolbar */
.editor-toolbar {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px 8px 0 0;
    padding: 12px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.editor-btn {
    width: 36px;
    height: 36px;
    border: 1px solid #e9ecef;
    background: white;
    border-radius: 6px;
    color: #4a5568;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.editor-btn:hover {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.editor-divider {
    width: 1px;
    background: #e9ecef;
    margin: 0 4px;
}

.rich-editor {
    border-radius: 0 0 8px 8px !important;
    font-family: Tahoma, Arial, sans-serif;
    line-height: 1.8;
}

.rich-editor:focus {
    outline: 2px solid #667eea;
    background: white !important;
}

/* Audio Upload Options */
.audio-upload-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.upload-option {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 32px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}

.upload-option:hover {
    border-color: #1abc9c;
    background: #1abc9c10;
    transform: translateY(-3px);
}

.upload-option i {
    font-size: 48px;
    color: #1abc9c;
    margin-bottom: 12px;
}

.upload-option h5 {
    font-size: 16px;
    font-weight: 700;
    color: #2d3748;
    margin: 0 0 6px 0;
}

.upload-option p {
    font-size: 13px;
    color: #718096;
    margin: 0;
}

/* Image Gallery */
.image-gallery-uploader {
    background: white;
    border-radius: 12px;
    padding: 20px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 12px;
}

.add-image-box {
    aspect-ratio: 1;
    border: 2px dashed #cbd5e0;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    background: #f8f9fa;
}

.add-image-box:hover {
    border-color: #9b59b6;
    background: #9b59b610;
}

.add-image-box i {
    font-size: 32px;
    color: #9b59b6;
    margin-bottom: 8px;
}

.add-image-box p {
    font-size: 12px;
    color: #718096;
    margin: 0;
}

/* File Upload Card */
.file-upload-card {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 40px;
    text-align: center;
}

.file-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #17a2b8, #138496);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: white;
    font-size: 36px;
}

.file-upload-card h4 {
    font-size: 18px;
    font-weight: 700;
    color: #2d3748;
    margin: 0 0 8px 0;
}

.file-upload-card p {
    font-size: 14px;
    color: #718096;
    margin: 0 0 24px 0;
}

/* Quiz Settings */
.quiz-settings {
    background: white;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
}

.quiz-questions-area {
    background: white;
    border-radius: 10px;
    padding: 20px;
}

.questions-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e9ecef;
}

.questions-header h5 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 700;
    color: #2d3748;
    margin: 0;
}

.questions-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.quiz-question-card {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 20px;
}

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

.question-number {
    font-weight: 700;
    color: #667eea;
}

.btn-remove {
    width: 28px;
    height: 28px;
    border: none;
    background: #fee;
    color: #e74c3c;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-remove:hover {
    background: #e74c3c;
    color: white;
}

.question-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 12px;
}

.option-item {
    display: flex;
    gap: 12px;
    align-items: center;
}

.option-item input[type="radio"] {
    width: 20px;
    height: 20px;
    accent-color: #667eea;
}

.option-item input[type="text"] {
    flex: 1;
}

/* Embed Examples */
.embed-examples {
    background: white;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
}

.embed-examples h6 {
    font-size: 14px;
    font-weight: 600;
    color: #4a5568;
    margin: 0 0 16px 0;
}

.embed-examples-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.embed-example {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}

.embed-example:hover {
    border-color: #16a085;
    background: #16a08510;
    transform: translateY(-2px);
}

.embed-example i {
    font-size: 32px;
    color: #16a085;
    margin-bottom: 8px;
}

.embed-example span {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #4a5568;
}

.code-editor {
    font-family: 'Courier New', monospace !important;
    background: #2d3748 !important;
    color: #48bb78 !important;
    border: 2px solid #4a5568 !important;
}

.embed-preview {
    background: white;
    border-radius: 10px;
    padding: 20px;
    margin-top: 20px;
}

.embed-preview h6 {
    font-size: 14px;
    font-weight: 600;
    color: #4a5568;
    margin: 0 0 12px 0;
}

.preview-frame {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #cbd5e0;
    font-size: 48px;
}

/* ============================================
   Modal Header Icon
   ============================================ */
.header-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 22px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    flex-shrink: 0;
}

/* ============================================
   Form Sections - بخش‌های فرم
   ============================================ */
.form-section {
    background: white;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
    border: 2px solid #f1f3f5;
    transition: all 0.3s;
}

.form-section:hover {
    border-color: #e9ecef;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.form-section .section-title {
    margin-bottom: 24px;
}

/* ============================================
   Beautiful Form Elements - فیلدهای خیلی جذاب
   ============================================ */
.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 12px;
}

.form-group label i {
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white !important;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.form-group label span {
    flex: 1;
}

.required-star {
    color: #e74c3c;
    font-size: 16px;
    font-weight: 700;
    margin-right: auto;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 14px;
    font-family: Tahoma, Arial, sans-serif;
    transition: all 0.3s;
    background: white;
}

.form-control:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
    background: #f8f9ff;
}

.form-control::placeholder {
    color: #a0aec0;
}

textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

input[type="color"].form-control {
    height: 48px;
    cursor: pointer;
}

input[type="number"].form-control {
    padding-right: 12px;
}

/* Beautiful Select Boxes */
select.form-control {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23667eea' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 16px center;
    padding-left: 40px;
    appearance: none;
}

/* Input with Icon/Addon */
.input-with-icon {
    position: relative;
    display: flex;
    align-items: center;
}

.input-with-icon input {
    flex: 1;
    padding-left: 80px;
}

.input-addon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 13px;
    font-weight: 600;
    color: #667eea;
    background: linear-gradient(135deg, #667eea15, #764ba215);
    padding: 6px 12px;
    border-radius: 6px;
    pointer-events: none;
}

/* Beautiful Checkboxes - Basic */
.form-check {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    transition: all 0.3s;
    cursor: pointer;
}

.form-check:hover {
    border-color: #667eea;
    background: #f8f9ff;
}

.form-check-input {
    width: 22px;
    height: 22px;
    border: 2px solid #cbd5e0;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
    appearance: none;
    background: white;
    position: relative;
    flex-shrink: 0;
}

.form-check-input:checked {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-color: #667eea;
}

.form-check-input:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 14px;
    font-weight: bold;
}

.form-check-label {
    font-size: 14px;
    font-weight: 500;
    color: #4a5568;
    cursor: pointer;
    user-select: none;
    flex: 1;
}

/* Beautiful Checkboxes - Modern Style */
.form-check-modern {
    background: linear-gradient(135deg, #ffffff, #f8f9fa);
    border: 2px solid #e9ecef;
    border-radius: 14px;
    padding: 20px;
    transition: all 0.3s;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.form-check-modern::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #667eea, #764ba2);
    transform: scaleY(0);
    transition: transform 0.3s;
}

.form-check-modern:hover {
    border-color: #667eea;
    background: white;
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.15);
}

.form-check-modern:hover::before {
    transform: scaleY(1);
}

.form-check-modern .form-check-input {
    width: 24px;
    height: 24px;
    border: 2px solid #cbd5e0;
    border-radius: 8px;
}

.form-check-modern .form-check-input:checked {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-color: #667eea;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.form-check-modern .form-check-label {
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
}

.check-content {
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
}

.check-content > i {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #667eea15, #764ba215);
    color: #667eea;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
    transition: all 0.3s;
}

.form-check-modern:hover .check-content > i {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    transform: scale(1.1);
}

.check-content > div {
    flex: 1;
}

.check-content strong {
    display: block;
    font-size: 15px;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 4px;
}

.check-content small {
    display: block;
    font-size: 13px;
    color: #718096;
    line-height: 1.4;
}

/* Beautiful Buttons */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

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

.btn:active {
    transform: translateY(0);
}

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

.btn-primary:hover {
    background: linear-gradient(135deg, #5568d3 0%, #653a8b 100%);
}

.btn-secondary {
    background: #e9ecef;
    color: #4a5568;
}

.btn-secondary:hover {
    background: #cbd5e0;
}

.btn-success {
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    color: white;
}

.btn-success:hover {
    background: linear-gradient(135deg, #38a169 0%, #2f855a 100%);
}

.btn-danger {
    background: linear-gradient(135deg, #f56565 0%, #e53e3e 100%);
    color: white;
}

.btn-danger:hover {
    background: linear-gradient(135deg, #e53e3e 0%, #c53030 100%);
}

.btn-info {
    background: linear-gradient(135deg, #4299e1 0%, #3182ce 100%);
    color: white;
}

.btn-info:hover {
    background: linear-gradient(135deg, #3182ce 0%, #2c5282 100%);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 13px;
}

.btn i {
    font-size: 16px;
}

/* Form Actions */
.form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    padding-top: 24px;
    border-top: 2px solid #e9ecef;
    margin-top: 24px;
}

/* Row and Columns */
.row {
    display: flex;
    gap: 16px;
    margin: 0 -8px;
}

.col-6 {
    flex: 1;
    padding: 0 8px;
}

.col-md-6 {
    flex: 1;
    padding: 0 8px;
}

/* Small Text */
.form-text {
    font-size: 12px;
    color: #718096;
    margin-top: 6px;
    display: block;
}

.text-muted {
    color: #a0aec0;
}

/* Helper Classes */
.mt-3 {
    margin-top: 16px;
}

.mt-4 {
    margin-top: 24px;
}

.mb-3 {
    margin-bottom: 16px;
}

.p-4 {
    padding: 24px;
}

.text-danger {
    color: #e53e3e;
}

/* ============================================
   Beautiful Empty States
   ============================================ */
.empty-state {
    text-align: center;
    padding: 80px 32px;
    color: #a0aec0;
}

.empty-state i {
    margin-bottom: 24px;
    color: #cbd5e0;
}

.empty-state h3 {
    font-size: 24px;
    font-weight: 700;
    color: #4a5568;
    margin: 0 0 12px 0;
}

.empty-state p {
    font-size: 14px;
    color: #718096;
    margin: 0;
}

.empty-state-small {
    text-align: center;
    padding: 40px 20px;
    color: #a0aec0;
}

.empty-state-small i {
    font-size: 48px;
    margin-bottom: 12px;
    color: #cbd5e0;
}

.empty-state-small p {
    font-size: 14px;
    color: #718096;
    margin: 0;
}

.empty-placeholder {
    text-align: center;
    padding: 60px 20px;
    background: #f8f9fa;
    border: 2px dashed #cbd5e0;
    border-radius: 10px;
    color: #a0aec0;
    font-size: 14px;
}

/* ============================================
   Beautiful Loading States
   ============================================ */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.btn.loading {
    position: relative;
    color: transparent;
    pointer-events: none;
}

.btn.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.8s linear infinite;
}

/* ============================================
   Beautiful Tooltips & Hints
   ============================================ */
[title] {
    position: relative;
    cursor: help;
}

.hint {
    display: inline-block;
    width: 18px;
    height: 18px;
    background: #cbd5e0;
    color: white;
    border-radius: 50%;
    font-size: 12px;
    font-weight: bold;
    text-align: center;
    line-height: 18px;
    cursor: help;
    margin-left: 6px;
}

.hint:hover {
    background: #667eea;
}

/* ============================================
   Beautiful Progress Bars
   ============================================ */
.progress-bar {
    width: 100%;
    height: 8px;
    background: #e9ecef;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

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

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

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

/* ============================================
   Beautiful Badges & Tags
   ============================================ */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    background: #e9ecef;
    color: #4a5568;
}

.badge-primary {
    background: linear-gradient(135deg, #667eea20, #764ba220);
    color: #667eea;
}

.badge-success {
    background: linear-gradient(135deg, #48bb7820, #38a16920);
    color: #38a169;
}

.badge-danger {
    background: linear-gradient(135deg, #f5656520, #e53e3e20);
    color: #e53e3e;
}

.badge-warning {
    background: linear-gradient(135deg, #ed8e3620, #dd6b2020);
    color: #dd6b20;
}

/* ============================================
   Beautiful Dividers
   ============================================ */
.divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, #e9ecef, transparent);
    margin: 24px 0;
}

.divider-text {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 24px 0;
    color: #a0aec0;
    font-size: 13px;
}

.divider-text::before,
.divider-text::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, #e9ecef, transparent);
}

.divider-text span {
    padding: 0 16px;
}

/* Responsive */
@media (max-width: 768px) {
    .content-types-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .video-provider-tabs {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .embed-examples-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .row {
        flex-direction: column;
    }
    
    .col-6,
    .col-md-6 {
        width: 100%;
    }
    
    .form-actions {
        flex-direction: column-reverse;
    }
    
    .form-actions .btn {
        width: 100%;
        justify-content: center;
    }
}
