*{
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}
:root{
    --border : rgba(142, 142, 142, 0.416);
    --font : 'Cairo', sans-serif;
    --font2: "Tajawal", sans-serif;
    --color :  rgb(78, 38, 255);
    --back : white;
}
body{
    font-family: "Tajawal", sans-serif;
    background-color: #eeeeee;
}
.page{
    display: flex;
    flex-direction: row-reverse;
}
.mune{
    background-color: white;
    width: 17%;
    height: 350px;
    border: 2px solid var(--border);
    border-bottom: none;
}
.title{
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    height: 100px;
    padding-left: 30px;
    border-bottom: 2px solid var(--border);
}
.title h3{
    color: var(--color);
    font-size: 16px;
}
.sidebar-menu{
    padding-left: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
    margin-right: 10px;
}
.sidebar-menu li{
    list-style-type: none;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 12px;
    padding: 5px 12px;
    border-radius: 10px;
    cursor: pointer;
    transition: 0.6s background-color ;
}
.sidebar-menu li:hover{
    color: white;
    background-color: var(--color);
}
.log_out{
    margin-top: 60px;
    padding: 15px;
    border-top: 2px solid var(--border);
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-start;

}
.log_out ul li{
    list-style: none;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex-direction: row-reverse;
    gap: 12px;
    padding: 5px 10px;
    cursor: pointer;
}
.log_out ul li:nth-child(2){
    color: red;
}
.content{
    width: 83%
}
.serch {
    background-color: var(--back);
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.serch .continer{
    width: 100%;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-right: 20px;
}
.serch input{
    font-family: var(--font);
    width: 30%;
    border: none;
    background-color: #eeeeee;
    border-radius: 5px;
    padding: 6px 10px;
    font-size: 12px;
}
.serch .continer button{
    background-color: var(--color);
    font-family: var(--font);
    color: var(--back);
    border: none;
    width: 50px;
    border-radius: 5px;
    cursor: pointer;
}
/*الصفحه الرئيسيه*/
.home_page{
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.header_home{
    width: calc(100% - 50px);
    display: flex;
    justify-content: space-evenly;
    flex-wrap: wrap;
    margin: 30px;
    row-gap: 10px; 
}
.card,
.peodect_card{
    border: 2px solid var(--border);
    height: 120px;
    width: 48%;
    display: flex;
    align-items: center;
    background-color: var(--back);
    border-radius: 10px;
    gap: 20px;
}
.Balance{
    flex-direction: column;
    gap: 10px;
    background: linear-gradient(to left, rgba(49, 169, 250, 0.705), rgb(94, 52, 209));
    color: white;
    width: 97%;
    height: 300px;
    padding-top: 20px;
    padding-left: 15px;
    padding-right: 15px;
    border: none;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
}
.balance_paypal{
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}
.balance_paypal span{
    display: flex;
    flex-direction: row-reverse;
    gap: 10px;
    width: 100%;
    margin-top: 20px;
    margin-bottom: 20px;
}
.balance_paypal span input{
    font-family:  "Tajawal", sans-serif;
    padding: 5px;
    width: 44%;
    text-align: right;
    border-radius: 5px;
    height: 40px;
    border: 2px solid #eeeeee;
    outline: none;
}
.Balance div:nth-child(1){
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    width: 100%;
    padding: 15px 30px;
    justify-content: space-between;
}
.Balance div:nth-child(1) span:nth-child(1) h3{
    text-align: center;
    font-size: 40px;
}
.Balance div:nth-child(1) span:nth-child(1) p{
    text-align: center;
    font-size: 20px;
    color: #eeeeee;
}
.Balance_btn{
    width: 100%;
    display: flex;
    align-items: end;
    justify-content: right;   
}

.Balance_btn button{
    width: 50%;
    font-family: var(--font2);
    padding: 10px;
    color: var(--color);
    background-color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
}
.Balance_btn button:hover{
    background-color: red;
    color: white;
}
.fa-wallet{
    padding: 12px;
    border-radius: 50%;
    background: rgba(89, 89, 255, 0.712) 
}
.peodect_card{
    flex-direction: column;
    height: 240px;
    padding-top: 30px;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    transform-style: preserve-3d;
}
.peodect_card div{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 10px;
}
.peodect_card div:nth-child(1) i{
     font-size: 30px;
}
.peodect_card div:nth-child(2) p{
    color: #9b9b9b;
}
.peodect_card div button{
    font-family: var(--font2);
    padding: 5px 50px;
    background-color: red;
    border: none;
    color: white;
    border-radius: 5px;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    transition: all 0.3s;
}
.peodect_card div button:hover{
    background-color: var(--color);
}
.peodect_card:hover{
  transform:  rotateY(5deg);
  box-shadow: 0 20px 40px rgba(0,0,0,0.7);    

}
.header_icon{
    padding: 15px 15px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.header_home div i{
    font-size: 20px;
}

.sales{
    background-color: var(--back);
    width: 92%;
    border: 2px solid var(--border);
    padding: 10px 15px;
    border-radius: 10px;
    margin-bottom: 10px;
}
.title_sale{
    display: flex;
    align-items: center;
    gap: 20px;
    justify-content: flex-start;
    flex-direction: row-reverse;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border);
}
.title_sale i{
    color: var(--color);
}
.table-container {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    overflow: hidden;
    width: 100%;
    margin: auto;
    margin-top: 10px;
}

table {
    width: 100%;
    border-collapse: collapse;
    text-align: center;
}

thead {
    background-color: #4f46e5;
    color: #fff;
}

thead th {
    padding: 15px;
    font-size: 15px;
}

tbody td {
    padding: 15px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
    color: #333;
}

tbody tr:hover {
    background-color: #f9f9ff;
}
.status {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
}
.status.success {
    background-color: #dcfce7;
    color: #15803d;
}

.status.pending {
    background-color: #fef9c3;
    color: #a16207;
}

.status.failed {
    background-color: #fee2e2;
    color: #b91c1c;
}
.profit {
    color: #16a34a;
    font-weight: bold;
}

.price {
    color: #2563eb;
    font-weight: bold;
}
.not_active{
    display: none;
}
.section{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}
.add_section{
    display: flex;
    align-items: center;
    width: 100%;
    justify-content: space-between;
    flex-direction: row-reverse;
    padding: 15px 40px;
    margin-top: 20px;
}
.add_btn{
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font2);
    width: 150px;
    padding: 10px;
    gap: 10px;
    color: white;
    border: none;
    background-color: var(--color);
    border-radius: 5px;
    font-weight: 600;
}
.sections{
    background-color: var(--back);
    width: 97%;
    padding: 20px;
    border-radius: 10px;
    border: 2px solid var(--border);
}
.section_serch{
    width: 100%;
}
.section_serch input{
    width: 95%;
    padding: 5px;
    border: none;
    background-color: #eeeeee;
    height: 30px;
    border-radius: 5px;
    font-family: var(--font2);
    text-align: right;
}
.section_serch button{
    width: 4%;
    height: 30px;
    font-family: var(--font2);
    background-color: var(--color);
    color: white;
    border: none;
    border-radius: 5px;
}
.ul {
    width: 400px;
    background-color: #eeeeee;
    border-radius: 20px;
    height: 44px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 10px;
}
.ul ul{
    display: flex;
    list-style-type: none;
    gap: 10px;
}
.ul ul li{
    padding: 5px 15px;
    border-radius: 20px;
}
.ul ul li:hover{
    cursor: pointer;
}
.li_active{
     background-color: white;
}
.vendor{
    display: flex;
    flex-direction: row;
    gap: 10px;
}
.vendor_img{
    width: 40px;
    height: 40px;
}
.vendor_img img{
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid var(--border);
}
.active{
    background-color: var(--color);
    color: white;
}
.setting{
    display: flex;
    flex-direction: column;
    padding: 20px;
}
.setting_title{
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    margin-bottom: 20px;
}
.setting_form{
    display: flex;
    flex-direction: row-reverse;
    gap: 50px;
    width: 100%;
}
.data{
    width: 70%;
    background-color: white;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 30px;
    border-radius: 10px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);

}
.poto{
   display: flex;
   flex-direction: row-reverse;
   border-bottom: 2px solid #eeeeee;
   width: 100%;
   padding-bottom: 20px;
}
.poto span:nth-child(2){
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.poto input{
    font-family: var(--font2);
}

.poto span img{
    width: 100px;
    height: 80px;
    border-radius: 50%;
    border: none;
}
.name,
.email,
.phone,
.adress{
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 15px;
    text-align: right;
    
}
.data input,
.data textarea,
.password input{
    width: 100%;
    font-family: var(--font2);
    text-align: right;
    padding: 5px;
    border: 2px solid #a3a3a34f;
    height: 40px;
    border-radius: 10px;
}

.data textarea {
    height: 100px;
}
.button button,
.password button{
    font-family: var(--font);
    padding: 2px 20px;
    color: white;
    border: none;
    background-color: var(--color);
    border-radius: 5px;
}
.password{
    background-color: white;
    width: 30%;
    height: 420px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    align-items: end;
} 
.password span:nth-child(1){
    text-align: right;
}
.password div{
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-align: right;
}
.send_pass,
.btn_send{
    cursor: pointer;
}
/* =========================================================
    RESPONSIVE DESIGN
========================================================= */

/* الشاشات المتوسطة (تابلت 992px) */
@media (max-width: 992px) {

    .mune {
        width: 25%;
    }

    .content {
        width: 75%;
    }

    .header_home .card,
    .header_home .peodect_card {
        width: 47%;
    }

    .setting_form {
        flex-direction: column;
        gap: 20px;
    }

    .data,
    .password {
        width: 100%;
    }
}

/* الشاشات الصغيرة (موبايل كبير – أقل من 768px) */
@media (max-width: 768px) {
    .ul ul li {
    padding: 5px 10px;
    border-radius: 20px;
}
.add_section {
    flex-direction: column;
    gap: 20px;
}

    .page {
        flex-direction: column;
    }

    .mune {
        width: 100%;
        height: auto;
        border-bottom: 2px solid var(--border);
    }

    .content {
        width: 100%;
    }

    .sidebar-menu {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 5px;
    }

    .sidebar-menu li {
        font-size: 12px;
        padding: 5px 8px;
    }

    .header_home .card,
    .header_home .peodect_card {
        width: 100%;
    }

    .serch .continer {
        justify-content: center;
        margin-right: 0;
    }

    .serch input {
        width: 70%;
    }

    .section_serch input {
        width: 80%;
    }

    .section_serch button {
        width: 18%;
    }
}

/* الشاشات الصغيرة جداً (أقل من 480px) */
@media (max-width: 480px) {
    .ul ul li {
    padding: 5px 10px;
    border-radius: 20px;
}
.add_section {
    flex-direction: column;
    gap: 20px;
}
    .title {
        padding-left: 10px;
    }

    .sidebar-menu li {
        font-size: 11px;
        gap: 6px;
    }

    .header_home {
        margin: 10px;
    }

    .peodect_card {
        height: auto;
        padding: 20px 10px;
    }

    table thead {
        font-size: 10px;
    }

    table tbody td {
        font-size: 11px;
        padding: 8px;
    }

    .ul {
        width: 100%;
    }

    .ul ul {
        flex-wrap: wrap;
        justify-content: center;
    }
}


