:root {
    --theme-primary: #00ffe0;
    --theme-primary-rgb: 0, 255, 224;
}

body{
    background-color:black;
}

.content{
    padding:25px 25px 25px 17px;
}

header {
    background-color: black !important;
    border-bottom: 1px solid #2e2d2d;
    position: relative !important;
    z-index: 9999 !important;
}

.navmenu, .sitenav, .fluent-nav-menu {
    background-color: #121212 !important;
    color: #e0e0e0 !important;
    font-family: 'Segoe UI', 'Noto Sans KR', sans-serif;
    font-size: 14px;
    border-right: 1px solid #2a2a2a;
}

.fluent-nav-menu.collapsed .fluent-nav-link {
    padding: 0px !important;
}

.fluent-nav-menu.collapsed .nav-menu-title {
    display: none;
}

.nav-menu-title {
    padding: 25px 15px 25px 15px;
}

.fluent-nav-link {
    color: #e0e0e0 !important;
    padding: 10px 16px !important;
    border-radius: 6px !important;
    transition: background-color 0.2s;
}
    .fluent-nav-link.active {
        background-color: #1f1f1f !important;
        color: #00ffe0 !important;
    }

    .fluent-nav-link:hover {
        background-color: #1f1f1f !important;
        color: #00ffe0 !important;
    }

.fluent-nav-group__title {
    color: #a0a0a0 !important;
    font-weight: bold;
    padding-left: 12px;
}

.custom-dialog-div {
    display: flex;
    flex-direction: column;
    height: 100vh;
    width: 100%;
    overflow: hidden;
}

.custom-div-card {
    padding: 12px;
    border: 1px solid #333;
    border-radius: 8px;
}


.user-search-info-title {
    background-color: #1E2125;
    font-size: 14px;
    height: 35px;
    width: 100%;
    border-radius: 8px 8px 0px 0px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.user-search-info-content {
    font-size: 14px;
    height: 60px;
    width: 100%;
    position: relative;
    background-color: #111318;
    border-radius: 0px 0px 8px 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    white-space: nowrap; /* 1. 줄바꿈을 강제로 금지 (무조건 한 줄) */
    overflow: hidden; /* 2. 컨테이너를 벗어나는 텍스트 숨김 */
    text-overflow: ellipsis; /* 3. 숨겨진 텍스트를 "..."로 표시 */
}

.info-icon {
    position: absolute;
    right: 20px;
}



.positioning-region,
.content-region {
    background-color: transparent !important;
    color: #e0e0e0 !important;
    border-radius: 6px !important;
    transition: none !important;
}

/* Icon Color */
.fluent-nav-icon {
    fill: #aaaaaa !important;
}


.chart-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
}


.table-red {
    font-size:14px;
    color: #FF0066;
}

.table-gray {
    font-size: 14px;
}

.table-green {
    font-size: 14px;
    color: #92D050;
}

.more-button {
    align-items: center;
    justify-content: center;
    min-width: 75px;
    padding: 4px;
}

    .more-button::part(control) {
        background-color: #5B3DFE;
        font-size: 14px;
        color: lightgray;
        border-radius: 999px;
        min-width: 75px;
        height: 25px;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 4px 12px;
        font-weight: 600;
    }

    .more-button[aria-disabled="true"]::part(control) {
        background-color: #404040 !important;
        color: gray !important;
        opacity: 0.6;
    }


.custom-propertycolumn{
    height:50px !important;
}
/*Table?*/
.custom-table-colum {
    min-width: max-content;
    min-height: max-content;
    height: 60px;
    font-size: 18px;
    color: lightgray;
}

/*DropDown*/
.custom-select {
    max-width: 200px;
    min-width: 125px;
}
    .custom-select::part(control) {
        padding: 4px 16px;
        background-color: #111111;
        overflow: visible !important;
        border-radius: 18px;
        border: 1px solid gray;
        color: lightgray;
    }

    .custom-select::part(listbox) {
        padding: 4px 0;
        max-height: 175px !important;
    }

