* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    background: #f0f0f0;
    height: 100vh;
    display: flex;
    flex-direction: column;
}


.controls {
    background: white;
    padding: 12px;
    display: flex;
    justify-content: center;
    gap: 10px;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    flex-wrap: wrap;
}

button {
    background: #3498db;
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s;
    display: flex;
    align-items: center;
    gap: 5px;
}

button:hover {
    background: #2980b9;
}

button:disabled {
    background: #95a5a6;
    cursor: not-allowed;
}

.print-btn {
    background: #27ae60;
}

.print-btn:hover {
    background: #219653;
}

.print-all-btn {
    background: #f39c12;
}

.print-all-btn:hover {
    background: #e67e22;
}


.page-info {
    padding: 8px 15px;
    background: #ecf0f1;
    border-radius: 4px;
    font-weight: bold;
    min-width: 100px;
    text-align: center;
}

.viewer-container {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
}

#pdf-canvas {
    background: white;
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

.watermark {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-45deg);
    font-size: 4rem;
    color: rgba(255,255,255,0.1);
    pointer-events: none;
    user-select: none;
    font-weight: bold;
}

.notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #e74c3c;
    color: white;
    padding: 10px 15px;
    border-radius: 4px;
    display: none;
    z-index: 100;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.notification.show {
    display: block;
    opacity: 1;
}

@keyframes fadeInOut {
    0% { 
        opacity: 0; 
        transform: translateY(20px); 
    }
    20% { 
        opacity: 1; 
        transform: translateY(0); 
    }
    80% { 
        opacity: 1; 
        transform: translateY(0); 
    }
    100% { 
        opacity: 0; 
        transform: translateY(20px); 
    }
}

.print-icon, .download-icon {
    font-size: 16px;
}

/* Responsive design */
@media (max-width: 768px) {
    .controls {
        gap: 8px;
        padding: 10px;
    }
    
    button {
        padding: 8px 12px;
        font-size: 13px;
    }
    
    .page-info {
        padding: 6px 12px;
        min-width: 80px;
        font-size: 13px;
    }
    
    .watermark {
        font-size: 2.5rem;
    }
    
    .viewer-container {
        padding: 10px;
    }
}