@charset "utf-8";

/* =========================================================
   1. 공통 변수
========================================================= */

:root {
    --ui-primary: #2563eb;
    --ui-primary-hover: #1d4ed8;
    --ui-primary-soft: #eff6ff;

    --ui-background: #f5f7fb;
    --ui-surface: #ffffff;
    --ui-surface-muted: #f8fafc;

    --ui-text: #172033;
    --ui-text-secondary: #667085;
    --ui-text-muted: #98a2b3;

    --ui-border: #e4e7ec;
    --ui-border-strong: #d0d5dd;

    --ui-success: #17b26a;
    --ui-danger: #f04438;
    --ui-warning: #f79009;
    --ui-neutral: #98a2b3;

    --ui-sidebar-width: 260px;

    --ui-radius: 12px;
    --ui-radius-small: 8px;

    --ui-shadow:
        0 1px 2px rgba(16, 24, 40, 0.04),
        0 4px 12px rgba(16, 24, 40, 0.06);
}


/* =========================================================
   2. 기본 초기화
========================================================= */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
}

body {
    margin: 0;
    color: var(--ui-text);
    font-family:
        Pretendard,
        "Noto Sans KR",
        "Malgun Gothic",
        Arial,
        sans-serif;
    font-size: 14px;
    background: var(--ui-background);
}

button,
input,
select,
textarea {
    font-family: inherit;
}

button {
    cursor: pointer;
}

.quick_hidden {
    display: none !important;
}


/* =========================================================
   3. 전체 대시보드 레이아웃
========================================================= */

body.dashboard-body {
    min-height: 100vh;
    background: var(--ui-background) !important;
}

.dashboard-main {
    min-height: 100vh;
    overflow-x: hidden !important;
    transition: margin-left 0.2s ease;
}

.body-desc {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 24px 32px 40px;
}

.page-header {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 32px 32px 0;
}

.page-title {
    margin: 0;
    color: var(--ui-text);
    font-size: 28px;
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: -0.025em;
}

.page-description {
    margin: 7px 0 0;
    color: var(--ui-text-secondary);
    font-size: 14px;
    line-height: 1.6;
}

/* 기존 body-top을 사용하는 다른 페이지용 */

.body-top {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 32px 32px 0;

    color: var(--ui-text);
    font-size: 28px;
    font-weight: 700 !important;
    line-height: 1.35;
    text-align: left;

    background: transparent;
    border: 0;
    border-radius: 0;
}


/* =========================================================
   4. 사이드바
========================================================= */

.dashboard-sidebar {
    display: flex !important;
    position: fixed !important;
    top: 0;
    bottom: 0;
    left: 0 !important;
    z-index: 9999;

    flex-direction: column;

    width: var(--ui-sidebar-width) !important;
    max-width: var(--ui-sidebar-width) !important;
    padding: 0 !important;

    overflow: hidden !important;

    color: #ffffff;
    background: #111827 !important;
    background-image: none !important;
    border: 0;
    box-shadow: 4px 0 20px rgba(15, 23, 42, 0.08);
}

.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    min-height: 72px;
    padding: 0 20px;

    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-logo {
    display: flex;
    align-items: center;
    min-width: 0;
    color: #ffffff;
}

.sidebar-logo-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;

    width: 34px;
    height: 34px;
    margin-right: 11px;

    color: #ffffff;
    background: var(--ui-primary);
    border-radius: 10px;
}

.sidebar-logo-icon .material-icons {
    position: static;
    top: auto;
    font-size: 22px;
    line-height: 1;
}

.sidebar-logo-text {
    overflow: hidden;

    font-size: 17px;
    font-weight: 700;
    letter-spacing: -0.02em;

    text-overflow: ellipsis;
    white-space: nowrap;
}

.sidebar-nav {
    flex: 1;
    padding: 18px 12px;
    overflow-y: auto;
}

.sidebar-footer {
    padding: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-menu-item {
    display: flex;
    align-items: center;

    width: 100%;
    min-height: 44px;
    margin: 3px 0;
    padding: 10px 12px;

    color: #cbd5e1;
    font-size: 14px;
    font-weight: 500;
    text-align: left;

    background: transparent;
    border: 0;
    border-radius: 9px;

    transition:
        color 0.15s ease,
        background-color 0.15s ease,
        box-shadow 0.15s ease;
}

.sidebar-menu-item:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
}

