body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 20px;
    background-color: #f5f5f5;
    color: #333;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

header {
    text-align: center;
    margin-bottom: 30px;
}

header h1 {
    color: #2c3e50;
}

.upload-area {
    border: 2px dashed #3498db;
    border-radius: 5px;
    padding: 40px;
    text-align: center;
    margin-bottom: 20px;
    transition: all 0.3s;
}

.upload-area:hover {
    background-color: #f0f8ff;
}

.upload-btn {
    display: inline-block;
    padding: 10px 20px;
    background: #3498db;
    color: white;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
}

.upload-btn:hover {
    background: #2980b9;
}

#fileInput {
    display: none;
}

.toolbar {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    justify-content: center;
}

.toolbar button {
    padding: 8px 16px;
    background: #2ecc71;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s;
}

.toolbar button:hover {
    background: #27ae60;
}

#redactBtn.active {
    background: #e74c3c;
}

.pdf-viewer {
    position: relative;
    border: 1px solid #ddd;
    margin-bottom: 20px;
    overflow: auto;
}

#pdfCanvas {
    display: block;
    margin: 0 auto;
    box-shadow: 0 0 5px rgba(0,0,0,0.1);
}

.redaction-layer {
    position: absolute;
    top: 0;
    left: 0;
    pointer-events: none;
}

.redaction-box {
    position: absolute;
    background-color: black;
    pointer-events: auto;
    cursor: move;
}

.hidden {
    display: none;
}

.status {
    padding: 10px;
    text-align: center;
    color: #7f8c8d;
}