/*-----------------------------------------------------------------------------------*/
/* FONTS
/*-----------------------------------------------------------------------------------*/
/* Google Font */
@import url('https://fonts.googleapis.com/css2?family=Almarai:wght@300;400;700;800&display=swap');

/*-----------------------------------------------------------------------------------*/
/* VARIABLES
/*-----------------------------------------------------------------------------------*/
:root {
    --primary: #1F5A86;
    --secondary: #A82454;
    --light-bg: #f0f4f7;
    --default: #333333;
}

/*-----------------------------------------------------------------------------------*/
/* RESET CSS 
/*-----------------------------------------------------------------------------------*/
html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
sub,
sup,
tt,
var,
b,
u,
i,
center,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
embed,
figure,
figcaption,
footer,
header,
hgroup,
menu,
.menu,
output,
ruby,
section,
summary,
time,
mark,
audio,
video,
input,
input[type=button],
button {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    font-family: "Almarai", sans-serif;
    text-rendering: optimizeLegibility !important;
    -webkit-font-smoothing: antialiased !important;
    font-weight: 400;
}

body {
    position: relative;
    font-weight: 400;
    color: var(--default);
    background: var(--light-bg);
    font-size: 16px;
    direction: rtl;
    overflow-x: hidden;
}

html {
    height: 100%;
    width: 100%;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

a {
    outline: none;
    text-decoration: none;
    display: inline-block;
    color: var(--default);
    transition: all 0.3s ease;
    font-family: inherit;
    font-weight: inherit;
}

p {
    line-height: 1.6;
}

select,
button,
input {
    outline: none;
}

* {
    box-sizing: border-box;
}

img {
    max-width: 100%;
    height: auto;
}

::selection {
    background-color: var(--primary);
    color: #fff;
}

/* Global Style */
.wrapper {
    min-height: calc(100vh - 520px);
}

.container {
    position: relative;
    max-width: 1400px;
    width: 90%;
    margin: 0 auto;
}

section {
    padding: 30px 0;
}

.section-heading {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 5px;
    width: fit-content;
    gap: 8px;
    display: flex;
}

.section-heading::before {
    content: "";
    display: block;
    width: 9px;
    height: 35px;
    background-color: var(--primary);
}

.section-heading a {
    font: inherit;
    color: inherit;
}

.btn {
    display: block;
    padding: 25px 15px;
    text-align: center;
    transition: all .3s ease;
    background-color: var(--primary);
    color: #fff;
    border-radius: 5px;
    cursor: pointer;
    line-height: 0;
    font-size: 16px;
}

form .btn {
    margin: 0 auto;
    min-width: 250px;
}

.btn-more {
    display: flex;
    gap: 10px;
}

.btn-more:after {
    display: block;
    content: "\e915";
    font-family: 'icomoon' !important;
    font-size: 22px;
    transition: all 0.3s ease;
}

.btn-more:hover::after {
    transform: translateX(-5px);
}

.btn:hover {
    background-color: var(--secondary);
}

/* HEADER */

header {
    padding: 20px 0 0 0;
    color: #fff;
    position: relative;
    margin-bottom: 30px;
}

header::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    display: block;
    width: 100%;
    height: 330px;
    background: linear-gradient(1800deg, var(--primary) 0%, var(--secondary) 100%);
    z-index: -1;
}

header .container {
    display: flex;
    flex-wrap: wrap;
    padding: 20px 0;
    justify-content: space-between;
    gap: 20px;
}

.logo {
    display: flex;
    gap: 10px;
    align-items: center;
    color: #fff;
}

.logo p {
    font-size: 14px;
}

.logo h1 {
    font-size: 22px;
    margin-top: 5px;
    margin-bottom: 0;
}

.logo img {
    max-width: 120px;
}

.dropdown {
    display: flex;
    align-items: center;
    height: 56px;
    border-radius: 35px;
    background-color: rgba(255, 255, 255, 0.17);
    padding: 5px 15px;
    position: relative;
    transition: all 0.3s ease;
}

.dropdown.show {
    background-color: #fff;
}

.dropdown-header {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 10;
    color: #fff;
    cursor: pointer;
}

.dropdown.show .dropdown-header {
    color: var(--default);
}

header .container:has(.user-name:empty) {
    justify-content: center;
}


.header-actions:has(.user-name:empty) {
    display: none;
}

