* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
width: 600px;
min-height: 400px;
max-height: 600px;
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
font-size: 14px;
color: #333;
background: #f5f5f5;
}
.container {
display: flex;
flex-direction: column;
height: 100%;
}
/* Header */
.header {
display: flex;
justify-content: space-between;
align-items: center;
padding: 12px 16px;
background: #4CAF50;
color: white;
}
.header h1 {
font-size: 16px;
font-weight: 600;
}
/* Search */
.search-box {
padding: 12px 16px;
background: white;
border-bottom: 1px solid #e0e0e0;
}
.search-box input {
width: 100%;
padding: 8px 12px;
border: 1px solid #ddd;
border-radius: 4px;
font-size: 14px;
}
.search-box input:focus {
outline: none;
border-color: #4CAF50;
}
/* Stats */
.stats {
padding: 8px 16px;
background: white;
border-bottom: 1px solid #e0e0e0;
font-size: 12px;
color: #666;
}
/* Tracking List */
.tracking-list {
flex: 1;
overflow-y: auto;
background: white;
}
.empty-state {
padding: 40px 20px;
text-align: center;
color: #999;
}
.empty-state .hint {
margin-top: 8px;
font-size: 12px;
}
.tracking-item {
padding: 12px 16px;
border-bottom: 1px solid #f0f0f0;
cursor: pointer;
transition: background 0.2s;
}
.tracking-item:hover {
background: #f9f9f9;
}
.tracking-item-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 4px;
}
.event-name {
font-weight: 600;
color: #4CAF50;
}
.event-time {
font-size: 12px;
color: #999;
}
.tracking-item-body {
font-size: 12px;
color: #666;
}
/* Buttons */
.btn {
padding: 6px 12px;
border: none;
border-radius: 4px;
font-size: 12px;
cursor: pointer;
transition: opacity 0.2s;
}
.btn:hover {
opacity: 0.8;
}
.btn-primary {
background: #4CAF50;
color: white;
}
.btn-secondary {
background: white;
color: #4CAF50;
border: 1px solid #4CAF50;
}
.btn-success {
background: #2196F3;
color: white;
}
.btn-close {
background: none;
border: none;
font-size: 24px;
cursor: pointer;
color: #999;
}
.btn-close:hover {
color: #333;
}
.button-group {
display: flex;
gap: 8px;
flex-wrap: wrap;
}
/* Modal */
.modal {
display: none;
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.5);
z-index: 1000;
}
.modal.show {
display: flex;
align-items: center;
justify-content: center;
}
.modal-content {
background: white;
border-radius: 8px;
width: 90%;
max-width: 560px;
max-height: 90%;
overflow: hidden;
display: flex;
flex-direction: column;
}
.modal-header {
display: flex;
justify-content: space-between;
align-items: center;
padding: 16px;
border-bottom: 1px solid #e0e0e0;
}
.modal-header h2 {
font-size: 16px;
font-weight: 600;
}
.modal-body {
padding: 16px;
overflow-y: auto;
}
.detail-section {
margin-bottom: 20px;
}
.detail-section h3 {
font-size: 14px;
font-weight: 600;
margin-bottom: 8px;
color: #666;
}
.detail-info-item {
display: flex;
margin-bottom: 8px;
font-size: 12px;
}
.detail-label {
width: 100px;
font-weight: 600;
color: #666;
}
.detail-value {
flex: 1;
color: #333;
}
.code-block {
background: #f5f5f5;
border: 1px solid #e0e0e0;
border-radius: 4px;
padding: 12px;
font-size: 12px;
font-family: 'Courier New', monospace;
overflow-x: auto;
max-height: 300px;
overflow-y: auto;
}
/* Scrollbar */
::-webkit-scrollbar {
width: 6px;
height: 6px;
}
::-webkit-scrollbar-track {
background: #f1f1f1;
}
::-webkit-scrollbar-thumb {
background: #ccc;
border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
background: #999;
}