.pdf-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 1.5rem 4rem 1.5rem;
}

.privacy-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: var(--emerald);
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
}

.section-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.section-header h1 {
    font-size: clamp(2rem, 7vw, 3rem);
    margin-bottom: 0.5rem;
}

/* Tabs */
.tab-bar {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.tab-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-light);
    color: var(--text-muted);
    padding: 10px 18px;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.tab-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
}

.tab-btn.active {
    background: var(--cyan);
    color: var(--bg-dark);
    border-color: var(--cyan);
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.3);
}

/* Tool Views */
.tool-view {
    display: none;
}

.tool-view.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Drop Zone */
.drop-zone {
    border: 2px dashed rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.02);
    border-radius: 20px;
    padding: 3.5rem 2rem;
    text-align: center;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.drop-zone.dragover {
    border-color: var(--cyan);
    background: rgba(0, 229, 255, 0.05);
}

.drop-zone svg {
    color: var(--cyan);
    margin-bottom: 6px;
}

.drop-zone h3 {
    font-size: 1.4rem;
}

.drop-zone p {
    font-size: 0.95rem;
    color: var(--text-muted);
    max-width: 400px;
}

/* File Queue & Options */
.file-queue, .options-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-light);
    border-radius: 20px;
    padding: 24px;
    margin-top: 20px;
    backdrop-filter: blur(12px);
}

.queue-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.queue-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.queue-item {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-light);
    border-radius: 10px;
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.queue-item .name {
    font-weight: 500;
    font-size: 0.95rem;
}

.queue-item .size {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-left: 10px;
}

.selected-file-info {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 16px;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--border-light);
    font-weight: 600;
}

.badge {
    background: rgba(0, 229, 255, 0.1);
    color: var(--cyan);
    border: 1px solid rgba(0, 229, 255, 0.2);
    font-size: 0.8rem;
    padding: 3px 8px;
    border-radius: 6px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 20px;
}

.form-group label {
    font-weight: 600;
    font-size: 0.95rem;
}

.form-group small {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.text-input {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-light);
    border-radius: 10px;
    padding: 12px 14px;
    color: white;
    font-family: inherit;
    font-size: 1rem;
}

.text-input:focus {
    outline: none;
    border-color: var(--cyan);
}

/* Image Previews */
.image-previews {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}

.image-preview-item {
    aspect-ratio: 1;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--border-light);
    position: relative;
}

.image-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Signature */
.signature-section {
    margin-bottom: 16px;
}

.canvas-box {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    margin-top: 8px;
    display: flex;
    justify-content: center;
}

#signature-canvas {
    background: #ffffff;
    cursor: crosshair;
    display: block;
    width: 100%;
    max-width: 400px;
    height: 160px;
    touch-action: none;
}

.sig-tools {
    display: flex;
    gap: 12px;
    margin-top: 8px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
}

.btn-primary {
    background: var(--cyan);
    color: var(--bg-dark);
}

.btn-primary:hover {
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.4);
    transform: translateY(-1px);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
    border: 1px solid var(--border-light);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
}

.btn-block {
    width: 100%;
}

.btn-ghost {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.85rem;
}

.btn-ghost:hover {
    color: var(--text-primary);
}

.toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: #1e293b;
    border: 1px solid var(--border-light);
    color: white;
    padding: 12px 20px;
    border-radius: 10px;
    font-size: 0.9rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

@media (max-width: 650px) {
    .pdf-container {
        padding: 0 1rem 3rem 1rem;
    }
    .tab-bar {
        gap: 6px;
    }
    .tab-btn {
        padding: 8px 12px;
        font-size: 0.85rem;
        flex: 1 1 calc(50% - 6px);
        justify-content: center;
    }
    .drop-zone {
        padding: 2rem 1rem;
    }
    .drop-zone h3 {
        font-size: 1.15rem;
    }
    .queue-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    .queue-item .name {
        word-break: break-all;
        font-size: 0.85rem;
    }
    .canvas-box {
        width: 100%;
        overflow-x: auto;
    }
    #signature-canvas {
        max-width: 100%;
    }
}

