/* ------ ROOT VARIABLES ------ */
:root {
    --blue: #4e73df;
    --indigo: #6610f2;
    --purple: #7450a4; /* <- #6f42c1 */
    --pink: #e83e8c;
    --red: #e74a3b;
    --orange: #fd7e14;
    --yellow: #f6c23e;
    --green: #1cc88a;
    --teal: #20c9a6;
    --cyan: #36b9cc;
    --white: #fff;
    --gray: #858796;
    --gray-dark: #5a5c69;
    --success: #1cc88a;
    --info: #36b9cc;
    --warning: #f6c23e;
    --danger: #e74a3b;
    --light: #f8f9fc;
    --dark: #5a5c69;

    --primary: #009A56;
    --primary-light: #55BC8E;
    --primary-dark: #095534;
    --placeholder: #bfbfbf;
    --main-background: #EBE9E9;
    --error: #dc3545;

    --toggle-color: #DDD;
    --text-color: #707070;

    --body-color: #E4E9F7;
    --sidebar-color: #FFF;
    --primary-color-light: #F6F5FF;
    --toggle-color: #DDD;
    --text-color: #707070;

    /* ===== Transition ===== */
    --trans-02: all 0.2s ease;
    --trans-03: all 0.3s ease;
    --trans-04: all 0.4s ease;
    --trans-05: all 0.5s ease;
}

* {
    margin: 0;
    padding: 0;
    border: none;
    outline: none;
    box-sizing: border-box;
}

.woori-container {
    height: 100vh;
    background: var(--body-color);
    transition: var(--trans-04);
}

.woori-container .left-section {
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: 200px;
    padding: 10px 14px;
    background: var(--sidebar-color);
    transition: var(--trans-05);
}

.left-section header {
    position: relative;
}

.left-section li.search-box {
    height: 50px;
    display: flex;
    align-items: center;
}

.woori-container .left-section .image-text img {
    width: 40px;
    border-radius: 6px;
}

.woori-container .left-section .image-text {
    display: flex;
    align-items: center;
}

.woori-container .left-section .image {
    min-width: 60px;
    display: flex;
    align-items: center;
}

.woori-container .left-section .text {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-color);
    transition: var(--trans-03);
    white-space: nowrap;
    opacity: 1;
}

header .image-text .header-text {
    display: flex;
    flex-direction: column;
}

.header-text .name {
    font-weight: 600;
}

.header-text .profession {
    margin-top: -2px;
}

.left-section header .toggle {
    position: absolute;
    top: 50%;
    right: -25px;
    transform: translateY(-50%) rotate(180deg);
    height: 25px;
    width: 25px;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--sidebar-color);
    font-size: 14px;
    transition: var(--trans-03);
}

.left-section.close {
    width: 88px;
    text-shadow: none !important;
    opacity: 1 !important;
}

.left-section.close header .toggle {
    transform: translateY(-50%);
}

.left-section.close .text {
    opacity: 0 !important;
}

.left-section ul {
    padding: 0 !important;
}

.left-section li {
    margin-top: 10px;
    height: 40px;
    list-style: none;
}

.left-section li .icon {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    font-size: 20px;
}

.nav-link .sidebar-dropdown .nav-link {
    margin-top: 0px;
}

.left-section li .icon,
.left-section li .text {
    color: var(--text-color);
}

.nav-link > .sidebar-link[aria-expanded="true"] {
    background: var(--primary); /* 메인 메뉴 배경색 */
}

.nav-link > .sidebar-link[aria-expanded="true"] .icon,
.nav-link > .sidebar-link[aria-expanded="true"] .text {
    color: var(--white);
}

.nav-link .sidebar-dropdown.show {
    background: var(--primary-light); /* 서브 메뉴 배경색 */
}

.left-section .search-box {
    background: var(--primary-light);
    border-radius: 6px;
}

.left-section li.search-box .icon,
.left-section li.search-box input::placeholder {
    color: var(--white); /* 원하는 색상으로 변경 */
}

.search-box input {
    height: 100%;
    width: 100%;
    outline: none;
    border: none;
    border-radius: 6px;
    background: var(--primary-light);
    transition: var(--trans-04);
}

.left-section li a {
    height: 100%;
    width: 100%;
    display: flex;
    align-items: center;
    text-decoration: none;
    border-radius: 6px;
}

.left-section li a:hover {
    background: var(--primary);
}

.left-section li a:hover .icon,
.left-section li a:hover .text {
    color: var(--sidebar-color);
    transition: var(--trans-02);
}