.sidebar-menu-item.active {
    color: #ffffff;
    background: var(--ui-primary);
    box-shadow: 0 6px 14px rgba(37, 99, 235, 0.25);
}

.sidebar-menu-icon {
    flex: 0 0 auto;
    margin-right: 12px;
    font-size: 21px;
}

.sidebar-logout {
    color: #fda4af;
}

.sidebar-logout:hover {
    color: #ffffff;
    background: rgba(240, 68, 56, 0.18);
}

.sidebar-close-button {
    display: none;
    align-items: center;
    justify-content: center;

    width: 36px;
    height: 36px;
    padding: 0;

    color: #ffffff;
    background: transparent;
    border: 0;
    border-radius: 8px;
}

.sidebar-close-button:hover {
    background: rgba(255, 255, 255, 0.08);
}

.sidebar-close-button .material-icons {
    position: static;
    top: auto;
    line-height: 1;
}

.mobile-menu-button {
    display: none;
    position: fixed;
    top: 14px;
    left: 14px;
    z-index: 10000;

    align-items: center;
    justify-content: center;

    width: 42px;
    height: 42px;
    padding: 0;

    color: #344054;
    background: #ffffff;
    border: 1px solid var(--ui-border);
    border-radius: 9px;
    box-shadow: var(--ui-shadow);
}

.mobile-menu-button .material-icons {
    position: static;
    top: auto;
    line-height: 1;
}

.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9997;
    background: rgba(15, 23, 42, 0.45);
}

@media (min-width: 1200px) {
    .dashboard-sidebar.fixed-start + .dashboard-main {
        margin-left: var(--ui-sidebar-width);
    }
}


/* =========================================================
   5. 공통 카드
========================================================= */

.ui-card,
.dashboard-card {
    position: relative;
    display: block;

    width: 100%;
    min-width: 0;
    margin-bottom: 20px;
    padding: 24px;

    background: var(--ui-surface);
    border: 1px solid var(--ui-border);
    border-radius: var(--ui-radius);
    box-shadow: var(--ui-shadow);
}

.ui-section-header,
.card-section-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;

    margin-bottom: 22px;
}

.ui-section-title,
.card-section-title {
    margin: 0;

    color: var(--ui-text);
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
}

.ui-section-description,
.card-section-description {
    margin: 5px 0 0;

    color: var(--ui-text-secondary);
    font-size: 13px;
    line-height: 1.5;
}

.list-count {
    flex: 0 0 auto;

    padding: 5px 10px;

    color: var(--ui-primary);
    font-size: 12px;
    font-weight: 700;

    background: var(--ui-primary-soft);
    border-radius: 999px;
}


/* =========================================================
   6. 공통 폼
========================================================= */

.ui-form-grid,
.option_wrap.ui-form-grid {
    display: grid;
    align-items: end;
    width: 100%;
    gap: 16px;
}

/* 동일한 너비가 필요한 일반 폼 */

.ui-form-grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ui-form-grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ui-form-grid-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

/*
 * 현재 영상·채널 등록 폼용 6열
 * 등록계정 / 키워드 / URL / 유입수 / 시작일 / 버튼
 */

.ui-form-grid-6 {
    grid-template-columns:
        minmax(150px, 0.9fr)
        minmax(160px, 1fr)
        minmax(280px, 1.8fr)
        minmax(110px, 0.7fr)
        minmax(150px, 0.9fr)
        minmax(150px, 0.9fr);
}

.ui-field {
    min-width: 0;
}

.ui-field-wide {
    min-width: 0;
}

