@charset "utf-8";

/* 전체 배경 강제 적용 */
html, body { background-color: #0f172a !important; margin: 0; padding: 0; -webkit-font-smoothing: antialiased; }
    
.master-wrapper {
    font-family: 'Pretendard', sans-serif;
    padding: 40px 50px;
    color: #f1f5f9;
    margin: 0 auto;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s cubic-bezier(0.22, 1, 0.36, 1);
    }
.master-wrapper.active { opacity: 1; transform: translateY(0); }

.header-box {
    display: flex;
    justify-content: space-between;
    background: #06162c;
    align-items: center;
    color:#e0e5ec;
    padding: 25px 60px;
    border-bottom: 1px solid #1d2944;
    }
.main-title { font-size: 30px; font-weight: 600; letter-spacing: -0.5px; display: flex; align-items: center; gap: 15px; }
.main-title i { color: #3b82f6; filter: drop-shadow(0 0 8px rgba(59, 130, 246, 0.5)); }

/* 메시지 알림 동적 스타일 */
.alert-box {
    padding: 16px 24px;
    border-radius: 6px;
    margin-bottom: 25px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    animation: slideIn 0.4s ease-out;
    }
.alert-success { background: rgba(16, 185, 129, 0.15); border: 1px solid rgba(16, 185, 129, 0.3); color: #10b981; }
.alert-danger { background: rgba(239, 68, 68, 0.15); border: 1px solid rgba(239, 68, 68, 0.3); color: #ef4444; }
    @keyframes slideIn { from { opacity: 0; transform: translateX(-10px); } to { opacity: 1; transform: translateX(0); } }

/* 테이블 디자인 */
.table-container {
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 7px;
    overflow: hidden;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3), 0 10px 10px -5px rgba(0, 0, 0, 0.1);
    }
.modern-table { width: 100% !important; border-collapse: collapse; }
.modern-table th {
    background: #111827;
    padding: 18px 24px;
    text-align: left;
    color: #c3ccd8;
    font-size: 17px;
    font-weight: 700;
    text-transform: uppercase;
    text-align: center;
    letter-spacing: 0.1em;
    }
.modern-table td {
    padding: 20px 24px;
    border-bottom: 1px solid #334155;
    font-size: 15px;
    transition: background 0.2s;
    }
.modern-table tr:last-child td { border-bottom: none; }
.modern-table tr:hover td { background: rgba(255, 255, 255, 0.03); }
.modern-table .Help { line-height: 25px; color:#c3ccd8; font-size: 15px; }
.modern-table .Help span { color:#1ce09f; }
.modern-table .Help i { color:#bbaa16; margin-right:7px; }

/* 상태 뱃지 */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 13px 12px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.5px;
    }
.badge-on { background: rgba(16, 185, 129, 0.15); color: #10b981; border: 1px solid rgba(16, 185, 129, 0.2); }
.badge-off { background: rgba(239, 68, 68, 0.15); color: #ef4444; border: 1px solid rgba(239, 68, 68, 0.2); }
.pulse { width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 8px currentColor; animation: blink 1.5s infinite; }
    @keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }

/* 경로 및 파일명 */
.path-label { color: #64748b; font-size: 12px; display: block; margin-bottom: 4px; }
.file-name-text { color: #38bdf8; font-family: 'JetBrains Mono', 'Fira Code', monospace; font-weight: 600; }

/* 토글 버튼 */
.btn-action {
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    color: #fff;
    }
.btn-to-off { background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%); box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3); }
.btn-to-on { background: linear-gradient(135deg, #10b981 0%, #059669 100%); box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3); }
.btn-action:hover { transform: translateY(-2px); filter: brightness(1.1); }
.btn-action:active { transform: translateY(0); filter: brightness(0.9); }

/* 빈 데이터 안내 */
.empty-state { text-align: center; padding: 80px 0; color: #64748b; }
.empty-state i { font-size: 48px; margin-bottom: 20px; opacity: 0.3; }

/* 로딩 인디케이터 */
    #page-loader {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: #0f172a; display: flex; justify-content: center; align-items: center;
    z-index: 9999; transition: opacity 0.5s;
    }
.spinner { width: 50px; height: 50px; border: 3px solid rgba(59, 130, 246, 0.1); border-top-color: #3b82f6; border-radius: 50%; animation: spin 1s linear infinite; }
    @keyframes spin { to { transform: rotate(360deg); } }