﻿ 
/* التأكد من تنسيق الحاوية */
.container {
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
    margin-right: auto;
    margin-left: auto;
}

@media (min-width:576px) {
    .container {
        max-width: 540px;
    }
}

@media (min-width:768px) {
    .container {
        max-width: 720px;
    }
}

@media (min-width:992px) {
    .container {
        max-width: 960px;
    }
}

@media (min-width:1200px) {
    .container {
        max-width: 1140px;
    }
}

.container-fluid {
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
    margin-right: auto;
    margin-left: auto;
}

/* تخصيص الأزرار */
.btn {
    border-radius: 10px;
    padding: 10px 20px;
}

.btn-info {
    background-color: #795548;
    color: #fff;
}

    .btn-info:hover {
        background-color: #5d4037;
    }

.btn-info-save {
    background-color: #647CA2;
}
.btn-info-delete {
    background-color: #EE5D50;
}
.btn-info-clear {
    background-color: #A3AED0;
}
.subservice-button {
    /*SubServic button color*/
    /*Master color*/
    background-color: #647CA2;

    /*Vibe Color*/
    /*background-color: #a10000;*/
}
.subservice-button:hover {
   /* SubServic button color*/
    /*Master color*/
     background-color: #5b6f96;
     box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);

    }

.home-button {
    /*SubServic button color*/
    /*Master color*/
    background-color: #647CA2;
    /*Vibe Color*/
   /* background-color: #a10000;*/
}

.home-button:hover {
    background-color: #5b6f96; 
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2); 
}

/* تنسيق الحقول */
.form-select,
.form-control {
    height: 40px;
    border-radius: 10px;
    margin-bottom: 10px;
    font-size: 16px;
}

/* تنسيق الترويسة */
.page-header {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 20px;
    color: #795548;
}

.swal2-popup-custom {
    width: 100% !important;
    max-width: 700px;
    height: 300px;
    padding: 30px;
}

.swal2-title-custom {
    font-size: 2.5rem;
}

.swal2-text-custom {
    font-size: 1.5rem;
}

.swal2-button-custom {
    font-size: 1.5rem;
    padding: 15px 25px;
}
.Defrow {
    padding-top: 10px;
    padding-left:20px;
}
.fs-4{
    text-align:right;
}
.form-control{
    text-align:right;
}
/* عندما تكون الصفحة RTL (عربية) */
[dir="rtl"] .form-control {
    text-align: right;
}

/* عندما تكون الصفحة LTR (إنجليزية) */
[dir="ltr"] .form-control {
    text-align: left;
}
.Ctitle {
    font-size: 32px;
    text-align: right;
    font-weight: 700;
    color: #647CA2;
    padding-right: 4rem;
}

.C2title {
    font-size: 14px;
    text-align: right;
    font-weight: 700;
    color: #A0AEC0;
    padding-right: 4rem;
}


/* ستايل القائمة الرئيسية */
.center-container {
    display: flex;
    flex-wrap: wrap; /* للسماح بلفّ العناصر إذا لم تتسع */
    justify-content: center;
    gap: 20px;
    padding: 20px;
}

.blockMn {
    flex: 1 1 calc(50% - 20px); /* عرض بنسبة 50% للشاشات الأكبر */
    background-color: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 15px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-width: 300px; /* عرض أدنى */
    height: auto;
}

.image-button-container1 {
    display: flex;
    flex-wrap: wrap; /* للسماح بلف الأزرار */
    justify-content: center;
    gap: 20px; /* المسافة بين الأزرار */
    padding-top: 20px;
}

/* ستايل الإضافات المقترحة */
.blockSug {
    background-color: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 15px;
    text-align: center;
    display: flex;
    flex-wrap: wrap; /* السماح بلفّ العناصر */
    justify-content: center;
    gap: 20px; /* المسافة بين المربعات */
    width: 400px; /* عرض المربع الخاص بالإضافات المقترحة */
    height: auto; /* ارتفاع تلقائي بناءً على المحتوى */
}

.button-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
}

.button-group1 {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
}

.image-button-container {
    display: flex;
    flex-wrap: wrap; /* للسماح بلف الأزرار */
    justify-content: center;
    gap: 10px; /* تقليل المسافات بين الأزرار */
    padding-top: 10px;
}


/* Media Queries */
@media (max-width: 768px) {
    .blockMn,
    .blockSug {
        flex: 1 1 100%; /* عرض 100% للشاشات الأصغر */
    }

    .image-button-container,
    .image-button-container1 {
        gap: 10px;
    }
}

@media (max-width: 576px) {
    .block-title,
    .block-title1 {
        font-size: 1.2rem;
    }
}

