﻿html {
    font-size: 14px;
    position: relative;
    min-height: 100%;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }

    .content {
        max-width: auto;
        width: auto;
    }

    .login-container {
        width: 90%; /* Adjust width for smaller screens */
        margin: 20px auto;
    }
}

@font-face {
    font-family: myFont;
    src: url('Font/Amiri-Bold.ttf')
}

@font-face {
    font-family: myFont;
    src: url('Font/Amiri-Regular.ttf')
}

*, ::after,
::before {
    box-sizing: border-box;
}

body {
    font-size: .875rem;
    opacity: 1;
    overflow-y: scroll;
    margin: 0;
    font-family: myFont2;
}

a {
    cursor: pointer;
    text-decoration: none;
}

li {
    list-style: none;
}

.wrapper {
    align-items: stretch;
    display: flex;
    width: 100%;
    height: 100%;
}

#sidebar {
    max-width: 264px;
    min-width: 264px;
    background: #0c5c82;
    transition: all 0.35s ease-in-out;
    margin-right: -264px;
    font-family: myFont;
    font-weight: bold;
}

.main {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-width: 0;
    overflow: hidden;
    transition: all 0.35s ease-in-out;
    width: 100%;
}

/* sidebar element style #e9ecef */
.sidebar-Logo {
    padding: 1.15rem;
}

    .sidebar-Logo a {
        color: #e9ecef;
        font-size: 1.15rem;
        font-weight: 600;
        font-family: myFont;
    }

.sidebar-nav {
    flex-grow: 1;
    list-style: none;
    margin-bottom: 0;
    margin-right: 0;
    padding-right: 0;
}

.sidebar-header {
    color: #e9ecef;
    font-size: .75rem;
    padding: 1.5rem 1.5rem .375rem;
}

a.sidebar-link {
    padding: .625rem 1.625rem;
    color: aliceblue;
    position: relative;
    display: block;
    font-size: .875rem;
}

.sidebar-link[data-bs-toggle="collapse"]::after {
    content: "\F235"; /* Bootstrap icon code for the "plus" icon */
    font-family: "Bootstrap-icons";
    position: absolute;
    left: 1.5rem;
    display: inline-block;
    transform: rotate(0deg);
    transition: transform 0.2s ease-in-out;
}

.sidebar-link[data-bs-toggle="collapse"].collapsed::after {
    content: "\F229"; /* Bootstrap icon code for the "minus" icon */
    transform: rotate(0deg);
}

#sidebar.collapsed {
    margin-right: 0;
}


.sidebar-dropdown {
    padding: 0;
    margin: 0;
}

.sidebar-item .sidebar-dropdown .sidebar-item {
    padding-left: 2rem;
}

/* Navbar */

.navbar-default {
    background-color: #0c5c82;
    border-color: #e7e7e7;
}

    .navbar-default .navbar-nav > li > a {
        color: #e7e7e7;
        font-family: myFont;
    }

        .navbar-default .navbar-nav > li > a:hover {
            color: #fff;
        }

.nav > li {
    position: relative;
    display: block;
    height: 75px;
    padding-top: 10px;
}

.navbar-user {
    padding: 10px;
    padding-bottom: 0px;
    width: 350px;
}

.navbar-expand .navbar-nav {
    margin-left: auto;
}

.avatar {
    height: 40px;
    width: 40px;
}

.navbar-expand .navbar-nav {
    margin-right: auto;
}

/* content */

.content {
    /*margin-right: 0;
    padding: 30px;*/
    transition: margin-right 0.3s ease;
}

.toggle-button {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    padding: 0;
    border: none;
    background-color: transparent;
}

    .toggle-button span {
        display: block;
        width: 100%;
        height: 3px;
        background-color: #fff;
        transition: transform 0.3s ease;
    }

/* content */

.details-container {
    border: 1px solid #dee2e6;
    margin: 1rem 0;
    padding: 1rem; /* Added padding for better spacing */
}

.details-content {
    margin-top: 1rem; /* Added spacing above the details */
}

