
/* استایل‌های اصلی صفحه نمایش خدمات */
.services-view-container {
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 20px;
}

.services-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    background: rgba(255, 255, 255, 0.95);
    padding: 20px 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.page-title {
    color: #2c3e50;
    font-size: 2.2rem;
    font-weight: 700;
    margin: 0;
}

.btn-create-service {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 25px;
    background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(39, 174, 96, 0.3);
}

.btn-create-service:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(39, 174, 96, 0.4);
    color: white;
    text-decoration: none;
}

/* استایل جدول */
.table-container {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.services-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.services-table thead {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.services-table th {
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
    padding: 20px 15px;
    text-align: center;
    border-bottom: 2px solid #dee2e6;
}

.services-table td {
    padding: 20px 15px;
    border-bottom: 1px solid #e9ecef;
    vertical-align: middle;
}

.service-row:hover {
    background-color: #f8f9fa;
    transform: translateY(-1px);
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* استایل ستون‌ها */
.service-name {
    text-align: center;
    font-weight: 600;
    color: #2c3e50;
}

.name-text {
    font-size: 1.1rem;
    font-weight: 600;
}

.service-image,
.service-video {
    text-align: center;
}

.service-img {
    max-width: 100%;
    height: auto;
    max-height: 150px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    object-fit: cover;
}

.service-video-player {
    max-width: 100%;
    height: auto;
    max-height: 150px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.no-media {
    color: #7f8c8d;
    font-style: italic;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 6px;
    border: 1px dashed #bdc3c7;
}

.service-description {
    max-width: 300px;
}

.description-text {
    color: #5a6c7d;
    line-height: 1.6;
    font-size: 0.95rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* استایل دکمه‌های عملیات */
.service-actions {
    text-align: center;
}

.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
}

.action-form {
    margin: 0;
    width: 100%;
    display: flex;
    justify-content: center;
}

.btn-edit,
.btn-delete {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 120px;
    justify-content: center;
}

.btn-edit {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.btn-edit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
    background: linear-gradient(135deg, #2980b9 0%, #2471a3 100%);
}

.btn-delete {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
}

.btn-delete:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.4);
    background: linear-gradient(135deg, #c0392b 0%, #a93226 100%);
}

/* استایل برای زمانی که خدمتی وجود ندارد */
.no-services {
    text-align: center;
    padding: 60px 20px;
    color: #7f8c8d;
}

.no-services i {
    font-size: 4rem;
    margin-bottom: 20px;
    color: #bdc3c7;
}

.no-services h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: #2c3e50;
}

.no-services p {
    font-size: 1.1rem;
    color: #7f8c8d;
}

/* رسپانسیو برای تبلت */
@media (max-width: 992px) {
    .services-header {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

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

    .services-table th,
    .services-table td {
        padding: 15px 10px;
    }

    .service-img,
    .service-video-player {
        max-height: 120px;
    }
}

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

    .table-container {
        padding: 15px;
        border-radius: 10px;
    }

    .services-table {
        display: block;
        overflow-x: auto;
    }

    .services-table thead {
        display: none;
    }

    .services-table tbody,
    .services-table tr,
    .services-table td {
        display: block;
        width: 100%;
    }

    .services-table tr {
        margin-bottom: 20px;
        border: 2px solid #e9ecef;
        border-radius: 10px;
        padding: 15px;
        background: white;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    }

    .services-table td {
        text-align: right;
        padding: 12px 10px;
        border-bottom: 1px solid #e9ecef;
        position: relative;
    }

    .services-table td::before {
        content: attr(data-label);
        font-weight: 600;
        color: #2c3e50;
        position: absolute;
        left: 10px;
        top: 50%;
        transform: translateY(-50%);
    }

    .service-name::before { content: "نام خدمت: "; }
    .service-image::before { content: "عکس: "; }
    .service-video::before { content: "فیلم: "; }
    .service-description::before { content: "توضیحات: "; }
    .service-actions::before { content: "عملیات: "; }

    .action-buttons {
        flex-direction: row;
        justify-content: center;
        gap: 10px;
    }

    .btn-edit,
    .btn-delete {
        width: auto;
        padding: 8px 15px;
        font-size: 0.85rem;
    }
}

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

    .btn-create-service {
        padding: 10px 20px;
        font-size: 1rem;
        width: 100%;
        justify-content: center;
    }

    .action-buttons {
        flex-direction: column;
    }

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

    .service-img,
    .service-video-player {
        max-height: 100px;
    }
}

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

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

/* استایل برای حالت تاریک */
@media (prefers-color-scheme: dark) {
    .services-header,
    .table-container {
        background: rgba(45, 45, 45, 0.95);
    }

    .page-title {
        color: #ecf0f1;
    }

    .services-table {
        background: #2c3e50;
        color: #ecf0f1;
    }

    .services-table td {
        border-bottom-color: #4a6278;
        color: #ecf0f1;
    }

    .service-row:hover {
        background-color: #34495e;
    }

    .no-media {
        background: #34495e;
        border-color: #4a6278;
        color: #bdc3c7;
    }

    .description-text {
        color: #bdc3c7;
    }
}
