* {
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    background: #0f172a;
    color: #e2e8f0;
    padding: 20px;
}

#app {
    max-width: 1400px;
    margin: 0 auto;
}

h1, h2, h3 {
    color: #f1f5f9;
    margin-top: 0;
}

/* 表单样式 */
.form-group {
    margin-bottom: 15px;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #cbd5e1;
}

input, select, textarea {
    width: 100%;
    max-width: 400px;
    padding: 10px;
    border: 1px solid #334155;
    background: #1e293b;
    color: #f1f5f9;
    border-radius: 6px;
    font-size: 14px;
}

input:focus, select:focus {
    outline: none;
    border-color: #3b82f6;
}

/* 按钮样式 */
button {
    padding: 8px 16px;
    margin: 5px;
    cursor: pointer;
    background: #3b82f6;
    border: none;
    color: white;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.2s;
}

button:hover {
    background: #2563eb;
    transform: translateY(-1px);
}

button.danger {
    background: #ef4444;
}

button.danger:hover {
    background: #dc2626;
}

button.success {
    background: #10b981;
}

button.warning {
    background: #f59e0b;
}

/* 表格样式 */
.table-container {
    overflow-x: auto;
    margin-top: 20px;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: #1e293b;
    border-radius: 8px;
    overflow: hidden;
}

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

th {
    background: #0f172a;
    font-weight: bold;
    color: #f1f5f9;
}

tr:hover {
    background: #334155;
}

/* 状态标签 */
.status-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
}

.status-active {
    background: #10b981;
    color: white;
}

.status-completed {
    background: #3b82f6;
    color: white;
}

.status-liquidated {
    background: #ef4444;
    color: white;
}

.status-overdue {
    background: #f59e0b;
    color: white;
}

/* 卡片布局 */
.card {
    background: #1e293b;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.stat-card {
    background: #1e293b;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
}

.stat-value {
    font-size: 32px;
    font-weight: bold;
    color: #3b82f6;
}

/* 工具栏 */
.toolbar {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.search-box {
    flex: 1;
    max-width: 300px;
}

/* 响应式 */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }
    
    th, td {
        padding: 8px;
        font-size: 12px;
    }
    
    button {
        padding: 6px 12px;
        font-size: 12px;
    }
}
