* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Segoe UI', sans-serif;
    background: #f0f2f5;
    color: #222;
}

header {
    background: #1a1a2e;
    color: #fff;
    padding: 20px 40px;
}

header h1 {
    font-size: 22px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

main {
    max-width: 900px;
    margin: 30px auto;
    padding: 0 20px;
}

.tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 0;
}

.tab {
    padding: 12px 32px;
    border: none;
    background: #d0d4dc;
    border-radius: 8px 8px 0 0;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    color: #555;
    transition: background 0.2s;
}

.tab.active {
    background: #fff;
    color: #1a1a2e;
}

.panel {
    display: none;
    background: #fff;
    border-radius: 0 8px 8px 8px;
    padding: 30px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.panel.active { display: block; }

h2 {
    font-size: 18px;
    color: #1a1a2e;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e8eaf0;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 28px;
}

.field label {
    display: block;
    font-size: 13px;
    color: #666;
    margin-bottom: 6px;
    font-weight: 500;
}

.field input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #dde1e9;
    border-radius: 6px;
    font-size: 15px;
    transition: border-color 0.2s;
}

.field input:focus {
    outline: none;
    border-color: #4a6cf7;
}

.results {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 28px;
}

.result-card {
    background: #f7f8fc;
    border: 1px solid #e8eaf0;
    border-radius: 8px;
    padding: 16px;
    text-align: center;
}

.result-card.highlight {
    background: #1a1a2e;
    border-color: #1a1a2e;
    color: #fff;
}

.result-card .label {
    display: block;
    font-size: 11px;
    color: #888;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.result-card.highlight .label { color: #aab; }

.result-card .value {
    display: block;
    font-size: 26px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 4px;
}

.result-card.highlight .value { color: #fff; }

.result-card .unit {
    font-size: 12px;
    color: #999;
}

.result-card.highlight .unit { color: #aab; }

.ops-section { margin-top: 10px; }

.btn-add {
    background: #4a6cf7;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    font-weight: 600;
    margin-bottom: 16px;
    transition: background 0.2s;
}

.btn-add:hover { background: #3a5ce7; }

.op-item {
    display: flex;
    align-items: center;
    background: #f7f8fc;
    border: 1px solid #e8eaf0;
    border-radius: 6px;
    padding: 12px 16px;
    margin-bottom: 8px;
    gap: 12px;
}

.op-item .op-name {
    flex: 1;
    font-weight: 600;
    font-size: 14px;
}

.op-item .op-time {
    font-size: 14px;
    color: #4a6cf7;
    font-weight: 700;
    min-width: 80px;
    text-align: right;
}

.op-item .op-delete {
    background: none;
    border: none;
    color: #ccc;
    font-size: 18px;
    cursor: pointer;
    padding: 0 4px;
}

.op-item .op-delete:hover { color: #e74c3c; }

.total {
    background: #1a1a2e;
    color: #fff;
    border-radius: 8px;
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
    font-weight: 600;
}

.total .total-label { font-size: 14px; color: #aab; }
.total .total-value { font-size: 22px; }

.step-upload {
    border: 2px dashed #c0c6d4;
    border-radius: 10px;
    text-align: center;
    padding: 40px;
    margin-bottom: 24px;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
}

.step-upload:hover { border-color: #4a6cf7; background: #f5f7ff; }
.step-upload input[type="file"] { display: none; }
.upload-icon { font-size: 36px; margin-bottom: 10px; }
.upload-text { font-weight: 600; font-size: 15px; color: #333; }
.upload-sub { font-size: 12px; color: #999; margin-top: 4px; }

.step-status {
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: 500;
}

.step-status.loading { background: #fff8e1; color: #856404; border: 1px solid #ffc107; }
.step-status.success { background: #e8f5e9; color: #2e7d32; border: 1px solid #81c784; }
.step-status.error { background: #fce4ec; color: #c62828; border: 1px solid #e57373; }

.volumes-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.vol-card {
    background: #f7f8fc;
    border: 1px solid #e8eaf0;
    border-radius: 8px;
    padding: 16px;
    text-align: center;
}

.vol-card.highlight {
    background: #1a1a2e;
    border-color: #1a1a2e;
    color: #fff;
}

.vol-card .label { display: block; font-size: 11px; color: #888; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 8px; }
.vol-card.highlight .label { color: #aab; }
.vol-card .value { display: block; font-size: 22px; font-weight: 700; color: #1a1a2e; margin-bottom: 4px; }
.vol-card.highlight .value { color: #fff; }
.vol-card .unit { font-size: 12px; color: #999; }
.vol-card.highlight .unit { color: #aab; }

h3 { font-size: 15px; color: #1a1a2e; }

@media (max-width: 600px) {
    .form-grid { grid-template-columns: 1fr; }
    .results { grid-template-columns: 1fr 1fr; }
    .volumes-grid { grid-template-columns: 1fr; }
}