.user-image,
.icon-user-image {
    display: block;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-position: center;
    background-size: contain;
    flex-shrink: 0;
}
.icon-user-image + span{
    max-width: 75px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.user-dropdown .user-name {
    font-size: 16px;
    margin-left: 10px;
    color: inherit;
    transition: all 0.3s ease;
}

.user-dropdown .icon {
    font-size: 10px;
    background-color: rgba(31, 89, 134, 0.1);
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-dropdown .icon::before {
    position: relative;
    top: 2px;
}

.dropdown-items {
    list-style: none;
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    width: 100%;
    background: #fff;
    border-radius: 20px;
    padding: 50px 15px 15px 15px;
    right: 0;
    transform: translateY(-56px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.dropdown.show .dropdown-items {
    opacity: 1;
    visibility: visible;
    transform: translateY(-40px);
}

.dropdown-items li a {
    padding: 10px;
    display: block;
    border-radius: 10px;
}

.header-actions {
    display: flex;
    gap: 10px;
}

.action-icon {
    width: 56px;
    height: 56px;
    background: rgba(255, 255, 255, 0.16);
    border-radius: 50%;
    color: #fff;
    display: inline-flex;
    margin-left: 5px;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    transition: all 0.3s ease;
}

.action-icon:hover {
    background-color: #fff;
    color: var(--secondary);
}

.action-icon:active {
    transform: scale(0.8);
}

.mob-menu {
    display: none;
}

body>main {
    display: flex;
    gap: 30px;
    width: 90%;
    max-width: 1400px;
    position: relative;
    margin: 60px auto 0 auto;
    min-height: calc(100dvh - 469px);
}

/* USER CARD */
.dashboard {
    flex-grow: 1;
    padding: 0;
}

aside {
    flex-shrink: 0;
    width: 362px;
}

.dashboard main {
    flex-grow: 1;
}

.user-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: relative;
    padding-top: 60px !important;
}

.card-image {
    display: block;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background-image: url(../images/avatar.svg);
    background-position: center;
    background-size: contain;
    border: 4px solid #fff;
    position: absolute;
    top: -50px;
    left: 0;
    right: 0;
    margin: 0 auto;
    box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.25);
}

.card-info {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
}

.card-info ul {
    padding: 10px;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex-grow: 1;
}

.card-info li {
    height: 30px;
    display: flex;
    align-items: center;
    font: inherit;
}

.card-info .info-labels {
    background-color: rgba(31, 89, 134, 0.1);
    border-radius: 10px;
    max-width: 40%;
}

.card-info .info-labels li {
    font-size: 12px;
}

.card-info .info-data li {
    border-bottom: 1px solid var(--light-bg);
    font-weight: 600;
}

/* NOTIFICATIONS */
.notifications {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.notification-box {
    background-color: rgba(255, 255, 255, 0.86);
    border-radius: 10px;
    padding: 20px;
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-between;
}

.notification-box:hover,
.notification-box.current {
    background-color: rgba(255, 255, 255);
    box-shadow: 0 4px 10px 0 rgba(0, 0, 0, 0.15);
}

.notification-box .count {
    display: block;
    font-weight: 600;
    font-size: 30px;
}

.notification-box p {
    color: #6F6F6F;
    font-size: 18px;
}

.notification-box .icon {
    font-size: 45px;
    color: var(--primary);
}

h1 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #fff;
}

/* Info Blocks */
.box,
article {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    padding: 20px;
}

.info-blocks {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.title {
    font-size: 18px;
    font-weight: 600;
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 15px;
}

.title i {
    padding: 4px 10px;
    font-style: normal;
    font-weight: 700;
    font-size: 18px;
    color: #1F5A86;
    background-color: #1f5a861f;
    border-radius: 6px;
}

.payments .title i {
    margin-right: auto;
}

.border-title {
    font-size: 18px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 20px;
}

.border-title span {
    font: inherit;
}

.border-title::after {
    content: "";
    display: block;
    width: 60px;
    height: 5px;
    background-color: var(--secondary);
    margin: 10px auto;
    border-radius: 10px;
}

.subtitle {
    font-weight: 600;
    display: block;
    margin-bottom: 15px;
}

.title::before {
    content: "";
    display: block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--secondary);
}

.items-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.payments .box:not(:has(.items-list)) {
    background-image: url('/images/paid.svg');
    background-position: center;
    background-repeat: no-repeat;
    background-size: 60px;
}

.payments .title {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    padding-bottom: 15px;
    position: relative;
}

.events .item,
.payments .item {
    display: flex;
    gap: 15px;
    align-items: center;
    border-radius: 10px;
    padding: 5px 10px;
    transition: all 0.3s ease;
}

.events .item:hover,
.payments .item:hover,
.dropdown-items li a:hover {
    background-color: rgba(31, 89, 134, 0.1);
}

.payments .btn {
    margin-right: auto;
    padding: 20px;
    background-color: #E9EFF3;
    color: var(--primary);
    font-size: 15px;
    font-weight: 600;
}

.payments .btn:hover,
.payments .item:hover .btn {
    background-color: var(--primary);
    color: #fff;
}

.events .item-date,
.payments .item-amount {
    background-color: var(--primary);
    border-radius: 10px;
    width: 66px;
    height: 66px;
    color: #fff;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    margin: 0;
}

.payments .item:hover .item-amount {
    background-color: var(--secondary);
}

.payments .item-amount span {
    font-size: 24px;
}

.payments .item-amount small {
    font-size: 12px;
}

.events .item-date span {
    font-weight: 600;
    font-size: 22px;
    line-height: 20px;
}

.events .item-title,
.payments .item-title {
    font-size: 14px;
    font-weight: 600;
}

.alerts .item-title {
    font-size: 16px;
    font-weight: 600;
    display: flex;
    gap: 10px;
    align-items: center;
}

.alerts .item-title::before {
    content: "";
    display: block;
    height: 46px;
    width: 5px;
    border-radius: 10px;
    background-color: #9BBBD2;
}

.item-date {
    color: #6F6F6F;
    display: block;
    margin-top: 15px;
}

.icon-boxes {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
}

.icon-box {
    display: flex;
    gap: 15px 30px;
    align-items: center;
}

.block-icons .icon-box {
    flex-direction: column;
}

.icon-box .icon {
    width: 80px;
    height: 80px;
    background-color: var(--light-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    flex-shrink: 0;
}

.icon-box .box-title {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.6;
}

article {
    margin-top: 30px;
    box-shadow: 0 15px 34px -15px transparent;
    transition: all 0.5s ease;
}

article:hover {
    box-shadow: 0 15px 34px -15px #00000052;
}

article .hide {
    display: none;
}

article h2 {
    font-size: 22px;
    font-weight: 600;
    line-height: 1.8;
    position: relative;
    cursor: pointer;
}

article h2 i {
    position: absolute;
    left: 0;
    top: 0;
    width: 36px;
    font-size: 12px;
    color: #1f5a86;
    background-color: #e6edf2;
    padding: 14px 10px 10px 10px;
    border-radius: 50%;
}

article h3 {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.6;
    margin: 15px 0 8px 0;
    padding: 0 10px;
    border-right: 4px solid #9dbad0;
}

/* LOGIN FORM */
.account-form {
    margin: 0 auto;
    padding: 40px;
}

.form-center {
    width: 100%;
    max-width: 500px;
    padding: 60px 60px 40px 60px;
    height: fit-content;
    border-radius: 15px;
    box-shadow: 0 15px 34px -15px #00000052;
}

.form-center .btn {
    margin-top: 40px;
    width: 100%;
}

.form-center .form-group {
    margin-bottom: 25px;
}

form .title::before {
    display: none;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    text-transform: capitalize;
}

.form-control {
    width: 100%;
    border-radius: 5px;
    background-color: var(--light-bg);
    border: none;
    outline: none;
    padding: 10px 15px;
    font: inherit;
}

.form-control:not(textarea) {
    height: 40px;
}

textarea.form-control {
    resize: none;
    max-height: 150px;

}

.form-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    border-bottom: 1px solid var(--light-bg);
    margin-bottom: 30px;
    padding-bottom: 30px;
}

#response-message {
    position: fixed;
    left: 30px;
    bottom: 50px;
    display: none;
    z-index: 1000;
}

.alert {
    color: #fff;
    padding: 20px;
    border-radius: 5px;
    text-align: center;
    color: #155724;
    background-color: #d4edda;
    min-width: 250px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.alert::before {
    font-family: 'icomoon';
    content: "\e923";
    font-size: 26px;
}

.alert.error::before {
    content: "\e927";
}

.alert.error {
    background-color: #e5bdcb;
    color: var(--secondary);
}

.error-msg {
    color: var(--secondary);
    font-size: 14px;
    display: block;
    margin-top: 5px;
}

footer {
    background-color: var(--primary);
    margin-top: 50px;
    padding: 50px 0;
    color: #fff;
}

footer .container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

footer .container div:has(img) {
    width: 100%;
    text-align: center;
    margin-bottom: -26px;
}

/* body[data-api='json?action=login'] footer .container div:has(img) {
    display: none;
} */

footer .container div img {
    height: 30px;
    margin: 0 5px;
}

.social-links {
    display: flex;
    gap: 10px;
    align-items: center;
    list-style: none;
}

.social-links a {
    width: 52px;
    height: 52px;
    font-size: 30px;
    color: #fff;
    border-radius: 50%;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-links a:hover {
    background-color: rgba(255, 255, 255, 0.20);
}

.site-name {
    text-align: left;
}

.site-name p {
    display: block;
    margin-bottom: 5px;
    font-size: 20px;
    font-weight: 600;
}

.social-links:before {
    content: '';
    display: inline-flex;
    background-color: rgba(255, 255, 255, 0.50);
    height: 60px;
    width: 3px;
    margin: 0 15px;
}

.help {
    position: fixed;
    right: 15px;
    bottom: 100px;
    color: #fff;
    background-color: #1bd741;
    background-image: url('/images/whatsapp.svg');
    background-repeat: no-repeat;
    background-position: center;
    padding: 6px;
    width: 64px;
    height: 64px;
    box-shadow: 0 5px 10px 0px #00000059;
    border-radius: 50%;
    z-index: 100;
}
.help:hover {
    animation: pulse 2s infinite;
    -webkit-animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        -moz-box-shadow: 0 0 0 0 rgba(255,255,255,0.6);
        box-shadow: 0 0 0 0 rgba(255,255,255,0.6);
    }

    70% {
        -moz-box-shadow: 0 0 0 20px rgba(255, 255, 44, 0);
        box-shadow: 0 0 0 20px rgba(255, 255, 255, 0)
    }

    100% {
        -moz-box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0)
    }
}

/*-----------------------------------------------------------------------------------*/
/*  MONGID | SOFTWARE HOUSE
/*-----------------------------------------------------------------------------------*/
.mongiddesigns {
    position: absolute;
    bottom: 15px;
    left: 15px;
    direction: ltr;
}

.mongiddesigns span {
    display: block;
    position: relative;
    width: 36px;
    height: 36px;
    background-image: url(https://mongid.com/designs/mongid/iconxl2.png);
    background-repeat: no-repeat;
    background-position: center center;
    background-size: 100%;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    z-index: 10;
    transform: scale(0.85);
    transition: all 0.5s cubic-bezier(0.18, 0.89, 0.32, 1.28);
}

.mongiddesigns:hover span {
    transform: scale(1) rotate(360deg);
    box-shadow: 0 0 10px 1px rgba(0, 0, 0, 0.3);
    border-color: var(--secondary);
}

.mongiddesigns p {
    display: block;
    text-align: left;
    position: absolute;
    left: 0;
    bottom: 5px;
    height: 30px;
    padding: 0 10px 0 30px;
    border-radius: 0 15px 15px 0px;
    z-index: 1;
    opacity: 0;
    transition: left 0.3s ease, opacity 0.3s ease, background-color 0.3s ease, color 0.3s ease;
    transition-delay: 0.1s;
}

.mongiddesigns p i {
    color: #ffffffcf;
    display: block;
    text-transform: capitalize;
    font-size: 10px;
    height: 10px;
    line-height: 16px;
    font-style: normal;
}

.mongiddesigns p b {
    color: #fff;
    display: block;
    font-size: 12px;
    line-height: 20px;
    height: 12px;
    white-space: nowrap;
    font-weight: normal;
}

.mongiddesigns:hover p {
    left: 20px;
    opacity: 1;
}

@media only screen and (max-width: 1024px) {
    body>main {
        flex-wrap: wrap;
    }

    aside {
        margin: 0 auto;
    }

    .dashboard h1 {
        color: var(--default);
    }
}


@media only screen and (max-width: 768px) {
    .info-blocks {
        grid-template-columns: 1fr;
    }

    header .container {
        justify-content: center;
    }
}

@media only screen and (max-width: 500px) {
    footer {
        display: none;
    }

    .logo img {
        max-width: 100px;
    }

    .logo h1 {
        font-size: 16px;
    }

    .logo p {
        font-size: 13px;
    }

    body>main {
        margin: 0 auto;
    }

    body:has(.mob-menu) {
        padding-bottom: 120px;
    }

    header {
        padding: 0;
    }

    .social-links:before {
        display: none;
    }

    .form-center {
        padding-left: 20px;
        padding-right: 20px;
    }

    .header-actions {
        display: none;
    }

    aside,
    .form-center {
        width: 100%;
        margin-top: 40px;
    }

    .form-section {
        grid-template-columns: 1fr;
    }

    form .btn {
        width: 100%;
        min-width: unset;
    }

    .mob-menu {
        position: fixed;
        bottom: 10px;
        z-index: 100;
        background: #1f5884e6;
        backdrop-filter: blur(5px);
        color: #fff;
        border-radius: 50px;
        height: 80px;
        width: calc(100% - 20px);
        margin: 0 auto;
        right: 0;
        left: 0;
        display: flex;
        align-items: center;
        justify-content: space-evenly;
        gap: 5px;
    }

    .menu-item .icon {
        font-size: 24px;
    }

    .menu-item {
        color: #fff;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        height: 50px;
        min-width: 40px;
        font-size: 14px;
    }

    .menu-item.active {
        border-radius: 35px;
        background-color: rgba(255, 255, 255, 0.17);
        padding: 5px 15px;
    }

    .menu-item:not(.active) span {
        display: none;
    }

    .card-info {
        display: none;
    }
    #response-message{
        left: 20px;
        right: 20px;
        bottom: 20px;
        min-width: unset;
        width: 100%;
    }
    .dashboard #response-message{
        bottom: 100px;
    }
    .title i{
        margin-right: auto;
    }
}