/*Button*/
.custom-button::part(control) {
    background-color: #5744E5;
    color: white;
    border-radius: 5px;
    font-weight: 600;
    font-size: 13px;
    padding: 6px 14px;
    border: none;
    min-width: 80px;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/*	.custom-button.selected {
		background-color: #0078D4;
		color: white;
	}
*/
.custom-button.selected::part(control) {
    background-color: #2c2273;
    color: white;
}


.custom-button-cancel::part(control) {
    background-color: #403f3f;
    color: white;
    border-radius: 5px;
    font-weight: 600;
    font-size: 13px;
    padding: 6px 14px;
    border: none;
    min-width: 80px;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.custom-fluentgrid {
    gap: 12px;
}

/*password*/
.password-input-container {
    position: relative;
    display: flex;
    align-items: center;
}

.password-eye-icon {
    position: absolute;
    right: 15px;
    cursor: pointer;
}


/*Grid*/
.custom-grid {
    font-size: 14px;
    border-spacing: 0;
    width: 100%;
    background-color: #111318;
    overflow-y: auto;
}
    .custom-grid .custom-table-column {
        padding: 12px 16px;
        text-align: center;
        vertical-align: middle;
        white-space: nowrap;
    }

    .custom-grid th {
        background-color: #1E2125;
        color: #ccc;
        font-weight: 600;
        height: 48px;
        display: flex;
        align-items: center;
        justify-content:center;
        vertical-align: middle;
        min-width: 80px;
        padding: 0px !important;
    }

    .custom-grid td {
        border-bottom: 1px solid #333;
        background-color: #111318;
        color: white;
        min-width: 80px;
        padding: 5px !important;
    }

    .custom-grid tr:hover td {
        background-color: #1a1d22;
    }

    .fluent-grid {
        height: 100%;
        min-height: 0;
        background-color: transparent;
    }

.custom-colum {
    height: 60px !important;
    font-size: 18px;
    position: relative;
}

/*Table Line*/
.fluent-data-grid th {
    border-right: 1px solid #333;
}

.fluent-data-grid td {
    border-right: 1px solid #333;
}

    .fluent-data-grid th:last-child,
    .fluent-data-grid td:last-child {
        border-right: none;
    }


/* All Scroll */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: #1A1A2B;
}

::-webkit-scrollbar-thumb {
    background-color: #5B4BFF;
    border-radius: 6px;
    border: 2px solid #1A1A2B;
}
    ::-webkit-scrollbar-thumb:hover {
        background-color: #7C6AFF;
    }



/* Card */
.card-top {
    display: flex;
    flex-direction: column;
    background-color: #111111;
    min-height: 450px;
    max-height: 1000px;
}

/*Fluent-number-field*/
.custom-number-field::part(control) {
    text-align: right;
    width:70px;
}

number-field-right::part(control) {
    text-align:right;
    width:100%;
}

    .custom-number-field::part(controls) {
    display: none;
}

/*TextField-Right*/
.custom-textfield-right::part(control) {
    text-align: right;
}

/*Dialog*/
.fluent-dialog-main::part(control) {
    justify-content: center;
    align-items: center;
    padding: 0 !important;
    background-color: #111111;
    width: 380px !important;
}

.fluent-dialog-main::part(positioning-region) {
    background-color: rgb(0,0,0,0.7)
}

.fluent-dialog-header {
    display: flex;
    justify-content: center !important;
    align-items: center !important;
    padding: 10px !important;
    min-height:45px;
}

.fluent-dialog-body {
    height:100% !important;
    flex:1 !important;
    color: #e0e0e0;
}

.fluent-dialog-footer {
    display: flex;
    padding: 15px 15px 15px 15px !important;
    justify-content: center !important;
    align-items: center !important;
}

.fluent-dialog-header fluent-button,
.fluent-dialog-header button {
    position: absolute !important;
    top: 8px;
    left: auto;
    right: 8px;
}


.card-Loding {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: black;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    pointer-events: none;
    z-index: 999;
    border-radius: 4px;
}

/* 다이얼로그 또는 화면에 창을 뛰울때 로딩을 사용할경우 해당razor 을 감싸는 div 의 스타일 */
.loading-container {
    position: relative;
    height: 100%;
}

/* 로딩 창 화면중앙  */
.custom-Loding {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;
}
/* 로딩 중일 때 원래 다이얼로그 숨김*/
.dialog-content-hidden {
    display: none;
}

/*Select Multi*/
fluent-select[multiple] {
    max-height: 200px;
    overflow-y: auto;
    /* (선택적) 테두리 등 시각적 구분을 위한 스타일 */
    border: 1px solid var(--neutral-stroke-rest);
    border-radius: calc(var(--control-corner-radius) * 1px);
    display: block; /* 높이 적용을 위해 block 요소로 만듦 */
}


/*닉네임 유저검색 링크*/
.rink-fluentanchor {
}
    .rink-fluentanchor::part(control) {
        background: transparent !important;
        border: none !important;
        color: #9EFBFB;
    }

.rink-fluentLabel {
    background: transparent !important;
    border: none !important;
    color:  #9EFBFB !important;
    cursor: pointer;
}

.custom-cell {
    height: 50px !important;
}

.custom-dialog-body{

}

.custom-dialog-body, 
.fluent-dialog-main::part(control) {
    justify-content: center;
    align-items: center;
    padding: 0 !important;
    background-color: #111111;
    width: 380px !important;
}

.custom-cell-title {
    border-radius: 0px;
    height: 50px;
    border-right: 1px solid #333;
    border-bottom: 1px solid #333;
}

.custom-cell-content {
    border-radius: 0px;
    height: 50px;
    border-bottom: 1px solid #333;
}

/* 공통 입력창 설명 (옅은 녹색) */
.input-desc {
    font-size: 15px;
    color: #5cdbb5; /* 기존 #13cbac보다 옅고 부드러운 녹색 */
    margin-top: 6px;
    font-weight: 500;
    letter-spacing: -0.2px;
    display: inline-block;
}

/* ==========================================================================
   Dashboard V2 Common Styles (Cards, Tables, Filters, Modals)
   ========================================================================== */
.agent-dashboard-wrapper,
.pending-marketing-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
    margin-top: 24px;
}

