/* Image & PDF Converter Tool Styles */
.ipct-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.ipct-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    border: 1px solid #e0e0e0;
    overflow: hidden;
}

.ipct-header {
    background: linear-gradient(135deg, #201F1F 0%, #FF3C91 100%);
    color: white;
    padding: 2rem;
    text-align: center;
}

.ipct-header h2 {
    color: white;
    margin: 0;
    font-weight: 700;
    font-size: 2.2rem;
}

.ipct-header p {
    margin: 0.5rem 0 0 0;
    opacity: 0.9;
    font-size: 1.1rem;
}

.ipct-content {
    padding: 2rem;
}

/* Converter Interface */
.converter-interface {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.upload-area {
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    padding: 3rem 2rem;
    text-align: center;
    background: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
}

.upload-area:hover {
    border-color: #FF3C91;
    background: #fff5f9;
}

.upload-area.dragover {
    border-color: #FF3C91;
    background: #fff5f9;
    transform: scale(1.02);
}

.upload-icon {
    font-size: 3rem;
    color: #FF3C91;
    margin-bottom: 1rem;
}

.upload-area h5 {
    color: #201F1F;
    margin-bottom: 0.5rem;
}

.upload-area p {
    color: #6c757d;
    margin: 0;
}

/* Conversion Options */
.conversion-options {
    background: #fff;
    border-radius: 8px;
    padding: 1.5rem;
    border: 1px solid #e9ecef;
    display: none;
}

.option-card {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    height: 100%;
}

.option-card:hover {
    border-color: #FF3C91;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 60, 145, 0.1);
}

.option-card.active {
    border-color: #FF3C91;
    background: #fff5f9;
}

.option-icon {
    width: 80px;
    height: 80px;
    background: #f8f9fa;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 2rem;
    color: #FF3C91;
}

/* Results Section */
.results-section {
    display: none;
}

.result-card {
    background: #fff;
    border-radius: 8px;
    padding: 1.5rem;
    border: 1px solid #e9ecef;
    margin-bottom: 1.5rem;
}

.comparison-chart {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
    margin-top: 1.5rem;
}

/* Custom Button Styles */
.btn-ipct-primary {
    background: linear-gradient(135deg, #FF3C91 0%, #e23382 100%);
    border: none;
    color: white;
    font-weight: 600;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.btn-ipct-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 60, 145, 0.4);
    color: white;
}

.btn-ipct-primary:disabled {
    background: #6c757d;
    transform: none;
    box-shadow: none;
    cursor: not-allowed;
}

.btn-ipct-outline {
    border: 2px solid #201F1F;
    color: #201F1F;
    background: transparent;
    font-weight: 600;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.btn-ipct-outline:hover {
    background: #201F1F;
    color: white;
    transform: translateY(-2px);
}

/* Progress Bar */
.conversion-progress {
    height: 8px;
    background: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
    margin: 2rem 0;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #FF3C91 0%, #201F1F 100%);
    border-radius: 4px;
    transition: width 0.3s ease;
    width: 0%;
}

/* File Info */
.file-info {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    display: none;
    border-left: 4px solid #FF3C91;
}

.file-info-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    align-items: center;
}

.file-info-label {
    font-weight: 700;
    color: #201F1F;
    min-width: 120px;
}

.file-info-value {
    color: #6c757d;
    font-weight: 600;
}

/* Alert Styles */
.alert {
    border: none;
    border-radius: 8px;
    padding: 1rem 1.5rem;
    margin: 1rem 0;
    border-left: 4px solid;
}

.alert-success {
    background: #d1fae5;
    color: #065f46;
    border-left-color: #10b981;
}

.alert-danger {
    background: #fee2e2;
    color: #991b1b;
    border-left-color: #ef4444;
}

.alert-warning {
    background: #fef3c7;
    color: #92400e;
    border-left-color: #f59e0b;
}

.alert-info {
    background: #dbeafe;
    color: #1e40af;
    border-left-color: #3b82f6;
}

/* Responsive Design */
@media (max-width: 768px) {
    .ipct-container {
        padding: 10px;
    }
    
    .ipct-header {
        padding: 1.5rem;
    }
    
    .ipct-header h2 {
        font-size: 1.8rem;
    }
    
    .ipct-content {
        padding: 1rem;
    }
    
    .upload-area {
        padding: 2rem 1rem;
    }
    
    .option-card {
        padding: 1rem;
    }
    
    .option-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Loading Spinner */
.ipct-spinner {
    width: 2rem;
    height: 2rem;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #FF3C91;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}