.ui-field-action {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.ui-label {
    display: block;

    margin: 0 0 7px;

    color: #344054;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
}

.ui-label-hidden {
    visibility: hidden;
}


/* =========================================================
   7. 공통 입력창
========================================================= */

.ui-control {
    display: block;

    width: 100%;
    height: 42px;
    min-width: 0;
    margin: 0;
    padding: 0 12px;

    color: var(--ui-text);
    font-size: 14px;
    font-weight: 400;
    line-height: normal;

    background: #ffffff;
    background-image: none;
    border: 1px solid var(--ui-border-strong);
    border-radius: var(--ui-radius-small);
    outline: none;

    box-shadow: none;

    transition:
        border-color 0.15s ease,
        box-shadow 0.15s ease,
        background-color 0.15s ease;
}

.ui-control::placeholder {
    color: var(--ui-text-muted);
    opacity: 1;
}

.ui-control:hover {
    border-color: #98a2b3;
}

.ui-control:focus {
    border-color: var(--ui-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.ui-control:disabled {
    color: var(--ui-text-secondary);
    background: #f2f4f7;
    cursor: not-allowed;
}

.ui-control[type="date"] {
    color: #344054;
}

textarea.ui-control {
    min-height: 100px;
    height: auto;
    padding-top: 10px;
    padding-bottom: 10px;
    resize: vertical;
}


/* =========================================================
   8. 공통 버튼
========================================================= */

.ui-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 42px;
    margin: 0;
    padding: 0 16px;

    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;

    border-radius: var(--ui-radius-small);

    white-space: nowrap;

    transition:
        color 0.15s ease,
        background-color 0.15s ease,
        border-color 0.15s ease,
        box-shadow 0.15s ease,
        transform 0.15s ease;
}

.ui-button .material-icons,
.ui-button .material-icons-outlined {
    position: static;
    top: auto;

    margin-right: 6px;

    font-size: 18px;
    line-height: 1;
}

.ui-button-primary {
    color: #ffffff;
    background: var(--ui-primary);
    border: 1px solid var(--ui-primary);
    box-shadow: 0 2px 4px rgba(37, 99, 235, 0.2);
}

.ui-button-primary:hover {
    color: #ffffff;
    background: var(--ui-primary-hover);
    border-color: var(--ui-primary-hover);
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.25);
}

.ui-button-secondary {
    color: #344054;
    background: #ffffff;
    border: 1px solid var(--ui-border-strong);
}

.ui-button-secondary:hover {
    color: var(--ui-primary);
    background: var(--ui-primary-soft);
    border-color: #84adff;
}

.ui-button-danger {
    color: #ffffff;
    background: var(--ui-danger);
    border: 1px solid var(--ui-danger);
}

.ui-button-danger:hover {
    background: #d92d20;
    border-color: #d92d20;
}

.ui-button:active {
    transform: translateY(1px);
}

.ui-button:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
}


/* =========================================================
   9. 기존 영상·채널 등록 폼 ID 충돌 방지
   ui-control 클래스를 넣었을 때 기존 gd_default.css보다 우선 적용
========================================================= */

.ui-form-grid #bj_name.ui-control,
.ui-form-grid #search_keyword.ui-control,
.ui-form-grid #bj_id.ui-control,
.ui-form-grid #set_view_cnt.ui-control,
.ui-form-grid #slot_sdate.ui-control,
.ui-form-grid #slot_edate.ui-control,
.ui-form-grid #delay_sec1.ui-control,
.ui-form-grid #delay_sec2.ui-control {
    display: block;

    width: 100%;
    height: 42px;
    min-width: 0;
    margin: 0;
    padding: 0 12px;

    color: var(--ui-text);
    font-size: 14px;

    background: #ffffff;
    background-image: none;
    border: 1px solid var(--ui-border-strong);
    border-radius: var(--ui-radius-small);

    box-shadow: none;
}

.ui-form-grid #bj_name.ui-control:disabled {
    color: var(--ui-text-secondary);
    background: #f2f4f7;
}

.ui-form-grid .btn_add_bj.ui-button {
    width: 100%;
    height: 42px;
    min-width: 0;
    margin: 0;
    padding: 0 14px;

    color: #ffffff;
    background: var(--ui-primary);
    background-image: none;
    border: 1px solid var(--ui-primary);
    border-radius: var(--ui-radius-small);
}


/* =========================================================
   10. 테이블
========================================================= */

