* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body {
    background-color: #f4f6f8;
    color: #333333;
    padding: 30px;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
}

/* 헤더 */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.header h1 {
    font-size: 26px;
    font-weight: 700;
    color: #1a202c;
}

.status-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background-color: #ffffff;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #e53e3e;
}

.dot.connected {
    background-color: #38a169;
    box-shadow: 0 0 8px #38a169;
}

/* 대시보드 카드 레이아웃 */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.card {
    background: #ffffff;
    padding: 24px;
    border-radius: 14px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    border: 1px solid #e2e8f0;
}

.card-title {
    font-size: 14px;
    color: #718096;
    font-weight: 600;
    margin-bottom: 10px;
}

.card-value {
    font-size: 30px;
    font-weight: 800;
}

.card-value.blue { color: #3182ce; }
.card-value.green { color: #38a169; }
.card-value.red { color: #e53e3e; }

/* 실시간 로그 테이블 */
.table-card {
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    border: 1px solid #e2e8f0;
    overflow: hidden;
}

.table-header {
    padding: 18px 24px;
    background-color: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    font-size: 16px;
    font-weight: 700;
    color: #2d3748;
}

table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

th {
    background-color: #edf2f7;
    padding: 12px 24px;
    font-size: 13px;
    color: #4a5568;
    font-weight: 600;
}

td {
    padding: 16px 24px;
    border-bottom: 1px solid #edf2f7;
    font-size: 14px;
}

tr.new-row {
    animation: highlight 1.5s ease-out;
}

@keyframes highlight {
    0% { background-color: #ebf8ff; }
    100% { background-color: #ffffff; }
}

.badge-success {
    color: #2b6cb0;
    font-weight: 700;
    background-color: #ebf8ff;
    padding: 4px 8px;
    border-radius: 6px;
}

.badge-cancel {
    color: #c53030;
    font-weight: 700;
    background-color: #fff5f5;
    padding: 4px 8px;
    border-radius: 6px;
}

.empty-msg {
    text-align: center;
    color: #a0aec0;
    padding: 40px 0;
}