/* Base Styles and Layout */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f5f7fa;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 900px;
    margin: 30px auto;
    padding: 20px;
}

h1 {
    text-align: center;
    margin-bottom: 30px;
    color: #2c3e50;
}

h2 {
    margin: 20px 0 15px;
    color: #34495e;
    font-size: 1.3rem;
}

/* Section Containers */
.upload-area,
.uploaded-files,
.page-selection,
.results {
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.upload-area {
    border: 2px dashed #3498db;
    background-color: #ecf0f1;
    text-align: center;
    padding: 40px 20px;
    transition: all 0.3s ease;
}

.upload-area.active {
    background-color: #d6eaf8;
    border-color: #2980b9;
}

.pdf-icon {
    width: 70px;
    margin-bottom: 15px;
}

.instructions {
    margin-bottom: 15px;
    color: #7f8c8d;
}

/* Progress Overlay */
.progress-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    display: none;
}

.progress-container {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    width: 80%;
    max-width: 500px;
}

.progress-bar {
    height: 10px;
    background-color: #ecf0f1;
    border-radius: 5px;
    margin-top: 20px;
    overflow: hidden;
}

.progress {
    height: 100%;
    background-color: #3498db;
    width: 0%;
    transition: width 0.3s ease;
}

/* Error Notification */
.error-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 2000;
    max-width: 350px;
    background-color: #fff;
    border-left: 4px solid #e74c3c;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.2);
    border-radius: 4px;
    overflow: hidden;
    animation: slideIn 0.3s forwards;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.error-content {
    padding: 15px;
    position: relative;
    padding-right: 30px;
}
