body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
}

#login-container {
    margin-top: 100px;
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    text-align: center;
}

#app-container {
    width: 100%;
    max-width: 1200px;
    background: white;
    min-height: 100vh;
    box-shadow: 0 0 20px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
}

header {
    background: #333;
    color: white;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header button {
    background: #555;
    color: white;
    border: none;
    padding: 8px 16px;
    cursor: pointer;
}

#admin-panel, #file-list {
    padding: 20px;
    border-bottom: 1px solid #eee;
}

#file-list ul {
    list-style: none;
    padding: 0;
}

#file-list li {
    background: #f9f9f9;
    margin: 5px 0;
    padding: 10px;
    cursor: pointer;
    border: 1px solid #ddd;
}

#file-list li:hover {
    background: #e9e9e9;
}

#pdf-viewer-container {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #525659; /* PDF viewer background color */
    padding: 20px;
}

.toolbar {
    background: white;
    padding: 10px;
    margin-bottom: 20px;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

button {
    padding: 8px 12px;
    cursor: pointer;
    border: 1px solid #ccc;
    background: #f0f0f0;
    border-radius: 4px;
}

button:hover {
    background: #e0e0e0;
}

#canvas-wrapper {
    position: relative;
    box-shadow: 0 0 10px rgba(0,0,0,0.5);
}

#pdf-render {
    display: block;
}

#fabric-canvas {
    position: absolute;
    top: 0;
    left: 0;
}

/* Force canvas container to match PDF size */
.canvas-container {
    position: absolute !important;
    top: 0;
    left: 0;
    z-index: 10;
}
