/* Buttons */
.upload-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 10px;
}

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

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

.upload-btn.test-btn {
    background-color: #e67e22;
}

.upload-btn.test-btn:hover {
    background-color: #d35400;
}

.action-btn {
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
    background-color: #3498db;
    color: white;
}

.action-btn:disabled {
    background-color: #bdc3c7;
    cursor: not-allowed;
}

.action-btn:hover:not(:disabled) {
    background-color: #2980b9;
}

.action-btn.secondary {
    background-color: #2ecc71;
    color: white;
}

.action-btn.secondary:hover:not(:disabled) {
    background-color: #27ae60;
}

.download-btn {
    background-color: #2ecc71;
    color: white;
    padding: 8px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background-color 0.3s;
}

.download-btn:hover {
    background-color: #27ae60;
}

.download-btn.secondary {
    background-color: #3498db;
}

.download-btn.secondary:hover {
    background-color: #2980b9;
}

.close-error {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    color: #7f8c8d;
    font-size: 18px;
    cursor: pointer;
}

.close-error:hover {
    color: #34495e;
}

.remove-file {
    color: #e74c3c;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
}

/* File Items */
.files-container {
    max-height: 400px;
    overflow-y: auto;
}

.file-item {
    display: flex;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #eee;
    position: relative;
}

.file-item:last-child {
    border-bottom: none;
}

.file-info {
    flex: 1;
}

.file-name {
    font-weight: 600;
    margin-bottom: 5px;
    color: #2c3e50;
}

.file-meta {
    font-size: 0.85rem;
    color: #7f8c8d;
}

.file-actions {
    display: flex;
    gap: 10px;
}

/* Page Selection Components */
.page-selection-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.selection-option {
    display: flex;
    align-items: flex-start;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.selection-option:hover {
    border-color: #3498db;
    background-color: #f8f9fa;
}

.selection-option.active {
    border-color: #3498db;
    background-color: #e3f2fd;
}

.selection-option input[type="radio"] {
    margin-right: 15px;
    margin-top: 3px;
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.option-content {
    flex: 1;
}

.option-label {
    font-weight: 600;
    color: #2c3e50;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 5px;
}

.option-example {
    color: #7f8c8d;
    font-size: 0.85rem;
    margin-bottom: 3px;
}

.option-description {
    color: #95a5a6;
    font-size: 0.85rem;
    line-height: 1.4;
}

.custom-input-container {
    margin-top: 10px;
    display: none;
}

.custom-input-container.visible {
    display: block;
}

.page-input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    margin-top: 5px;
    font-size: 0.9rem;
}

.page-input:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.error-message {
    color: #e74c3c;
    font-size: 0.9rem;
    margin-top: 5px;
}

/* Actions Section */
.actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 30px 0;
}

/* Results */
.results-container {
    max-height: 400px;
    overflow-y: auto;
}

.result-item {
    display: flex;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #eee;
}

.result-item:last-child {
    border-bottom: none;
}

.result-info {
    flex: 1;
}

.result-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* Download Options Section */
.download-options {
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.download-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.download-card {
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    transition: all 0.3s ease;
}

.download-card:hover {
    border-color: #3498db;
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.15);
}

.download-card-title {
    font-weight: 600;
    color: #2c3e50;
    font-size: 1rem;
    margin-bottom: 8px;
}

.download-card-description {
    color: #7f8c8d;
    font-size: 0.85rem;
    line-height: 1.5;
    margin-bottom: 15px;
}

.download-card button {
    width: 100%;
}
