﻿body {
    background-color: #F2FBF3;
    font-family: 'Cairo', sans-serif;
}

.main-title {
    color: #25652C;
    font-weight: 800;
    text-align: right;
}


/* تنسيق شريط البحث */
.search-wrapper {
    background: white;
    border-radius: 50px;
    padding: 5px 15px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    border: 1px solid #eee;
}

/* تنسيق زر الإضافة */
.btn-add {
    background-color: #f9a825;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 8px 20px;
    font-weight: bold;
    transition: all 0.3s ease;
    text-decoration: none;
}

    .btn-add:hover {
        background-color: #e69b12;
        color: white;
        transform: translateY(-1px);
    }

/* تنسيق الجدول والصفوف */
.table-container {
    margin-top: 20px;
}

.articles-table {
    border-collapse: separate;
    border-spacing: 0 12px; /* مسافة بين الصفوف */
    width: 100%;
}

    .articles-table thead th {
        border: none;
        color: #112D14;
        font-weight: 600;
        padding: 10px 20px;
        background-color: #F2FBF3;
    }

    .articles-table tbody tr {
        background-color: white;
        box-shadow: 0 4px 10px rgba(0,0,0,0.03);
        transition: transform 0.2s;
    }

        .articles-table tbody tr:hover {
            transform: scale(1.005);
        }

    .articles-table td {
        border: none !important;
        padding: 15px 20px !important;
        vertical-align: middle;
    }

    /* الحواف المستديرة للصفوف */
    .articles-table tr td:first-child {
        border-radius: 0 15px 15px 0;
    }

    .articles-table tr td:last-child {
        border-radius: 15px 0 0 15px;
    }

/* أيقونات الإجراءات */
.action-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 4px;
    border: 1px solid;
    transition: all 0.2s ease;
    text-decoration: none;
    cursor: pointer;
}

.icon-view {
    color: #25652C;
    border-color: #25652C;
}

.icon-edit {
    color: #F99D27;
    border-color: #F99D27;
}

.icon-delete {
    color: #FF383C;
    border-color: #FF383C;
}

.icon-view:hover {
    background: #25652C;
    color: white;
}

.icon-edit:hover {
    background: #F99D27;
    color: white;
}

.icon-delete:hover {
    background: #FF383C;
    color: white;
}

/* الترقيم (Pagination) */
.pagination .page-link {
    border: none;
    color: #666;
    margin: 0 4px;
    border-radius: 8px;
    padding: 8px 16px;
    background: transparent;
}

.pagination .page-item.active .page-link {
    background-color: white;
    color: #1a4d2e;
    border: 1px solid #1a4d2e;
    font-weight: bold;
}

.pagination-label {
    color: #0C2710;
    font-weight: bold;
    margin-bottom: 10px;
}

.cursor-pointer {
    cursor: pointer;
}



/* تحسين استجابة الجوال */
@media (max-width: 768px) {
    .search-wrapper {
        width: 100%;
        margin-bottom: 15px;
    }

    .d-flex-mobile {
        flex-direction: column;
        align-items: stretch !important;
    }

    .articles-table thead {
        display: none;
    }

    .articles-table tbody tr {
        display: block;
        margin-bottom: 15px;
        border-radius: 15px;
        padding: 10px;
    }

    .articles-table td {
        display: block;
        text-align: center !important;
        padding: 5px !important;
    }

    .articles-table tr td:first-child, .articles-table tr td:last-child {
        border-radius: 15px;
    }
}
