/* Image to PDF - Additional Styles */
/* Extends tools.css with specific image to PDF styling */

/* Upload Section */
.upload-section {
    margin-top: 3rem;
    margin-bottom: 2rem;
}

.upload-area {
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    border: 3px dashed #cbd5e0;
    border-radius: 16px;
    padding: 3rem 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.upload-area:hover {
    background: linear-gradient(135deg, #edf2f7 0%, #e2e8f0 100%);
    border-color: #667eea;
}

.upload-area.drag-over {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #667eea;
}

.upload-area.drag-over * {
    color: white !important;
}

.upload-icon {
    font-size: 4rem;
    color: #667eea;
    margin-bottom: 1rem;
    transition: transform 0.3s ease;
}

.upload-area:hover .upload-icon {
    transform: translateY(-5px);
}

.upload-area h3 {
    color: #2d3748;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.upload-area p {
    color: #4a5568;
    font-size: 1rem;
    margin: 0.5rem 0;
}

.file-limit {
    font-size: 0.875rem !important;
    color: #718096 !important;
    margin-top: 1rem !important;
}

/* Images Section */
.images-section {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 10px 40px rgba(0,0,0,0.06);
    margin-bottom: 2rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.section-header h3 {
    color: #2d3748;
    font-size: 1.25rem;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.section-header h3 i {
    color: #667eea;
}

.btn-add-more {
    background: white;
    color: #667eea;
    border: 2px solid #667eea;
    padding: 0.625rem 1.25rem;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-add-more:hover {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
}

/* Images Grid */
.images-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.image-card {
    background: #f7fafc;
    border-radius: 12px;
    padding: 1rem;
    position: relative;
    cursor: move;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.image-card:hover {
    border-color: #667eea;
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.2);
}

.image-card.dragging {
    opacity: 0.5;
    transform: scale(0.95);
}

.image-number {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.875rem;
    z-index: 2;
}

.image-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 0.75rem;
}

.image-info {
    margin-bottom: 0.5rem;
}

.image-name {
    font-weight: 600;
    color: #2d3748;
    font-size: 0.875rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 0.25rem;
}

.image-dimensions {
    font-size: 0.75rem;
    color: #718096;
}

.btn-remove {
    width: 100%;
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
    border: none;
    padding: 0.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-remove:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.3);
}

.drag-handle {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    color: #718096;
    font-size: 1.25rem;
    cursor: move;
}

/* Settings Section */
.settings-section {
    background: white;
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 10px 40px rgba(0,0,0,0.06);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.settings-section h3 {
    color: #2d3748;
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.settings-section h3 i {
    color: #667eea;
}

/* Orientation Control */
.orientation-control {
    margin-bottom: 1.5rem;
}

.orientation-control > label {
    display: block;
    margin-bottom: 1rem;
    color: #4a5568;
    font-weight: 600;
    font-size: 0.95rem;
}

.orientation-control > label i {
    color: #667eea;
    margin-right: 0.5rem;
}

.orientation-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.orientation-btn {
    background: white;
    border: 2px solid #e2e8f0;
    padding: 1.5rem;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.orientation-btn i {
    font-size: 2.5rem;
    color: #718096;
    transition: all 0.3s ease;
}

.orientation-btn span {
    font-weight: 600;
    color: #4a5568;
    transition: all 0.3s ease;
}

.orientation-btn:hover {
    border-color: #667eea;
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.15);
}

.orientation-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #667eea;
}

.orientation-btn.active i,
.orientation-btn.active span {
    color: white;
}

/* Convert Button */
.btn-convert {
    width: 100%;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    border: none;
    padding: 1rem;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(40, 167, 69, 0.3);
}

.btn-convert:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(40, 167, 69, 0.4);
}

.btn-convert:active {
    transform: translateY(0);
}

.btn-convert:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Tips Section */
.tips-section {
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    border-radius: 16px;
    padding: 2rem;
}

.tips-section h3 {
    color: #2d3748;
    font-size: 1.25rem;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tips-section h3 i {
    color: #667eea;
}

.tips-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tips-section li {
    padding: 0.875rem;
    margin-bottom: 0.75rem;
    background: white;
    border-radius: 10px;
    border-left: 4px solid #667eea;
    color: #4a5568;
    line-height: 1.6;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}

.tips-section li strong {
    color: #2d3748;
}

/* Alert Styles */
.alert {
    padding: 1rem 1.5rem;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 500;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.alert i {
    font-size: 1.25rem;
}

.alert-success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
}

.alert-error {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
}

.alert-warning {
    background: linear-gradient(135deg, #ffc107 0%, #ffb300 100%);
    color: #2d3748;
}

/* Responsive Design */
@media (max-width: 768px) {
    .images-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
    
    .image-card img {
        height: 120px;
    }
    
    .orientation-buttons {
        grid-template-columns: 1fr;
    }
    
    .upload-area {
        padding: 2rem 1rem;
    }
    
    .upload-icon {
        font-size: 3rem;
    }
    
    .section-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .btn-add-more {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .images-grid {
        grid-template-columns: 1fr;
    }
}
