﻿td, th {
    text-align: center;
    vertical-align: middle;
}


/*Loader Start */

/* خلفية للـ section */
.custom-section {
    background-color: #f8f9fa;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.list-group-item {
    border-radius: 5px;
    margin-bottom: 5px;
    transition: background-color 0.3s ease;
}

    .list-group-item:hover {
        background-color: #e9ecef;
    }

.post-details h5 {
    font-size: 1.25rem;
    font-weight: bold;
    color: #343a40;
}

.post-details p {
    color: #495057;
}

.post-details span {
    font-size: 0.9rem;
    color: #6c757d;
}

.custom-tooltip .tooltip-inner {
    max-width: 300px; /* تحديد العرض */
    background: linear-gradient(135deg, #007bff, #6610f2); /* تدرج لوني أنيق */
    color: white;
    text-align: center;
    padding: 12px;
    font-size: 14px;
    border-radius: 10px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
}

.tooltip-header {
    font-weight: bold;
    font-size: 16px;
    margin-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    padding-bottom: 5px;
}

.tooltip-body {
    font-size: 14px;
    margin-bottom: 5px;
}

.tooltip-footer {
    font-size: 12px;
    font-style: italic;
    opacity: 0.8;
}

.afterLoader {
    display: none;
}

.pagePreloader {
    /*    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;*/
    width: 100%;
    height: 100%;
    z-index: 99999;
    background-color: var(--bs-white);
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    top: 0;
    left: 0;
}

.loader {
    width: 100px;
    height: 100px;
    border-radius: 100%;
    position: relative;
    margin: 0 auto;
}


#loader-6 {
    /*  top: 40px;
    left: -2.5px;*/
    display: flex;
    justify-content: center;
    align-items: center;
}

    #loader-6 span {
        display: inline-block;
        width: 5px;
        height: 20px;
        background-color: #198754;
        margin: 1px;
    }

        #loader-6 span:nth-child(1) {
            animation: grow 1s ease-in-out infinite;
        }

        #loader-6 span:nth-child(2) {
            animation: grow 1s ease-in-out 0.15s infinite;
        }

        #loader-6 span:nth-child(3) {
            animation: grow 1s ease-in-out 0.30s infinite;
        }

        #loader-6 span:nth-child(4) {
            animation: grow 1s ease-in-out 0.45s infinite;
        }

@keyframes grow {
    0%, 100% {
        -webkit-transform: scaleY(1);
        -ms-transform: scaleY(1);
        -o-transform: scaleY(1);
        transform: scaleY(1);
    }

    50% {
        -webkit-transform: scaleY(1.8);
        -ms-transform: scaleY(1.8);
        -o-transform: scaleY(1.8);
        transform: scaleY(1.8);
    }
}
/*Loader End */



/* Form Loader (Start) */

#loading-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    display: none;
    align-items: center;
    background-color: #000;
    z-index: 9999;
    opacity: 0.5;
}

.loading-icon {
    position: absolute;
    border-top: 2px solid #fff;
    border-right: 2px solid #fff;
    border-bottom: 2px solid #fff;
    border-left: 2px solid var(--primary-color);
    border-radius: 25px;
    width: 45px;
    height: 45px;
    margin: 0 auto;
    position: absolute;
    left: 50%;
    margin-left: -20px;
    top: 50%;
    margin-top: -20px;
    z-index: 9997;
    -webkit-animation: spin 1s linear infinite;
    -moz-animation: spin 1s linear infinite;
    animation: spin 1s linear infinite;
}

@-moz-keyframes spin {
    100% {
        -moz-transform: rotate(360deg);
    }
}

@-webkit-keyframes spin {
    100% {
        -webkit-transform: rotate(360deg);
    }
}

@keyframes spin {
    100% {
        -webkit-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}

/* Form Loader (End) */


/*  toast Start  */
.toast-msg {
    position: absolute;
    top: 0;
    right: 46%;
    border-radius: 12px;
    background: #fff;
    padding: 20px 35px 20px 25px;
    box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    border-left: 6px solid #29594b;
    overflow: hidden;
    transform: translateY(-100%);
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.35);
    -webkit-transform: translateY(-100%);
    -moz-transform: translateY(-100%);
    -ms-transform: translateY(-100%);
    -o-transform: translateY(-100%);
    z-index: 99999;
}

    .toast-msg.active {
        top: 60px;
        left: auto;
        transform: translateY(-50%);
        -webkit-transform: translateY(-50%);
        -moz-transform: translateY(-50%);
        -ms-transform: translateY(-50%);
        -o-transform: translateY(-50%);
    }

    .toast-msg .toast-msg-content {
        display: flex;
        align-items: center;
    }

