/* 전역 스타일 */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f7fa;
    color: #333;
    margin: 0;
    padding: 20px;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
}

/* 헤더 스타일 */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

h1 {
    margin: 0;
    color: #2c3e50;
    font-size: 1.8rem;
}

/* 버튼 스타일 */
.btn {
    padding: 8px 16px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    text-decoration: none;
    transition: background-color 0.2s;
}

.btn:hover {
    background-color: #2980b9;
}

.btn-collect {
    background-color: #2ecc71;
}

.btn-collect:hover {
    background-color: #27ae60;
}

/* 상태 섹션 */
.status-section {
    margin-bottom: 20px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 6px;
    border-left: 4px solid #3498db;
}

.status-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.status-title {
    margin: 0;
    color: #2c3e50;
    font-size: 1.2rem;
}

.timestamp {
    color: #7f8c8d;
    font-size: 0.9rem;
}

/* 표 스타일 */
.table-fixed-header {
    overflow-y: auto;
    max-height: 500px;
}

.table-fixed-header thead th {
    position: sticky;
    top: 0;
    background-color: #f8f9fa;
    z-index: 1;
}

/* 크레인 카드 스타일 */
.crane-card {
    background-color: white;
    border-radius: 6px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
    padding: 15px;
    transition: transform 0.2s, box-shadow 0.2s;
    margin-bottom: 15px;
}

.crane-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* 폼 스타일 */
.form-container {
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

/* 상태 배지 */
.source-badge {
    font-size: 11px;
    padding: 3px 6px;
    border-radius: 10px;
}

.source-remote {
    background-color: #d4edda;
    color: #155724;
}

.source-dummy {
    background-color: #fff3cd;
    color: #856404;
}

/* 푸터 스타일 */
.footer {
    margin-top: 30px;
    text-align: center;
    font-size: 0.8rem;
    color: #7f8c8d;
    padding: 15px;
    border-top: 1px solid #eee;
}

/* 통계 카드 스타일 */
.stats-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
}

.stats-card {
    background-color: white;
    border-radius: 5px;
    padding: 15px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    flex: 1;
    min-width: 200px;
}

.stats-card h3 {
    margin-top: 0;
    color: #495057;
    font-size: 16px;
}

.stats-value {
    font-size: 24px;
    font-weight: 600;
    color: #007bff;
}

/* 테이블 스타일 */
.table-container {
    background-color: white;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    margin-bottom: 20px;
    overflow-x: auto;
}

.table-header {
    background-color: #f1f3f5;
    padding: 15px;
    border-bottom: 1px solid #dee2e6;
    font-weight: 600;
    color: #495057;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #dee2e6;
}

th {
    background-color: #f8f9fa;
    font-weight: 600;
}

tbody tr:hover {
    background-color: #f8f9fa;
}

/* 데이터 소스 배지 스타일 */
.badge {
    padding: 5px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    display: inline-block;
}

.badge-success {
    background-color: #d4edda;
    color: #155724;
}

.badge-warning {
    background-color: #fff3cd;
    color: #856404;
}

.badge-danger {
    background-color: #f8d7da;
    color: #721c24;
}

.badge-info {
    background-color: #d1ecf1;
    color: #0c5460;
}

/* 섹션 스타일 */
.section {
    margin-bottom: 30px;
}

.section-title {
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 15px;
    color: #343a40;
}

/* 알림 메시지 스타일 */
.flash-messages {
    margin-bottom: 20px;
}

.flash-message {
    padding: 12px 15px;
    border-radius: 4px;
    margin-bottom: 10px;
    font-weight: 500;
}

.flash-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.flash-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.flash-warning {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
}

.flash-info {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* 반응형 스타일 */
@media (max-width: 768px) {
    .header {
        flex-direction: column;
        padding: 15px;
    }
    
    .header-title {
        margin-bottom: 15px;
        padding: 0;
    }
    
    .header-actions {
        padding: 0;
        width: 100%;
        justify-content: center;
    }
    
    .stats-container {
        flex-direction: column;
    }
} 