@keyframes slideInLeft {
    0% {
        transform: translateX(-100%);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutLeft {
    0% {
        transform: translateX(0);
        opacity: 1;
    }
    100% {
        transform: translateX(-100%);
        opacity: 0;
    }
}

main {
    padding-top: calc(56px + 1.5rem); /* Navbar height + desired top padding */
    padding-bottom: 1.5rem !important;
}

.nav-link:hover, .nav-link:focus {
    color: #4f4f4f;
}

.nav-pills .nav-link.active, .nav-pills .show > .nav-link,
body.site-user-page #sidebarMenu .nav-pills .nav-link:hover,
body.site-user-page #sidebarMenu .nav-top ul.nav li.nav-item div.collapse a:hover {
    background-color: var(--bs-orange);
    color: white;
}

.nav-link {
    color: #4f4f4f; /* Default link color */
    font-size: 0.875rem; /* 14px */
    font-weight: 500;
    padding-top: 0.6rem;
    padding-bottom: 0.6rem;
}

.nav-link .bi {
    margin-right: 0.75rem; /* Space after icon */
    font-size: 1.1rem;
    vertical-align: middle;
}

.nav-pills .nav-link:not(.active):hover {
    background-color: #f8f9fa; /* Slight hover */
}

/* Navbar Styles */
.navbar {
    border-bottom: 1px solid #b0b0b0;
    background-color: #fff !important;
}

.navbar .nav-link {
    color: #4f4f4f;
    font-weight: 500;
}

.navbar .nav-link.active {
    color: var(--bs-orange);
}

.badge-notification {
    position: absolute;
    top: 0.5rem; /* Adjust position */
    right: 0.5rem; /* Adjust position */
    font-size: 0.6em;
    padding: 0.2em 0.4em;
    background-color: #e32b1e;
    border: 1px solid #fff;
}

.user-info .badge {
    background-color: #DEF3FF !important;
    border: 1px solid #75DCFF !important;
    color: #0091D4 !important;
    font-size: 0.7rem;
    font-weight: 600;
    vertical-align: middle;
}

.user-info .badge-regular {
    background-color: #FFEBD5 !important;
    border: 1px solid #FEB373 !important;
    color: #EC4B0A !important;
}

.user-info .badge-support {
    background-color: #DAFEE8!important;
    border: 1px solid #80F5B1 !important;
    color: #0DA64F !important;
}

.user-info .dropdown-toggle::after { /* Hide default dropdown arrow if using icon */
    display: none;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    background-color: #ffebd5;
}

.btn-custom-warning {
    background-color: #fd8f46;
    border-color: #fd8f46;
    color: #fff;
}

.btn-custom-warning:hover {
    background-color: #ec7b30;
    border-color: #e0702a;
    color: #fff;
}

.btn-outline-custom-black {
    color: #454545;
    border: 1px solid #454545;
}

button.btn-collapse {
    width: 40px;
    height: 42px;
}

.btn-collapse-up {
    border: 1px solid #fd8f46;
    background: #ffefd2bb;
}

.btn-collapse-up:hover {
    background: #ffefd2bb;
}

.btn-collapse:hover {
    border: 1px solid #fd8f46;
}

.collapsed:hover {
    border: 1px solid #454545;
}

.badge-custom-notification {
    position: absolute;
    top: 0.1rem;
    right: 0.1rem;
    font-size: 0.6em;
    padding: 0.2em 0.4em;
    background-color: #e32b1e;
    border: 1px solid #fff;
    border-radius: 50%;
}

.nav-pills .show > .nav-link {
    background-color: white;
}

.nav-pills .nav-link.active {
    background-color: #fd8f46;
    color: white !important;
}

.nav-pills .nav-link.open {
    color: #fd8f46;
}

.nav-pills .nav-link.open img:not(.chevron-icon) {
  filter: invert(69%) sepia(81%) saturate(742%) hue-rotate(336deg) brightness(103%) contrast(101%);
}

.pagination .page-item.active .page-link {
    background-color: #fd8f46;
    border-color: #fd8f46;
}

.page-link {
    color: #fd8f46;
}

.page-link:hover {
    color: #ec7b30;
}

.page-item.disabled .page-link {
    color: #6c757d;
}

.navbar {
    border-top: 1px solid #b0b0b0;
}

.expanded {
    height: 24px;
    z-index: 82;
}

.collapsed-down {
    background-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M8 13.5L12 17.5L16 13.5M7 6.5L12 11.5L17 6.5' stroke='%23515767' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
}

.collapsed-up {
    background-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M16 10.5L12 6.5L8 10.5M17 17.5L12 12.5L7 17.5' stroke='%23FD8F46' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
}

.sidebar {
    border-right: 1px solid #b0b0b0;
    min-height: 100vh; /* Adjust based on navbar height */
    position: sticky;
    overflow-y: auto;
    background-color: #fff !important; /* Override default light bg */
    padding-top: 86px;
}

main {
    margin-top: 10px;
}

#main-warp-container {
    margin-top: 30px;
}

.card {
    border: 1px solid rgba(176, 176, 176, 1);
}

.table {
    font-size: 0.875rem; /* 14px */
}

.table th {
    background-color: #e7e7e7;
    color: #454545;
    font-weight: 500;
    white-space: nowrap;
    vertical-align: middle;
}

.table thead th {
    border: 1px solid #d1d1d1;
    background-color: rgba(231, 231, 231, 1);
}

.table td {
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    vertical-align: middle;
    white-space: normal;
    max-width: 400px;
    word-wrap: break-word;
}

