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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 10px;
    color: #333;
    font-size: 14px;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px;
    text-align: center;
}

header h1 {
    font-size: 1.5em;
    margin-bottom: 5px;
}

.subtitle {
    font-size: 0.85em;
    opacity: 0.9;
}

.main-content {
    padding: 15px;
}

.input-section h2 {
    color: #667eea;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid #e0e0e0;
    font-size: 1.2em;
}

.form-group {
    margin-bottom: 12px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #555;
    font-size: 0.9em;
}

.form-group input {
    width: 100%;
    padding: 8px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: #667eea;
}

.form-group small {
    display: block;
    margin-top: 3px;
    color: #888;
    font-size: 0.75em;
    line-height: 1.3;
}

.info-box {
    background: #e7f3ff;
    border: 1px solid #2196F3;
    border-radius: 6px;
    padding: 10px;
    margin-bottom: 12px;
}

.info-box p {
    margin: 0;
    color: #1976D2;
    font-size: 0.8em;
    line-height: 1.4;
}

.order-type-select {
    width: 100%;
    padding: 8px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 14px;
    background: white;
    cursor: pointer;
    transition: border-color 0.3s;
}

.order-type-select:focus {
    outline: none;
    border-color: #667eea;
}

.order-item {
    background: #f8f9fa;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 10px;
    border: 1px solid #e0e0e0;
    position: relative;
}

.order-item h3 {
    color: #667eea;
    margin-bottom: 10px;
    font-size: 0.95em;
}

.order-item .form-group {
    margin-bottom: 10px;
}

.order-item .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.remove-order-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #dc3545;
    color: white;
    border: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
    line-height: 1;
}

.remove-order-btn:hover {
    background: #c82333;
}

.btn {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-right: 8px;
    margin-top: 8px;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

.result-section {
    margin-top: 15px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.result-section h2 {
    color: #667eea;
    margin-bottom: 12px;
    font-size: 1.1em;
}

.result-box {
    background: white;
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 10px;
    border-left: 3px solid #667eea;
}

.result-box h3 {
    color: #333;
    margin-bottom: 10px;
    font-size: 1em;
}

.result-item {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    border-bottom: 1px solid #e0e0e0;
    font-size: 0.85em;
}

.result-item:last-child {
    border-bottom: none;
}

.result-item .label {
    font-weight: 600;
    color: #666;
}

.result-item .value {
    font-weight: 700;
    color: #333;
}

.warning-box {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 6px;
    padding: 10px;
    margin-top: 10px;
}

.warning-box h4 {
    color: #856404;
    margin-bottom: 6px;
    font-size: 0.9em;
}

.warning-box p {
    color: #856404;
    margin: 3px 0;
    font-size: 0.8em;
}

.danger-box {
    background: #f8d7da;
    border: 1px solid #dc3545;
    border-radius: 6px;
    padding: 10px;
    margin-top: 10px;
}

.danger-box h4 {
    color: #721c24;
    margin-bottom: 6px;
    font-size: 0.9em;
}

.danger-box p {
    color: #721c24;
    margin: 3px 0;
    font-size: 0.85em;
    font-weight: 600;
}

.chart-container {
    margin-top: 20px;
    padding: 20px;
    background: white;
    border-radius: 8px;
}

.order-summary {
    margin-top: 12px;
    padding: 10px;
    background: white;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
}

.order-summary h4 {
    color: #667eea;
    margin-bottom: 8px;
    font-size: 0.95em;
}

.order-summary table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.75em;
}

.order-summary th,
.order-summary td {
    padding: 6px 4px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

.order-summary th {
    background: #f8f9fa;
    font-weight: 600;
    color: #555;
    font-size: 0.8em;
}

.order-summary tr:hover {
    background: #f8f9fa;
}

.result-box table {
    font-size: 0.75em;
}

.result-box th,
.result-box td {
    padding: 6px 4px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

.result-box th {
    background: #f8f9fa;
    font-weight: 600;
    color: #555;
    font-size: 0.8em;
}

@media (max-width: 768px) {
    body {
        padding: 5px;
        font-size: 12px;
    }
    
    .order-item .form-row {
        grid-template-columns: 1fr;
    }
    
    header h1 {
        font-size: 1.3em;
    }
    
    .main-content {
        padding: 10px;
    }
    
    .result-section {
        padding: 10px;
    }
    
    .order-summary table {
        font-size: 0.7em;
    }
    
    .order-summary th,
    .order-summary td {
        padding: 4px 2px;
    }
}

