body { margin: 0; font-family: 'Segoe UI', Arial, sans-serif; background: #f4f7f6; color: #333; height: 100vh; display: flex; flex-direction: column; }
.header { background: #003366; color: white; padding: 15px 20px; display: flex; justify-content: space-between; align-items: center; border-bottom: 4px solid #2ecc71; }
h2, h3 { margin: 0 0 15px 0; color: #003366; }
.header h2 { color: white; margin: 0; }

.tab-nav { display: flex; background: #fff; border-bottom: 2px solid #ddd; padding: 10px 20px 0; gap: 5px; }
.tab-btn { background: #f4f7f6; border: 1px solid #ddd; border-bottom: none; padding: 12px 25px; cursor: pointer; color: #555; font-weight: bold; border-radius: 5px 5px 0 0; }
.tab-btn.active { background: #003366; color: white; border-color: #003366; }

.dashboard { display: flex; flex-grow: 1; overflow: hidden; }
.tab-content { width: 100%; display: flex; }
.active-tab { display: flex !important; }

.sidebar { width: 350px; background: #fff; padding: 20px; border-right: 1px solid #ddd; overflow-y: auto; display: flex; flex-direction: column; gap: 20px; }
.panel { background: #fff; border: 1px solid #eee; padding: 20px; border-radius: 8px; box-shadow: 0 2px 5px rgba(0,0,0,0.05); }
.full-width { width: 100%; box-sizing: border-box; overflow-y: auto; }

input { width: 100%; padding: 10px; margin-bottom: 15px; border: 1px solid #ccc; border-radius: 4px; box-sizing: border-box; }
button { width: 100%; padding: 12px; background: #003366; color: white; border: none; font-weight: bold; border-radius: 4px; cursor: pointer; }
button:hover { background: #2ecc71; }

#map-container { flex-grow: 1; position: relative; }
#map { width: 100%; height: 100%; background: #e5e3df; }

.grid-layout { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 15px; }
.commodity-card { border: 1px solid #ddd; padding: 20px; text-align: center; border-radius: 8px; background: #f8f9fa; }
.commodity-card h2 { color: #2ecc71; margin-top: 10px; }

/* Incoterm Visualizer */
.incoterm-controls { display: flex; gap: 10px; }
.slider-container { margin: 30px 0; }
input[type=range] { width: 100%; accent-color: #003366; }
.incoterm-labels { display: flex; justify-content: space-between; margin-top: 10px; font-weight: bold; color: #555; }
.journey-track { display: flex; justify-content: space-between; border-top: 4px dashed #ccc; padding-top: 20px; margin-top: 20px; }
.step { width: 14%; text-align: center; font-size: 13px; color: #999; font-weight: bold; transition: all 0.3s; }
.step.active-seller { color: #2ecc71; }
.step.active-buyer { color: #e74c3c; }

table { width: 100%; border-collapse: collapse; margin-top: 15px; }
th, td { padding: 12px; text-align: left; border-bottom: 1px solid #ddd; }
th { background: #f4f7f6; color: #003366; }
