﻿
@font-face {
    font-family: 'Cairo';
    src: url('../fonts/Cairo-VariableFont_wght.ttf') format('truetype');
    font-weight: 100 900;
    font-style: normal;
}
body {
    min-height: 100vh;
    font-family: 'Cairo', sans-serif;
    src: url(fonts/Cairo-VariableFont_wght.ttf) format('truetype');
    background: linear-gradient( 135deg, #4f46e5 0%, #2563eb 45%, #f97316 100%);
}
.wrapper {
    display: flex;
}
/* ===========================
   Sidebar
=========================== */

#sidebar {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    background: linear-gradient(180deg, #2B5876 0%, #4E4376 100%);
    color: #fff;
    overflow-y: auto;
    box-shadow: -5px 0 20px rgba(0,0,0,.15);
    direction: rtl;
    background: rgba(255,255,255,.12);
    width: 280px;
    min-height: 100vh;    
    z-index: 9999;    
}

    /* Scroll */

    #sidebar::-webkit-scrollbar {
        width: 6px;
    }

    #sidebar::-webkit-scrollbar-thumb {
        background: rgba(255,255,255,.25);
        border-radius: 10px;
    }

/* ===========================
   Logo
=========================== */

.sidebar-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 25px 15px;
    border-bottom: 1px solid rgba(255,255,255,.12);
}

    .sidebar-logo img {
        border-radius: 50%;
        border: 3px solid rgba(255,255,255,.3);
    }

    .sidebar-logo span {
        font-size: 20px;
        font-weight: bold;
        color: white;
    }

/* ===========================
   Menu
=========================== */

.sidebar-menu {
    list-style: none;
    margin: 0;
    padding: 15px;
}

    .sidebar-menu li {
        list-style: none;
    }

    /* ===========================
   Main Links
=========================== */

    .sidebar-menu > li > a {
        
        align-items: center;
        justify-content: space-between;
        /*color: white;*/
        text-decoration: none;
        border-radius: 12px;
        transition: .3s;
        margin-bottom: 6px;
        color: white;
        padding: 15px 20px;
    }

        /* Hover */

        .sidebar-menu > li > a:hover {
            /*background: rgba(255,255,255,.12);*/
            transform: translateX(-4px);
            background: #1e293b;
        }

        /* ===========================
   Left Part
=========================== */

        .sidebar-menu > li > a span {
            flex: 1;
            margin-right: 15px;
        }

        /* Main Icon */

        .sidebar-menu > li > a > i:first-child {
            width: 24px;
            text-align: center;
            font-size: 18px;
        }

/* Arrow */

.arrow {
    font-size: 18px;
    transition: .3s;
}

/* ===========================
   Sub Menu
=========================== */

.submenu {
    list-style: none;
    padding: 0;
    margin: 0 0 10px 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height .35s ease;
}

.menu-item.active .submenu {
    max-height: 500px;
}

.menu-item.active .arrow {
    transform: rotate(180deg);
}

.submenu li {
    margin: 5px 0;
}

.submenu a {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #E8E8E8;
    padding: 11px 15px 11px 15px;
    margin-right: 25px;
    border-radius: 10px;
    transition: .3s;
    font-size: 15px;
    background: rgba(255,255,255,.05);
}

    .submenu a:hover {
        background: rgba(255,255,255,.15);
        color: white;
        padding-right: 22px;
    }

/* ===========================
   Active Link
=========================== */

.sidebar-menu a.active {
   /* background: #FF9800;
    color: white;
   */ 
   box-shadow: 0 5px 15px rgba(255,152,0,.35);
    background: white;
    color: #2563eb;
    font-weight: 600;
}

/* ===========================
   Icons
=========================== */

.sidebar-menu i {
    min-width: 22px;
    text-align: center;
}
/*=========================
    Arraw Item
=========================*/
.menu-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    color: #fff;
    text-decoration: none;
}

.menu-left {
    display: flex;
    align-items: center;
}

.arrow {
    flex-shrink: 0;
    font-size: 18px;
    transition: .3s;
}
/*==========================
    Main
==========================*/
.main {
    flex: 1;
    padding: 20px;
}
.mainEmploy {
    flex: 1;
    margin-right: 280px;
    padding: 20px;
}
.page-content {
    padding: 5px;
}

.sidebar-collapse {
    width: 80px !important;
}

    .sidebar-collapse span {
        display: none;
    }
.table th {
    background: #f8f9fa;
    font-weight: 600;
}

.card {
    border-radius: 15px;
}

.card-header {
    font-weight: 600;
}
.cardopertion {
    border-radius: 15px 15px 0px 0px;
}