.table-responsive {
    width: 100%;
    overflow-x: auto;

    border: 1px solid var(--ui-border);
    border-radius: 10px;
}

.ui-table,
.dashboard-table {
    width: 100%;
    min-width: 960px;

    color: var(--ui-text);
    font-size: 13px;

    border-spacing: 0;
    border-collapse: separate;
}

.ui-table thead th,
.dashboard-table thead th {
    padding: 13px 14px;

    color: #475467;
    font-size: 12px;
    font-weight: 700;
    text-align: center;

    white-space: nowrap;

    background: var(--ui-surface-muted);
    border-bottom: 1px solid var(--ui-border);
}

.ui-table tbody td,
.dashboard-table tbody td {
    padding: 13px 14px;

    color: #344054;
    text-align: center;
    vertical-align: middle;

    background: #ffffff;
    border-top: 0;
    border-bottom: 1px solid #f0f2f5;
}

.ui-table tbody tr:last-child td,
.dashboard-table tbody tr:last-child td {
    border-bottom: 0;
}

.ui-table tbody tr:hover td,
.dashboard-table tbody tr:hover td {
    background: #f9fafb;
}

.ui-table a,
.dashboard-table a {
    color: var(--ui-primary);
    text-decoration: none;
}

.ui-table a:hover,
.dashboard-table a:hover {
    text-decoration: underline;
}

.ui-table .ui-control,
.dashboard-table .ui-control {
    min-width: 90px;
    height: 36px;
    text-align: center;
}

.table-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 34px;
    padding: 6px 11px;

    color: #344054;
    font-size: 12px;
    font-weight: 600;

    background: #ffffff;
    border: 1px solid var(--ui-border-strong);
    border-radius: 7px;

    transition:
        color 0.15s ease,
        border-color 0.15s ease,
        background-color 0.15s ease;
}

.table-button:hover {
    color: var(--ui-primary);
    background: var(--ui-primary-soft);
    border-color: #84adff;
}


/* =========================================================
   11. 상태 표시: 도트 형태
========================================================= */

.status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    min-width: 0;
    min-height: 0;
    padding: 0;

    color: #344054;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;

    background: transparent;
    border: 0;
    border-radius: 0;

    white-space: nowrap;
}

.status-badge::before {
    content: "";

    display: inline-block;
    flex: 0 0 auto;

    width: 8px;
    height: 8px;

    background: var(--ui-neutral);
    border-radius: 50%;
}

.status-badge.live_status1 {
    color: #344054;
    background: transparent;
}

.status-badge.live_status1::before {
    background: var(--ui-success);
}

.status-badge.live_status2 {
    color: #344054;
    background: transparent;
}

.status-badge.live_status2::before {
    background: var(--ui-danger);
}

.status-badge.live_status0 {
    color: #344054;
    background: transparent;
}

.status-badge.live_status0::before {
    background: var(--ui-warning);
}

.expiration_date {
    color: var(--ui-danger) !important;
    font-weight: 700;
}


/* =========================================================
   12. 팝업
========================================================= */

.popup-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 20px;

    visibility: hidden;
    opacity: 0;

    background: rgba(15, 23, 42, 0.5);

    transition:
        visibility 0.2s ease,
        opacity 0.2s ease;
}

.popup-overlay.active {
    visibility: visible;
    opacity: 1;
}

.popup-content {
    position: relative;

    width: 100%;
    max-width: 500px;
    max-height: 85vh;
    padding: 24px;

    overflow-y: auto;

    text-align: left;

    background: #ffffff;
    border: 1px solid var(--ui-border);
    border-radius: 14px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.2);
}

.popup-content-title {
    margin-bottom: 20px;
    padding-right: 42px;
}

.popup-content-title h2 {
    margin: 0;

    color: var(--ui-text);
    font-size: 19px;
    font-weight: 700;
}

.popup-content-desc .option,
.popup-content-desc .ui-field {
    margin-bottom: 15px;
}

.popup-content-desc label {
    display: block;

    margin-bottom: 7px;

    color: #344054;
    font-size: 13px;
    font-weight: 600;
}

