body { margin: 0; padding: 0; font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; background-color: #f0f2f5; }
#map { height: 100vh; width: 100%; }

.control-panel {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 1000;
    background: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    width: 300px;
    max-height: 80vh;
    overflow-y: auto;
}

.control-panel h3, .modal h3 { margin-top: 0; color: #333; border-bottom: 1px solid #eee; padding-bottom: 10px; }
.control-panel h4, .modal h4 { margin: 0 0 10px 0; color: #444; font-size: 16px; }

.result-box {
    background: #f8f9fa;
    border: 1px solid #ddd;
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 4px;
}

.label {
    font-size: 12px;
    color: #666;
    margin-bottom: 4px;
    font-weight: bold;
}

.value {
    font-family: monospace;
    font-size: 14px;
    word-break: break-all;
    user-select: all;
    color: #0066cc;
}

.instruction {
    font-size: 13px;
    color: #555;
    line-height: 1.5;
    margin-bottom: 15px;
}

.action-btn {
    background-color: #dc3545;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    width: 100%;
    font-size: 14px;
    margin-bottom: 5px;
}
.action-btn:hover { background-color: #c82333; }
.success-btn { background-color: #28a745; }
.success-btn:hover { background-color: #218838; }

.task-input {
    width: 100%;
    padding: 8px;
    margin-bottom: 8px;
    box-sizing: border-box;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.task-list {
    margin-top: 0;
    overflow-x: hidden;
}

#result-container + .task-list {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.task-list .action-btn {
    width: 100%;
    box-sizing: border-box;
}

/* Dashboard Styles */
.dashboard-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e9ecef;
}

.header-title {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.back-btn {
    color: #666;
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 8px 16px;
    background: white;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: all 0.2s;
}
.back-btn:hover {
    color: #007bff;
    background: #f8f9fa;
    box-shadow: 0 2px 5px rgba(0,0,0,0.15);
}

/* Task Card Styles */
.task-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.task-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    padding: 20px;
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
    border: 1px solid transparent;
    display: flex;
    flex-direction: column;
}

.task-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    border-color: #e9ecef;
}

.task-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.task-card-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

.task-card-id {
    font-size: 12px;
    color: #999;
    font-family: monospace;
}

.status-badge {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.bg-primary { background-color: #e7f5ff; color: #007bff; }
.bg-success { background-color: #d4edda; color: #28a745; }
.bg-warning { background-color: #fff3cd; color: #856404; }
.bg-danger { background-color: #f8d7da; color: #dc3545; }
.bg-secondary { background-color: #e9ecef; color: #6c757d; }

.progress-section {
    margin-bottom: 20px;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: #666;
    margin-bottom: 6px;
}

.progress-track {
    height: 6px;
    background: #e9ecef;
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    transition: width 0.3s ease;
}

.card-actions {
    margin-top: auto;
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding-top: 15px;
    border-top: 1px solid #f8f9fa;
}

.btn-sm {
    padding: 4px 12px;
    font-size: 13px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    font-weight: 500;
}

.btn-primary { background-color: #007bff; color: white; }
.btn-primary:hover { background-color: #0056b3; }

.btn-warning { background-color: #ffc107; color: #212529; }
.btn-warning:hover { background-color: #e0a800; }

.btn-danger { background-color: #fff; color: #dc3545; border: 1px solid #dc3545; }
.btn-danger:hover { background-color: #dc3545; color: white; }

/* Detail Page Styles */
.detail-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    padding: 30px;
    margin-bottom: 20px;
}

.detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
    margin-bottom: 30px;
}

.info-item label {
    display: block;
    font-size: 12px;
    color: #888;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 6px;
}

.info-item div {
    font-size: 15px;
    color: #333;
    font-weight: 500;
}

.large-progress {
    height: 24px;
    background: #e9ecef;
    border-radius: 12px;
    overflow: hidden;
    margin: 20px 0;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
}

.log-panel {
    background: #1e1e1e;
    border-radius: 8px;
    padding: 16px;
    font-family: 'Consolas', 'Monaco', monospace;
    color: #d4d4d4;
    height: 400px;
    overflow-y: auto;
    font-size: 13px;
    line-height: 1.5;
    border: 1px solid #333;
}

.log-entry {
    margin-bottom: 4px;
    word-break: break-all;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #6c757d;
}
