@font-face {
    font-family: "silkabold";
    src: url("./../fonts/silka-bold-webfont.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
}
@font-face {
    font-family: "silkasemibold";
    src: url("./../fonts/silka-semibold-webfont.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
}
@font-face {
    font-family: "silka";
    src: url("./../fonts/silka-regular-webfont.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
}

:root {
    --sidebar-width-expanded: 200px;
    --sidebar-width-collapsed: 95px;
}

body {
    overflow-x: hidden;
    font-family: "silka", sans-serif;
    min-height: 100vh;
}

#wrapper {
    display: flex;
    min-height: 100vh;
}

#sidebar-wrapper {
    min-width: var(--sidebar-width-expanded);
    max-width: var(--sidebar-width-expanded);
    background-color: #340c4a; /* A dark purple similar to the image */
    color: white;
    transition: all 0.3s ease-in-out;
    height: 100vh;
    overflow-y: auto; /* Enable scrolling for long content */
    position: fixed; /* Make sidebar fixed */
    left: 0;
    top: 0;
    z-index: 1030; /* Higher than navbar if any */
}

#wrapper.toggled #sidebar-wrapper {
    min-width: var(--sidebar-width-collapsed);
    max-width: var(--sidebar-width-collapsed);
}

#page-content-wrapper {
    width: 100%;
    background-color: #efeff0;
    padding-left: var(
        --sidebar-width-expanded
    ); /* Initial padding for expanded sidebar */
    transition: all 0.3s ease-in-out;
}

#wrapper.toggled #page-content-wrapper {
    padding-left: var(
        --sidebar-width-collapsed
    ); /* Adjust padding for collapsed sidebar */
}

.sidebar-heading {
    display: flex;
    flex-direction: column;
    font-size: 1.2rem;
    justify-content: center;
    padding-top: 10px;
}

.sidebar-text-company {
    color: #ff00ff;
    font-size: 24px;
    line-height: 38.4px;
}

.list-group {
    padding: 0 24px;
}

.list-group-item {
    background-color: transparent;
    color: white;
    border: none;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    border-radius: 15px !important;
}

.list-group-item:hover,
.list-group-item.active {
    background-color: #2d37ae; /* Slightly lighter purple for hover/active */
    color: white;
}

.list-group-item i {
    margin-right: 0.5rem;
    width: 20px; /* Ensure consistent icon spacing */
    text-align: center;
}

.sidebar-text {
    display: inline-block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    opacity: 1;
    transition: opacity 0.3s ease-in-out;
}

#wrapper.toggled .sidebar-text {
    opacity: 0;
    width: 0; /* Hide text completely */
}

.user-profile {
    position: absolute;
    bottom: 20px;
    left: 0;
    width: 100%;
}
.user-profile div {
    display: flex;
    align-items: center;
    padding: 0 24px;
}

.user-profile .profile-circle {
    width: 30px;
    height: 30px;
    background-color: white;
    border-radius: 50%;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    font-size: 0.9rem;
    color: #340c4a;
    margin-right: 0.5rem;
}

/* Top Navbar */
.navbar-custom {
    background-color: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
    padding: 17px 24px;
    transition: padding-left 0.3s ease-in-out;
}

.nav-header {
    font-size: 24px;
    line-height: 28.8px;
    font-family: "silkabold",sans-serif;
    margin-bottom: 0;
    display: flex;
    align-items: center;
}

.nav-search {
    border-radius: 16px;
    border: 1px solid #d3d1d5;
    height: 34px;
    width: 100%;
    padding: 0 15px;
}

.nav-search::placeholder {
    color: #d3d1d5;
}

.btn-profile {
    height: 33px!important;
    font-size: 24px!important;
    padding: 0;
    background: none !important;
    color: #8e8b94 !important;
}

.btn-profile:hover {
    background: none !important;
    color: #8e8b94 !important;
}

.btn-new {
    border-radius: 4px;
    height: 33px!important;
    width: 109px;
    font-size: 14px!important;
    font-family: "silkasemibold",sans-serif;
}
/* button color */
.button-component:disabled {
    opacity: 0.2;
}
.button-component {
    font-size: 16px;
    height: 53px;
}
.btn-blue {
    background-color: #2d37ae;
    color: #fff;
}
.btn-blue:hover {
    background-color: #2d37ae;
    color: #fff;
    opacity: 0.7;
}
.btn-black {
    background-color: #191528;
    color: #fff;
}
.btn-black:hover {
    background-color: #191528;
    color: #fff;
    opacity: 0.7;
}
.btn-pink {
    background-color: #FF00FF;
    color: #fff;
}
.btn-pink:hover {
    background-color: #FF00FF;
    color: #fff;
    opacity: 0.7;
}
.btn-link {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}
.btn-link:hover {
    text-decoration: none;
}
.card-summary {
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    background-color: white;
}

.card-summary h4 {
    font-size: 14px;
    margin-bottom: 0.5rem;
    color: #8e8b94;
}

.card-summary .display-4 {
    font-size: 2.5rem;
    font-family: "silkasemibold",sans-serif;
    color: #343a40;
}

.card-summary .text-success {
    color: #28a745 !important;
}
.card-summary .text-warning {
    color: #ffc107 !important;
}
.card-summary .text-primary {
    color: #007bff !important;
}
.card-summary .text-danger {
    color: #dc3545 !important;
}
/* form input */
.form-control::placeholder {
    color: #a8a5a5;
}

/* table */
td {
    vertical-align: middle;
}
/* Responsive adjustments */
@media (max-width: 768px) {
    #sidebar-wrapper {
        min-width: var(--sidebar-width-collapsed);
        max-width: var(--sidebar-width-collapsed);
        transform: translateX(-100%);
        position: fixed;
        left: 0;
    }

    #wrapper.toggled #sidebar-wrapper {
        transform: translateX(0);
    }

    #page-content-wrapper {
        padding-left: 0;
    }

    #wrapper.toggled #page-content-wrapper {
        padding-left: var(--sidebar-width-collapsed);
    }

    .navbar-custom {
        padding-left: 20px;
    }

    #wrapper.toggled .navbar-custom {
        padding-left: calc(var(--sidebar-width-collapsed) + 20px);
    }

    .sidebar-text {
        display: none; /* Always hide text on small screens */
    }
    .list-group-item {
        justify-content: center;
    }
    .list-group-item i {
        margin-right: 0;
    }
}
