GNU/_PAGE/monitoring/upbit/daemon_watchman/daemon.css
/* --- 다크 UI 스타일 --- */
:root {
    --bg-main: #0f172a;
    --bg-card: #1e293b;
    --border-color: #334155;
    --text-main: #f1f5f9;
    --text-dim: #94a3b8;
    --primary: #3b82f6;
    --success: #10b981;
    --danger: #ef4444;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, sans-serif;
    background: var(--bg-main);
    color: var(--text-main);
    padding: 0px;
    min-height: 100vh;
    opacity: 0;
    transition: opacity 0.5s ease;
}
body.loaded { opacity: 1; }

/* 로더 */
.page-loader {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: var(--bg-main); display: flex; justify-content: center; align-items: center; z-index: 1000;
}
.page-loader.hidden { opacity: 0; visibility: hidden; transition: 0.5s; }
.spinner { width: 40px; height: 40px; border: 4px solid rgba(255,255,255,0.1); border-top-color: var(--primary); border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* 상단 레이아웃 */
.header-area {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 40px 40px 10px 40px;
}

h2 { font-size: 30px; font-weight: 700; color: #fff; letter-spacing: -0.5px; margin: 0; padding-left: 20px; }
h2 i { color: var(--danger); margin-right: 10px; }

/* 검색창 스타일 */
.search-container { position: relative; }
.search-input {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: #fff;
    padding: 10px 15px 10px 40px;
    border-radius: 4px;
    font-size: 14px;
    width: 300px;
    outline: none;
    transition: all 0.3s;
}
.search-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
    width: 350px;
}
.search-container::before {
    content: '🔍';
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    opacity: 0.5;
}

.notice {
    background: rgba(59, 130, 246, 0.1); border-left: 4px solid var(--primary);
    padding: 15px 20px; margin-bottom: 25px; border-radius: 4px; color: var(--primary); font-weight: 500;
}

/* 테이블 스타일 */
table {
    width: calc(100% - 80px); 
    border-collapse: separate; border-spacing: 0;
    background: var(--bg-card); border-radius: 6px; overflow: hidden;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3); border: 1px solid var(--border-color);
    margin: 0px 40px;
}

th {
    background: #111827; padding: 16px 20px; text-align: left;
    color: var(--text-dim); font-size: 11px; text-transform: uppercase; letter-spacing: 1px;
    border-bottom: 1px solid var(--border-color);
}

th:last-child { text-align: right; }

td {
    padding: 14px 20px; border-bottom: 1px solid var(--border-color);
    vertical-align: middle; font-size: 14px; color: var(--text-main);
}
tr:last-child td { border-bottom: none; }
tr:hover td { background: rgba(255, 255, 255, 0.02); }

/* 버튼 스타일 */
button {
    padding: 8px 16px; border: none; border-radius: 4px; cursor: pointer;
    font-size: 12px; font-weight: 700; transition: 0.2s;
}

button.start { background: var(--success); color: #fff; }
button.start:hover { background: #059669; transform: translateY(-1px); }

button.stop { background: var(--danger); color: #fff; }
button.stop:hover { background: #dc2626; transform: translateY(-1px); }

button.btn-save { background: var(--primary); color: #fff; padding: 6px 12px; font-size: 11px; margin-left: 6px; }
button.btn-save:hover { background: #2563eb; }

/* 입력 필드 */
.input-edit {
    background: #0f172a; border: 1px solid var(--border-color); color: #fff;
    padding: 7px 10px; border-radius: 6px; font-size: 12px; width: 150px; outline: none;
}
.input-edit:focus { border-color: var(--primary); box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2); }

/* 뱃지 및 특수 텍스트 */
.badge-kind { padding: 3px 8px; border-radius: 4px; font-size: 11px; font-weight: 700; }
.badge-kind-first { background: rgba(59, 130, 246, 0.2); color: #60a5fa; margin-right: 5px; }
.badge-kind-last { background: rgba(168, 85, 247, 0.2); color: #a78bfa; margin-left: 5px; }
.kind-center-text { font-weight: 600; }

.status-running { color: var(--success); font-weight: 800; display: flex; align-items: center; }
.status-running::before { content: ''; display: inline-block; width: 8px; height: 8px; background: var(--success); border-radius: 50%; margin-right: 8px; box-shadow: 0 0 8px var(--success); }

/* [추가] 가로 박스형 디렉토리 감시 상태 스타일 */
.dir-status-list {
    margin: 20px 40px 40px 40px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 15px;
}
.dir-status-box {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: all 0.3s;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}
.dir-status-box:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
}
.dir-info-part {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.dir-path-text {
    font-size: 15px;
    font-weight: 800;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
}
.dir-reason-text {
    font-size: 11px;
    color: var(--text-dim);
    letter-spacing: -0.2px;
}
.dir-badge-part {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}
.dir-status-on {
    color: var(--success);
    font-weight: 900;
    font-size: 12px;
    padding: 6px 14px;
    background: rgba(16, 185, 129, 0.1);
    border-radius: 7px;
    border: 1px solid rgba(16, 185, 129, 0.2);
}
.dir-status-off {
    color: var(--danger);
    font-weight: 900;
    font-size: 12px;
    padding: 6px 14px;
    background: rgba(239, 68, 68, 0.1);
    border-radius: 7px;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

/* 페이지 이동 버튼 컨테이너 */
.nav-action-area {
    margin: 40px 40px 40px 40px;
    display: flex;
    justify-content: center;
}
.btn-nav {
    background: linear-gradient(135deg, var(--primary) 0%, #2563eb 100%);
    color: #fff;
    padding: 14px 30px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
    transition: all 0.3s;
}
.btn-nav:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.5);
    filter: brightness(1.1);
}

td:last-child { text-align: right; }
td:last-child form { display: inline-flex !important; justify-content: flex-end; align-items: center; width: 100%; }