/* استایل‌های تکمیلی ImagOpt */

/* انیمیشن‌ها */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* استایل‌های عمومی */
.fade-in {
    animation: fadeIn 0.5s ease-out;
}

.pulse {
    animation: pulse 2s infinite;
}

.slide-in {
    animation: slideIn 0.3s ease-out;
}

/* استایل‌های سفارشی برای Tailwind */
.file-item {
    transition: all 0.3s ease;
    border-right: 4px solid transparent;
}

.file-item:hover {
    background-color: #f8fafc;
    border-right-color: #3b82f6;
    transform: translateX(-5px);
}

.progress-bar {
    height: 6px;
    border-radius: 3px;
    overflow: hidden;
    background-color: #e5e7eb;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #10b981, #3b82f6);
    transition: width 0.3s ease;
}

/* استایل‌های جدول نتایج */
.result-row {
    transition: all 0.3s ease;
}

.result-row:hover {
    background-color: #f0f9ff;
}

.saving-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: bold;
}

.saving-positive {
    background-color: #d1fae5;
    color: #065f46;
}

.saving-negative {
    background-color: #fee2e2;
    color: #991b1b;
}

/* استایل‌های پیش‌نمایش تصویر */
.image-preview {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid #e5e7eb;
    transition: all 0.3s ease;
}

.image-preview:hover {
    transform: scale(1.5);
    border-color: #3b82f6;
    z-index: 10;
    position: relative;
}

/* استایل‌های دکمه‌ها */
.btn-gradient {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transition: all 0.3s ease;
}

.btn-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

.btn-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.btn-success:hover {
    box-shadow: 0 10px 20px rgba(16, 185, 129, 0.3);
}

/* استایل‌های فرم */
.input-file-label {
    transition: all 0.3s ease;
    cursor: pointer;
}

.input-file-label:hover {
    background-color: #dbeafe;
    border-color: #3b82f6;
}

/* استایل‌های ریسپانسیو */
@media (max-width: 768px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .text-4xl {
        font-size: 2rem;
    }
    
    .text-2xl {
        font-size: 1.5rem;
    }
    
    table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}

/* استایل‌های اسکرول بار */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a1a1a1;
}

/* استایل‌های مخصوص فونت وزیر */
.font-vazir {
    font-feature-settings: "ss01";
    letter-spacing: -0.5px;
}

/* استایل‌های نوتیفیکیشن */
.notification {
    position: fixed;
    top: 20px;
    left: 20px;
    right: 20px;
    z-index: 1000;
    max-width: 400px;
    margin: 0 auto;
    animation: slideIn 0.3s ease-out;
}

.notification.success {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    border: 1px solid #10b981;
    color: #065f46;
}

.notification.error {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    border: 1px solid #ef4444;
    color: #991b1b;
}

.notification.info {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    border: 1px solid #3b82f6;
    color: #1e40af;
}