/* Filter */
.filter-container {
    display: flex;
    align-items: center;
    background: #161f30;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 16px 24px;
    width: 100%;
    margin-bottom: 8px;
    position: relative;
    z-index: 10;
}
.filter-title {
    font-size: 18px;
    font-weight: bold;
    color: #ffffff;
    padding-left: 8px;
    white-space: nowrap;
}
.filter-group {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    width: 100%;
}
.filter-label {
    font-size: 14px;
    font-weight: 700;
    color: #94a3b8;
    letter-spacing: -0.3px;
}
.date-picker-wrapper {
    display: flex;
    align-items: center;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 2px 12px;
    transition: all 0.25s ease;
}
.date-picker-wrapper:focus-within {
    border-color: var(--theme-primary);
    box-shadow: 0 0 0 2px rgba(var(--theme-primary-rgb), 0.2);
}
.date-picker-input {
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 14px;
    padding: 8px 4px;
    outline: none;
    font-family: inherit;
}
.date-picker-input::-webkit-calendar-picker-indicator {
    filter: invert(0.8) sepia(1) saturate(5) hue-rotate(180deg);
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.2s;
}
.date-picker-input::-webkit-calendar-picker-indicator:hover {
    opacity: 1;
}
.date-separator {
    color: #64748b;
    font-weight: 600;
    padding: 0 8px;
}
.filter-apply-btn, .modal-btn-confirm {
    background: linear-gradient(135deg, var(--theme-primary) 0%, rgba(var(--theme-primary-rgb), 0.8) 100%);
    color: #0f172a;
    border: none;
    border-radius: 10px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(var(--theme-primary-rgb), 0.2);
}
.filter-apply-btn:hover, .modal-btn-confirm:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(var(--theme-primary-rgb), 0.35);
    filter: brightness(1.1);
}
.filter-apply-btn:active, .modal-btn-confirm:active {
    transform: translateY(1px);
}
.action-btn {
    background: rgba(255, 255, 255, 0.05);
    color: #f1f5f9;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}
.action-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}
.action-btn:active {
    transform: translateY(1px);
}

