@font-face {
    font-family: "droid";
    src: url("../fonts/Cairo-Regular.ttf");
    font-weight: 500;
  }
body{
    direction: rtl;
    font-family: "droid";
}
:root{
    --color:#602BF8;
    --bluelight:#DBE8F4;
}
body{
    background: var(--bluelight);
}
ul{
    list-style: none;
    margin: 0;
    padding: 0;
}
a{
    text-decoration: none;
}
td {

    vertical-align: middle;  /* Vertical center */
}
h1,h2,h3,h4,h5,p,a{
    margin: 0;
}
body > .container{
    display: flex;
    min-height: 90vh;
    gap: 30px;
    margin-top: 5vh;
    align-items: flex-start;
    
}
aside{
    width: 20%;
    display: flex;
    flex-direction: column;
    gap: 10px;
    height: 100vh;
}

input[type="text"]::placeholder {
    opacity: 0.5 !important;
  }
  
aside section{
    background: #fff;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, .2);
    border-radius: 15px;
    padding: 10px;
}
aside section{
    position: relative;
}
aside section::before{
    content: "";
    position: absolute;
    left: -7px;
    width: 7px;
    height: 80%;
    background: var(--color);
    border-top-left-radius: 5px;
    border-bottom-left-radius: 5px;
    top: 10%;
}
aside .aside-top{
    min-height: 20%;
}
aside .aside-top .time{
    height: 50px;
    display: flex;
    align-items: center;
    gap: 5px;
    justify-content: center;
}
aside .aside-top .time i{
    font-size: 24px;
}
aside .aside-top .time p{
    text-align: center;
    font-size: 24px;
}
aside .aside-top button{
    display: block;
    width: 80%;
    margin: auto;
    border-radius: 30px;
    background: var(--color);
}
aside .aside-top button a{
    color: #fff;
}
aside .aside-bottom{
    min-height: 64%;
}
.user{
    display: flex;
    gap: 5px;
    margin-bottom: 5px;
    margin-top: 15px;
    align-items: center;
    flex-direction: column;
}
.user img{
    width: 50px;
    height: 50px;
    display: block;
}
.user h4{
    font-size: 14px;
}
 
aside nav > ul{
    overflow-y: scroll;
    overflow-x: visible;
    height: 95%;
    position: absolute;
    left: 0;
    right: 5px;
    padding-left: 10px;
}
aside nav ul li a{
    position: relative;
    border-bottom: 3px solid #eee;
    display: block;
    width: 100%;
    font-size: 1rem;
    transition: 0.5s;
    height: 40px;

}
aside nav ul li a:hover{
    margin-left: 10px;
    transition: 0.5s;
    color: #602bf8;
}
aside nav ul li a i{
    margin-right: 15px;
}
aside nav ul li{
    display: flex;
    align-items: center;
}
aside nav ul li{
    position: relative; 
}
aside nav ul li ul{
    padding-left: 20px;
}
.submenu-item{
    display: block
}
/* aside nav ul li.active::before{
    content: "";
    position: absolute;
    left: -10px;
    width: 40px;
    height: 40px;
    background: var(--color);
    border-top-right-radius: 30px;
    border-bottom-right-radius: 30px;
    top:0;
    z-index: 0;
} */
/* aside nav ul li.active a{
    border-bottom: none;
}
aside nav ul li.active a i{
    color: #fff;
} */



.arrow-icon {
    transition: transform 0.3s ease;
}

