/* ==============================================
   site.css
   أنماط مكونات لوحة التحكم (adm-*)
   تحاكي تصميم الموقع الأصلي
   ============================================== */

/* --- تمييز الصفحة النشطة في القائمة الجانبية --- */
a.menu2.adm-nav-active {
    color: #cc0000 !important;
    font-weight: bold !important;
}

/* ==============================================
   adm-card  →  بطاقات بخلفية رمادية
   ============================================== */
.adm-card {
    background: #999999;
    padding: 1px;
    margin-bottom: 8px;
    display: block;
}

.adm-card .h {
    background: url(https://web.archive.org/web/20110427040829im_/http://aff.kooora.com/i/icons/tabbar2.gif) repeat left 1px;
    background-color: #8b8b8b;
    color: white;
    padding: 4px 8px;
    font-weight: bold;
    font-size: 14px;
    text-align: center;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0;
}

.adm-card .h a {
    color: #ffff00;
    font-weight: normal;
    text-decoration: none;
    font-size: 12px;
}

.adm-card .b {
    background: #fafbfc;
    padding: 1px;
    margin-top: 1px;
}

/* ==============================================
   adm-table  →  جداول البيانات
   ============================================== */
.adm-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 1px;
    background: #999999;
}

.adm-table th {
    background: url(https://web.archive.org/web/20110427040829im_/http://aff.kooora.com/i/icons/tabbar2.gif) repeat left 1px;
    background-color: #8b8b8b;
    color: white;
    padding: 8px 10px;
    text-align: center;
    font-size: 13px;
    font-weight: bold;
}

.adm-table td {
    background-color: #eeeeee;
    padding: 8px 10px;
    font-size: 13px;
    text-align: right;
    color: #454545;
    border-bottom: 1px solid #e0e0e0;
}

.adm-table tr:hover td {
    background-color: #dedede;
}

.adm-table td a {
    color: #6c8595;
    text-decoration: none;
}

.adm-table td a:hover {
    color: #FE7010;
    text-decoration: underline;
}

/* ==============================================
   adm-form  →  النماذج والحقول
   ============================================== */
.adm-form label {
    display: block;
    background-color: #8b8b8b;
    color: yellow;
    font-size: 13px;
    font-weight: bold;
    padding: 4px 8px;
    margin: 8px 0 0;
    text-align: right;
}

.adm-form input[type=text],
.adm-form input[type=number],
.adm-form input[type=email],
.adm-form input[type=password],
.adm-form input[type=date],
.adm-form input[type=datetime-local],
.adm-form input[type=url],
.adm-form select,
.adm-form textarea {
    width: 100%;
    padding: 5px 6px;
    border: 1px solid #cccccc;
    background-color: white;
    color: #FE7010;
    font-family: Tahoma, Arial;
    font-size: 12px;
    font-weight: bold;
    box-sizing: border-box;
    display: block;
}

.adm-form textarea {
    min-height: 140px;
}

.adm-form select {
    background-color: #8b8b8b;
    color: white;
    font-weight: normal;
}

.adm-form input[type=checkbox] {
    width: auto;
}

/* ==============================================
   adm-btn  →  الأزرار
   ============================================== */
.adm-btn {
    background-color: #6d929c;
    color: white;
    border: 0;
    padding: 6px 18px;
    cursor: pointer;
    font-weight: bold;
    font-size: 12px;
    text-decoration: none;
    display: inline-block;
    font-family: Tahoma, Arial;
}

.adm-btn:hover {
    background-color: #8b8b8b;
    color: white;
}

.adm-btn-danger {
    background-color: #990000;
}

.adm-btn-danger:hover {
    background-color: #cc0000;
}

.adm-btn-sm {
    padding: 3px 10px;
    font-size: 11px;
}

/* ==============================================
   adm-alert  →  رسائل التنبيه
   ============================================== */
.adm-alert {
    padding: 6px 10px;
    margin-bottom: 8px;
    border: 1px solid;
    font-size: 12px;
}

.adm-alert-ok {
    background: #dff5e1;
    border-color: #b6dbb8;
    color: #2a7a2e;
}

.adm-alert-err {
    background: #fde0e0;
    border-color: #e8b4b4;
    color: #a00;
}

/* ==============================================
   adm-stats  →  بطاقات الإحصائيات
   ============================================== */
.adm-stats {
    display: flex;
    gap: 1px;
    flex-wrap: wrap;
    margin-bottom: 8px;
    background: #999;
    padding: 1px;
}

.adm-stat {
    background-color: white;
    padding: 10px 8px;
    text-align: center;
    flex: 1;
    min-width: 90px;
    border: 0;
}

.adm-stat .num {
    font-size: 22px;
    color: #8b8b8b;
    font-weight: bold;
}

.adm-stat .lbl {
    font-size: 11px;
    color: #6c8595;
    margin-top: 2px;
}

/* ==============================================
   adm-pager  →  ترقيم الصفحات
   ============================================== */
.adm-pager {
    padding: 6px;
    text-align: center;
    background: #eeeeee;
}

.adm-pager a,
.adm-pager span {
    display: inline-block;
    padding: 4px 10px;
    margin: 0 1px;
    border: 1px solid #cccccc;
    text-decoration: none;
    color: #454545;
    font-size: 12px;
    background: #ffffff;
}

.adm-pager span {
    background: #8b8b8b;
    color: white;
    border-color: #8b8b8b;
}

.adm-pager a:hover {
    background: #dedede;
}
