/* Image to PDF Converter Tool Styles */
:root {
    --primary-color: #1a3c6e;
    --secondary-color: #2a5ca5;
    --accent-color: #ff6b35;
    --light-bg: #f8f9fa;
    --text-color: #333;
    --text-light: #777;
}

body {
    font-family: 'Poppins', 'Roboto', sans-serif;
    color: var(--text-color);
    background-color: #ffffff;
}

/* Main container styles */
.converter-page-wrapper {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

.converter-page-wrapper h1 {
    color: var(--primary-color);
    text-align: center;
    font-size: 28px;
    margin-bottom: 10px;
}

.page-subtitle {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 30px;
    font-size: 16px;
}

/* Converter container */
.converter-container {
    background-color: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

/* Drop area styles */
#drop-area {
    border: 2px dashed var(--primary-color);
    border-radius: 10px;
    padding: 40px 20px;
    text-align: center;
    background-color: rgba(42, 92, 165, 0.05);
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 20px;
}

#drop-area:hover {
    background-color: rgba(42, 92, 165, 0.1);
    border-color: var(--secondary-color);
}

#drop-area p {
    margin: 10px 0;
}

#drop-area p:first-child {
    font-size: 48px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

#drop-area p:nth-child(2) {
    font-size: 18px;
    font-weight: 500;
    color: var(--primary-color);
}

#fileElem {
    display: none; /* Hide the default file input */
}

/* Preview container */
#preview-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

#preview-container img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.2s ease;
}

#preview-container img:hover {
    transform: scale(1.05);
}

/* Convert button */
.animate-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 50px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    display: block;
    margin: 20px auto;
    transition: all 0.3s ease;
    width: 100%;
    max-width: 200px;
}

.animate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.animate-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* Progress bar */
#progress-bar {
    height: 8px;
    background-color: #e0e0e0;
    border-radius: 4px;
    margin: 20px 0;
    overflow: hidden;
}

#progress {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    width: 0%;
    transition: width 0.3s ease;
}

/* Download link */
#download-link {
    text-align: center;
    margin-top: 20px;
}

#download-link a {
    display: inline-block;
    background-color: var(--accent-color);
    color: white;
    padding: 10px 20px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

#download-link a:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 53, 0.3);
}

/* Additional info section */
.additional-info {
    background-color: var(--light-bg);
    border-radius: 10px;
    padding: 25px;
    margin-top: 30px;
}

.additional-info h2 {
    color: var(--primary-color);
    font-size: 22px;
    margin-bottom: 15px;
}

.additional-info p {
    line-height: 1.6;
    color: var(--text-color);
}

/* Hide class */
.hide {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .converter-container {
        padding: 20px;
    }
    
    #drop-area {
        padding: 30px 15px;
    }
    
    #drop-area p:first-child {
        font-size: 36px;
    }
    
    #drop-area p:nth-child(2) {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .converter-page-wrapper h1 {
        font-size: 24px;
    }
    
    .page-subtitle {
        font-size: 14px;
    }
    
    #drop-area {
        padding: 20px 10px;
    }
    
    #drop-area p:first-child {
        font-size: 30px;
    }
    
    .animate-btn {
        padding: 10px 20px;
        font-size: 14px;
    }
}