/* ===== Global ===== */
* { box-sizing: border-box; }

body {
    font-family: 'Malgun Gothic', '맑은 고딕', -apple-system, BlinkMacSystemFont, sans-serif;
    margin: 0;
}

/* ===== Login ===== */
body.login-body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: #fff;
    transition: background 0.3s, color 0.3s;
}
body.login-body.dark {
    background: #141414;
}

.login-wrap {
    width: 100%;
    max-width: 340px;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* 타이틀 */
.login-title {
    font-size: 36px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 36px;
    letter-spacing: -0.5px;
    transition: color 0.3s;
}
body.login-body.dark .login-title { color: #ffffffd9; }

/* 에러 */
.login-error {
    width: 100%;
    color: #ff4d4f;
    background: #fff2f0;
    border: 1px solid #ffccc7;
    padding: 9px 14px;
    border-radius: 8px;
    margin-bottom: 14px;
    font-size: 13px;
}
body.login-body.dark .login-error {
    background: rgba(255,77,79,0.1);
    border-color: rgba(255,77,79,0.3);
    color: #ff7875;
}

/* 폼 */
.login-form { width: 100%; display: flex; flex-direction: column; gap: 10px; }

.login-field {
    position: relative;
    display: flex;
    align-items: center;
}
.login-field-icon {
    position: absolute;
    left: 12px;
    color: #bfbfbf;
    display: flex;
    align-items: center;
    pointer-events: none;
}
body.login-body.dark .login-field-icon { color: #595959; }

.login-field input {
    width: 100%;
    padding: 10px 36px;
    background: #fff;
    border: 1px solid #d9d9d9;
    border-radius: 8px;
    color: #1a1a1a;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.3s, color 0.3s;
    outline: none;
}
.login-field input::placeholder { color: #bfbfbf; }
.login-field input:focus {
    border-color: #1677ff;
    box-shadow: 0 0 0 2px rgba(22,119,255,0.12);
}
body.login-body.dark .login-field input {
    background: #1f1f1f;
    border-color: #424242;
    color: #ffffffd9;
}
body.login-body.dark .login-field input::placeholder { color: #595959; }
body.login-body.dark .login-field input:focus {
    border-color: #1677ff;
    box-shadow: 0 0 0 2px rgba(22,119,255,0.2);
}

/* 비밀번호 토글 */
.pw-toggle {
    position: absolute;
    right: 10px;
    background: none;
    border: none;
    cursor: pointer;
    color: #bfbfbf;
    display: flex;
    align-items: center;
    padding: 4px;
    transition: color 0.2s;
}
.pw-toggle:hover { color: #595959; background: none; }
body.login-body.dark .pw-toggle { color: #595959; }
body.login-body.dark .pw-toggle:hover { color: #8c8c8c; }

/* 로그인 버튼 */
.login-btn {
    width: 100%;
    padding: 10px;
    background: #1677ff;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.2s;
    margin-top: 2px;
}
.login-btn:hover { background: #0958d9; }
.login-btn:active { background: #003eb3; }

/* 하단 */
.login-footer {
    margin-top: 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}
.login-copyright {
    font-size: 12px;
    color: #bfbfbf;
    margin: 0;
    transition: color 0.3s;
}
body.login-body.dark .login-copyright { color: #434343; }

/* 다크모드 토글 버튼 */
.theme-toggle {
    background: #f5f5f5;
    border: 1px solid #e8e8e8;
    border-radius: 20px;
    padding: 6px 10px;
    cursor: pointer;
    color: #595959;
    display: flex;
    align-items: center;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
    width: auto;
}
.theme-toggle:hover { background: #e8e8e8; }
body.login-body.dark .theme-toggle {
    background: #2a2a2a;
    border-color: #3a3a3a;
    color: #8c8c8c;
}
body.login-body.dark .theme-toggle:hover { background: #333; }

/* ===== Dashboard 기본 리셋 ===== */
.dashboard-body button {
    width: auto;
    padding: 0;
    background: none;
    color: inherit;
    border: none;
    border-radius: 0;
    font-size: inherit;
    font-weight: inherit;
    cursor: pointer;
    transition: none;
}
.dashboard-body button:hover { background: none; }

.dashboard-body input {
    width: 100%;
    padding: 8px 10px;
    margin-bottom: 0;
    border: 1px solid #d9d9d9;
    border-radius: 6px;
    font-size: 13px;
    font-family: inherit;
    transition: border-color 0.2s;
}
.dashboard-body input:focus {
    outline: none;
    border-color: #1677ff;
    box-shadow: 0 0 0 2px rgba(22,119,255,0.1);
}

/* ===== Dashboard Layout ===== */
.dashboard-body {
    display: block;
    height: 100vh;
    background: #f5f6fa;
    margin: 0;
}

/* Sidebar */
.sidebar {
    position: fixed;
    top: 0; left: 0;
    width: 200px;
    height: 100vh;
    background: #fff;
    border-right: 1px solid #e8e8e8;
    display: flex;
    flex-direction: column;
    z-index: 100;
    transition: width 0.22s ease;
    overflow: hidden;
}
.sidebar.collapsed { width: 56px; }

/* Logo */
.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 14px;
    height: 56px;
    border-bottom: 1px solid #f0f0f0;
    flex-shrink: 0;
}

.hamburger-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: #595959;
    font-size: 16px;
    padding: 0;
    width: 24px;
    flex-shrink: 0;
    line-height: 1;
    transition: color 0.2s;
}
.hamburger-btn:hover { color: #1677ff; background: none; }

.logo-text {
    font-size: 15px;
    font-weight: 700;
    color: #1677ff;
    white-space: nowrap;
    transition: opacity 0.18s;
}
.sidebar.collapsed .logo-text { opacity: 0; pointer-events: none; }

/* Nav */
.sidebar-nav {
    flex: 1;
    padding: 8px 0;
    overflow-y: auto;
    overflow-x: hidden;
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 10px 14px;
    color: #595959;
    text-decoration: none;
    font-size: 13.5px;
    gap: 10px;
    white-space: nowrap;
    border-radius: 0;
    transition: background 0.15s, color 0.15s;
    position: relative;
}
.nav-item:hover { background: #f0f5ff; color: #1677ff; }
.nav-item.active {
    background: #e6f0ff;
    color: #1677ff;
    font-weight: 600;
}
.nav-item.active::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 3px;
    background: #1677ff;
    border-radius: 0 2px 2px 0;
}

.nav-icon {
    font-size: 16px;
    width: 22px;
    text-align: center;
    flex-shrink: 0;
    color: inherit;
}

.nav-label {
    transition: opacity 0.18s;
    white-space: nowrap;
}
.sidebar.collapsed .nav-label { opacity: 0; pointer-events: none; }

/* Sidebar Footer */
.sidebar-footer {
    padding: 12px 14px;
    border-top: 1px solid #f0f0f0;
    display: flex;
    flex-direction: column;
    gap: 6px;
    overflow: hidden;
}
.user-info {
    color: #8c8c8c;
    font-size: 12px;
    white-space: nowrap;
    transition: opacity 0.18s;
}
.sidebar.collapsed .user-info { opacity: 0; }
.logout-btn {
    color: #ff4d4f;
    text-decoration: none;
    font-size: 12px;
    white-space: nowrap;
    transition: opacity 0.18s;
}
.logout-btn:hover { text-decoration: underline; }
.sidebar.collapsed .logout-btn { opacity: 0; pointer-events: none; }

/* Main Content */
.main-content {
    margin-left: 200px;
    min-height: 100vh;
    transition: margin-left 0.22s ease;
}
.main-content.collapsed { margin-left: 56px; }

/* Topbar */
.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 24px;
    height: 56px;
    background: #fff;
    border-bottom: 1px solid #f0f0f0;
    position: sticky;
    top: 0;
    z-index: 50;
}

.topbar-left { display: flex; flex-direction: column; gap: 1px; }

.breadcrumb { font-size: 11px; color: #bfbfbf; }
.breadcrumb span { color: #1677ff; }

.page-title {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a2e;
    margin: 0;
}

.topbar-right { display: flex; align-items: center; gap: 10px; }
.topbar-time { color: #bfbfbf; font-size: 12px; }

/* Page Body */
.page-body { padding: 20px 24px; }

/* Stat Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-bottom: 18px;
}

.stat-card {
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 8px;
    padding: 18px 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    position: relative;
}

.stat-icon {
    font-size: 24px;
    width: 44px; height: 44px;
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.stat-icon.server    { background: #e6f0ff; }
.stat-icon.ansible   { background: #fff7e6; }
.stat-icon.terraform { background: #f6ffed; }
.stat-icon.alert     { background: #fff2f0; }

.stat-value { font-size: 22px; font-weight: 700; color: #1a1a2e; }
.stat-label { font-size: 12px; color: #8c8c8c; margin-top: 2px; }

.stat-badge {
    position: absolute;
    top: 12px; right: 12px;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 500;
}
.stat-badge.up    { background: #f6ffed; color: #52c41a; border: 1px solid #b7eb8f; }
.stat-badge.ready { background: #e6f0ff; color: #1677ff; border: 1px solid #91caff; }
.stat-badge.warn  { background: #fff7e6; color: #fa8c16; border: 1px solid #ffd591; }

/* Content Grid */
.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 18px;
}

/* Panel */
.panel {
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 8px;
    padding: 18px 20px;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f5f5f5;
}
.panel-header h2 { font-size: 14px; font-weight: 600; color: #1a1a2e; margin: 0; }

/* Buttons */
.panel-btn {
    background: #1677ff;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
    width: auto;
}
.panel-btn:hover { background: #0958d9; }

/* Table */
.data-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.data-table th {
    text-align: left;
    padding: 8px 10px;
    color: #8c8c8c;
    font-weight: 500;
    font-size: 12px;
    border-bottom: 1px solid #f0f0f0;
    background: #fafafa;
}
.data-table td {
    padding: 10px 10px;
    border-bottom: 1px solid #fafafa;
    color: #333;
    font-size: 13px;
}
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: #fafcff; }

.status-dot {
    display: inline-block;
    width: 7px; height: 7px;
    border-radius: 50%;
    margin-right: 5px;
}
.status-dot.online  { background: #52c41a; }
.status-dot.warning { background: #fa8c16; }
.status-dot.offline { background: #ff4d4f; }

/* Activity List */
.activity-list { list-style: none; padding: 0; margin: 0; }
.activity-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 9px 0;
    border-bottom: 1px solid #fafafa;
}
.activity-item:last-child { border-bottom: none; }

.activity-icon {
    width: 26px; height: 26px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 12px; flex-shrink: 0;
}
.activity-item.success .activity-icon { background: #f6ffed; color: #52c41a; }
.activity-item.warning .activity-icon { background: #fff7e6; color: #fa8c16; }
.activity-item.info    .activity-icon { background: #e6f0ff; color: #1677ff; }

.activity-title { font-size: 13px; color: #333; font-weight: 500; }
.activity-meta  { font-size: 11px; color: #bfbfbf; margin-top: 2px; }

/* Quick Actions */
.quick-actions h2 { font-size: 14px; font-weight: 600; color: #1a1a2e; margin: 0 0 12px 0; }
.action-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}
.action-card {
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 8px;
    padding: 18px 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #595959;
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s, box-shadow 0.2s;
    width: auto;
}
.action-card:hover {
    border-color: #1677ff;
    color: #1677ff;
    box-shadow: 0 2px 8px rgba(22,119,255,0.1);
}
.action-icon { font-size: 22px; }

/* ===== Log Viewer ===== */
.log-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 14px;
    border-bottom: 1px solid #f0f0f0;
}
.tab-btn {
    padding: 8px 20px;
    border: none;
    border-bottom: 2px solid transparent;
    background: none;
    color: #8c8c8c;
    font-size: 13px;
    cursor: pointer;
    transition: color 0.2s, border-color 0.2s;
    width: auto;
    border-radius: 0;
}
.tab-btn:hover { color: #1677ff; background: none; }
.tab-btn.active { color: #1677ff; border-bottom-color: #1677ff; font-weight: 600; }

.log-panel { width: 100%; }
.log-box {
    background: #1a1a2e;
    color: #d4d4d4;
    font-family: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;
    font-size: 12.5px;
    line-height: 1.7;
    padding: 18px 20px;
    border-radius: 8px;
    height: 520px;
    overflow-y: auto;
    white-space: pre-wrap;
    word-break: break-all;
    margin: 0;
    border: 1px solid #f0f0f0;
}

/* ===== Server List ===== */
.btn-edit {
    padding: 4px 12px;
    background: #fff;
    color: #1677ff;
    border: 1px solid #91caff;
    border-radius: 5px;
    font-size: 12px;
    cursor: pointer;
    margin-right: 4px;
    width: auto;
    transition: background 0.15s;
}
.btn-edit:hover { background: #e6f0ff; }

.btn-delete {
    padding: 4px 12px;
    background: #fff;
    color: #ff4d4f;
    border: 1px solid #ffccc7;
    border-radius: 5px;
    font-size: 12px;
    cursor: pointer;
    width: auto;
    transition: background 0.15s;
}
.btn-delete:hover { background: #fff2f0; }

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #bfbfbf;
}
.empty-icon { font-size: 44px; margin-bottom: 12px; }
.empty-state p { font-size: 14px; margin-bottom: 16px; }

/* Modal */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 200;
}
.modal {
    background: #fff;
    border-radius: 8px;
    padding: 24px 28px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
}
.modal-title {
    font-size: 15px;
    font-weight: 600;
    color: #1a1a2e;
    margin: 0 0 18px 0;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0f0f0;
}
.form-group { margin-bottom: 12px; }
.form-group label {
    display: block;
    font-size: 12px;
    color: #8c8c8c;
    margin-bottom: 4px;
    font-weight: 500;
}
.form-group input {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #d9d9d9;
    border-radius: 6px;
    font-size: 13px;
    margin-bottom: 0;
}
.form-group input:focus { border-color: #1677ff; box-shadow: 0 0 0 2px rgba(22,119,255,0.1); }

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid #f0f0f0;
}
.btn-cancel {
    padding: 7px 16px;
    background: #fff;
    color: #595959;
    border: 1px solid #d9d9d9;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
    width: auto;
    transition: background 0.15s;
}
.btn-cancel:hover { background: #fafafa; }
.btn-confirm {
    padding: 7px 16px;
    background: #1677ff;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    width: auto;
    transition: background 0.15s;
}
.btn-confirm:hover { background: #0958d9; }

/* ===== Ansible Page ===== */
.ansible-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 16px;
    align-items: start;
}

.ansible-config { display: flex; flex-direction: column; }

/* 작업 선택 */
.task-list { display: flex; flex-direction: column; gap: 8px; }
.task-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid #f0f0f0;
    border-radius: 7px;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
}
.task-item:hover { border-color: #91caff; background: #fafcff; }
.task-item input[type=radio] { margin: 0; accent-color: #1677ff; flex-shrink: 0; width: 15px; height: 15px; }
.active-task { border-color: #91caff; background: #f0f7ff; }
.task-info { flex: 1; }
.task-name { font-size: 13px; font-weight: 600; color: #1a1a2e; line-height: 1.4; }
.task-desc { font-size: 12px; color: #8c8c8c; margin-top: 3px; line-height: 1.5; }

/* 서버 체크리스트 */
.server-check-list { display: flex; flex-direction: column; gap: 2px; }
.server-check-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.15s;
}
.server-check-item:hover { background: #f5f6fa; }
.server-check-item input { accent-color: #1677ff; flex-shrink: 0; width: 14px; height: 14px; margin: 0; }
.server-check-info {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}
.server-check-name {
    font-size: 13px;
    font-weight: 600;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.server-check-ip {
    font-size: 11px;
    color: #8c8c8c;
    white-space: nowrap;
    flex-shrink: 0;
}
.server-check-role {
    font-size: 11px; color: #1677ff;
    background: #e6f0ff; padding: 2px 7px;
    border-radius: 10px; white-space: nowrap;
    flex-shrink: 0;
}

.panel-btn-ghost {
    background: none;
    color: #1677ff;
    border: 1px solid #91caff;
    border-radius: 5px;
    padding: 4px 10px;
    font-size: 11px;
    cursor: pointer;
    width: auto;
    transition: background 0.15s;
}
.panel-btn-ghost:hover { background: #e6f0ff; }

/* 결과 영역 */
.result-placeholder {
    text-align: center;
    padding: 80px 20px;
    color: #bfbfbf;
    font-size: 14px;
    line-height: 1.8;
}

.result-error-box {
    background: #fff2f0;
    border: 1px solid #ffccc7;
    border-radius: 7px;
    padding: 14px 16px;
    color: #cf1322;
    font-size: 13px;
    margin-top: 8px;
}

.result-badge {
    font-size: 12px;
    padding: 3px 10px;
    border-radius: 10px;
    font-weight: 500;
}
.badge-success { background: #f6ffed; color: #52c41a; border: 1px solid #b7eb8f; }
.badge-error   { background: #fff2f0; color: #ff4d4f; border: 1px solid #ffccc7; }

/* 호스트별 결과 */
.result-host-section { margin-bottom: 18px; }
.host-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 14px;
    border-radius: 7px 7px 0 0;
    font-size: 13px;
    font-weight: 600;
}
.host-ok   { background: #f6ffed; color: #389e0d; border: 1px solid #d9f7be; border-bottom: none; }
.host-fail { background: #fff2f0; color: #cf1322; border: 1px solid #ffccc7; border-bottom: none; }
.host-ip   { font-weight: 400; color: #8c8c8c; font-size: 12px; }
.host-count { margin-left: auto; font-size: 12px; font-weight: 400; }

.result-table { border-radius: 0 0 7px 7px; border: 1px solid #f0f0f0; }
.host-ok   + .result-table { border-top: none; border-color: #d9f7be; }
.host-fail + .result-table { border-top: none; border-color: #ffccc7; }

/* 스피너 */
.spinner {
    width: 36px; height: 36px;
    border: 3px solid #f0f0f0;
    border-top-color: #1677ff;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    margin: 0 auto 16px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== Vault 자격증명 페이지 ===== */
.vault-alert {
    background: #fff7e6;
    border: 1px solid #ffd591;
    color: #874d00;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 13px;
}

.vault-info-bar {
    background: #f6ffed;
    border: 1px solid #b7eb8f;
    color: #389e0d;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.vault-info-dot {
    width: 8px; height: 8px;
    background: #52c41a;
    border-radius: 50%;
    flex-shrink: 0;
}
.vault-info-bar code {
    background: rgba(0,0,0,0.05);
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 12px;
    color: #237804;
}

.vault-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 500;
}
.vault-badge.ok   { background: #f6ffed; color: #52c41a; border: 1px solid #b7eb8f; }
.vault-badge.empty { background: #fafafa; color: #bfbfbf; border: 1px solid #e8e8e8; }
.vault-badge.none { background: #fff7e6; color: #fa8c16; border: 1px solid #ffd591; }

.btn-vault-add {
    padding: 4px 14px;
    background: #1677ff;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    width: auto;
    transition: background 0.15s;
}
.btn-vault-add:hover { background: #0958d9; }

/* ===== OS 배지 ===== */
.ip-code {
    background: #f5f5f5;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 12px;
}
.os-badge {
    font-size: 14px;
    margin-right: 4px;
}
.os-version {
    font-size: 12px;
    color: #595959;
}

/* ===== 포트 상태 표시 ===== */
.port-status-cell {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}
.port-dot {
    display: inline-block;
    width: 10px; height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}
.port-dot.open {
    background: #52c41a;
    box-shadow: 0 0 5px rgba(82,196,26,0.6);
}
.port-dot.closed {
    background: #ff4d4f;
    box-shadow: 0 0 5px rgba(255,77,79,0.5);
}
.port-dot.checking {
    background: #d9d9d9;
    animation: pulse 1.2s ease-in-out infinite;
}
.port-label {
    font-size: 11px;
    color: #8c8c8c;
}
.port-label.open-label  { color: #52c41a; }
.port-label.closed-label { color: #ff4d4f; }

/* form select */
.form-select {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #d9d9d9;
    border-radius: 6px;
    font-size: 13px;
    font-family: inherit;
    background: #fff;
    color: #333;
    cursor: pointer;
    outline: none;
    transition: border-color 0.2s;
}
.form-select:focus { border-color: #1677ff; box-shadow: 0 0 0 2px rgba(22,119,255,0.1); }

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.3; }
}