.arrow-icon.rotate {
    transform: rotate(90deg);
}
main{
    width: 80%;
    min-height: 90vh;
}
main{
    background: #fff;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, .2);
    border-radius: 15px;
}
header{
    display: none;
}
.table-head{
    display: flex;
    justify-content: space-between;
    height: 10vh;
    align-items: center;
    padding: 5px;
    padding-right: 20px;
}
.table-head .logo{
    display: flex;
    justify-content: space-between;
    gap: 5px;
    margin-left: 0px;
}
.table-head .logo i{
    font-size: 24px;
}
.content-wrapper{
    display: flex;
    width: 100%;
    padding-top: 30px;
}
.content-wrapper .vertical-nav{
    width: 50px;
    min-width: 50px;
    position: relative;
    left: -25px;
    right: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-top: 70px;
}
.content-wrapper .vertical-nav ul{
    background: var(--color);
    display: flex;
    flex-direction: column;
    gap: 5px;
    border-radius: 30px;
    width: 100%;
    padding: 30px 0;
    justify-content: center;
    align-items: center;
}
.content-wrapper .vertical-nav ul a{
    height: 30px;
    display: flex;
    align-items: center;

}
.content-wrapper .vertical-nav ul a i
{
    color: #fff;
    font-size: 20px;
    transition: 0.3s;
}

.content-wrapper .vertical-nav ul a span
{
    color: #fff;
    font-size: 14px;
    transition: 0.3s;
    font-weight: 700;
    font-family:Arial, Helvetica, sans-serif
}
.content-wrapper .vertical-nav ul a i:hover
{
    transition: 0.3s;
    color: aqua;
    text-shadow:0px 0px 20px aqua;
    font-size: 15px;
}

.content-wrapper .vertical-nav ul a span:hover
{
    transition: 0.3s;
    color: aqua;
    text-shadow:0px 0px 20px aqua;
    font-size: 10px;
}
.db-page{
    padding-top: 20px;  
    position: relative;
    left: -50px;
    padding-left: 50px;

}
.floatright{
    float: right;
}
.content{
    width: 100%;
    padding-top: 20px;
    height: 77vh;
}
.static{
    width: 100%;
    height: 160px;
    display: flex;
    flex-direction: column;
    border-radius: 10px;
    justify-content: flex-start;
    align-items: center;
    position: relative;
    z-index: 1;
    text-align: center;
}
.static p{
    font-weight: bold;
    margin-top: 10px;
    color: var(--color);
}
.add-new-btn-text{
    display: none;
}
.static span{
    display: flex;
    text-align: center;
    position: relative;
    justify-content: center;
    align-items: center;
    margin-top: 10px;
}
.static .border{
    position: absolute;
    background: var(--color);
    bottom: -3px;
    height: 6px;
    width: 80%;
    left: 10%;
    z-index: 1;
    border-radius: 5px;
}
/* .static .border::before{
    content: "";
    position: absolute;
    width: 100%;
    height: 6px;
    background:var(--bluelight);
    z-index: -1;
} */
.static span::before{
    content: "";
    position: absolute;
    width: 100%;
    height: 1px;
    border-radius: 120px;
    background: #ddd;
    z-index: -1;
}
.static span::after{
    content: "";
    position: absolute;
    width: 30px;
    height:30px;
    background: #fff;
    top: 0px;
    z-index: -1;
}
.static .circle{
    background: var(--bluelight);
    width: 90px;
    height: 90px;
    border-radius: 90px;
    display: flex;
    justify-content: center;
    align-items: center;
}
.static .static-inner{
    position: relative;
    z-index: 3;
    top: -20px;
}
.static::before{
    content: "";
    position: absolute;
    width: 112px;
    height: 110px;
    border-radius: 112px;
    background: #fff;
    border: 8px solid var(--color);
    top: -35px;
    z-index: -1;
}
.static::after{
    content: "";
    display: block;
    background: #fff;
    box-shadow: 0px 0px 10px #0000002a;
    width: 100%;
    height: 160px;
    border: 1px solid #ddd;
    border-radius: 10px;
    position: absolute;
    z-index: 0;
}
.halfcircle{
    width: 100px;
    height: 100px;
    border-radius: 100px;
    background: var(--color);
    position: absolute;
    top: -10px;
    z-index: 0;
}
.static i{
    font-size: 50px;
    color: var(--color);
}
.table-responsive{
    padding-right: 20px;
}
.table-number{
    width: 100px;
}
.table-actions{
    width: 80px;
    text-align: center;
}
.actions i{
    cursor: pointer;
}
.table head{
    border: none;
}

