.deleted-projects-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    font-family: 'Plus Jakarta Sans', Tahoma, sans-serif;
}

/* دکمه برگشت */
.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: #3498db;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    margin-bottom: 30px;
    font-size: 14px;
    font-weight: 500;
}

.back-btn:hover {
    background: #2980b9;
    transform: translateX(-5px);
    color: white;
}

/* هدر صفحه */
.page-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    color: white;
}

.page-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.page-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    margin: 0;
}

/* جدول */
.table-wrapper {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.deleted-projects-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.deleted-projects-table thead {
    background: linear-gradient(135deg, #2c3e50, #34495e);
    color: white;
}

.deleted-projects-table th {
    padding: 16px 12px;
    text-align: right;
    font-weight: 600;
    font-size: 15px;
}

.deleted-projects-table td {
    padding: 16px 12px;
    border-bottom: 1px solid #ecf0f1;
    vertical-align: top;
}

/* ستون‌های جدول */
.name-col {
    width: 15%;
    min-width: 150px;
}

.image-col {
    width: 20%;
    min-width: 180px;
}

.video-col {
    width: 25%;
    min-width: 220px;
}

.desc-col {
    width: 25%;
    min-width: 200px;
}

.actions-col {
    width: 15%;
    min-width: 150px;
}

/* ردیف‌های جدول */
.project-row {
    transition: all 0.3s ease;
    background: #fafafa;
}

.project-row:hover {
    background: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.project-row:nth-child(even) {
    background: #fdfdfd;
}

/* نام پروژه */
.name-wrapper {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.name-text {
    font-weight: 600;
    color: #2c3e50;
    font-size: 15px;
}

.deleted-badge {
    background: #e74c3c;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    display: inline-block;
    width: fit-content;
}

/* تصویر پروژه */
.image-wrapper {
    width: 100%;
    max-width: 150px;
    height: 100px;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid #e9ecef;
}

.project-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

/* ویدیو پروژه */
.video-wrapper {
    width: 100%;
    max-width: 200px;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid #e9ecef;
}

.project-vid {
    width: 100%;
    height: auto;
    max-height: 120px;
    background: #000;
}

/* توضیحات */
.desc-wrapper {
    max-height: 80px;
    overflow-y: auto;
    padding: 8px;
    background: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #e9ecef;
}

.desc-text {
    margin: 0;
    color: #555;
    line-height: 1.5;
    font-size: 13px;
}

/* فایل موجود نیست */
.no-file {
    color: #95a5a6;
    font-style: italic;
    font-size: 13px;
    padding: 8px;
    background: #f8f9fa;
    border-radius: 4px;
    display: inline-block;
}

/* عملیات */
.actions-wrapper {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.action-form {
    margin: 0;
}

.btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 12px;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    width: 100%;
    color: white;
}

.btn-restore {
    background: #27ae60 !important;
}

.btn-restore:hover {
    background: #219a52 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(39, 174, 96, 0.3);
}

.btn-delete {
    background: #c0392b !important;
}

.btn-delete:hover {
    background: #a93226 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(192, 57, 43, 0.3);
}

/* حالت خالی */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #7f8c8d;
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.7;
}

.empty-state h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #2c3e50;
}

.empty-state p {
    font-size: 1rem;
    margin-bottom: 30px;
    opacity: 0.8;
}

.empty-state .btn-primary {
    background: #3498db;
    color: white;
    padding: 12px 30px;
    border-radius: 8px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

.empty-state .btn-primary:hover {
    background: #2980b9;
    transform: translateY(-2px);
}

/* ==================== */
/* رسپانسیو برای تبلت */
/* ==================== */
@media (max-width: 991.98px) {
    .deleted-projects-container {
        padding: 15px;
    }

    .page-title {
        font-size: 1.8rem;
    }

    .page-subtitle {
        font-size: 1rem;
    }

    .deleted-projects-table {
        font-size: 13px;
    }

    .deleted-projects-table th,
    .deleted-projects-table td {
        padding: 12px 8px;
    }

    .name-col,
    .image-col,
    .video-col,
    .desc-col,
    .actions-col {
        min-width: 120px;
    }

    .image-wrapper {
        max-width: 120px;
        height: 80px;
    }

    .video-wrapper {
        max-width: 150px;
    }
}

/* ==================== */
/* رسپانسیو برای موبایل */
/* ==================== */
@media (max-width: 767.98px) {
    .deleted-projects-container {
        padding: 10px;
    }

    .back-btn {
        margin-bottom: 20px;
        padding: 8px 16px;
        font-size: 13px;
    }

    .page-header {
        margin-bottom: 25px;
        padding: 15px;
    }

    .page-title {
        font-size: 1.5rem;
    }

    .page-subtitle {
        font-size: 0.9rem;
    }

    /* تبدیل جدول به کارت در موبایل */
    .table-wrapper {
        overflow-x: auto;
    }

    .deleted-projects-table {
        min-width: 700px;
    }

    .project-row {
        display: table-row;
    }

    .deleted-projects-table th,
    .deleted-projects-table td {
        padding: 10px 6px;
    }

    .name-text {
        font-size: 14px;
    }

    .deleted-badge {
        font-size: 11px;
        padding: 3px 6px;
    }

    .image-wrapper {
        max-width: 100px;
        height: 70px;
    }

    .video-wrapper {
        max-width: 120px;
    }

    .desc-text {
        font-size: 12px;
    }

    .btn {
        font-size: 12px;
        padding: 6px 10px;
    }

    .empty-state {
        padding: 40px 15px;
    }

    .empty-icon {
        font-size: 3rem;
    }

    .empty-state h3 {
        font-size: 1.3rem;
    }

    .empty-state p {
        font-size: 0.9rem;
    }
}

/* ============================ */
/* برای موبایل‌های بسیار کوچک */
/* ============================ */
@media (max-width: 575.98px) {
    .deleted-projects-container {
        padding: 8px;
    }

    .back-btn {
        width: 100%;
        justify-content: center;
        margin-bottom: 15px;
    }

    .page-header {
        margin-bottom: 20px;
        padding: 12px;
    }

    .page-title {
        font-size: 1.3rem;
    }

    .deleted-projects-table {
        min-width: 800px;
        font-size: 12px;
    }

    .actions-wrapper {
        gap: 5px;
    }

    .btn {
        padding: 5px 8px;
        font-size: 11px;
    }

    .btn svg {
        width: 14px;
        height: 14px;
    }

    .empty-state {
        padding: 30px 10px;
    }

    .empty-icon {
        font-size: 2.5rem;
    }

    .empty-state h3 {
        font-size: 1.1rem;
    }
}

/* ==================== */
/* بهبودهای خاص */
/* ==================== */

/* اسکرول بار زیبا برای توضیحات */
.desc-wrapper::-webkit-scrollbar {
    width: 4px;
}

.desc-wrapper::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 2px;
}

.desc-wrapper::-webkit-scrollbar-thumb {
    background: #bdc3c7;
    border-radius: 2px;
}

.desc-wrapper::-webkit-scrollbar-thumb:hover {
    background: #95a5a6;
}

/* انیمیشن برای ردیف‌ها */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.project-row {
    animation: fadeIn 0.5s ease-out;
}

/* حالت لودینگ */
.loading-state {
    text-align: center;
    padding: 40px;
    color: #7f8c8d;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

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

/* پشتیبانی از حالت تاریک */
@media (prefers-color-scheme: dark) {
    .deleted-projects-container {
        background: #1a1a1a;
        color: #e0e0e0;
    }

    .table-wrapper {
        background: #2d2d2d;
        color: #e0e0e0;
    }

    .project-row {
        background: #333;
    }

    .project-row:hover {
        background: #3a3a3a;
    }

    .project-row:nth-child(even) {
        background: #2a2a2a;
    }

    .name-text {
        color: #e0e0e0;
    }

    .desc-wrapper {
        background: #333;
        border-color: #444;
    }

    .desc-text {
        color: #ccc;
    }

    .image-wrapper,
    .video-wrapper {
        border-color: #444;
    }

    .no-file {
        background: #333;
        color: #999;
    }
}

/* دسترسی‌پذیری */
@media (prefers-reduced-motion: reduce) {
    .project-row,
    .btn,
    .back-btn {
        transition: none;
        animation: none;
    }
}

/* فوکوس برای دسترسی‌پذیری */
.btn:focus,
.back-btn:focus {
    outline: 2px solid #3498db;
    outline-offset: 2px;
}
