/* =============================================
   직원명단 페이지 - Dark Theme
   ============================================= */

/* ── 액션 바 ── */
.hrm-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 6px;
}
.hrm-actions-left {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* ── 필터 바 ── */
.hrm-filter {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    padding: 16px 20px;
    background: rgba(255,255,255,.03);
    border: 1px solid rgba(255,255,255,.06);
    border-radius: 14px;
    margin-bottom: 20px;
}

/* 검색 인풋 */
.hrm-filter-search {
    flex: 1;
    min-width: 200px;
    position: relative;
}
.hrm-filter-search i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255,255,255,.3);
    font-size: .8rem;
    pointer-events: none;
}
.hrm-filter-search input {
    width: 100%;
    padding: 9px 12px 9px 36px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,.08);
    background: rgba(255,255,255,.04);
    color: rgba(255,255,255,.85);
    font-size: .82rem;
    outline: none;
    transition: border-color .2s;
    box-sizing: border-box;
}
.hrm-filter-search input::placeholder {
    color: rgba(255,255,255,.3);
}
.hrm-filter-search input:focus {
    border-color: rgba(99,102,241,.5);
    box-shadow: 0 0 0 3px rgba(99,102,241,.1);
}

/* 셀렉트 */
.hrm-filter-select {
    padding: 9px 32px 9px 14px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,.08);
    background: rgba(255,255,255,.04);
    color: rgba(255,255,255,.7);
    font-size: .82rem;
    outline: none;
    cursor: pointer;
    min-width: 120px;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' fill='none'%3E%3Cpath d='M1 1l4 4 4-4' stroke='rgba(255,255,255,0.4)' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    transition: border-color .2s;
}
.hrm-filter-select:focus {
    border-color: rgba(99,102,241,.5);
}
.hrm-filter-select option {
    background: #14141e;
    color: rgba(255,255,255,.85);
}

/* 리셋 버튼 */
.hrm-filter-reset {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 14px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,.06);
    background: rgba(255,255,255,.03);
    color: rgba(255,255,255,.45);
    font-size: .78rem;
    cursor: pointer;
    transition: all .2s;
    white-space: nowrap;
}
.hrm-filter-reset:hover {
    border-color: rgba(99,102,241,.3);
    color: #818cf8;
    background: rgba(99,102,241,.06);
}
.hrm-filter-reset i {
    font-size: .7rem;
}

/* 필터 요약 */
.hrm-filter-summary {
    font-size: .8rem;
    color: rgba(255,255,255,.45);
    margin-left: auto;
    white-space: nowrap;
}
.hrm-filter-summary strong {
    color: rgba(255,255,255,.7);
    font-weight: 700;
}

/* ── 테이블 액션 버튼 ── */
.hrm-td-actions {
    display: flex;
    gap: 4px;
    justify-content: center;
}
.hrm-td-actions .e-btn {
    padding: 4px 8px !important;
    font-size: .72rem !important;
    height: auto !important;
    min-width: auto !important;
}
.hrm-td-actions .btn-delete {
    color: #fb7185 !important;
}
.hrm-td-actions .btn-delete:hover {
    background: rgba(251,113,133,.1) !important;
}

/* 테이블 이름 강조 */
.emp-name {
    font-weight: 600;
    color: rgba(255,255,255,.9);
}

/* ── 페이지네이션 ── */
.hrm-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 20px;
    padding: 0 4px;
}
.hrm-pagination-info {
    font-size: .8rem;
    color: rgba(255,255,255,.45);
}
.hrm-pagination-info strong {
    color: rgba(255,255,255,.7);
}
.hrm-pagination-pages {
    display: flex;
    gap: 6px;
    align-items: center;
}
.hrm-pagination-pages .e-btn {
    padding: 6px 12px !important;
    font-size: .78rem !important;
    min-width: 34px;
    height: auto !important;
    justify-content: center;
}
.hrm-pagination-pages .e-btn.active {
    background: #6366f1;
    color: #fff;
    border-color: #6366f1;
}
.hrm-pagination-pages .e-btn:disabled {
    opacity: .35;
    cursor: not-allowed;
}

/* ── 모달 ── */
.hrm-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9000;
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s;
}
.hrm-modal-overlay.show {
    opacity: 1;
    pointer-events: auto;
}

.hrm-modal {
    background: #14141e;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,.50);
    width: 560px;
    max-width: 92vw;
    max-height: 90vh;
    overflow-y: auto;
    transform: translateY(20px) scale(.96);
    transition: transform .3s cubic-bezier(.4,0,.2,1);
}
.hrm-modal-overlay.show .hrm-modal {
    transform: translateY(0) scale(1);
}

.hrm-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid rgba(255,255,255,.06);
}
.hrm-modal-header h3 {
    font-size: 16px;
    font-weight: 700;
    color: rgba(255,255,255,.9);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}
.hrm-modal-header h3 i {
    color: #818cf8;
}
.hrm-modal-close {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: none;
    background: rgba(255,255,255,.04);
    color: rgba(255,255,255,.35);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: all .2s;
}
.hrm-modal-close:hover {
    background: rgba(255,255,255,.08);
    color: rgba(255,255,255,.9);
}

.hrm-modal-body {
    padding: 24px;
}
.hrm-modal-body .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}
.hrm-modal-body .form-group {
    margin-bottom: 16px;
}
.hrm-modal-body .form-group:last-child {
    margin-bottom: 0;
}
.hrm-modal-body .form-group.full {
    grid-column: 1 / -1;
}
.hrm-modal-body label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: rgba(255,255,255,.6);
    margin-bottom: 6px;
}
.hrm-modal-body label .req {
    color: #f87171;
    margin-left: 2px;
}
.hrm-modal-body input,
.hrm-modal-body select,
.hrm-modal-body textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid rgba(255,255,255,.06);
    border-radius: 8px;
    font-size: 13px;
    color: rgba(255,255,255,.9);
    background: rgba(255,255,255,.04);
    transition: border-color .2s;
    box-sizing: border-box;
    font-family: inherit;
}
.hrm-modal-body input:focus,
.hrm-modal-body select:focus,
.hrm-modal-body textarea:focus {
    outline: none;
    border-color: #818cf8;
    box-shadow: 0 0 0 3px rgba(129,140,248,.15);
}
.hrm-modal-body input::placeholder,
.hrm-modal-body textarea::placeholder {
    color: rgba(255,255,255,.25);
}
.hrm-modal-body select option {
    background: #14141e;
    color: rgba(255,255,255,.9);
}
.hrm-modal-body textarea {
    resize: vertical;
    min-height: 70px;
}

.hrm-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 16px 24px;
    border-top: 1px solid rgba(255,255,255,.06);
}

/* ── 반응형 ── */
@media (max-width: 1024px) {
    .hrm-filter {
        gap: 8px;
    }
    .hrm-filter-select {
        min-width: 100px;
    }
}
@media (max-width: 767px) {
    .hrm-actions {
        flex-direction: column;
        align-items: stretch;
    }
    .hrm-actions-left {
        justify-content: stretch;
    }
    .hrm-actions-left .e-btn {
        flex: 1;
        justify-content: center;
    }
    .hrm-filter {
        flex-direction: column;
        align-items: stretch;
    }
    .hrm-filter-search {
        min-width: 100%;
    }
    .hrm-filter-select {
        width: 100%;
    }
    .hrm-modal-body .form-row {
        grid-template-columns: 1fr;
    }
    .hrm-pagination {
        flex-direction: column;
        gap: 12px;
    }
}