.row {
    padding: 0.5rem 0; /* Adjusted padding for better appearance */
    border-bottom: 1px solid #dee2e6;
}

.label-col {
    border-left: 1px solid #dee2e6;
    padding-left: 1rem;
}

.value-col {
    padding-left: 1rem;
}

/*           ----------              */



/* The container <div> - needed to position the dropdown content */
.dropdown {
    position: relative;
    display: inline-block;
}

/* Dropdown Content (Hidden by Default) */
.dropdown-content {
    display: none;
    position: absolute;
    background-color: whitesmoke;
    min-width: 230px;
    border: 1px solid #ddd;
    z-index: 1;
    max-width:stretch;
}

    /* Links inside the dropdown */
    .dropdown-content a {
        color: black;
        padding: 12px 16px;
        text-decoration: none;
        display: block;
    }

        /* Change color of dropdown links on hover */
        .dropdown-content a:hover {
            background-color: #f1f1f1
        }

/* Show the dropdown menu (use JS to add this class to the .dropdown-content container when the user clicks on the dropdown button) */
.show {
    display: block;
}

/********************** Modal  **************************************************************/
.modal-body {
    max-height: 70vh; /* Set a maximum height for the modal body */
    overflow-y: auto; /* Enable vertical scrolling */
    background-color: azure;
}

.custom-modal-width {
    max-width: 1300px; /* Adjust this value as needed */
    width: 100%; /* Ensure it takes full width up to the max-width */
}

.custom-modal-header {
    padding: 5px 15px; /* Adjust the padding as needed */
}

.custom-modal-footer {
    padding: 5px 15px; /* Adjust the padding as needed */
}

.custom-modal-title {
    font-size: 1.2rem; /* Adjust the font size as needed */
    color: white;
}

.table {
    border-collapse: collapse;
}

    .table th {
        background-color: steelblue; /* لون الخلفية لرأس الجدول */
        color: #ffffff; /* لون النص في رأس الجدول */
        text-align: center; /* محاذاة النص في الوسط */
    }

    .table tr:nth-child(even) {
        background-color: lightsteelblue; /* تظليل للصفوف الزوجية */
    }

.table-row:hover {
    background-color: #e9ecef; /* تغيير لون الصف عند التمرير */
}

.table td {
    vertical-align: middle; /* محاذاة عمودية */
    text-align: center; /* محاذاة النص في الوسط */
}

/*      --------            */
.addIcon {
    position: fixed; /* Change to fixed positioning */
    right: 20px; /* Distance from the right edge */
    bottom: 20px; /* Distance from the bottom edge */
    font-size: 3.0rem;
    color: #0c5c82;
    cursor: pointer; /* Change cursor to pointer on hover */
    transition: color 0.3s, transform 0.3s; /* Add transitions for hover effect */
    z-index: 1000; /* Ensure it stays above other elements */
}

    .addIcon:hover {
        color: darkgreen; /* Change color on hover */
        /*transform: scale(1.1); /* Slightly enlarge on hover */ */
    }

.bi-pencil-fill {
    color: blue; /* Color for edit icon */
    cursor: pointer;
    font-size: 1.2rem;
}

.bi-info-circle-fill {
    color: lightgreen;
    cursor: pointer;
    font-size: 1.2rem;
}

.bi-trash-fill {
    color: red;
    cursor: pointer;
    font-size: 1.2rem;
}

.bi-printer-fill {
    color: #828282;
    cursor: pointer;
    font-size: 1.2rem;
}

.bi-wallet-fill {
    color: purple;
    cursor: pointer;
    font-size: 1.2rem;
}

.bi-pencil-fill:hover {
    color: darkblue; /* Darker blue on hover */
}

.bi-info-circle-fill:hover {
    color: darkorange; /* Darker orange on hover */
}

.bi-trash-fill:hover {
    color: darkred; /* Darker red on hover */
}

.bi-printer-fill:hover {
    color: darkgreen; /* Darker green on hover */
}

.bi-wallet-fill:hover {
    color: darkviolet; /* Darker purple on hover */
}

.homeIcon:hover {
    color: darkviolet; /* Darker purple on hover */
}