.pagination-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.pagination-controls .left-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.container-box {
    box-shadow: 0px 1px 2px 0px rgba(0, 0, 0, 0.3);
    background-color: #fff;
}

.card-header {
    background-color: initial;
}

.label-filter {
    font-size: 14px;
    color: #454545;
    font-weight: 500;
}

.text-muted {
    font-size: 14px;
    font-weight: 400;
}

.expanded {
    height: 24px;
    z-index: 82;
}

.card-custom {
    margin: 0 16px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    padding: 1rem 0;
}

.breadcrumb-header {
    color: #fd8f46;
    font-weight: 600;
    font-size: 16px;
    line-height: 24px;
    padding-left: 5px;
}

button.btn-search {
    font-size: 12px;
    font-weight: 500;
    height: 40px;
}

.text-left {
    text-align: left;
}

.header-profile {
    width: 9rem;
}

.info-text {
    display: inline-block;
    max-width: 50vw;
    word-break: break-word;
    white-space: normal !important;
    overflow-wrap: break-word;
    margin-right: 5px;
}

.nav-top {
    margin-top: 20px;
}

.register-button {
    padding: 12px 18px;
    gap: 6px;
    height: 48px;
    background: #FD8F46;
    border-radius: 8px;
    font-style: normal;
    font-weight: 500;
    font-size: 16px;
    line-height: 24px;
    color: #FFFFFF;
}

.form-label-required::after {
    content: " 必須  ";
    color: white;
    margin-left: 5px;
    font-size: 10px;
    background: rgba(227, 43, 31, 1);
    border-radius: 8px;
    width: 28px;
    height: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.datepicker table tr td.day {
    border: 1px solid #c5c5c5;
    border-radius: 4px;
    padding: 2px 8px;
}

.custom-select, .form-input-common {
    padding: 8px 12px;
    font-size: 16px;
    border: 1px solid #888888;
    border-radius: 8px;
}

.form-input-common::placeholder {
    color: #B0B0B0;
    opacity: 1;
}

.datepicker table tr td.old,
.datepicker table tr td.new {
    color: #aaa !important;
    background-color: #f6f6f6 !important;
    border-color: #c5c5c5 !important;
}

.datepicker table tr td.day:hover {
    background-color: #e6f0ff;
    cursor: pointer;
}

.form-input-common::placeholder {
    color: #B0B0B0;
}

button.btn.btn-custom-warning.btn-search:focus-visible {
    background-color: #fff;
    border-color: #e0702a;
    color: rgba(0, 0, 0, var(--bs-text-opacity));
    box-shadow: 0 0 0 4px #FD8F463D !important;
}
.mb-1-custom{
    margin-bottom: 1px;
} 
@media screen and (max-width: 990px) {
    .nav-custom {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
    }

    .notification-dropdown {
        position: absolute !important;
        left: 187px !important;
        top: 355px !important;
        transform: translate(-50%, -50%);
        height: 450px !important;
        overflow: scroll;
    }

    .account-dropdown {
        position: absolute !important;
    }

    .nav-item-notification {
        position: unset !important;
    }

    .info-text {
        max-width: 80px;
    }
}

@media (max-width: 767px) {
    .header-profile {
        width: 8rem;
    }

    .nav-top {
        margin-top: 0;
    }

    .offcanvas-md.custom-hide {
        animation: slideOutLeft 0.1s ease forwards;
    }

    .offcanvas-md {
        animation: slideInLeft 0.4s ease forwards;
    }

    .notification-dropdown {
        width: 350px !important;
    }

    .sidebar {
        padding-top: 0;
        position: static;
    }

    #sidebarMenu {
        position: fixed;
    }

    .user-name-dropdown > div {
        white-space: normal;
    }
}

@media (max-width: 550px) {
    .logo {
        width: 19rem;
        margin-right: unset;
    }
    
    .logo > img {
        width: 100%;
        margin-left: unset;
    }

    .nav-custom > li > a {
        font-size: 12px;
        display: block;
        text-align: center;
    }
}

@media (max-width: 450px) {
    .logo {
        width: 15rem;
    }

    .nav-custom > li > a {
        font-size: 10px;
    }

    .nav-link .bi {
        margin-right: 0.1rem;
    }
}

.hg-avata{
    height: 80px !important;
}

.hg-avata-sm{
    margin-left: 20px;
    height: 68px !important;
}

.text-list-event{
    color: #FD8F46 !important;
    font-weight: 600 !important;
    font-size: 1.125rem !important;
}

.option-icon-dropwdown{
    width: 20px;
    height: 20px;
    margin-right: 10px;
    margin-bottom: 5px;
}

.option-text-dropwdown{
    color: #F44034;
}

.font-size-12px {
    font-size: 12px;
    line-height: 20px;
}

.font-size-14px {
    font-size: 14px;
    line-height: 20px;
}

.font-size-16px {
    font-size: 16px;
    line-height: 20px;
}

.color-454545 {
    color: #454545;
}

#sidebarMenu .nav-top ul.nav li.nav-item a.active img,
body.site-user-page #sidebarMenu .nav-top ul.nav li.nav-item a:hover img {
    filter: invert(100%) brightness(200%);
}

#sidebarMenu .nav-top ul.nav li:hover a.nav-link:not(.active) img {
    filter: invert(69%) sepia(81%) saturate(742%) hue-rotate(336deg) brightness(103%) contrast(101%);
}

#sidebarMenu .nav-top ul.nav li a:hover, #sidebarMenu .nav-top ul.nav li.nav-item div.collapse a:hover {
    color: #fd8f46;
}

#sidebarMenu .nav-top ul.nav li.nav-item div a.nav-link {
    color: #4f4f4f;
}
