/* Global Styles */
body {
    font-family: 'Malgun Gothic', 'Apple SD Gothic Neo', sans-serif;
    background-color: #f8f9fa;
    color: #333;
    margin: 0;
    padding: 20px;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: white;
    color: black;
    font-family: 'Malgun Gothic', 'Apple SD Gothic Neo', 'Nanum Gothic', sans-serif;
    line-height: 1.6;
    padding: 20px;
    font-size: 20pt;
    /* Default text size 20pt */
}

.container {
    max-width: 1400px;
    margin: 0 auto;
}

h1 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 24pt;
}

/* Upload Section */
.upload-section {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
}

.input-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.input-group label {
    font-weight: bold;
    font-size: 14pt;
}

.input-group input {
    padding: 10px;
    border: 1px solid #ccc;
    font-family: inherit;
    font-size: 12pt;
}

/* Table Styles */
.table-container {
    margin-bottom: 40px;
    overflow-x: auto;
}

.table-title {
    font-size: 20pt;
    font-weight: bold;
    margin-bottom: 10px;
    border-left: 5px solid black;
    padding-left: 10px;
}

table {
    width: auto;
    border-collapse: collapse;
    background-color: white;
    color: black;
    font-size: 10pt;
    /* Tables remain 10pt as earlier */
    white-space: nowrap;
}

th,
td {
    padding: 6px 10px;
    border: 1px solid black;
    text-align: left;
}

th {
    background-color: #f2f2f2;
}

/* Diagram Section */
.diagram-section {
    margin-top: 40px;
    width: 100%;
}

#supply-plan-container {
    width: 100%;
    height: 800px;
    border: 2px solid black;
    background-color: white;
    position: relative;
    overflow: hidden;
}

.instructions {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #666;
    font-size: 18pt;
    pointer-events: none;
}

/* D3 Elements Styling */
.node-triangle {
    fill: yellow;
    stroke: black;
    stroke-width: 2px;
    cursor: grab;
}

.node-triangle:active {
    cursor: grabbing;
}

.node-bottom-label {
    font-size: 15pt;
    font-weight: bold;
    fill: black;
    text-anchor: middle;
    pointer-events: none;
}

.link-line {
    fill: none;
    stroke: #5b9bd5;
    /* Blue line */
    stroke-width: 4px;
    /* Thick line */
}

.link-label {
    font-size: 10pt;
    fill: black;
    text-anchor: middle;
}

.marker {
    fill: #5b9bd5;
}

/* Download Button Styling */
.download-btn {
    position: absolute;
    bottom: 20px;
    right: 20px;
    padding: 10px 15px;
    background-color: #5b9bd5;
    color: white;
    border: none;
    cursor: pointer;
    font-size: 14pt;
    font-weight: bold;
    font-family: inherit;
    z-index: 100;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.download-btn:hover {
    background-color: #4a8ac2;
}