﻿@import url('open-iconic/font/css/open-iconic-bootstrap.min.css');

/* الخط العام */
html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background-color: beige;
}

/* الروابط والأزرار */
a, .btn-link {
    color: #0071c1;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.btn-warning {
    background-color: #ffc107;
    color: black;
    font-weight: bold;
    border: none;
}

/* التركيز */
.btn:focus, .btn:active:focus, .btn-link.nav-link:focus,
.form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

/* التحقق من الصحة */
.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
    font-size: 0.9rem;
    margin-top: 5px;
}

/* محتوى الصفحة */
.content {
    padding-top: 1.1rem;
}

.page-title {
    font-weight: bold;
    color: black;
    font-size: 1.25rem;
}

/* خطأ Blazor */
#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
    color: black;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

.blazor-error-boundary {
    background: #b32121;
    color: white;
    padding: 1rem 1rem 1rem 3.7rem;
}

/* جدول مخصص بلون برتقالي */
.orange-table {
    border-collapse: collapse;
}

    .orange-table td,
    .orange-table th {
        border: 2px solid orange !important;
    }

/* رأس الجدول بلون برتقالي */
.orange-header {
    background-color: orange;
    color: white;
    font-weight: bold;
    font-size: 1.05rem;
}

/* تنسيق خاص للعناوين */
.label-custom {
    background-color: gold !important;
    font-size: 18pt !important;
    height: 50px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 8px !important;
    font-weight: bold !important;
    padding: 0 15px !important;
    white-space: nowrap !important;
}

/* شريط التنقل */
.nav-scrollable {
    background-color: cadetblue;
}

    .nav-scrollable .nav-link {
        color: black !important;
        font-weight: bold;
    }

/* رأس الصفحة */
.top-row {
    background-color: yellow;
    border-bottom: 1px solid #ccc;
}

/* صناديق الإحصاء */
.stats-box {
    width: 150px;
    background-color: lightyellow;
    color: black;
    border-radius: 50px;
    padding: 15px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    border: 2px solid #2e7d32;
    transition: transform 0.2s ease;
}

    .stats-box:hover {
        transform: scale(1.05);
    }

    .stats-box h2 {
        font-size: 28px;
        margin: 0;
    }

    .stats-box p {
        font-size: 14px;
        margin-top: 8px;
    }

.stats-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 15px;
    padding: 20px;
    direction: rtl;
}

/* تنسيق القوائم المنسدلة */
.rz-dropdown-item {
    direction: rtl !important;
    text-align: right !important;
    font-weight: 500;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.rz-dropdown {
    width: 50px;
}

.small-dropdown {
    width: 250px !important;
}

/* تنسيق جدول Radzen */
.radzen-grid-custom .rz-cell {
    text-align: center;
    font-size: 0.95rem;
    padding: 6px 10px;
}

.radzen-grid-custom .rz-header {
    background-color: #f7f7f7;
    font-weight: bold;
    font-size: 1rem;
    text-align: center;
}

.even-row {
    background-color: #e0f7e9 !important;
}

.odd-row {
    background-color: #c2ecd4 !important;
}

.rz-datatable .even-row td,
.rz-datatable .odd-row td {
    border-bottom: 2px solid #a4d4ba;
    border-right: 2px solid #a4d4ba;
    padding: 8px;
}

    .rz-datatable .even-row td:last-child,
    .rz-datatable .odd-row td:last-child {
        border-right: none;
    }

.rz-datatable {
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid #a4d4ba;
    margin: 16px 0;
}

    .rz-datatable thead tr {
        background-color: #e0f2f1;
        border-bottom: 2px solid #009688;
        height: 55px;
    }

    .rz-datatable thead th {
        border: 1px solid #009688;
        padding: 12px 8px;
        font-size: 16px;
        font-weight: bold;
        vertical-align: middle;
        text-align: center;
        color: #004d40;
        white-space: nowrap;
    }

    .rz-datatable thead {
        position: sticky;
        top: 0;
        z-index: 2;
        background-color: #f4f4f4;
        box-shadow: 0 2px 2px rgba(0,0,0,0.1);
    }

    .rz-datatable tbody td {
        padding: 10px;
        height: 45px;
        vertical-align: middle;
    }

        .rz-datatable tbody td div {
            position: relative;
            z-index: 1;
        }

/* جدول قابل للتمرير */
.table-scroll {
    max-height: 500px;
    overflow-y: auto;
}

.sticky-header th {
    position: sticky;
    top: 0;
    background-color: white;
    z-index: 2;
    box-shadow: 0 2px 2px rgba(0,0,0,0.05);
}
.table-header th {
    background-color: green;
    color: white;
    font-weight: bold;
    font-size: 1.1rem;
    text-align: center;
    border: 2px solid white;
    padding: 12px;
}

.green-header th {
    background-color: green;
    color: white;
    font-weight: bold;
    font-size: 1.1rem;
    text-align: center;
    padding: 10px;
    border: 2px solid orange !important; /* الخط البرتقالي */
}

.green-table td {
    border: 2px solid orange !important;
    text-align: center;
    vertical-align: middle;
    padding: 10px;
}

.green-table {
    border-collapse: collapse;
}

/* تدوير السهم عند الفتح */
.nav-link[aria-expanded="true"] .toggle-icon i {
    transform: rotate(180deg);
    transition: transform 0.3s ease;
}

.nav-link .toggle-icon i {
    transition: transform 0.3s ease;
}

.orange-border-left {
    border-left: 5px solid orange;
}

@media (max-width: 768px) {
    .table td, .table th {
        font-size: 14px;
        padding: 6px;
    }
}