
#indexExample{:root {
    --primary-color: #3498db;
    --secondary-color: #2c3e50;
    --success-color: #27ae60;
    --danger-color: #e74c3c;
    --warning-color: #f39c12;
    --background-color: #f8f9fa;
    --surface-color: #ffffff;
    --text-primary: #2c3e50;
    --text-secondary: #7f8c8d;
    --border-color: #e1e8ed;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --border-radius: 12px;
    --transition: all 0.3s ease;
}

    /* Main Styles */
    .projects-container {
        padding: 2rem;
        background: var(--background-color);
        min-height: 100vh;
    }

    /* Action Buttons */
    .action-buttons {
        display: flex;
        gap: 1rem;
        margin-bottom: 2rem;
        flex-wrap: wrap;
    }

    .btn {
        display: inline-flex;
        align-items: center;
        gap: 0.5rem;
        padding: 0.75rem 1.5rem;
        border: none;
        border-radius: var(--border-radius);
        font-size: 1rem;
        font-weight: 500;
        text-decoration: none;
        cursor: pointer;
        transition: var(--transition);
        font-family: inherit;
    }

    .btn-primary {
        background: var(--primary-color);
        color: white;
    }

    .btn-primary:hover {
        background: #2980b9;
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
    }

    .btn-secondary {
        background: var(--text-secondary);
        color: white;
    }

    .btn-secondary:hover {
        background: #6c757d;
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(108, 117, 125, 0.3);
    }

    .projects-header {
        text-align: center;
        margin-bottom: 3rem;
    }

    .projects-title {
        font-size: 2.5rem;
        font-weight: 700;
        color: var(--secondary-color);
        margin-bottom: 0.5rem;
    }

    .projects-subtitle {
        font-size: 1.1rem;
        color: var(--text-secondary);
        font-weight: 400;
    }

    .table-wrapper {
        background: var(--surface-color);
        border-radius: var(--border-radius);
        box-shadow: var(--shadow);
        overflow: hidden;
        margin-bottom: 2rem;
    }

    .projects-table {
        width: 100%;
        border-collapse: collapse;
        background: var(--surface-color);
    }

    .projects-table thead {
        background: linear-gradient(135deg, var(--primary-color), #2980b9);
    }

    .projects-table thead tr th {
        padding: 1.25rem 1rem;
        text-align: right;
        color: white;
        font-weight: 600;
        font-size: 0.95rem;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    .projects-table thead tr th.name-col { width: 15%;text-align: center }
    .projects-table thead tr th.image-col { width: 20%;text-align: center }
    .projects-table thead tr th.video-col { width: 20%;text-align: center }
    .projects-table thead tr th.desc-col { width: 30%;text-align: center }
    .projects-table thead tr th.actions-col { width: 15%;text-align: center }

    .projects-table tbody .project-row {
        border-bottom: 1px solid var(--border-color);
        transition: var(--transition);
    }

    .projects-table tbody .project-row:last-child {
        border-bottom: none;
    }

    .projects-table tbody .project-row:hover {
        background: rgba(52, 152, 219, 0.05);
    }

    .projects-table tbody .project-row td {
        padding: 1.5rem 1rem;
        vertical-align: middle;
    }

    /* Name Column */
    .project-name .name-wrapper .name-text {
        font-weight: 600;
        color: var(--text-primary);
        font-size: 1.1rem;
        line-height: 1.4;
    }

    /* Image and Video Columns */
    .image-wrapper,
    .video-wrapper {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .project-img {
        max-width: 120px;
        max-height: 80px;
        border-radius: 8px;
        object-fit: cover;
        border: 2px solid var(--border-color);
        transition: var(--transition);
    }

    .project-img:hover {
        transform: scale(1.05);
        border-color: var(--primary-color);
    }

    .project-vid {
        max-width: 150px;
        max-height: 90px;
        border-radius: 8px;
        border: 2px solid var(--border-color);
        background: #000;
        transition: var(--transition);
    }

    .project-vid:hover {
        transform: scale(1.02);
        border-color: var(--primary-color);
    }

    .no-file {
        color: var(--text-secondary);
        font-style: italic;
        padding: 0.5rem 1rem;
        background: rgba(127, 140, 141, 0.1);
        border-radius: 20px;
        font-size: 0.9rem;
    }

    /* Description Column */
    .desc-wrapper .desc-text {
        color: var(--text-primary);
        line-height: 1.6;
        margin: 0;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
        max-height: 4.8em;
    }

    /* Actions Column */
    .project-actions {
        text-align: center;
    }

    .actions-wrapper {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
        align-items: center;
    }

    .delete-form {
        margin: 0;
        padding: 0;
        display: inline;
    }

    .btn-edit, .btn-delete {
        width: 100%;
        font-size: 0.85rem;
        padding: 0.5rem 1rem;
        justify-content: center;
    }

    .btn-danger {
        background: var(--danger-color);
        color: white;
    }

    .btn-danger:hover {
        background: #c0392b;
        transform: translateY(-1px);
        box-shadow: 0 4px 8px rgba(231, 76, 60, 0.3);
    }

    .btn-create {
        margin-top: 1rem;
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }

    /* Empty State */
    .empty-state {
        text-align: center;
        padding: 4rem 2rem;
        color: var(--text-secondary);
    }

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

    .empty-state h3 {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
        color: var(--text-primary);
    }

    .empty-state p {
        font-size: 1rem;
        margin: 0 0 2rem 0;
    }

    /* Pagination */
    .pagination-wrapper {
        display: flex;
        align-items: center;
        justify-content: center;
        margin-top: 2rem;
    }

    .pagination {
        display: flex;
        gap: 0.5rem;
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .pagination li a,
    .pagination li span {
        display: block;
        padding: 0.75rem 1rem;
        border: 1px solid var(--border-color);
        border-radius: 6px;
        color: var(--text-primary);
        text-decoration: none;
        transition: var(--transition);
        font-weight: 500;
    }

    .pagination li a:hover {
        background: var(--primary-color);
        color: white;
        border-color: var(--primary-color);
    }

    .pagination li.active span {
        background: var(--primary-color);
        color: white;
        border-color: var(--primary-color);
    }

    .pagination li.disabled span {
        color: var(--text-secondary);
        background: rgba(127, 140, 141, 0.1);
        cursor: not-allowed;
    }

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

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

    /* Responsive Design */
    @media (max-width: 1024px) {
        .projects-table thead tr th.name-col { width: 18%; }
        .projects-table thead tr th.image-col { width: 18%; }
        .projects-table thead tr th.video-col { width: 18%; }
        .projects-table thead tr th.desc-col { width: 30%; }
        .projects-table thead tr th.actions-col { width: 16%; }
    }

    @media (max-width: 768px) {
        .projects-container {
            padding: 1rem;
        }

        .action-buttons {
            flex-direction: column;
            align-items: stretch;
        }

        .btn {
            justify-content: center;
        }

        .projects-title {
            font-size: 2rem;
        }

        .projects-table {
            display: block;
        }

        .projects-table thead {
            display: none;
        }

        .projects-table tbody {
            display: block;
        }

        .projects-table tbody .project-row {
            display: block;
            margin-bottom: 1.5rem;
            padding: 1rem;
            border: 1px solid var(--border-color);
            border-radius: var(--border-radius);
            background: var(--surface-color);
            box-shadow: var(--shadow);
        }

        .projects-table tbody .project-row:hover {
            background: rgba(52, 152, 219, 0.08);
        }

        .projects-table tbody .project-row td {
            display: block;
            padding: 0.75rem 0;
            border: none;
            text-align: center;
        }

        .project-actions {
            border-top: 1px solid var(--border-color);
            padding-top: 1rem;
            margin-top: 0.5rem;
        }

        .actions-wrapper {
            flex-direction: row;
            justify-content: center;
            gap: 1rem;
        }

        .btn-edit, .btn-delete {
            width: auto;
            flex: 1;
        }

        .project-name {
            font-size: 1.2rem;
            font-weight: 700;
            margin-bottom: 0.5rem;
            color: var(--secondary-color);
            text-align: center;
        }

        .project-image,
        .project-video {
            margin-bottom: 1rem;
        }

        .project-img,
        .project-vid {
            width: 100% !important;
            max-width: 250px !important;
        }

        .desc-wrapper .desc-text {
            -webkit-line-clamp: 4 !important;
            text-align: center;
        }

        /* Add labels for mobile view */
        .projects-table tbody .project-row td::before {
            content: attr(data-label);
            font-weight: 600;
            color: var(--primary-color);
            display: block;
            margin-bottom: 0.5rem;
            font-size: 0.9rem;
        }

        .project-name::before { content: "نام پروژه: "; }
        .project-image::before { content: "عکس پروژه: "; }
        .project-video::before { content: "ویدیو پروژه: "; }
        .project-description::before { content: "توضیحات: "; }
        .project-actions::before { content: "عملیات: "; }
    }

    @media (max-width: 480px) {
        .projects-title {
            font-size: 1.75rem;
        }

        .projects-table tbody .project-row {
            padding: 0.75rem;
        }

        .actions-wrapper {
            flex-direction: column;
            gap: 0.5rem;
        }

        .btn-edit, .btn-delete {
            width: 100%;
        }

        .action-buttons {
            gap: 0.75rem;
        }

        .btn {
            padding: 0.6rem 1.2rem;
            font-size: 0.9rem;
        }
    }

    @media (max-width: 360px) {
        .projects-container {
            padding: 0.5rem;
        }

        .projects-table tbody .project-row {
            padding: 0.5rem;
        }

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

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