/* الحاوية العامة */

.category-wrapper {
    padding: 20px;
    max-width: 1200px;
    margin: auto;
}


/* العناوين */

.category-wrapper h2 {
    font-size: 26px;
    margin-bottom: 12px;
    color: #0b4f6c;
    text-align: center;
    font-weight: 700;
}

.category-wrapper h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #0b4f6c;
    text-align: center;
    font-weight: 600;
}


/* شريط الأدوات */

.top-bar {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.top-bar button {
    padding: 10px 18px;
    border-radius: 8px;
}

#search {
    flex: 1;
    padding: 10px;
    border-radius: 8px;
    border: 2px solid #0ea5e9;
}

#search:focus {
    border-color: #0b4f6c;
}


/* زر العودة */

.back-btn {
    display: inline-block;
    margin: 10px auto 10px;
    background: #e2e8f0;
    padding: 8px 16px;
    border-radius: 8px;
    color: #0b4f6c;
    font-size: 14px;
    border: 1px solid #cbd5e1;
}

.back-btn:hover {
    background: #cbd5e1;
}


/* نموذج إضافة فئة فرعية */

.category-form {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.category-form input {
    flex: 1;
    padding: 10px;
    border-radius: 8px;
    border: 2px solid #0ea5e9;
}

.category-form button {
    padding: 10px 14px;
    border-radius: 8px;
}


/* جدول احترافي */


/* رأس الجدول */


/* أزرار التحكم داخل الخلية */

.btn-action {
    padding: 8px 10px;
    border-radius: 6px;
    margin: 1px;
    border: none;
    cursor: pointer;
    font-size: 13px;
    color: #fff;
}

.btn-blue {
    background: #0284c7;
}

.btn-blue:hover {
    background: #0369a1;
}

.btn-orange {
    background: #f59e0b;
}

.btn-orange:hover {
    background: #d97706;
}

.btn-red {
    background: #dc2626;
}

.btn-red:hover {
    background: #b91c1c;
}


/* ترتيب أزرار التحكم */


/* تخفيف الكرفات */

.modal-overlay,
.modal-box {
    display: none !important;
}