@font-face {
    font-family: 'Vazir';
    src: url('../fonts/Vazir.woff2') format('woff2'),
        url('../fonts/Vazir.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

body {
    font-family: 'Vazir', sans-serif;
    background-color: #cbe4db;
    direction: rtl;
    text-align: right;
}

/* استایل ویجت‌ها (کارت‌های فایل) */
.file-widget {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
    border: none;
}

.file-widget:hover {
    transform: translateY(-5px);
}

.file-icon {
    font-size: 3rem;
    color: #0d6efd;
    text-align: center;
    margin-bottom: 15px;
}

/* نوار پیشرفت آپلود */
#progress-container {
    display: none;
    margin-top: 20px;
}



/* ---------------- */


:root {
    --primary-color: #6366f1;
    --primary-hover: #4f46e5;
    --bg-color: #dae6fc;
    --card-bg: #ffffff;
    --text-main: #1f2937;
    --text-muted: #6b7280;
}

body {
    font-family: 'Vazir', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    padding-bottom: 50px;
}

/* Navbar مدرن شیشه ای */
.modern-navbar {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    padding: 15px 0;
}

.navbar-brand {
    color: var(--primary-color) !important;
    font-weight: 800;
    font-size: 1.4rem;
}

.user-greeting {
    color: var(--text-main);
    font-weight: 600;
    background: #f8fafc;
    padding: 8px 16px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}


.upload-card {
    background: var(--card-bg);
    border-radius: 24px;
    padding: 50px 30px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.01);
    border: 2px dashed #cbd5e1;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.upload-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 25px 30px -5px rgba(99, 102, 241, 0.1);
    transform: translateY(-2px);
}

.upload-icon-wrapper {
    background: #e0e7ff;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--primary-color);
}

/* استایل دکمه ها */
.btn-modern {
    border-radius: 14px;
    padding: 10px 24px;
    font-weight: 600;
    letter-spacing: 0.3px;
    transition: all 0.2s ease;
}

.btn-primary-custom {
    background: linear-gradient(135deg, var(--primary-color) 0%, #8b5cf6 100%);
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.btn-primary-custom:hover {
    background: linear-gradient(135deg, var(--primary-hover) 0%, #7c3aed 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
    color: white;
}

.custom-file-input {
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    padding: 12px;
    background: #f8fafc;
}

/* کارت های فایل */
.section-title {
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 25px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    right: 0;
    width: 50%;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
}

.file-widget {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 25px 20px;
    margin-bottom: 25px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    border: 1px solid #f1f5f9;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.file-widget:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    border-color: #e2e8f0;
}

.file-type-icon {
    width: 60px;
    height: 60px;
    background: #f1f5f9;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: #64748b;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.file-widget:hover .file-type-icon {
    background: #e0e7ff;
    color: var(--primary-color);
    transform: scale(1.05);
}

.file-name {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-main);
    width: 100%;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 8px;
}

.file-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    background: #f8fafc;
    padding: 6px 12px;
    border-radius: 8px;
    display: flex;
    gap: 10px;
}

.action-btns {
    display: flex;
    gap: 8px;
    width: 100%;
    justify-content: center;
}

.action-btns .btn {
    border-radius: 10px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: all 0.2s;
}

.action-btns .btn:hover {
    transform: translateY(-2px);
}

.btn-soft-success {
    background: #dcfce7;
    color: #16a34a;
    border: none;
}

.btn-soft-success:hover {
    background: #16a34a;
    color: white;
}

.btn-soft-info {
    background: #e0f2fe;
    color: #0284c7;
    border: none;
}

.btn-soft-info:hover {
    background: #0284c7;
    color: white;
}

.btn-soft-danger {
    background: #fee2e2;
    color: #dc2626;
    border: none;
}

.btn-soft-danger:hover {
    background: #dc2626;
    color: white;
}

/* نوار پیشرفت */
.progress-custom {
    height: 12px;
    border-radius: 10px;
    background-color: #e2e8f0;
    overflow: hidden;
}

.progress-custom .progress-bar {
    background: linear-gradient(90deg, var(--primary-color) 0%, #8b5cf6 100%);
    font-size: 0.75rem;
    font-weight: bold;
}