:root { --primary-color: #6366f1; --primary-hover: #4f46e5; --secondary-color: #f8fafc; --accent-color: #818cf8; --text-primary: #1e293b; --text-secondary: #64748b; --border-color: #e2e8f0; --success-color: #10b981; --error-color: #ef4444; --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06); --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04); } .subtitle { color: rgba(255, 255, 255, 0.9); font-size: 1.125rem; font-weight: 300; } .upload-section { background: white; border-radius: 16px; padding-top: 9px !important; padding: 1.5rem; box-shadow: var(--shadow-xl); margin-bottom: 2rem; backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, 0.2); } .drop-zone { border: 2px dashed var(--border-color); border-radius: 12px; padding: 3rem; text-align: center; transition: all 0.3s ease; cursor: pointer; background: linear-gradient(145deg, #f8fafc, #f1f5f9); position: relative; overflow: hidden; } .drop-zone::before { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: linear-gradient(45deg, rgba(99, 102, 241, 0.05), rgba(139, 92, 246, 0.05)); z-index: 0; } .drop-zone.drag-over { border-color: var(--primary-color); background: linear-gradient(145deg, #eef2ff, #e0e7ff); transform: scale(1.02); box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1); } .drop-zone-icon { font-size: 3.5rem; margin-bottom: 1rem; color: #D2435C; position: relative; z-index: 1; } .drop-zone .dropdata { font-size: 1.5rem; margin-bottom: 0.5rem; color: var(--text-primary); position: relative; z-index: 1; } .drop-zone p { color: var(--text-secondary); margin-bottom: 1.5rem; position: relative; z-index: 1; } .drop-zone .max-images { color: #000; font-weight: 600; font-size: 0.875rem; margin-top: 0.5rem; background: rgba(99, 102, 241, 0.1); padding: 0.5rem 1rem; border-radius: 30px; display: inline-block; position: relative; z-index: 1; } .file-input { display: none; } .choosedata{ display:none !important; } .btn { background: #D2435C; color: white; border: none; padding: 0.875rem 2rem; border-radius: 50px; font-size: 1rem; font-weight: 600; cursor: pointer; transition: all 0.3s ease; display: inline-flex; align-items: center; gap: 0.75rem; box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3); position: relative; z-index: 1; overflow: hidden; } .btn::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(45deg, rgba(255,255,255,0.2), rgba(255,255,255,0.1)); transform: translateX(-100%); transition: transform 0.6s; } .btn:hover::before { transform: translateX(100%); } .btn:hover { color: #fff !important; text-decoration: none; } .btn:hover { transform: translateY(-3px); box-shadow: 0 8px 16px rgba(99, 102, 241, 0.4); color #fff !important; } .btn:active { transform: translateY(-1px); } .btn-secondary { background: white; color: var(--primary-color); border: 2px solid var(--primary-color); box-shadow: 0 4px 12px rgba(99, 102, 241, 0.1); } .btn-secondary:hover { background: var(--secondary-color); color: #000 !important; } .btn-success { background: linear-gradient(135deg, var(--success-color), #059669); box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3); } .btn-success:hover { box-shadow: 0 8px 16px rgba(16, 185, 129, 0.4); } .btn-outline { background: transparent; color: var(--success-color); border: 1px solid var(--success-color); padding: 0.5rem 1rem; font-size: 0.75rem; border-radius: 30px; box-shadow: none; } .btn-outline:hover { background: var(--success-color); color: white; } .conversion-section { background: white; border-radius: 16px; padding: 2.5rem; box-shadow: var(--shadow-xl); margin-top: 2rem; backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, 0.2); } .conversion-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; } .conversion-header h2 { font-size: 1.75rem; font-weight: 700; color: var(--text-primary); } .dimension-controls { display: flex; gap: 1.5rem; margin-bottom: 1.5rem; align-items: flex-end; background: var(--secondary-color); padding: 1.5rem; border-radius: 12px; } .dimension-input { flex: 1; } .dimension-input label { display: block; font-size: 0.875rem; color: var(--text-secondary); margin-bottom: 0.5rem; font-weight: 500; } .dimension-input input { width: 100%; padding: 0.875rem; border: 1px solid var(--border-color); border-radius: 8px; font-size: 1rem; transition: all 0.2s ease; background: white; } .dimension-input input:focus { border-color: var(--primary-color); box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1); outline: none; } .dimension-input input:placeholder-shown { color: var(--text-secondary); opacity: 0.7; } .lock-aspect { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.5rem; } .lock-aspect input[type="checkbox"] { width: 1.25rem; height: 1.25rem; cursor: pointer; accent-color: var(--primary-color); } .lock-aspect label { font-size: 0.875rem; color: var(--text-secondary); cursor: pointer; font-weight: 500; } .optional-note { color: var(--text-secondary); font-size: 0.875rem; margin-bottom: 1.5rem; font-style: italic; background: rgba(99, 102, 241, 0.05); padding: 0.75rem 1rem; border-radius: 8px; border-left: 3px solid var(--primary-color); } .filxbuton { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2rem; background: var(--secondary-color); padding: 1.5rem; border-radius: 12px; } .convert-section { display: flex; flex-direction: column; align-items: center; } .convert-all-btn { padding: 1rem 2.5rem; font-size: 1.125rem; margin-bottom: 1rem; } .download-options { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; } .progress-bar { width: 100%; height: 10px; background: var(--secondary-color); border-radius: 10px; overflow: hidden; margin: 1.5rem 0; display: none; box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05); } .progress-fill { height: 100%; background: linear-gradient(90deg, var(--primary-color), var(--accent-color)); transition: width 0.3s ease; width: 0%; border-radius: 10px; } .images-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 1rem; margin-bottom: 2rem; } .image-card { background: white; border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); transition: all 0.3s ease; position: relative; border: 1px solid var(--border-color); } .image-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-5px); } .remove-btn { position: absolute; top: 0.5rem; right: 0.5rem; background: rgba(239, 68, 68, 0.9); color: white; border: none; width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: 14px; font-weight: bold; transition: all 0.2s ease; z-index: 10; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); } .remove-btn:hover { background: var(--error-color); transform: scale(1.1); } .image-preview { width: 100%; height: 100px; object-fit: cover; background: var(--secondary-color); } .image-info { padding: 0.75rem; } .image-name { font-weight: 600; margin-bottom: 0.25rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 0.75rem; color: var(--text-primary); } .image-size { color: var(--text-secondary); font-size: 0.625rem; margin-bottom: 0.25rem; } .image-status { display: inline-block; padding: 0.125rem 0.375rem; border-radius: 20px; font-size: 0.625rem; font-weight: 600; margin-top: 0.25rem; } .status-original { background: #dbeafe; color: #1d4ed8; } .status-converted { background: #d1fae5; color: #047857; } .image-actions { display: flex; gap: 0.5rem; margin-top: 0.5rem; } .download-single-btn { flex: 1; padding: 0.375rem 0.5rem; font-size: 0.75rem; display: none; } .image-card.converted .download-single-btn { display: flex; } .toast { position: fixed; bottom: 2rem; right: 2rem; background: white; padding: 1rem 1.5rem; border-radius: 12px; box-shadow: var(--shadow-xl); display: flex; align-items: center; gap: 0.75rem; transform: translateX(400px); transition: transform 0.3s ease; z-index: 1000; border-left: 4px solid var(--success-color); } .toast.show { transform: translateX(0); } .toast.success { border-left: 4px solid var(--success-color); } .toast.error { border-left: 4px solid var(--error-color); } .loading-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0, 0, 0, 0.7); display: flex; justify-content: center; align-items: center; z-index: 2000; opacity: 0; visibility: hidden; transition: all 0.3s ease; } .loading-overlay.active { opacity: 1; visibility: visible; } .loading-content { background: white; padding: 2.5rem; border-radius: 16px; text-align: center; max-width: 400px; width: 90%; box-shadow: var(--shadow-xl); } .loading-spinner { width: 60px; height: 60px; border: 5px solid rgba(99, 102, 241, 0.2); border-radius: 50%; border-top-color: var(--primary-color); animation: spin 1s ease-in-out infinite; margin: 0 auto 1.5rem; } @keyframes spin { to { transform: rotate(360deg); } } .loading-text { font-size: 1.25rem; color: var(--text-primary); margin-bottom: 0.5rem; font-weight: 600; } .loading-subtext { color: var(--text-secondary); font-size: 0.875rem; } .empty-state { text-align: center; padding: 3rem; color: var(--text-secondary); } .empty-state-icon { font-size: 3rem; margin-bottom: 1rem; opacity: 0.5; } .use-again-section { text-align: center; } @media (max-width: 768px) { .container { padding: 1rem; } h1 { font-size: 2rem; } .dimension-controls { flex-direction: column; gap: 1rem; } .images-grid { grid-template-columns: repeat(auto-fill, minmax(80px, 1fr)); } .filxbuton { flex-direction: column; gap: 1rem; } .download-options { flex-direction: column; } .btn { width: 100%; justify-content: center; } }