.popup-content-desc input,
.popup-content-desc select,
.popup-content-desc textarea {
    display: block;

    width: 100%;
    min-height: 42px;
    margin: 0;
    padding: 0 12px;

    color: var(--ui-text);
    font-size: 14px;

    background: #ffffff;
    border: 1px solid var(--ui-border-strong);
    border-radius: var(--ui-radius-small);
    outline: none;
}

.popup-content-desc textarea {
    min-height: 100px;
    padding-top: 10px;
    padding-bottom: 10px;
}

.popup-content-desc input:focus,
.popup-content-desc select:focus,
.popup-content-desc textarea:focus {
    border-color: var(--ui-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.close-btn2 {
    position: absolute;
    top: 16px;
    right: 16px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 34px;
    height: 34px;
    padding: 0;

    color: #667085;
    font-size: 22px;
    line-height: 1;

    background: #f2f4f7;
    border: 0;
    border-radius: 8px;
}

.close-btn2:hover {
    color: #344054;
    background: #e4e7ec;
}

.close-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 40px;
    margin-top: 10px;
    padding: 0 18px;

    color: #344054;
    font-size: 14px;
    font-weight: 600;

    background: #ffffff;
    border: 1px solid var(--ui-border-strong);
    border-radius: var(--ui-radius-small);
}

.close-btn:hover {
    color: var(--ui-primary);
    background: var(--ui-primary-soft);
    border-color: #84adff;
}

.update-btn,
.btn_days_extention {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 42px;
    margin: 10px 0 0;
    padding: 0 18px;

    color: #ffffff;
    font-size: 14px;
    font-weight: 700;

    background: var(--ui-primary);
    border: 1px solid var(--ui-primary);
    border-radius: var(--ui-radius-small);
}

.update-btn:hover,
.btn_days_extention:hover {
    background: var(--ui-primary-hover);
    border-color: var(--ui-primary-hover);
}


/* =========================================================
   13. 페이지네이션
========================================================= */

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;

    gap: 6px;
    margin: 0 auto;
}

.pagination a {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 36px;
    min-height: 36px;
    padding: 6px 11px;

    color: #475467;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;

    background: #ffffff;
    border: 1px solid var(--ui-border);
    border-radius: 7px;
}

.pagination a:hover {
    color: var(--ui-primary);
    background: var(--ui-primary-soft);
    border-color: #84adff;
}

.pagination a.active {
    color: #ffffff;
    background: var(--ui-primary);
    border-color: var(--ui-primary);
}

.pagination a.disabled {
    opacity: 0.45;
    pointer-events: none;
}


/* =========================================================
   14. 사용자 관리
========================================================= */

.addmember_wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;

    gap: 10px;
    margin: 30px 0;
}

.addmember_wrap input,
.addmember_wrap select {
    height: 42px;
    margin: 0;
    padding: 0 12px;

    color: var(--ui-text);
    font-size: 14px;

    background: #ffffff;
    border: 1px solid var(--ui-border-strong);
    border-radius: var(--ui-radius-small);
    outline: none;
}

.addmember_wrap input:focus,
.addmember_wrap select:focus {
    border-color: var(--ui-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

#tc_addmember {
    height: 42px;
    margin: 0;
    padding: 0 18px;

    color: #ffffff;
    font-size: 14px;
    font-weight: 700;

    background: var(--ui-primary);
    border: 1px solid var(--ui-primary);
    border-radius: var(--ui-radius-small);
}

.member-list {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;

    overflow: hidden;

    list-style: none;

    background: #ffffff;
    border: 1px solid var(--ui-border);
    border-radius: 10px;
    box-shadow: none;
}

.member-list li {
    display: flex;
    align-items: center;

    min-width: 850px;
    padding: 0;

    border-bottom: 1px solid #f0f2f5;
}

.member-list li:first-child {
    color: #475467;
    font-size: 12px;
    font-weight: 700;
    background: var(--ui-surface-muted);
}

.member-list li:last-child {
    border-bottom: 0;
}

.member-list li.list:hover {
    background: #f9fafb;
}

.member-list .col {
    padding: 13px 12px;
}

.edit_member {
    min-height: 34px;
    padding: 6px 11px;

    color: #344054;
    font-size: 12px;
    font-weight: 600;

    background: #ffffff;
    border: 1px solid var(--ui-border-strong);
    border-radius: 7px;
}

.edit_member:hover {
    color: var(--ui-primary);
    background: var(--ui-primary-soft);
    border-color: #84adff;
}


/* =========================================================
   15. 로그인 화면
========================================================= */

body.login-body {
    display: flex;
    align-items: center;
    justify-content: center;

    min-height: 100vh;
    padding: 24px;

    background:
        radial-gradient(
            circle at top left,
            rgba(37, 99, 235, 0.16),
            transparent 36%
        ),
        var(--ui-background) !important;
}

.login-body .main {
    width: 100%;
    height: auto;
}

.login-body .login-wrap {
    position: static;

    width: 100%;
    max-width: 420px;
    margin: 0 auto;
    padding: 34px;

    background: #111827 !important;
    background-image: none !important;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.18);
}

