/* Image Converter Pro - Frontend Styles */
.icp-converter-container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.icp-header {
    text-align: center;
    margin-bottom: 30px;
}

.icp-title {
    font-size: 2.2rem;
    font-weight: 600;
    color: #2c5aa0;
    margin: 0 0 10px 0;
    line-height: 1.2;
}

.icp-subtitle {
    font-size: 1rem;
    color: #666;
    margin: 0;
    line-height: 1.5;
}

.icp-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 20px;
}

.icp-buttons {
    display: flex;
    gap: 15px;
}

.icp-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.icp-btn-primary {
    background: #e91e63;
    color: white;
}

.icp-btn-primary:hover {
    background: #c2185b;
    transform: translateY(-1px);
}

.icp-btn-secondary {
    background: #424242;
    color: white;
}

.icp-btn-secondary:hover {
    background: #303030;
    transform: translateY(-1px);
}

.icp-btn-success {
    background: #00b894;
    color: white;
    position: relative;
}

.icp-btn-success:hover {
    background: #00a085;
    transform: translateY(-1px);
}

.icp-settings {
    display: flex;
    gap: 20px;
    align-items: center;
}

.icp-setting-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.icp-setting-group label {
    font-weight: 500;
    color: #333;
    white-space: nowrap;
}

.icp-select {
    padding: 8px 12px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    background: white;
    min-width: 80px;
}

.icp-select:focus {
    outline: none;
    border-color: #2c5aa0;
}

.icp-drop-zone {
    border: 3px dashed #ddd;
    border-radius: 12px;
    padding: 60px 20px;
    text-align: center;
    background: #fafafa;
    transition: all 0.3s ease;
    cursor: pointer;
}

.icp-drop-zone:hover,
.icp-drop-zone.drag-over {
    border-color: #2c5aa0;
    background: #f0f7ff;
}

.icp-drop-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.icp-drop-text {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    margin: 0 0 8px 0;
}

.icp-drop-subtext {
    color: #666;
    margin: 0;
}

.icp-file-list {
    margin: 30px 0;
    border: 1px solid #eee;
    border-radius: 8px;
    background: white;
}

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

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

.icp-file-preview {
    width: 60px;
    height: 60px;
    border-radius: 6px;
    object-fit: cover;
    margin-right: 16px;
    border: 1px solid #ddd;
}

.icp-file-info {
    flex: 1;
}

.icp-file-name {
    font-weight: 500;
    color: #333;
    margin: 0 0 4px 0;
    font-size: 14px;
}

.icp-file-details {
    font-size: 12px;
    color: #666;
    margin: 0;
}

.icp-file-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.icp-progress-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: #2c5aa0;
    transition: width 0.3s ease;
    border-radius: 0 0 8px 8px;
}

.icp-download-section {
    text-align: center;
    margin-top: 30px;
}

.icp-badge {
    background: rgba(255, 255, 255, 0.3);
    color: white;
    border-radius: 12px;
    padding: 2px 8px;
    font-size: 12px;
    font-weight: bold;
    margin-left: 8px;
}

.icp-icon {
    font-style: normal;
}

/* Responsive Design */
@media (max-width: 768px) {
    .icp-converter-container {
        margin: 10px;
        padding: 16px;
    }
    
    .icp-title {
        font-size: 1.8rem;
    }
    
    .icp-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .icp-buttons {
        justify-content: center;
    }
    
    .icp-settings {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .icp-drop-zone {
        padding: 40px 20px;
    }
    
    .icp-file-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .icp-file-preview {
        align-self: center;
    }
}

@media (max-width: 480px) {
    .icp-title {
        font-size: 1.5rem;
    }
    
    .icp-subtitle {
        font-size: 0.9rem;
    }
    
    .icp-btn {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .icp-buttons {
        flex-direction: column;
    }
}

/* Dark theme support */
.icp-converter-container[data-theme="dark"] {
    background: #2d3748;
    color: white;
}

.icp-converter-container[data-theme="dark"] .icp-title {
    color: #63b3ed;
}

.icp-converter-container[data-theme="dark"] .icp-subtitle,
.icp-converter-container[data-theme="dark"] .icp-file-details {
    color: #a0aec0;
}

.icp-converter-container[data-theme="dark"] .icp-drop-zone {
    background: #4a5568;
    border-color: #718096;
}

.icp-converter-container[data-theme="dark"] .icp-drop-zone:hover,
.icp-converter-container[data-theme="dark"] .icp-drop-zone.drag-over {
    background: #2d3748;
    border-color: #63b3ed;
}

.icp-converter-container[data-theme="dark"] .icp-file-list {
    background: #4a5568;
    border-color: #718096;
}

.icp-converter-container[data-theme="dark"] .icp-file-item {
    border-color: #718096;
}

.icp-converter-container[data-theme="dark"] .icp-select {
    background: #4a5568;
    border-color: #718096;
    color: white;
}