.table .actions button{
    color:var(--color);
    border: none;
}
table th{
    font-size: 0.8rem;
}
.page-title{
    display: flex;
    justify-content: space-between;
}
.home-content{
    padding-top: 50px;
    height: 100%;
    position: relative;
}
.home-content img{
    position: absolute;
    bottom: 0;
    left: auto;
    max-width: 100%;
    right: 10px;
}
.add-new-btn{
    font-size: 45px;
    color: #602bf8;
    cursor: pointer;
    margin-right: 10px;
    transition: 0.5s;
}
.add-new-btn:hover{
    transform: rotate(90deg);
    transition: 0.5s;
}
.pagination{
    margin-right: 20px;
}
.page-item.active .page-link {
    background-color: var(--color);
    border-color: var(--color);
}
.page-item .page-link {
    color: var(--color);
}
.sort{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
   
}
.sort i{
    cursor: pointer;
    height: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px !important;


}
.sort i.active{
color: #bbbbbb;
}
.sort i:hover{
    color: var(--color);
}
.sort i::before,.sort i::after{
    line-height: 0.5;
}
.search{
    width: 50%;
}
.search-field{
    border-radius: 30px;
    background: #f7f7f7;
}
.dash-inner-page{
    padding: 30px;
    width: 100%;
}
label{
    margin: 10px 0;
}
.form-control-title{
    background: #d5c8f7;
    display: block;
    padding: 10px;
}
.btn-primary{
    background-color: var(--color);
    border-color: var(--color);
}
.btn-close-custom {
    padding: 0;
    background: none;
    border: none;
    font-size: 20px;
    font-weight: bold;
    color: #155724;  /* Dark green color matching success alert */
    opacity: 0.7;
    cursor: pointer;
    transition: opacity 0.2s;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 10px;
}

.btn-close-custom:hover {
    opacity: 1;
}

.btn-close-custom:focus {
    outline: none;
    opacity: 1;
}
.td-details{
    max-height: 100px;
    overflow: auto;
}

input::placeholder, textarea::placeholder {
    color: rgba(0, 0, 0, 0.5) !important;
}
input.form-control, textarea {
    color: rgba(0, 0, 0, 0.5) !important;
}

/*-- trix --*/

trix-toolbar .trix-button-group{
    margin-bottom: 0 !important;
    border-bottom: none !important;
}
trix-toolbar .trix-button-group:not(:first-child) {
    margin-left: 0 !important;
}
.login-container{
    width: 50%;
    margin: auto 25%;
    padding: 30px;
    background: #fff;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, .2);
    border-radius: 15px;
    position: relative;
}
.login-user{
    width: 100px;
    height: 100px;
    font-size: 50px;
    display: flex;
    margin: 18px auto;
    background: #ffedd3;
    color: #F44336;
    border-radius: 100%;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: -71px;
    left: calc(50% - 50px);
    border: 8px solid #dbe8f4;
}
 ul{
  list-style: inside;
}
.content-wrapper .vertical-nav ul{
    list-style: none !important;
}
/* صندوق الشارت */
.charts{
    display: none;
}
.chart-box {
    background: #ffffff;
    border-radius: 20px;
    padding: 25px 30px;
    box-shadow: 0 12px 30px rgba(108, 99, 255, 0.12);
    position: relative;
    overflow: hidden;
}

/* تأثير زخرفي علوي */
.chart-box::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 6px;
    background: linear-gradient(90deg, #6c63ff, #7b8cff);
}

/* عنوان الشارت */
.chart-title {
    color: #5a54e8;
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 20px;
    text-align: right;
}

/* Canvas نفسه */
.chart-box canvas {
    width: 100% !important;
    max-height: 320px;
}

/* تحسين العرض على الشاشات الصغيرة */
@media (max-width: 768px) {
    .chart-box {
        padding: 20px;
    }
    .chart-title {
        font-size: 15px;
    }
}
