* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e0e0e0;
}

.user-info {
    font-size: 14px;
    color: #666;
}

.function-area {
    display: flex;
    gap: 20px;
}

.seal-manager {
    width: 300px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px;
    height: calc(100vh - 120px);
    overflow-y: auto;
}

.document-manager {
    flex: 1;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px;
    height: calc(100vh - 120px);
    display: flex;
    flex-direction: column;
}

.seal-list {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.seal-item {
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 10px;
    cursor: move;
}

.seal-item img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

.seal-name {
    text-align: center;
    margin-top: 5px;
    font-size: 14px;
}

.document-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.document-container {
    flex: 1;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

#pdf-viewer {
    width: 100%;
    height: 100%;
    overflow: auto;
}

.btn {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.btn.primary {
    background-color: #007bff;
    color: white;
}

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

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 50%;
    border-radius: 8px;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

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

.form-group label {
    display: block;
    margin-bottom: 5px;
}

.form-group input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.dragging {
    opacity: 0.5;
    border: 2px dashed #007bff;
}

.pdf-page {
    margin: 10px auto;
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}