/* Dark mode styles */
/* body.dark-mode {
    background-color: #1e1e2d;
    color: white;
} */
/* .navbar, .sidebar {
    background-color: #343a40 !important;
} */
/* .navbar a, .sidebar a {
    color: white !important;
} */
.dark-toggle {
    cursor: pointer;
}
/* General Styles */
/* General Styles */
body {
    font-family: 'Cairo', sans-serif;
    background: #f4f6f9;
    color: #2c3e50;
    margin: 0;
}

/* Sidebar */
.sidebar {
    direction: rtl;
    height: 100vh;
    width: 250px;
    position: fixed;
    z-index: 1000;
    top: 0;
    right: 0;
    background: linear-gradient(135deg, #4b6cb7, #182848);
    padding-top: 20px;
    transition: width 0.3s ease-in-out;
    overflow-x: hidden;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
}

/* Sidebar Collapsed */
.sidebar.collapsed {
    width: 80px;
}




.sidebar .toggle-btn:hover {
    background: #16a085;
}

/* Sidebar Menu */
.sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Sidebar Links */
.sidebar a {
    padding: 12px 20px;
    display: flex;
    align-items: center;
    color: white;
    text-decoration: none;
    font-size: 16px;
    transition: 0.3s;
}

.sidebar a i {
    font-size: 18px;
    min-width: 30px;
    text-align: center;
}

/* Hide text when collapsed */
.sidebar.collapsed a span {
    display: none;
}

/* Active and Hover */
.sidebar a:hover,
.sidebar a.active {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 5px;
}

/* Content */
.content {
    margin-left: 0px;
    transition: margin-left 0.3s ease-in-out;
    /* padding: 10px; */
    width: 83.9%;
}
#sidebarToggle{
    display: none;
}
/* @media (max-width: 992px) {
    #sidebar {
        top: 5% !important;
    }
    
} */
@media (max-width: 768px) {
    .content {
        width: 100%;
        margin-left: 0;
        margin-top: 30% !important;
    }
    #sidebarToggle{
        display: block;
    }
    .dropdown-menu-end[data-bs-popper] {
        right: auto;
        left: auto;
    }
}
@media (max-width: 576px) {
    #sidebar {
        top:9% !important;
    }
}


/* Adjust Content when Sidebar is Collapsed */
.sidebar.collapsed+.content {
    margin-left: 80px;
}

/* Navbar */
.navbar {
    background: white;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    padding: 12px 20px;
}

.link-button {
    border: none;
    background-color: transparent;
    color: white;
    width: 100%;
    text-align: justify;
    display: flex;
    justify-content: space-between;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .sidebar {
        width: 250px;
        z-index: 1000;
    }
    table, tr, td, th {
        font-size: 13px !important;
    }
}


/* no border radius */
/* Apply no border-radius to all form controls and buttons */
input,
textarea,
select,
button,
.form-control,
.btn,
.navbar,
.card,
.alert,
.modal-content,
.dropdown-menu {
    border-radius: 0 !important;
}
td{
    text-align: center  !important;
    vertical-align: middle !important;
}