#hamburger {
    display: none;
    position: fixed;
    top: 10px;
    left: 10px;
    z-index: 10000;
    background-color: #1e90ff;
    color: white;
    padding: 10px 15px;
    border-radius: 25px;
    cursor: pointer;
}

body {
    margin: 0;
    font-family: sans-serif;
    background-color: #121212;
    color: #ffffff;
    display: flex;
    height: 100%;
    overflow: hidden;
}

aside {
    width: 220px;
    min-width: 220px;
    max-width: 220px;
    background-color: #1e1e1e;
    height: 100vh;
    overflow-y: auto;
    padding: 20px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    position: fixed;
    left: 0;
    top: 0;
}

aside h2 {
    font-size: 22px;
    margin-bottom: 0px;
    margin-left: 10px;
    color: #1e90ff;
}

aside h3 {
    font-size: 16px;
    margin-bottom: 20px;
    margin-top: 10px;
    margin-left: 10px;
    color: #a5a5a5;
}

main {
    flex: 1;
    padding: 20px;
    margin-left: 220px;
    overflow-y: auto;
    height: 100vh;
    box-sizing: border-box;
}

select,
button,
input {
    color: white;
    display: block;
    width: 100%;
    margin: 10px 0;
    padding: 10px;
    border: none;
    text-align: left;
    border-radius: 25px;
}

select,
button {
    background-color: #2e2e2e;
    cursor: pointer;
}

input {
    background-color: #2e2e2e;
}

select:hover,
input:hover,
button:hover {
    background-color: #444444;
}

button.active {
    background-color: dodgerblue !important;
}

table {
    border-collapse: separate;
    border-spacing: 0;
    margin-top: 20px;
    width: 100%;
}

th,
td {
    border: 1px solid #555;
    border-right: none;
    border-bottom: none;
    padding: 8px;
}

th:last-child,
td:last-child {
    border-right: 1px solid #555;
}

table tr:last-child th,
table tr:last-child td {
    border-bottom: 1px solid #555;
}

th {
    background: #333;
}

caption {
    margin-bottom: 5px;
    font-weight: bold;
}

table th:first-child {
    border-top-left-radius: 18px;
}
table th:last-child {
    border-top-right-radius: 18px;
}
table tr:last-child td:first-child {
    border-bottom-left-radius: 18px;
}
table tr:last-child td:last-child {
    border-bottom-right-radius: 18px;
}

canvas {
    height: 30%;
    max-height: 300px;
    width: calc(100% - 40px);
    display: block;
}

.bluebt button {
    background-color: #1e90ff;
}

.low {
    font-size: small;
    margin-left: 10px;
    margin-bottom: 0px;
    color: #a5a5a5;
}

#loadingOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 1;
    transition: opacity 0.5s ease-out;
}

#loadingOverlay.hide {
    opacity: 0;
    pointer-events: none;
}

.loading-text {
    font-size: 18px;
    color: #ffffff;
    margin-bottom: 15px;
}

.authuser {
    color: #a5a5a5;
    margin-top: -10px;
    margin-bottom: 40px;
}

main h2 {
    margin-top: 30px;
    color: #1e90ff;
}

.ref-favicon {
    width: 18px;
    height: 18px;
    vertical-align: middle;
    margin-right: 6px;
    border-radius: 4px;
    background: #fff;
}

.date-range-buttons {
    display: flex;
    gap: 4px;
    margin: 8px 0;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.date-range-buttons::-webkit-scrollbar {
    display: none;
}

.date-range-button {
    background-color: #2e2e2e;
    color: white;
    border: none;
    padding: 10px;
    width: 60px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 14px;
    white-space: nowrap;
    flex-shrink: 0;
    text-align: center;
    display: inline-block;
    margin: 0;
}

.date-range-button.active {
    background-color: dodgerblue;
}

@media (max-width: 768px) {
    .date-range-button {
        font-size: 14px;
    }
}

@media (max-width: 768px) {
    body {
        flex-direction: column;
        overflow: auto;
    }

    #hamburger {
        display: block;
    }

    aside {
        position: fixed;
        top: 0;
        left: -220px;
        height: 100%;
        z-index: 9998;
        transition: left 0.3s ease;
        width: 220px;
        flex-direction: column;
        padding: 20px;
    }

    aside.show {
        left: 0;
    }

    main {
        margin-left: 0;
        padding: 10px;
        height: auto;
        overflow: visible;
    }

    canvas {
        width: 100% !important;
        height: auto !important;
    }

    table {
        font-size: 14px;
    }

    select,
    input,
    button {
        font-size: 14px;
    }
}

.progress-container {
    width: 200px;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
}

.progress-bar {
    width: 0%;
    height: 100%;
    background: #1e90ff;
    border-radius: 2px;
    transition: width 0.3s ease;
}

/* 사이드바 버튼 아이콘 스타일 */
button > img,
#hamburger > img {
    width: 16px;
    height: 16px;
    vertical-align: middle;
    margin-right: 6px;
    position: relative;
    top: -1px;
    filter: brightness(0) saturate(100%) invert(44%) sepia(100%) saturate(7476%)
        hue-rotate(191deg) brightness(102%) contrast(101%); /* dodgerblue */
}
button.active > img {
    filter: brightness(0) saturate(100%) invert(100%); /* white */
}

#mobile-hamburger {
    font-size: 2rem;
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 4px 8px;
}

@media (max-width: 768px) {
    #hamburger {
        display: block;
        position: fixed;
        top: 28px;
        left: 14px;
        z-index: 1200;
        font-size: 1.6rem;
        padding: 6px 8px;
        cursor: pointer;
    }
    h1[data-i18n="home_dashboard"] {
        padding-left: 50px;
    }
}
@media (min-width: 769px) {
    #hamburger {
        display: none;
    }
    h1[data-i18n="home_dashboard"] {
        padding-left: 0;
    }
}

#sidebar-overlay {
    display: block;
    position: fixed;
    z-index: 999;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    background: rgba(0, 0, 0, 0);
    transition: background 0.2s;
}
#sidebar-overlay.active {
    background: rgba(0, 0, 0, 0.5);
    pointer-events: auto;
}

@media (max-width: 768px) {
    main {
        padding-left: 16px;
        padding-right: 16px;
    }
    .custom-table,
    table,
    canvas,
    .tab-section > h2,
    .tab-section > div,
    .tab-section > table {
        margin-bottom: 20px !important;
    }
    .tab-section {
        margin-bottom: 24px;
    }
    select,
    button {
        margin-bottom: 12px;
    }
}