.single-button {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between; /* توزيع المسافات بين الأيقونة والنص */
    width: 300px;
    height: 190px;
    /*background-color: #647CA2; */
    border: none;
    border-radius: 15px;
    cursor: pointer;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    color: #fff;
    padding: 20px;
    position: relative;
}

    /*.single-button:hover {
    background-color: #5b6f96; 
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2); 
}*/

    /* النص يكون في الزاوية العلوية اليمنى */
    .single-button span {
        font-size: 18px;
        font-weight: bold;
        text-align: right;
        position: absolute;
        top: 27px;
        right: 24px;
    }

    /* الأيقونة تكون في الزاوية السفلية اليسرى */
    .single-button img {
        width: 130px; /* ضبط حجم الأيقونة */
        height: 130px;
        position: absolute;
        bottom: 15px;
        left: 20px;
    }

.styled-button {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between; /* توزيع المسافات بين النص والصورة */
    width: 300px;
    height: 190px;
    background-color: #647CA2;
    border: none;
    border-radius: 15px;
    cursor: pointer;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    color: #fff;
    padding: 20px;
    position: relative;
}

    .styled-button:hover {
        background-color: #5b6f96;
        box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
    }

    /* النص يكون في الزاوية العلوية اليمنى */
    .styled-button .button-label {
        font-size: 18px;
        font-weight: bold;
        text-align: right;
        position: absolute;
        top: 15px;
        right: 20px;
    }

    /* الأيقونة تكون في الزاوية السفلية اليسرى */
    .styled-button img {
        width: 70px; /* ضبط حجم الأيقونة */
        height: 70px;
        position: absolute;
        bottom: 15px;
        left: 20px;
    }

/* ✅ ضبط زر الـ ImageButton داخل الـ div */
.custom-button {
    position: relative;
    width: 150px; /* حجم الزر */
    height: 150px;
    background-image: url("../Image/backgroundHome.png");
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: flex-end;
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
}

/* ✅ ضبط النص ليبقى في أعلى الزر لكن يكون في المنتصف */
.button-text {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 16px;
    font-weight: bold;
    color: #4D535C96;
    text-align: center;
    width: max-content;
    white-space: nowrap;
}


/* ✅ ضبط الـ ImageButton ليكون اللوجو أسفل */
.logo-icon {
    width: 80px;
    height: 80px;
    align-self: center;
    background: none; /* إزالة أي خلفية تلقائية */
    border: none;
}

.grid-container {
    display: flex;
    justify-content: flex-start;
    gap: 10px;
    padding: 20px;
    margin-left: 0;
    padding-top: 43px;
}

.grid-item {
    width: 150px;
    height: 110px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

    .grid-item:hover {
        transform: scale(1.05);
    }

.panel-container {
    padding-bottom: 0px;
}

.container-wrapper {
    display: flex;
    flex-direction: column;
}

.form img {
    display: block;
    width: 150px;
    height: 150px;
    background-color: #647CA2;
    border: none;
    border-radius: 15px;
    cursor: pointer;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}


    .form img:hover {
        background-color: #5b6f96;
        box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
    }

.form-button {
    display: block;
    width: 150px;
    height: 150px;
    /* background-color: #647CA2;*/
    color: #fff;
    border: none;
    border-radius: 15px;
    text-align: center;
    line-height: 150px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}


/*.form-button:hover {
    background-color: #5b6f96; 
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2); 
}*/

.form-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center; /* يجعل الأزرار في منتصف الصفحة */

    margin: 0 auto; /* يضمن وجود مسافة من اليمين واليسار */
    padding: 40px;
}


    .form-container .form-button {
        flex: 1 1 calc(20% - 10px);
        max-width: calc(20% - 10px);
        text-align: center;
        height: 150px;
        line-height: 150px;
        /*background-color: #647CA2; */
        color: #fff;
        border: none;
        border-radius: 15px;
        cursor: pointer;
        transition: background-color 0.3s ease, box-shadow 0.3s ease;
    }


/*.form-container .form-button:hover {
    background-color: #5b6f96; 
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2); 
}*/


@media (max-width: 1200px) {
    .form-container .form-button {
        flex: 1 1 calc(25% - 10px); /* 4 أزرار في الصف */
        max-width: calc(25% - 10px);
    }
}

@media (max-width: 992px) {
    .form-container .form-button {
        flex: 1 1 calc(33.33% - 10px); /* 3 أزرار في الصف */
        max-width: calc(33.33% - 10px);
    }
}

@media (max-width: 768px) {
    .form-container .form-button {
        flex: 1 1 calc(50% - 10px); /* 2 أزرار في الصف */
        max-width: calc(50% - 10px);
        height: 120px;
        line-height: 120px;
    }
}

@media (max-width: 576px) {
    .form-container .form-button {
        flex: 1 1 100%; /* زر واحد في الصف */
        max-width: 100%;
        height: 100px;
        line-height: 100px;
    }
}

