first commit

This commit is contained in:
maher
2026-06-06 13:55:42 +02:00
commit a75adf3c39
2371 changed files with 511696 additions and 0 deletions
+371
View File
@@ -0,0 +1,371 @@
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: 'Segoe UI', Roboto, system-ui, sans-serif;
}
body {
background: linear-gradient(145deg, #f5f7fa 0%, #e9edf5 100%);
min-height: 100vh;
display: flex;
flex-direction: column;
align-items: stretch;
/* ← CORRECTION ICI */
margin: 0;
}
/* ---------- BARRE HORIZONTALE TOUT EN HAUT ---------- */
.top-header-bar {
width: 100%;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
border-bottom: 1px solid #eef2ff;
position: sticky;
top: 0;
z-index: 100;
backdrop-filter: blur(8px);
background: rgba(255, 255, 255, 0.96);
/* ← une seule déclaration */
}
.top-bar-container {
max-width: 1280px;
margin: 0 auto;
padding: 0.9rem 2rem;
display: flex;
justify-content: space-between;
align-items: center;
flex-wrap: wrap;
gap: 1rem;
}
/* Section langue statique (sans JS) */
.static-lang {
background: #f1f4f9;
padding: 0.5rem 1.3rem;
border-radius: 3rem;
font-weight: 600;
font-size: 0.9rem;
color: #1e293b;
display: inline-flex;
align-items: center;
gap: 0.6rem;
letter-spacing: 0.2px;
}
.static-lang a {
text-decoration: none;
font-size: 23px;
margin-right: 20px;
}
.main-alert {
max-width: 1200px;
width: 100%;
padding: 2rem 0rem 0rem;
align-self: center;
/* Hauteur fixe pour réserver lespace, même vide */
min-height: 90px;
/* Ajustez selon la hauteur réelle de votre alerte */
}
/* Quand lalerte est absente ou vide, on cache son contenu mais on garde lespace */
.main-alert:empty {
visibility: hidden;
/* optionnel : pour masquer complètement tout contenu fantôme */
}
/* Conteneur principal (centré, avec marge supérieure) */
.main-container {
max-width: 1200px;
width: 100%;
background: #ffffff;
box-shadow: 0 25px 50px -10px rgba(0, 0, 0, 0.15);
border-radius: 2.5rem;
padding: 2rem 2rem 2.5rem;
margin: 1rem 1rem;
border: 1px solid rgba(255, 255, 255, 0.5);
transition: all 0.2s ease;
align-self: center;
}
.logo-area {
display: flex;
align-items: center;
justify-content: center;
gap: 0.5rem;
margin-bottom: 1.5rem;
}
.logo-icon {
font-size: 2.8rem;
color: #ef4444;
filter: drop-shadow(0 4px 6px rgba(239, 68, 68, 0.3));
}
.logo-text {
font-size: 2rem;
font-weight: 700;
background: linear-gradient(135deg, #1e293b, #4f46e5);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
}
.url-section {
background: #f8fafc;
border-radius: 2rem;
padding: 1.5rem;
margin: 1.8rem 0 1.5rem;
}
.url-input-area {
display: flex;
flex-direction: column;
gap: 0.8rem;
}
textarea {
width: 100%;
border: 1px solid #e2e8f0;
border-radius: 1.2rem;
padding: 1rem;
font-size: 0.95rem;
resize: vertical;
min-height: 90px;
background: white;
outline: none;
transition: 0.2s;
}
textarea:focus {
border-color: #4f46e5;
box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}
.format-row {
display: flex;
align-items: center;
gap: 1rem;
flex-wrap: wrap;
margin-top: 0.5rem;
}
select {
padding: 0.7rem 1.2rem;
border-radius: 2rem;
border: 1px solid #d1d5db;
background: white;
font-weight: 500;
cursor: pointer;
outline: none;
min-width: 180px;
}
.process-btn {
background: #0f172a;
border: none;
color: white;
font-weight: 700;
padding: 0.8rem 2.2rem;
border-radius: 3rem;
font-size: 1rem;
letter-spacing: 0.3px;
display: flex;
align-items: center;
gap: 0.5rem;
cursor: pointer;
transition: 0.25s;
box-shadow: 0 10px 20px -8px rgba(15, 23, 42, 0.4);
margin-left: auto;
}
.process-btn:hover {
background: #1e293b;
transform: scale(1.02);
}
.process-btn:disabled {
opacity: 0.7;
cursor: not-allowed;
}
.user-avatar {
width: 42px;
height: 42px;
border-radius: 50%;
object-fit: cover;
border: 2px solid #dee2e6;
}
.username {
font-weight: 600;
color: #333;
}
.video-list {
margin-top: 2rem;
display: flex;
flex-direction: column;
gap: 1rem;
max-height: 400px;
overflow-y: auto;
padding-right: 0.3rem;
}
.video-item {
background: white;
border-radius: 1.2rem;
padding: 1rem 1.2rem;
box-shadow: 0 6px 18px rgba(0, 0, 0, 0.04);
border: 1px solid #edf2f7;
display: flex;
flex-direction: column;
gap: 0.6rem;
}
.video-header {
display: flex;
justify-content: space-between;
align-items: center;
}
.video-name {
font-weight: 600;
color: #1e293b;
word-break: break-word;
}
.progress-container {
width: 100%;
height: 8px;
background: #e9eef3;
border-radius: 20px;
overflow: hidden;
margin: 0.2rem 0;
}
.progress-fill {
height: 100%;
width: 0%;
background: linear-gradient(90deg, #4f46e5, #818cf8);
border-radius: 20px;
transition: width 0.2s ease;
}
.progress-fill.error {
background: #ef4444;
}
/* Styles pour la barre de progression en mode indéterminé */
.progress-container .progress-fill.indeterminate {
width: 100%;
background-image: linear-gradient(90deg,
#4f46e5 0%,
#818cf8 25%,
#4f46e5 50%,
#818cf8 75%,
#4f46e5 100%);
background-size: 200% 100%;
animation: shimmer 1.5s infinite linear;
}
@keyframes shimmer {
0% {
background-position: 200% 0;
}
100% {
background-position: -200% 0;
}
}
.status-area {
display: flex;
align-items: center;
justify-content: space-between;
gap: 1rem;
}
.status-text {
font-size: 0.9rem;
font-weight: 500;
}
.pending-text {
color: #64748b;
}
.error-text {
color: #dc2626;
font-weight: 600;
}
.download-btn {
background: #0f172a;
color: white;
border: none;
padding: 0.4rem 1.2rem;
border-radius: 2rem;
font-weight: 600;
font-size: 0.8rem;
cursor: pointer;
display: flex;
align-items: center;
gap: 0.3rem;
transition: 0.2s;
}
.download-btn:hover {
background: #334155;
}
/* RESPONSIVE : barre horizontale adaptative */
@media (max-width: 768px) {
.top-bar-container {
padding: 0.8rem 1rem;
flex-direction: column;
align-items: stretch;
gap: 0.7rem;
}
.static-lang,
.demo-status {
justify-content: center;
width: 100%;
}
.format-row {
flex-direction: column;
align-items: stretch;
}
.process-btn {
margin-left: 0;
justify-content: center;
}
.main-container {
padding: 1.5rem;
margin: 1rem;
}
.logo-text {
font-size: 1.6rem;
}
}
@media (max-width: 480px) {
.top-bar-container {
padding: 0.7rem 0.9rem;
}
.static-lang,
.demo-status {
font-size: 0.8rem;
padding: 0.4rem 1rem;
}
}
+342
View File
@@ -0,0 +1,342 @@
/* ── Page header ── */
.history-page-header {
display: flex;
align-items: center;
justify-content: space-between;
flex-wrap: wrap;
gap: 1rem;
margin-bottom: 1.8rem;
padding-bottom: 1.2rem;
border-bottom: 1px solid #eef2ff;
}
.history-page-title {
font-size: 1.55rem;
font-weight: 700;
color: #1e293b;
display: flex;
align-items: center;
gap: 0.7rem;
}
.history-page-title i {
color: #4f46e5;
font-size: 1.3rem;
}
.history-badge {
background: #eef2ff;
color: #4f46e5;
font-size: 0.75rem;
font-weight: 700;
padding: 0.25rem 0.75rem;
border-radius: 2rem;
}
/* ── Search / filter bar ── */
.history-toolbar {
display: flex;
align-items: center;
gap: 0.8rem;
flex-wrap: wrap;
margin-bottom: 1.2rem;
}
.history-search {
flex: 1;
min-width: 200px;
position: relative;
}
.history-search input {
width: 100%;
padding: 0.6rem 1rem 0.6rem 2.5rem;
border: 1px solid #e2e8f0;
border-radius: 2rem;
font-size: 0.9rem;
background: #f8fafc;
outline: none;
transition: 0.2s;
min-height: unset;
resize: none;
}
.history-search input:focus {
border-color: #4f46e5;
box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
background: #fff;
}
.history-search .search-icon {
position: absolute;
left: 0.9rem;
top: 50%;
transform: translateY(-50%);
color: #94a3b8;
font-size: 0.85rem;
pointer-events: none;
}
[dir="rtl"] .history-search input {
padding: 0.6rem 2.5rem 0.6rem 1rem;
}
[dir="rtl"] .history-search .search-icon {
left: unset;
right: 0.9rem;
}
.history-sort-select {
padding: 0.6rem 1.1rem;
border-radius: 2rem;
border: 1px solid #e2e8f0;
background: #f8fafc;
font-size: 0.88rem;
font-weight: 500;
color: #1e293b;
cursor: pointer;
outline: none;
min-width: 160px;
}
.history-sort-select:focus {
border-color: #4f46e5;
}
/* ── Table ── */
.history-table-wrapper {
border-radius: 1.4rem;
overflow: hidden;
border: 1px solid #edf2f7;
box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04);
}
.history-table {
width: 100%;
border-collapse: collapse;
font-size: 0.92rem;
}
.history-table thead th {
background: #f8fafc;
color: #64748b;
font-weight: 700;
font-size: 0.78rem;
text-transform: uppercase;
letter-spacing: 0.6px;
padding: 0.85rem 1.2rem;
border-bottom: 1px solid #edf2f7;
white-space: nowrap;
}
.history-table tbody tr {
border-bottom: 1px solid #f1f5f9;
transition: background 0.15s;
}
.history-table tbody tr:last-child {
border-bottom: none;
}
.history-table tbody tr:hover {
background: #f8fafc;
}
.history-table td {
padding: 0.9rem 1.2rem;
vertical-align: middle;
color: #1e293b;
}
/* Name cell */
.video-name-cell {
display: flex;
align-items: center;
gap: 0.75rem;
}
.video-thumb-icon {
width: 38px;
height: 38px;
border-radius: 0.6rem;
background: linear-gradient(135deg, #eef2ff, #e0e7ff);
display: flex;
align-items: center;
justify-content: center;
flex-shrink: 0;
}
.video-thumb-icon i {
color: #4f46e5;
font-size: 1rem;
}
.video-title-text {
font-weight: 600;
color: #1e293b;
word-break: break-word;
max-width: 550px;
}
.video-ext-badge {
display: inline-block;
font-size: 0.68rem;
font-weight: 700;
color: #6366f1;
background: #eef2ff;
border-radius: 0.3rem;
padding: 0.1rem 0.45rem;
margin-top: 0.18rem;
text-transform: uppercase;
}
/* Date cell */
.date-cell {
color: #475569;
font-size: 0.88rem;
white-space: nowrap;
}
.date-cell .time-sub {
display: block;
font-size: 0.78rem;
color: #94a3b8;
margin-top: 0.1rem;
}
/* Size cell */
.size-cell {
font-weight: 600;
color: #334155;
white-space: nowrap;
}
.size-cell .size-unit {
font-weight: 400;
color: #94a3b8;
font-size: 0.82rem;
}
/* Actions */
.actions-cell {
white-space: nowrap;
}
.btn-action-dl {
background: #0f172a;
color: #fff;
border: none;
padding: 0.38rem 1rem;
border-radius: 2rem;
font-size: 0.8rem;
font-weight: 600;
display: inline-flex;
align-items: center;
gap: 0.35rem;
cursor: pointer;
transition: background 0.2s, transform 0.15s;
text-decoration: none;
}
.btn-action-dl:hover {
background: #1e293b;
transform: scale(1.03);
color: #fff;
}
.btn-action-del {
background: transparent;
color: #ef4444;
border: 1px solid #fecaca;
padding: 0.38rem 0.85rem;
border-radius: 2rem;
font-size: 0.8rem;
font-weight: 600;
display: inline-flex;
align-items: center;
gap: 0.35rem;
cursor: pointer;
transition: all 0.2s;
}
.btn-action-del:hover {
background: #fef2f2;
border-color: #ef4444;
}
/* ── Empty state ── */
.history-empty {
text-align: center;
padding: 3.5rem 1rem;
color: #94a3b8;
}
.history-empty i {
font-size: 3rem;
color: #c7d2fe;
margin-bottom: 1rem;
display: block;
}
.history-empty p {
font-size: 1rem;
font-weight: 500;
margin-bottom: 0.4rem;
color: #64748b;
}
.history-empty span {
font-size: 0.88rem;
}
/* ── Pagination ── */
.history-pagination {
display: flex;
justify-content: space-between;
align-items: center;
flex-wrap: wrap;
gap: 0.8rem;
margin-top: 1.5rem;
}
.pagination-info {
font-size: 0.85rem;
color: #64748b;
}
/* ── Delete confirm modal ── */
.modal-confirm .modal-header {
background: #fff5f5;
border-bottom: 1px solid #fee2e2;
}
.modal-confirm .modal-title {
color: #dc2626;
font-weight: 700;
}
/* ── Responsive ── */
@media (max-width: 768px) {
.history-table thead th:nth-child(3),
.history-table tbody td:nth-child(3) {
display: none;
}
.btn-action-dl span,
.btn-action-del span {
display: none;
}
.video-title-text {
max-width: 160px;
}
}
@media (max-width: 480px) {
.history-table thead th:nth-child(2),
.history-table tbody td:nth-child(2) {
display: none;
}
}