/* Checkbox */
.checkbox-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    user-select: none;
    color: #e2e8f0;
    font-size: 14px;
    font-weight: 600;
}
.checkbox-label input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    background: rgba(15, 23, 42, 0.6);
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
}
.checkbox-label input[type="checkbox"]:checked {
    background: var(--theme-primary);
    border-color: var(--theme-primary);
}
.checkbox-label input[type="checkbox"]:checked::after {
    content: "✓";
    font-size: 13px;
    color: #0f172a;
    position: absolute;
    top: 45%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-weight: 900;
}
.checkbox-text {
    font-size: 14px;
    font-weight: 700;
    color: #94a3b8;
}

/* Cards & Grid */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}
.agent-card, .supporters-card, .table-card {
    background: rgba(30, 41, 59, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 18px;
    padding: 16px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
}
.agent-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 100% 0%, rgba(var(--theme-primary-rgb), 0.05) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}
.agent-card:hover, .supporters-card:hover {
    transform: translateY(-6px);
}
.agent-card:hover, .supporters-card:hover, .table-card:hover {
    border-color: rgba(var(--theme-primary-rgb), 0.3);
    box-shadow: 0 12px 30px rgba(var(--theme-primary-rgb), 0.1);
    background: rgba(30, 41, 59, 0.35);
}
.agent-card:hover::after {
    opacity: 1;
}
.total-card {
    background: linear-gradient(135deg, rgba(var(--theme-primary-rgb), 0.08) 0%, rgba(0, 114, 255, 0.08) 100%);
    border: 1px solid rgba(var(--theme-primary-rgb), 0.25);
}
.total-card::after {
    background: radial-gradient(circle at 100% 0%, rgba(var(--theme-primary-rgb), 0.15) 0%, transparent 60%);
    opacity: 1;
}
.total-card:hover {
    border-color: var(--theme-primary);
    box-shadow: 0 12px 35px rgba(var(--theme-primary-rgb), 0.2);
}
.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
    padding-bottom: 10px;
}
.nickname {
    font-size: 19px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.3px;
}
.total-card .nickname {
    color: var(--theme-primary);
    text-shadow: 0 0 10px rgba(var(--theme-primary-rgb), 0.3);
}
.level-badge {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #94a3b8;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}
.total-card .level-badge {
    background: rgba(var(--theme-primary-rgb), 0.15);
    border-color: rgba(var(--theme-primary-rgb), 0.3);
    color: var(--theme-primary);
}
.card-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    padding: 2px 0;
}
.info-label {
    color: #94a3b8;
}
.info-value {
    font-weight: 600;
    color: #f1f5f9;
    font-feature-settings: "tnum";
}
.total-card .info-value {
    color: #ffffff;
}
.info-row.text-highlight {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 10px;
    margin-top: 4px;
}
.text-profit {
    color: #10b981;
    font-size: 15px;
    font-weight: 700;
}
.total-card .text-profit {
    color: #34d399;
    text-shadow: 0 0 10px rgba(52, 211, 153, 0.2);
}

/* Custom HTML Table */
.table-responsive {
    width: 100%;
    overflow-x: auto;
}
.custom-html-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 14px;
}
.custom-html-table th {
    background: rgba(15, 23, 42, 0.4);
    color: #94a3b8;
    font-weight: 700;
    padding: 14px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.5px;
}
.custom-html-table td {
    padding: 14px 16px;
    color: #e2e8f0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    font-feature-settings: "tnum";
}
.custom-html-table tr:hover td {
    background: rgba(255, 255, 255, 0.02);
    color: #ffffff;
}
.highlight-row-yellow td {
    color: #facc15 !important;
    font-weight: 700;
}
.nickname-cell {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}
.nickname-link {
    color: #38bdf8;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}
.nickname-link:hover {
    color: #7dd3fc;
    text-decoration: underline;
}
.copy-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 14px;
    padding: 2px;
    opacity: 0.6;
    transition: opacity 0.2s;
}
.copy-btn:hover {
    opacity: 1;
}
.text-center {
    text-align: center !important;
}
.text-right {
    text-align: right !important;
}

/* Pagination */
.custom-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 24px;
}
.page-btn {
    background: rgba(255, 255, 255, 0.05);
    color: #94a3b8;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}
.page-btn:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.2);
}
.page-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}
.page-btn.active {
    background: var(--theme-primary);
    color: #0f172a;
    border-color: var(--theme-primary);
    font-weight: 700;
}