.login-body .site-title {
    margin: 0 0 10px;

    color: #ffffff;
    font-size: 24px;
    font-weight: 700;
    text-align: center;
}

.login-body .login-title {
    margin-bottom: 12px;
    color: #d0d5dd;
    font-size: 14px;
}

.login-body #mobile,
.login-body #n_authcode,
.login-body #n_login {
    width: 100%;
    height: 50px;
    margin: 10px 0 0;
}

.login-body #mobile,
.login-body #n_authcode {
    padding: 0 14px;

    color: #ffffff;
    font-size: 15px;

    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 9px;
    outline: none;
}

.login-body #mobile::placeholder,
.login-body #n_authcode::placeholder {
    color: #98a2b3;
}

.login-body #mobile:focus,
.login-body #n_authcode:focus {
    border-color: #60a5fa;
    box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.15);
}

.login-body #n_login {
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;

    background: var(--ui-primary);
    background-image: none;
    border: 0;
    border-radius: 9px;
}

.login-body #n_login:hover {
    background: var(--ui-primary-hover);
}

.login-body .verify_timer_msg {
    padding-top: 7px;
    color: #93c5fd;
    font-size: 13px;
}


/* =========================================================
   16. 태블릿 반응형
========================================================= */

@media (max-width: 1300px) {
    .ui-form-grid-6 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .ui-form-grid-6 .ui-field-wide {
        grid-column: span 2;
    }
}

@media (max-width: 1199.98px) {
    .mobile-menu-button {
        display: inline-flex;
    }

    .dashboard-sidebar {
        transform: translateX(-100%);
        transition: transform 0.2s ease;
    }

    body.sidebar-open .dashboard-sidebar {
        transform: translateX(0);
    }

    body.sidebar-open .sidebar-overlay {
        display: block;
    }

    .sidebar-close-button {
        display: inline-flex;
    }

    .dashboard-main {
        margin-left: 0 !important;
        padding-top: 64px;
    }

    .page-header {
        padding-top: 20px;
    }
}

@media (max-width: 850px) {
    .ui-form-grid-3,
    .ui-form-grid-4,
    .ui-form-grid-6 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ui-form-grid-6 .ui-field-wide {
        grid-column: span 2;
    }

    .ui-section-header,
    .card-section-header {
        flex-direction: column;
        gap: 10px;
    }

    .list-count {
        align-self: flex-start;
    }
}


/* =========================================================
   17. 모바일 반응형
========================================================= */

@media (max-width: 600px) {
    .body-desc {
        padding: 16px;
    }

    .page-header {
        padding: 16px 16px 0;
    }

    .page-title,
    .body-top {
        font-size: 23px;
    }

    .body-top {
        padding: 16px 16px 0;
    }

    .ui-card,
    .dashboard-card {
        padding: 18px;
        border-radius: 10px;
    }

    .ui-form-grid,
    .ui-form-grid-2,
    .ui-form-grid-3,
    .ui-form-grid-4,
    .ui-form-grid-6 {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .ui-form-grid .ui-field-wide {
        grid-column: auto;
    }

    .ui-button {
        width: 100%;
    }

    .popup-content {
        padding: 20px;
    }

    .login-body .login-wrap {
        padding: 26px 20px;
    }
}