.toast-msg-content .check {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 35px;
    width: 35px;
    background-color: #29594b;
    color: #fff;
    font-size: 20px;
    border-radius: 50%;
}

.toast-msg-content .message {
    display: flex;
    flex-direction: column;
    margin: 0 20px;
}

.message .text {
    font-size: 20px;
    font-weight: 400;
    ;
    color: #666666;
}

    .message .text.text-1 {
        font-weight: 600;
        color: #333;
    }

.toast-msg .close {
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
    opacity: 0.7;
    width: 2rem;
    height: 2rem;
}

    .toast-msg .close:hover {
        opacity: 1;
    }

.toast-msg .progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    width: 100%;
    background: #ddd;
}

    .toast-msg .progress:before {
        content: '';
        position: absolute;
        bottom: 0;
        right: 0;
        height: 100%;
        width: 100%;
        background-color: #29594b;
    }

.progress.active:before {
    animation: progress 5s linear forwards;
}

@keyframes progress {
    100% {
        right: 100%;
    }
}



.toast-msg.active ~ button {
    pointer-events: none;
}

/* toast End  */


input[readonly] {
    background-color: #e9ecef00; /* Bootstrap's light grey background color */
    color: #495057; /* Default text color */
    cursor: not-allowed; /* Show a not-allowed cursor */
}





.Himg {
    width: 142px !important;
    filter: saturate(1) !important;
    DISPLAY: table-cell;
    vertical-align: middle;
    background-position: Center Center;
    height: 140px;
}

.fa-exclamation-triangle:before {
    content: "\f071";
    color: red !important;
}

.move {
    margin-top: 1%;
    margin-left: 15%;
    margin-right: 17%;
}

.mark-circle {
    display: inline-flex; /* لجعل العنصر مدمج */
    justify-content:center;
    align-items:center;
    width: 25px; /* عرض الدائرة */
    height: 18px; /* ارتفاع الدائرة */
    border-radius: 50%; /* لجعل الدائرة دائرية */
    font-size:15px;
    font-weight:bold;
    margin-left:5px;
}

.error-node {
    background-color: red; /* لون الدائرة الحمراء */
    color: white; /* لون النص داخل الدائرة */
}

.normal-node {
    background-color: green; /* لون الدائرة الخضراء */
    color: white; /* لون النص داخل الدائرة */
}

.mark-label {
    font-size: 12px; /* حجم النص للعلامة */
    color: #555; /* لون النص للعلامة */
}
.toast-msg {
    position: absolute;
    top: 0;
    right: 30%;
    border-radius: 12px;
    background: #fff;
    padding: 20px 35px 20px 25px;
    box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    border-left: 6px solid #29594b;
    overflow: hidden;
    transform: translateY(-100%);
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.35);
    -webkit-transform: translateY(-100%);
    -moz-transform: translateY(-100%);
    -ms-transform: translateY(-100%);
    -o-transform: translateY(-100%);
    z-index: 99999;
}

    .toast-msg.active {
        top: 60px;
        left: auto;
        transform: translateY(-50%);
        -webkit-transform: translateY(-50%);
        -moz-transform: translateY(-50%);
        -ms-transform: translateY(-50%);
        -o-transform: translateY(-50%);
        height: 8%;
    }

    .toast-msg .toast-msg-content {
        display: flex;
        align-items: center;
    }

.toast-msg-content .check {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 35px;
    width: 35px;
    background-color: #29594b;
    color: #fff;
    font-size: 20px;
    border-radius: 50%;
}

.toast-msg-content .message {
    display: flex;
    flex-direction: column;
    margin: 0 20px;
}

.message .text {
    font-size: 20px;
    font-weight: 400;
    color: #666666;
}

    .message .text.text-1 {
        font-weight: 600;
        color: #333;
    }

.toast-msg .close {
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
    opacity: 0.7;
    width: 2rem;
    height: 2rem;
}

    .toast-msg .close:hover {
        opacity: 1;
    }

.toast-msg .progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    width: 100%;
    background: #ddd;
}

    .toast-msg .progress:before {
        content: '';
        position: absolute;
        bottom: 0;
        right: 0;
        height: 100%;
        width: 100%;
        background-color: #29594b;
    }

.progress.active:before {
    animation: progress 5s linear forwards;
}

@keyframes progress {
    100% {
        right: 100%;
    }
}



.toast-msg.active ~ button {
    pointer-events: none;
}