/* Loading & No Data */
.loading-container, .no-data-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    color: #94a3b8;
}
.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(var(--theme-primary-rgb), 0.1);
    border-top-color: var(--theme-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 16px;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Buttons */
.action-buttons-cell {
    display: flex;
    justify-content: center;
    gap: 8px;
}
.accept-btn {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 8px;
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}
.accept-btn:hover {
    background: rgba(16, 185, 129, 0.25);
    color: #ffffff;
    border-color: #10b981;
}
.cancel-btn {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 8px;
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}
.cancel-btn:hover {
    background: rgba(239, 68, 68, 0.25);
    color: #ffffff;
    border-color: #ef4444;
}

/* Modals */
.custom-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(4px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}
.custom-modal-content {
    background: #1e293b;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    padding: 30px;
    width: 400px;
    max-width: 90%;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 10px 10px -5px rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}
.custom-modal-message {
    text-align: center;
    color: #f1f5f9;
    font-size: 15px;
    line-height: 1.6;
}
.custom-modal-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    width: 100%;
}
.modal-btn {
    padding: 10px 20px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}
.modal-btn-cancel {
    background: rgba(255, 255, 255, 0.05);
    color: #f1f5f9;
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.modal-btn:hover {
    filter: brightness(1.1);
}
.custom-modal-icon {
    font-size: 32px;
    margin-bottom: 8px;
}

/* Toasts */
.toast-notification {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: rgba(16, 185, 129, 0.9);
    color: #ffffff;
    padding: 12px 24px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    font-weight: 600;
    z-index: 10000;
    animation: slideUp 0.3s ease-out;
}

/* 모바일 친화적 전체 화면 선택 모달 (InputSelect 대용) */
.form-select-modal-overlay {
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100vw; 
    height: 100vh; 
    background: rgba(15, 23, 42, 0.85); 
    backdrop-filter: blur(8px); 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    z-index: 9999;
}

.form-select-modal-content {
    background: #1e293b;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    width: 90%; 
    max-width: 400px; 
    padding: 30px 24px; 
    display: flex; 
    flex-direction: column;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
}

.form-select-modal-title {
    color: #fff; 
    margin-top: 0; 
    margin-bottom: 24px; 
    font-size: 18px; 
    font-weight: 700; 
    text-align: center;
}

.form-select-modal-options {
    display: flex; 
    flex-direction: column; 
    gap: 12px;
}

.form-select-modal-btn {
    width: 100%; 
    padding: 16px; 
    font-size: 16px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(255, 255, 255, 0.05);
    color: #e2e8f0;
}
.form-select-modal-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.2);
}
.form-select-modal-btn.active, .form-select-modal-btn.confirm {
    background: var(--theme-primary, #00d2ff);
    color: #0f172a;
    border-color: var(--theme-primary, #00d2ff);
}

.form-select-modal-close {
    margin-top: 24px; 
    width: 100%; 
    padding: 14px; 
    font-size: 15px;
    border-radius: 12px;
}, fadeOut 0.3s ease 2.2s;
}
@keyframes slideIn {
    from { transform: translateY(100px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

/* 폼 입력 안내문 (공통) */
.form-input-desc {
    font-size: 15px;
    color: #5bb974;
    margin-top: 6px;
}

/* 폼 공통 레이아웃 및 요소 스타일 */
.form-section-title { font-size: 16px; font-weight: bold; margin-bottom: 20px; color: #ffffff; padding-bottom: 12px; border-bottom: 1px solid #2a2f3a; }
.form-section-title span { color: #00d2ff; margin-right: 8px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 768px) { .form-grid { grid-template-columns: 1fr; gap: 16px; } }
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-label { font-size: 13px; color: #a0aabf; font-weight: 500; }
.form-control, .form-select { background-color: #0f1219; border: 1px solid #2a2f3a; color: #ffffff; padding: 10px 12px; border-radius: 4px; font-size: 14px; width: 100%; box-sizing: border-box; }
.form-control:focus, .form-select:focus { outline: none; border-color: #00d2ff; }
.form-actions { display: flex; justify-content: flex-end; gap: 12px; margin-top: 10px; margin-bottom: 40px; }

/* 공통 탭 컨테이너 및 버튼 스타일 */
.tab-container {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 1px solid #30363d;
    padding-bottom: 12px;
    flex-wrap: wrap;
}
.tab-btn {
    background: #1a1d21;
    border: 1px solid #30363d;
    color: #8b949e;
    padding: 8px 16px;
    cursor: pointer;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}
.tab-btn:hover {
    background: #21262d;
    color: #c9d1d9;
    border-color: #8b949e;
}
.tab-btn.active {
    background: #56C5FF;
    color: #0d1117;
    border-color: #56C5FF;
    font-weight: 600;
}

/* 공통 네모 글로우 아이콘 버튼 (.glow-icon-btn) */
.glow-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: 1.5px solid var(--theme-primary, #00ffe0);
    background: transparent;
    color: var(--theme-primary, #00ffe0);
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 0 8px rgba(var(--theme-primary-rgb, 0, 255, 224), 0.45), inset 0 0 6px rgba(var(--theme-primary-rgb, 0, 255, 224), 0.1);
    transition: box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
    line-height: 1;
    padding: 0;
    flex-shrink: 0;
}
.glow-icon-btn:hover {
    background: rgba(var(--theme-primary-rgb, 0, 255, 224), 0.12);
    box-shadow: 0 0 14px rgba(var(--theme-primary-rgb, 0, 255, 224), 0.75), inset 0 0 8px rgba(var(--theme-primary-rgb, 0, 255, 224), 0.2);
    color: #ffffff;
}
.glow-icon-btn:active {
    background: rgba(var(--theme-primary-rgb, 0, 255, 224), 0.2);
    box-shadow: 0 0 5px rgba(var(--theme-primary-rgb, 0, 255, 224), 0.35);
}
/* =====================================================
   사이드바 내비게이션 (NavMenu) - 커스텀 스타일
   ===================================================== */

/* 사이드바 본체 */
.sidebar {
    position: fixed;
    top: 50px;
    left: 0;
    width: 260px;
    height: calc(100vh - 50px);
    background-color: #0d1117;
    border-right: 1px solid #1e2530;
    display: flex;
    flex-direction: column;
    z-index: 1200;
    overflow-y: auto;
    overflow-x: hidden;
    transition: transform 0.3s ease;
    scrollbar-width: thin;
    scrollbar-color: #2a3142 transparent;
}
.sidebar::-webkit-scrollbar { width: 4px; }
.sidebar::-webkit-scrollbar-track { background: transparent; }
.sidebar::-webkit-scrollbar-thumb { background: #2a3142; border-radius: 2px; }

/* 로고 영역 */
.sidebar-logo {
    display: flex;
    align-items: center;
    padding: 20px 20px 16px;
    border-bottom: 1px solid #1e2530;
    min-height: 64px;
    flex-shrink: 0;
}
.sidebar-logo-icon {
    color: var(--theme-primary, #00ffe0);
    font-size: 22px;
    line-height: 1;
}
.sidebar-logo-text {
    color: var(--theme-primary, #00ffe0);
    font-weight: 700;
    font-size: 18px;
    margin-left: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 메뉴 컨테이너 */
.sidebar-nav {
    flex: 1;
    padding: 12px 0 16px;
    display: flex;
    flex-direction: column;
}

/* 기본 사이드바 링크 */
a.sidebar-link,
button.sidebar-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    color: #c5ccd8;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    border: none;
    background: none;
    cursor: pointer;
    width: 100%;
    text-align: left;
    transition: background 0.15s, color 0.15s;
    border-radius: 0;
    line-height: 1.4;
}
a.sidebar-link:hover,
button.sidebar-link:hover {
    background: rgba(255,255,255,0.05);
    color: #ffffff;
}
a.sidebar-link.active {
    background: rgba(0, 255, 224, 0.1);
    color: var(--theme-primary, #00ffe0);
    border-left: 3px solid var(--theme-primary, #00ffe0);
    padding-left: 17px;
}

/* 하위 메뉴 링크 */
a.sidebar-link-child {
    padding-left: 40px;
    font-size: 13px;
    font-weight: 400;
    color: #8b97aa;
}
a.sidebar-link-child:hover { color: #ffffff; }
a.sidebar-link-child.active {
    color: var(--theme-primary, #00ffe0);
    background: rgba(0, 255, 224, 0.07);
    border-left: 3px solid var(--theme-primary, #00ffe0);
    padding-left: 37px;
}

/* 링크 아이콘 */
.sidebar-icon {
    width: 20px;
    text-align: center;
    font-size: 15px;
    flex-shrink: 0;
}

/* 그룹 헤더 */
.sidebar-group-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    color: #8b97aa;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    background: none;
    border: none;
    cursor: pointer;
    width: 100%;
    text-align: left;
    transition: color 0.15s;
    margin-top: 8px;
}
.sidebar-group-header:hover { color: #c5ccd8; }
.sidebar-group-header .sidebar-arrow {
    margin-left: auto;
    font-size: 10px;
    transition: transform 0.2s ease;
    color: #6a7585;
}
.sidebar-group-header .sidebar-arrow.open { transform: rotate(180deg); }

/* 그룹 바디 애니메이션 */
.sidebar-group-body {
    overflow: hidden;
}

/* 구분선 */
.sidebar-divider {
    border: none;
    border-top: 1px solid #1e2530;
    margin: 8px 0;
}

/* 로그아웃 버튼 */
.sidebar-logout-btn {
    color: #6a7585 !important;
    margin-top: auto;
}
.sidebar-logout-btn:hover { color: #ff6b6b !important; }

/* ─── 모바일 전용 요소 ─── */

/* 오버레이 (모바일에서 메뉴 열릴 때) */
.nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1100;
}

/* ─── 본문 영역 여백 (사이드바 너비만큼) ─── */
.app-body-content {
    margin-left: 260px;
    min-height: calc(100vh - 120px);
    min-width: 0;
    flex: 1;
}

/* ─── 모바일 반응형 ─── */
@media (max-width: 768px) {
    /* 사이드바: 기본 숨김, 열릴 때만 표시 / 모바일은 전체 높이 오버레이 */
    .sidebar {
        top: 0;
        height: 100vh;
        transform: translateX(-100%);
    }
    .sidebar.sidebar-open {
        transform: translateX(0);
    }

    /* 햄버거 버튼 표시 */
    .nav-hamburger {
        display: flex;
    }

    /* 오버레이 표시 */
    .nav-overlay {
        display: block;
    }

    /* 본문 여백 제거 */
    .app-body-content {
        margin-left: 0;
    }

    .content {
        padding: 16px 12px;
    }
}

/* ═══════════════════════════════════════════════
   공통 다이얼로그 (cpd-) — 프로젝트 전역 사용
   ═══════════════════════════════════════════════ */
.cpd-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.cpd-content {
    background: #1a2035;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    width: 500px;
    max-width: 95vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.cpd-content-sm {
    width: 440px;
}

.cpd-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 16px;
    font-weight: 700;
    color: #e2e8f0;
    flex-shrink: 0;
}

.cpd-close-btn {
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 18px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
    transition: background 0.15s;
    line-height: 1;
}
.cpd-close-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #e2e8f0;
}

.cpd-body {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
}

.cpd-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 16px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
}

/* 다이얼로그 내부 텍스트 */
.cpd-desc {
    font-size: 14px;
    color: #94a3b8;
    margin: 0 0 20px 0;
    line-height: 1.7;
}
.cpd-confirm-msg {
    font-size: 14px;
    color: #cbd5e1;
    line-height: 1.8;
    margin: 0;
    word-break: keep-all;
}

/* 공통 버튼 */
.cpd-btn {
    height: 40px;
    min-width: 100px;
    padding: 0 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: opacity 0.2s;
}
.cpd-btn:hover { opacity: 0.85; }
.cpd-btn:disabled { opacity: 0.5; cursor: not-allowed; }

.cpd-btn-cancel {
    background: rgba(255, 255, 255, 0.08);
    color: #94a3b8;
}
.cpd-btn-confirm {
    background: var(--theme-primary, #13cbac);
    color: #000;
    font-weight: 700;
}

/* 빠른 금액 버튼 그리드 (SendMailDialog 등) */
.cpd-amount-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 8px;
}
.cpd-amount-btn {
    padding: 10px 6px;
    border-radius: 8px;
    border: 1px solid rgba(100, 180, 255, 0.25);
    background: rgba(30, 100, 200, 0.55);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
}
.cpd-amount-btn:hover { background: rgba(50, 130, 230, 0.8); }
.cpd-amount-btn.active { background: rgba(20, 70, 160, 0.9); border-color: #64b4ff; }
.cpd-amount-btn-clear { background: rgba(55, 65, 81, 0.8); }
.cpd-amount-btn-clear:hover { background: rgba(75, 85, 99, 0.9); }

@media (max-width: 480px) {
    .cpd-content { width: 98vw; }
    .cpd-amount-grid { grid-template-columns: repeat(2, 1fr); }
    .cpd-btn { min-width: 80px; font-size: 13px; }
}

/* ─── CpToggle 전역 스타일 (동적 렌더링 시 스타일 누락 방지) ─── */
.custom-toggle {
    width: 48px;
    height: 24px;
    background-color: #555;
    border-radius: 12px;
    position: relative;
    cursor: pointer;
    transition: background-color 0.3s;
    flex-shrink: 0;
}
.custom-toggle .toggle-thumb {
    width: 20px;
    height: 20px;
    background-color: #fff;
    border-radius: 50%;
    position: absolute;
    top: 2px;
    left: 2px;
    transition: left 0.3s;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}
.custom-toggle.on {
    background-color: #5b4bff;
}
.custom-toggle.on .toggle-thumb {
    left: 26px;
}

/* ─── 공통 테이블 (cp-table) ─── */
.cp-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    color: #c5ccd8;
}
.cp-table thead tr {
    background: rgba(255, 255, 255, 0.04);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.cp-table th {
    padding: 12px 10px;
    text-align: center;
    font-size: 12px;
    font-weight: 700;
    color: #94a3b8;
    white-space: nowrap;
}
.cp-table tbody tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: background 0.15s;
}
.cp-table tbody tr:hover { background: rgba(255, 255, 255, 0.03); }
.cp-table td {
    padding: 10px;
    white-space: nowrap;
}

/* ─── 공통 인라인 버튼 스타일 ─── */
.al-link-btn {
    background: transparent;
    border: none;
    color: var(--theme-primary, #00ffe0);
    cursor: pointer;
    font-size: 13px;
    padding: 2px 6px;
    border-radius: 4px;
    transition: opacity 0.15s;
}
.al-link-btn:hover { opacity: 0.75; }

.al-log-btn {
    padding: 4px 10px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.06);
    color: #c5ccd8;
    font-size: 12px;
    cursor: pointer;
    transition: background 0.15s;
    white-space: nowrap;
}
.al-log-btn:hover { background: rgba(255, 255, 255, 0.12); }

.al-icon-btn {
    background: transparent;
    border: none;
    color: #64748b;
    cursor: pointer;
    font-size: 14px;
    padding: 2px 4px;
    border-radius: 4px;
    transition: color 0.15s;
    flex-shrink: 0;
}
.al-icon-btn:hover { color: #c5ccd8; }

@media (max-width: 768px) {
    .cp-table th, .cp-table td { padding: 8px 6px; font-size: 12px; }
    .al-log-btn { padding: 4px 6px; font-size: 11px; }
}

/* ─── CPPagination 공통 스타일 ─── */
.cpp-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    padding: 8px 0;
}
.cpp-btn {
    min-width: 36px;
    height: 34px;
    padding: 0 10px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
    color: #94a3b8;
    font-size: 13px;
    cursor: pointer;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
    white-space: nowrap;
}
.cpp-btn:hover:not(:disabled) {
    background: rgba(0, 255, 224, 0.1);
    border-color: rgba(0, 255, 224, 0.3);
    color: var(--theme-primary, #00ffe0);
}
.cpp-btn.cpp-btn-active {
    background: rgba(0, 255, 224, 0.15);
    border-color: var(--theme-primary, #00ffe0);
    color: var(--theme-primary, #00ffe0);
    font-weight: 700;
    cursor: default;
}
.cpp-btn.cpp-btn-disabled,
.cpp-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}
@media (max-width: 480px) {
    .cpp-btn { min-width: 30px; height: 30px; font-size: 12px; padding: 0 7px; }
}
