Spaces:
Running
Running
Download static/style.css from rmdzav/AI-Audio-Enhancer: direct link, hf CLI and curl.
- Browser
- Download file 10 kB
-
https://huggingface.co/spaces/rmdzav/AI-Audio-Enhancer/resolve/main/static/style.css
- Command line
-
hf download hf://spaces/rmdzav/AI-Audio-Enhancer/static/style.css
-
curl -L -o style.css https://huggingface.co/spaces/rmdzav/AI-Audio-Enhancer/resolve/main/static/style.css
10 kB
| * { | |
| box-sizing: border-box; | |
| } | |
| :root { | |
| --primary: #FF9800; | |
| --primary-hover: #F57C00; | |
| --bg-color: #FFF3E0; | |
| --container-bg: #FFFFFF; | |
| --text-dark: #3E2723; | |
| --text-muted: #795548; | |
| --border-color: #FFCC80; | |
| --border-light: #FFE0B2; | |
| } | |
| body { | |
| font-family: 'Poppins', sans-serif; | |
| background-color: var(--bg-color); | |
| color: var(--text-dark); | |
| margin: 0; | |
| padding: 20px; | |
| display: flex; | |
| justify-content: center; | |
| align-items: center; | |
| min-height: 100vh; | |
| } | |
| .container { | |
| background-color: var(--container-bg); | |
| width: 100%; | |
| max-width: 800px; | |
| padding: 40px; | |
| border-radius: 20px; | |
| box-shadow: 0 10px 30px rgba(255, 152, 0, 0.15); | |
| transition: all 0.3s ease; | |
| } | |
| h1 { text-align: center; color: var(--primary); margin-bottom: 5px; font-weight: 700; } | |
| .subtitle { text-align: center; color: var(--text-muted); margin-bottom: 30px; font-weight: 400; } | |
| .section-title { color: var(--primary-hover); font-weight: 700; margin-bottom: 15px; font-size: 1.1rem; } | |
| /* --- DROPZONE --- */ | |
| .dropzone { | |
| border: 3px dashed var(--border-color); | |
| border-radius: 15px; | |
| padding: 40px 20px; | |
| text-align: center; | |
| background-color: #FFF9F2; | |
| cursor: pointer; | |
| transition: all 0.3s ease; | |
| } | |
| .dropzone.dragover, .dropzone:hover { | |
| background-color: var(--border-light); | |
| border-color: var(--primary); | |
| } | |
| .icon-drop { font-size: 50px; color: var(--primary); margin-bottom: 10px; } | |
| #fileInput { display: none; } | |
| /* --- PREVIEW TREE --- */ | |
| .preview-area { display: none; margin-top: 25px; background: #FAFAFA; border: 1px solid #EEE; border-radius: 10px; padding: 15px; } | |
| .tree-root { font-weight: bold; color: var(--primary-hover); margin-bottom: 10px; } | |
| .tree-folder { margin-left: 20px; font-weight: 600; color: var(--text-dark); } | |
| .tree-file { margin-left: 40px; color: var(--text-muted); font-size: 0.9rem; position: relative; } | |
| .tree-file::before { content: "•"; position: absolute; left: -15px; color: var(--primary); font-size: 1rem; top: -2px; } | |
| .tree-more { margin-left: 40px; color: var(--primary); font-size: 0.85rem; font-style: italic; font-weight: 600; } | |
| /* --- CONFIGURATION (RADIO BUTTONS) --- */ | |
| .config-area, .options-area { margin-top: 25px; padding: 20px; background: #FFF9F2; border-radius: 10px; border: 1px solid var(--border-color); } | |
| .config-group { margin-bottom: 15px; } | |
| .config-label { font-size: 0.9rem; color: var(--text-dark); font-weight: 600; margin-bottom: 8px; border-bottom: 1px solid var(--border-light); padding-bottom: 4px; } | |
| /* Grid Format 3-3-3-1 */ | |
| .format-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; } | |
| .format-item { flex: 0 0 calc(33.333% - 10px); box-sizing: border-box; background: #fff; padding: 8px; border-radius: 6px; border: 1px solid var(--border-light); margin: 0; } | |
| .format-item:hover { border-color: var(--primary); background: #FFF3E0; } | |
| /* 1 Kolom untuk Rate, Depth, Bitrate */ | |
| .other-configs-column { display: flex; flex-direction: column; gap: 10px; } | |
| .radio-row { display: flex; gap: 15px; flex-wrap: wrap; } | |
| .custom-radio { display: flex; align-items: center; cursor: pointer; color: var(--text-muted); font-size: 0.9rem; transition: 0.2s; user-select: none; } | |
| .custom-radio input { display: none; } | |
| .rb-mark { width: 16px; height: 16px; border: 2px solid var(--border-color); border-radius: 50%; display: inline-block; position: relative; margin-right: 8px; transition: 0.3s; background: #fff; } | |
| .custom-radio:hover .rb-mark { border-color: var(--primary); } | |
| .custom-radio input:checked ~ .rb-mark { border-color: var(--primary); } | |
| .custom-radio input:checked ~ .rb-mark::after { content: ''; position: absolute; top: 3px; left: 3px; width: 10px; height: 10px; background: var(--primary); border-radius: 50%; } | |
| .custom-radio input:checked ~ span, .custom-radio input:checked { color: var(--primary-hover); font-weight: 600; } | |
| /* --- ENGINE CHECKBOXES --- */ | |
| .version-card { margin-bottom: 12px; } | |
| .custom-checkbox { display: flex; align-items: center; position: relative; cursor: pointer; font-size: 1rem; user-select: none; } | |
| .custom-checkbox input { position: absolute; opacity: 0; cursor: pointer; height: 0; width: 0; } | |
| .checkmark { height: 20px; width: 20px; background-color: #fff; border: 2px solid var(--border-color); border-radius: 6px; margin-right: 12px; transition: 0.3s; position: relative; } | |
| .custom-checkbox:hover input ~ .checkmark { border-color: var(--primary); } | |
| .custom-checkbox input:checked ~ .checkmark { background-color: var(--primary); border-color: var(--primary); } | |
| .checkmark:after { content: ""; position: absolute; display: none; left: 6px; top: 2px; width: 5px; height: 10px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); } | |
| .custom-checkbox input:checked ~ .checkmark:after { display: block; } | |
| .cb-label { font-weight: 600; color: var(--text-dark); transition: 0.3s; } | |
| .custom-checkbox input:checked ~ .cb-label { color: var(--primary-hover); } | |
| .version-desc { margin-left: 36px; font-size: 0.85rem; color: var(--text-muted); margin-top: 2px; } | |
| /* --- BUTTONS & LOADER --- */ | |
| .btn-process { width: 100%; background: linear-gradient(135deg, var(--primary), var(--primary-hover)); color: white; border: none; padding: 15px; font-size: 1.1rem; font-weight: 700; border-radius: 10px; margin-top: 25px; cursor: pointer; transition: 0.3s; box-shadow: 0 4px 15px rgba(255, 152, 0, 0.3); } | |
| .btn-process:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(255, 152, 0, 0.4); } | |
| .loader { display: none; text-align: center; margin-top: 25px; color: var(--primary); } | |
| .icon-spin { font-size: 30px; margin-bottom: 10px; } | |
| .loading-text { font-weight: 600; font-size: 1rem; } | |
| /* --- RESULTS --- */ | |
| .results-area { display: none; margin-top: 30px; border-top: 2px dashed var(--border-color); padding-top: 20px; } | |
| .result-item { | |
| display: flex; | |
| justify-content: space-between; | |
| align-items: center; | |
| background: #FFF; | |
| padding: 15px; | |
| border-radius: 8px; | |
| margin-bottom: 10px; | |
| border: 1px solid var(--border-light); | |
| box-shadow: 0 2px 5px rgba(0,0,0,0.02); | |
| gap: 15px; /* Memberi jarak aman antara teks dan tombol */ | |
| } | |
| /* Memaksa teks panjang turun ke bawah & tidak menjebol container */ | |
| .result-item span { | |
| flex: 1; | |
| word-break: break-word; | |
| overflow-wrap: break-word; | |
| min-width: 0; | |
| line-height: 1.4; | |
| } | |
| /* Melindungi tombol unduh agar tidak gepeng atau terdorong hilang */ | |
| .btn-download { | |
| background: var(--primary); | |
| color: white; | |
| padding: 8px 15px; | |
| border-radius: 6px; | |
| text-decoration: none; | |
| font-size: 0.9rem; | |
| font-weight: 600; | |
| transition: 0.2s; | |
| white-space: nowrap; | |
| flex-shrink: 0; | |
| } | |
| .btn-download:hover { background: var(--primary-hover); } | |
| /* --- MODAL DIALOG --- */ | |
| .modal-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); backdrop-filter: blur(3px); z-index: 100; justify-content: center; align-items: center; } | |
| .modal-box { background: white; padding: 30px; border-radius: 15px; width: 90%; max-width: 400px; text-align: center; box-shadow: 0 10px 30px rgba(0,0,0,0.2); } | |
| .modal-title { color: var(--primary-hover); margin-top: 0; margin-bottom: 10px; } | |
| .btn-modal { background: var(--primary); color: white; border: none; padding: 10px 20px; border-radius: 8px; font-weight: 600; cursor: pointer; margin-top: 20px; transition: 0.2s; } | |
| .btn-modal:hover { background: var(--primary-hover); } | |
| /* ========================================= | |
| RESPONSIVE DESIGN (MOBILE, TABLET, DESKTOP) | |
| ========================================= */ | |
| /* --- TABLET & HP LAYAR BESAR --- */ | |
| @media (max-width: 768px) { | |
| body { | |
| padding: 10px; /* Mengurangi jarak kosong layar luar */ | |
| } | |
| .container { | |
| padding: 25px 20px; /* Padding dalam container lebih lega untuk HP */ | |
| border-radius: 15px; | |
| } | |
| h1 { | |
| font-size: 1.6rem; | |
| } | |
| .subtitle { | |
| font-size: 0.9rem; | |
| margin-bottom: 20px; | |
| } | |
| .dropzone { | |
| padding: 30px 15px; | |
| } | |
| .icon-drop { | |
| font-size: 40px; | |
| } | |
| /* Format Audio jadi 2 Kolom agar lebih proporsional */ | |
| .format-item { | |
| flex: 0 0 calc(50% - 10px); | |
| } | |
| /* Config lainnya (Rate, Bitrate) turun ke bawah agar sentuhan jari tidak meleset */ | |
| .radio-row { | |
| flex-direction: column; | |
| gap: 12px; | |
| } | |
| /* Hasil Render: Teks di atas, Tombol di bawah */ | |
| .result-item { | |
| flex-direction: column; | |
| align-items: flex-start; | |
| gap: 15px; | |
| } | |
| /* Tombol Preview & Unduh memanjang sejajar 50:50 */ | |
| .action-buttons { | |
| width: 100%; | |
| display: flex; | |
| gap: 10px; | |
| } | |
| .btn-play, .btn-download { | |
| flex: 1; /* Ukuran tombol seimbang */ | |
| justify-content: center; | |
| text-align: center; | |
| padding: 12px 15px; /* Touch target (area sentuh) lebih besar */ | |
| } | |
| } | |
| /* --- HP LAYAR KECIL (Potrait Mode) --- */ | |
| @media (max-width: 480px) { | |
| h1 { | |
| font-size: 1.4rem; | |
| } | |
| /* Format Audio memanjang 1 Kolom Penuh agar sangat gampang di-tap jempol */ | |
| .format-item { | |
| flex: 0 0 100%; | |
| } | |
| .action-buttons { | |
| flex-direction: column; /* Tombol Play dan Unduh susun atas-bawah */ | |
| } | |
| .btn-play, .btn-download { | |
| width: 100%; | |
| } | |
| } | |
| /* ================================ */ | |
| /* --- PLAY & DOWNLOAD BUTTON GROUP --- */ | |
| .action-buttons { | |
| display: flex; | |
| gap: 10px; | |
| align-items: center; | |
| flex-shrink: 0; | |
| } | |
| .btn-play { | |
| background: transparent; | |
| color: var(--primary); | |
| border: 2px solid var(--primary); | |
| padding: 8px 15px; | |
| border-radius: 6px; | |
| font-size: 0.9rem; | |
| font-weight: 600; | |
| cursor: pointer; | |
| transition: 0.2s; | |
| display: flex; | |
| align-items: center; | |
| gap: 6px; | |
| font-family: inherit; | |
| } | |
| .btn-play:hover { | |
| background: var(--primary); | |
| color: #fff; | |
| box-shadow: 0 4px 10px rgba(255, 152, 0, 0.2); | |
| } | |