body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background: #f5f5f5;
}
.container {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}
.viewer {
    flex: 1;
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    height: 700px;
    overflow-y: visible;
    display: flex;
    flex-direction: column;
}
.csv-viewer {
    flex: 1;
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    height: 700px;
    overflow-y: visible;
}
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    background: white;
    z-index: 1;
}
.drop-zone {
    padding: 40px;
    text-align: center;
    background: white;
    border: 2px dashed #ccc;
    border-radius: 8px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
    cursor: pointer;
}
.drop-zone.dragover {
    background: #e9f5ff;
    border-color: #007bff;
}
.drop-zone p {
    margin: 0;
    font-size: 1.1em;
    color: #666;
}
.drop-zone.has-file {
    background: #e8f5e9;
    border-color: #4caf50;
}
button {
    background: #007bff;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    margin: 0 10px;
}
button:hover {
    background: #0056b3;
}
button:disabled {
    background: #cccccc;
    cursor: not-allowed;
}
table {
    width: 100%;
    border-collapse: collapse;
}
th, td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}
th {
    background-color: #f8f9fa;
}
#canvas {
    width: 100%;
    height: auto;
}
.file-info {
    margin-top: 10px;
    font-size: 0.9em;
    color: #666;
}
#pdfContainer, #csvContent {
    overflow-y: auto;
    flex-grow: 1;
}
.intro {
    background: white;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.box-number {
    position: absolute;
    top: -10px;
    left: -10px;
    background: #007bff;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.numbered-box {
    position: relative;
}

footer {
    text-align: center;
    margin-top: 20px;
    padding: 20px;
    color: #666;
}

.instructions {
    padding-left: 20px;
}

.instructions li {
    margin: 10px 0;
}

td.editable {
    cursor: text;
    background-color: #fafafa;
}

td.editable:hover {
    background-color: #f0f0f0;
}

td.editable:focus {
    background-color: #fff;
    outline: 2px solid #007bff;
    outline-offset: -2px;
}

.nav-container {
    background: white;
    padding: 40px 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    text-align: center;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 500px;
    display: flex;
    justify-content: center;
    gap: 40px;
 }
 
 .nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
 }

 .nav-item + .nav-item {
    border-left: 1px solid #ccc;
    padding-left: 40px;
}
 
.nav-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 15px;
    color: #007bff;
    text-decoration: none;
    font-size: 1.1em;
}

.nav-logo {
    width: 128px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-logo img {
    max-width: 100%;
    object-fit: contain;
}
 
 .nav-link:hover {
    color: #0056b3;
 }
 
 .page-title {
    text-align: center;
    margin-bottom: 40px;
    color: #333;
}