.cardopertion-header {
    font-weight: 600;
}
.login-card {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    border-radius: 25px;
    box-shadow: 0 25px 60px rgba(0,0,0,.25);
}
.user-image {
    float: none;
    margin-top: -8px;
    margin-left: 0.4rem;
    line-height: 10px;
    float: right;
    margin-top: -2px;
    border-radius: 50%;
}
.my-logo {
    float: none;
    margin-top: -8px;
    margin-left: 0.4rem;
    line-height: 10px;
    float: right;
    width: 3rem;
    height: 4rem;
    margin-top: -2px;
    border-radius: 20% !important
}
.logo-circle {
    border-radius: 20% !important
}
#loadingOverlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.5);
    z-index: 99999;
    align-items: center;
    justify-content: center;
}
/* Portal Styles */
.portal-container {
    min-height: calc(100vh - 80px);
    background: transparent;
    padding: 10px 40px 40px;
}

.portal-header {
    text-align: center;
    margin-bottom: 30px;
}

    .portal-header h1 {
        color: white;
        font-size: 42px;
        font-weight: 700;
    }

    .portal-header p {
        color: #bfc7d5;
        font-size: 20px;
    }

.systems-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill,minmax(260px,1fr));
    gap: 30px;
}

.system-card {
    position: relative;
    overflow: hidden;
    text-decoration: none;
    /*background: #ffffff;*/
    background: rgba(255,255,255,.04);
    border-radius: 25px;
    min-height: 260px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: .4s;
    backdrop-filter: blur(15px);
}

    .system-card i {
        font-size: 70px;
        margin-bottom: 20px;
    }

    .system-card h3 {
        color: white;
        /*color: blue;*/
        font-weight: bold;
        margin-bottom: 10px;
    }

    .system-card span {
        color: #d5d5d5;
        text-align: center;
        padding: 0 20px;
    }
.bi {
    color: white !important;
}
.sales {
    border: 2px solid #00d4ff;
    box-shadow: 0 0 15px #00d4ff, 0 0 30px #00d4ff;
}

.inventory {
    border: 2px solid #ffae00;
    box-shadow: 0 0 15px #ffae00, 0 0 30px #ffae00;
}

.accounting {
    border: 2px solid #a855f7;
    box-shadow: 0 0 15px #a855f7, 0 0 30px #a855f7;
}

.hr {
    border: 2px solid #22c55e;
    box-shadow: 0 0 15px #22c55e, 0 0 30px #22c55e;
}

.crm {
    border: 2px solid #ec4899;
    box-shadow: 0 0 15px #ec4899, 0 0 30px #ec4899;
}

.reports {
    border: 2px solid #ef4444;
    box-shadow: 0 0 15px #ef4444, 0 0 30px #ef4444;
}
.system-card:hover {
    transform: translateY(-12px) scale(1.05);
    box-shadow: 0 0 30px currentColor, 0 0 60px currentColor, 0 0 90px currentColor;
}
.system-card::before {
    content: "";
    position: absolute;
    top: -150%;
    left: -150%;
    width: 200%;
    height: 200%;
    background: linear-gradient( 45deg, transparent, rgba(255,255,255,.35), transparent);
    transform: rotate(45deg);
    transition: .7s;
}

.system-card:hover::before {
    left: 100%;
}
.logo-circle {
    border-radius: 5%;
}
/*000000000000000000000000000000000000000000000000000000000000000000000000000000000000000*/
body {
    min-height: 100vh;
    background: linear-gradient(135deg,#4f46e5,#7c3aed);
    font-family: 'Cairo', sans-serif;
    src: url('fonts/Cairo-VariableFont_wght.ttf') format('ttf')
}

.login-wrapper {
    min-height: 100vh;
}

.login-card {
    border: none;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0,0,0,.25);
}

.login-left {
    background: white;
    padding: 50px;
}

.login-right {
    background: linear-gradient(135deg,#2563eb,#1d4ed8);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 40px;
}

.system-icon {
    font-size: 80px;
}

.form-control {
    height: 50px;
    border-radius: 12px;
}
/* الروابط */

.links {
    display: flex;
    justify-content: space-between;
    margin-top: 5px;
    margin-bottom: 15px;
    font-size: 13px;
}

    .links a {
        color: #b91c1c;
        text-decoration: none;
    }

        .links a:hover {
            text-decoration: underline;
        }

.btn {
    width: 48%;
    height: 42px;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
}

.btn-login {
    background: #0d6efd;
    color: white;
}

    .btn-login:hover {
        background: #0a58ca;
    }

.btn-exit {
    background: #ef4444;
    color: white;
}

    .btn-exit:hover {
        background: #dc2626;
    }

@media(max-width:992px) {

    .login-right {
        display: none;
    }

    .login-left {
        padding: 30px;
    }
}