.left-section .menu-bar {
    height: calc(100% - 50px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

main {
    background-color: var(--body-color);
    height: 100vh;
    width: calc(100% - 88)
}

.login-body {
    background-image: url("../../images/login_bg004.jpg");
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background-size: cover;
    background-repeat: no-repeat;
}
.login-container {
    width: 380px;
    text-align: center;
    border-radius: 5px;
    padding: 40px 30px 50px 30px;
}
.login-container header {
    font-size: 35px;
    font-weight: 600;
    margin-bottom: 30px;
}
.login-container .login-wrapper {
    margin: 40px 0;
}
.login-wrapper .field {
    width: 100%;
    margin-bottom: 20px;
}
.login-wrapper .field {
    width: 100%;
    margin-bottom: 20px;
}
.login-wrapper .field.shake {
    animation: shake 0.3s ease-in-out infinite;
}
@keyframes shake {
    0%, 100% {
        margin-left: 0;
    }
    20%, 80% {
        margin-left: -12px;
    }
    40%, 60% {
        margin-left: 12px;
    }
}
.login-wrapper .field .input-area {
    position: relative;
}
.login-wrapper input {
    height: 50px;
    width: 100%;
    padding: 0 45px;
    font-size: 18px;
    border-radius: 5px;
    border: 1px solid var(--primary-light);
    border-bottom-width: 2px;
    color: var(--primary-dark);
}
.login-wrapper input::placeholder {
    color: var(--placeholder);
    font-size: 18px;
}
.login-wrapper .field i {
    position: absolute;
    top: 50%;
    font-size: 18px;
    pointer-events: none;
    transform: translateY(-50%);
}
.login-wrapper .field .icon {
    left: 15px;
    color: var(--primary-light);
}
.login-wrapper input:focus {
    border-color: var(--primary);
    outline: none;
}
.login-wrapper input:focus ~ .icon {
    color: var(--primary);
}
.login-wrapper .field .error-icon {
    right: 15px;
    color: var(--error);
}
.login-wrapper .field .error-txt {
    color: var(--error);
    margin-top: 5px;
    text-align: left;
}
.login-wrapper .field .login-error {
    display: none;
}
.login-wrapper .field.login-error .login-error {
    display: block;
}
.login-wrapper .pass-link {
    text-align: center;
    margin-top: 30px;
    font-weight: 700;
}
@media (max-width: 600px) {
    .login-wrapper .pass-link {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
}
.login-container a {
    margin-left: 10px;
    color: var(--primary);
    text-decoration: none;
}
.login-container a:hover {
    text-decoration: underline;
}
.login-wrapper button[type="submit"] {
    height: 50px;
    width: 100%;
    margin-top: 30px;
    border-radius: 8px;
    font-size: 18px;
    border: none;
    color: var(--white);
    cursor: pointer;
    background: var(--primary);
    align-items: center;
    justify-content: center;
    display: flex;
}

.login-wrapper button[type="submit"] .fa-circle-notch {
    display: none;
    animation: animate 1s ease infinite;
    margin-right: 10px;
}

button[type="submit"]:hover {
    background: var(--primary-dark);
}
.fa-circle-notch {
    display: none;
    animation: animate 1s ease infinite;
    margin-right: 10px;
}
@keyframes animate {
    0% {
        transform: rotate(0turn);
    }
    100% {
        transform: rotate(1turn);
    }
}
.login-reset-modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1; /* Sit on top */
    padding-top: 100px; /* Location of the box */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgb(0,0,0); /* Fallback color */
    background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
}
.login-reset-content {
    width: 320px;
    background: var(--white);
    border-radius: 6px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    padding: 20px;
    color: var(--primary-dark);
    font-weight: bold;
    border: 1px solid var(--primary);
}
.login-reset-content .field {
    margin-bottom: 0px;
}
.login-reset-content input {
    height: 40px;
    width: 100%;
    padding: 0 45px;
    font-size: 14px;
    border-radius: 5px;
    border: 1px solid var(--primary-light);
    border-bottom-width: 2px;
    color: var(--primary-dark);
    margin: 8px 0 8px 0;
}
.login-reset-content input::placeholder {
    font-size: 14px;
    color: var(--placeholder);
}
.login-reset-content input:focus {
    border-color: var(--primary);
    outline: none;
}
.login-reset-content .button-group {
    display: flex;
    justify-content: center;
}
.login-reset-content button {
    width: 50%;
    margin: 20px 4px 0 4px;
    padding: 10px 0;
    border-radius: 8px;
    font-size: 14px;
    border: none;
    color: var(--white);
    cursor: pointer;
    background: var(--primary);
    align-items: center;
    justify-content: center;
    display: flex;
}

.woori-main-body {
    width: 100vw;
    height: 100vh;
    font-size: 0.8rem;
    background: var(#bfbfbf);
    user-select: none;
    overflow-x: hidden;
}

a {
    color: var(--primary-dark);
}

.woori-main-logo {
    display: block;
    width: 100%;
}

.profile-photo {
    width: 2.8rem;
    height: 2.8rem;
    border-radius: 50%;
    overflow: hidden;
}

.text-muted {
    color: var(--gray);
}

p {
    color: var(--gray);
}

b {
    color: var(--gray);
}

/* ====== Sidebar ====== */
.woori-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: 250px;
    padding: 10px 14px;
    background: var(--white);
}

.woori-sidebar header {
    position: relative;
}

.woori-sidebar .text {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-color);
}

.woori-sidebar .image {
    min-width: 60px;
    display: flex;
    align-items: center;
}

.woori-sidebar .image-text img {
    width: 40px;
    border-radius: 6px;
}

.woori-sidebar header .image-text {
    display: flex;
    align-items: center;
}

header .image-text .header-text {
    display: flex;
    flex-direction: column;
}

.header-text .name {
    font-weight: 600;
}

.header-text .project {
    margin-top: -2px;
}

.woori-sidebar header .toggle {
    position: absolute;
    top: 50%;
    right: -25px;
    transform: translateY(-50%);
    height: 25px;
    width: 25px;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--white);
    font-size: 16px;
}

/* ====== Home ====== */
.home {
    position: relative;
    height: 100vh;
    left: 250px;
    width: calc(100% - 250px);
    transition: var(--trans-05);
}

.woori-sidebar.sidebar-close ~ .home {
    left: 88px;
    width: calc(100% - 88px);
}