EGYshot / static /css /index.css
Sharo5's picture
chore: fresh clean commit without binary files
400d4a6
Raw History Blame Contribute Delete
13.7 kB
:root {
--primary: #6366f1;
--secondary: #8b5cf6;
--bg-dark: #0f172a;
--card-bg: rgba(255, 255, 255, 0.07);
--border: rgba(255, 255, 255, 0.12);
--text-muted: #a5b4fc;
--success: #10b981;
--danger: #ef4444;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
font-family: 'Cairo', sans-serif;
background: linear-gradient(135deg, var(--bg-dark) 0%, #1e1b4b 50%, #312e81 100%);
background-attachment: fixed;
min-height: 100vh;
color: #fff;
padding: 20px 15px;
line-height: 1.6;
}
.container { max-width: 900px; margin: 0 auto; }
.header {
display: flex; justify-content: space-between; align-items: center;
margin-bottom: 25px;
padding: 0 10px;
}
.header h1 {
font-size: 28px; font-weight: 800;
background: linear-gradient(135deg, #60a5fa, #a78bfa);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
}
.header .user-area { display: flex; align-items: center; gap: 10px; }
.user-badge {
background: rgba(139, 92, 246, 0.2);
padding: 8px 16px; border-radius: 12px;
font-weight: 700; font-size: 14px;
border: 1px solid rgba(139, 92, 246, 0.4);
}
.logout-btn {
color: #fca5a5; text-decoration: none;
padding: 8px 14px; border-radius: 10px;
font-weight: 700; font-size: 13px;
border: 1px solid rgba(220, 38, 38, 0.3);
transition: all 0.2s;
}
.logout-btn:hover { background: rgba(220, 38, 38, 0.15); }
.card {
background: var(--card-bg);
backdrop-filter: blur(16px);
border: 1px solid var(--border);
border-radius: 24px;
padding: 25px;
margin-bottom: 20px;
}
.flash {
padding: 14px 18px; border-radius: 12px;
margin-bottom: 15px; font-weight: 700;
}
.flash.success { background: rgba(16, 185, 129, 0.15); border: 1px solid var(--success); color: #6ee7b7; }
.flash.error { background: rgba(239, 68, 68, 0.15); border: 1px solid var(--danger); color: #fca5a5; }
label { display: block; margin-bottom: 6px; font-weight: 700; color: #e2e8f0; font-size: 13px; }
select, textarea, input[type="text"], input[type="number"], input[type="file"] {
width: 100%; padding: 12px 14px; border-radius: 12px;
border: 1px solid var(--border);
background: rgba(0, 0, 0, 0.25);
color: #fff; font-size: 14px; font-family: inherit;
font-weight: 600; margin-bottom: 8px;
}
select:focus, textarea:focus, input:focus {
outline: none; border-color: var(--secondary);
box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2);
}
select option { background: var(--bg-dark); color: #fff; }
textarea { resize: vertical; min-height: 110px; line-height: 1.7; }
.tabs { display: flex; gap: 8px; margin-bottom: 20px; }
.tab {
flex: 1; text-align: center; padding: 14px;
border-radius: 14px;
background: rgba(255, 255, 255, 0.03);
border: 1px solid var(--border);
color: var(--text-muted);
cursor: pointer; transition: all 0.3s;
font-size: 15px; font-weight: 700;
}
.tab.active {
background: linear-gradient(135deg, var(--primary), var(--secondary));
color: #fff; border-color: transparent;
}
.mode-picker { display: flex; gap: 8px; margin-bottom: 15px; }
.mode-opt {
flex: 1; text-align: center; padding: 14px;
background: rgba(255, 255, 255, 0.03);
border: 2px solid var(--border);
border-radius: 14px; cursor: pointer;
font-weight: 700; font-size: 14px;
transition: all 0.2s;
}
.mode-opt.active {
border-color: var(--secondary);
background: rgba(139, 92, 246, 0.15);
}
.mode-opt input { display: none; }
.row { display: flex; gap: 10px; }
.row > * { flex: 1; }
.examples { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.example-btn {
padding: 6px 12px; border-radius: 8px;
background: rgba(139, 92, 246, 0.15);
border: 1px solid rgba(139, 92, 246, 0.3);
color: #c4b5fd; cursor: pointer;
font-size: 12px; font-weight: 700;
transition: all 0.2s;
font-family: inherit;
}
.example-btn:hover { background: rgba(139, 92, 246, 0.3); }
.generate-btn {
width: 100%; padding: 16px;
border-radius: 16px; border: none;
background: linear-gradient(135deg, var(--primary), var(--secondary));
color: #fff; font-size: 17px; font-weight: 800;
cursor: pointer; margin-top: 20px;
font-family: inherit;
box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
transition: all 0.3s;
}
.generate-btn:hover { transform: translateY(-2px); }
.generate-btn:disabled { opacity: 0.6; cursor: not-allowed; }
.videos-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
gap: 16px;
margin-top: 15px;
}
.video-card {
background: rgba(0, 0, 0, 0.3);
border: 1px solid var(--border);
border-radius: 14px;
overflow: hidden;
transition: all 0.3s;
}
.video-card:hover { transform: translateY(-3px); border-color: var(--secondary); }
.video-card video {
width: 100%; height: 180px;
object-fit: cover; background: #000;
display: block;
}
.video-card .info { padding: 12px; }
.video-card .filename {
font-size: 11px; color: var(--text-muted);
font-family: monospace;
word-break: break-all;
margin-bottom: 8px;
}
.video-card .meta {
display: flex; justify-content: space-between;
align-items: center; font-size: 11px;
color: #94a3b8;
}
.video-card .download-btn {
display: inline-block; padding: 5px 10px;
background: rgba(16, 185, 129, 0.2);
color: #6ee7b7; text-decoration: none;
border-radius: 6px; font-weight: 700;
font-size: 11px;
}
.empty-state {
text-align: center; padding: 50px 20px;
color: #94a3b8;
}
.empty-state .icon { font-size: 60px; margin-bottom: 15px; }
.loading-overlay {
position: fixed; top: 0; left: 0; width: 100%; height: 100%;
background: rgba(15, 23, 42, 0.95);
backdrop-filter: blur(8px);
display: none; flex-direction: column;
justify-content: center; align-items: center;
z-index: 1000;
}
.loading-overlay.active { display: flex; }
.spinner {
border: 5px solid rgba(255, 255, 255, 0.1);
border-top: 5px solid var(--secondary);
border-radius: 50%; width: 70px; height: 70px;
animation: spin 1s linear infinite;
margin-bottom: 20px;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading-text { font-size: 18px; font-weight: 700; }
.tab-content { display: none; }
.tab-content.active { display: block; }
@media (max-width: 600px) {
.header h1 { font-size: 22px; }
.videos-grid { grid-template-columns: 1fr; }
}
/* ═══ Accounts Section (v6.1 style) ═══ */
.accounts-section {
background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(139, 92, 246, 0.15));
border: 1px solid rgba(139, 92, 246, 0.4);
}
.section-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 15px;
}
.section-header h3 { font-size: 16px; color: #c4b5fd; }
.account-active {
background: rgba(16, 185, 129, 0.1);
border: 1px solid rgba(16, 185, 129, 0.4);
border-radius: 14px;
padding: 15px;
margin-bottom: 20px;
}
.account-active .label { font-size: 12px; color: #94a3b8; margin-bottom: 8px; }
.account-active .active-name {
font-size: 16px; font-weight: 700; margin-bottom: 12px; color: #6ee7b7;
}
.accounts-list { display: flex; flex-direction: column; gap: 12px; margin-top: 15px; }
.account-item {
display: flex; align-items: center; gap: 10px;
padding: 14px; border-radius: 14px;
background: rgba(255, 255, 255, 0.05);
border: 1px solid rgba(255, 255, 255, 0.12);
transition: all 0.3s; flex-wrap: wrap;
}
.account-item.active {
background: rgba(16, 185, 129, 0.15);
border-color: rgba(16, 185, 129, 0.5);
box-shadow: 0 0 20px rgba(16, 185, 129, 0.2);
}
.account-item .account-info { flex: 1; min-width: 200px; }
.account-item .account-name { font-size: 14px; font-weight: 700; margin-bottom: 4px; }
.account-item .account-preview {
font-size: 11px; color: #a5b4fc; font-family: monospace; margin-top: 3px;
}
.account-item .account-quota {
font-size: 11px; margin-top: 6px;
display: flex; gap: 8px; flex-wrap: wrap;
}
.quota-bar { display: inline-block; padding: 3px 10px; border-radius: 8px; font-weight: 700; }
.quota-ok { background: rgba(16, 185, 129, 0.2); color: #6ee7b7; }
.quota-warn { background: rgba(245, 158, 11, 0.2); color: #fcd34d; }
.quota-full { background: rgba(239, 68, 68, 0.2); color: #fca5a5; }
.add-account-form {
margin-top: 20px; padding: 15px;
background: rgba(139, 92, 246, 0.08);
border: 1px dashed rgba(139, 92, 246, 0.4);
border-radius: 14px;
}
/* ═══ Account Cards ═══ */
.acc-item-card {
background: rgba(255, 255, 255, 0.05);
border: 1px solid rgba(255, 255, 255, 0.12);
border-radius: 14px;
padding: 16px;
margin-bottom: 4px;
transition: all 0.3s;
}
.acc-item-card.active {
background: rgba(16, 185, 129, 0.12);
border: 2px solid rgba(16, 185, 129, 0.6);
box-shadow: 0 0 25px rgba(16, 185, 129, 0.25);
}
.acc-item-header {
display: flex;
align-items: center;
gap: 10px;
margin-bottom: 10px;
}
.acc-icon { font-size: 18px; }
.acc-email {
font-size: 15px;
font-weight: 700;
color: #fff;
word-break: break-all;
}
.acc-token-row {
display: flex;
align-items: center;
gap: 8px;
padding: 8px 12px;
background: rgba(0, 0, 0, 0.25);
border-radius: 8px;
margin-bottom: 10px;
}
.acc-token-label { font-size: 14px; }
.acc-token-value {
font-family: monospace;
font-size: 12px;
color: #a5b4fc;
word-break: break-all;
}
.acc-quota-row {
display: flex;
gap: 8px;
flex-wrap: wrap;
margin-bottom: 10px;
}
.acc-actions-row {
display: flex;
justify-content: flex-start;
gap: 8px;
margin-top: 8px;
}
.acc-divider {
border: none;
border-top: 1px dashed rgba(255, 255, 255, 0.15);
margin: 12px 0;
}
.acc-token-form { margin: 0; }
.acc-token-input {
flex: 1;
background: transparent;
border: none;
color: #a5b4fc;
font-family: monospace;
font-size: 12px;
padding: 4px 6px;
outline: none;
min-width: 0;
transition: all 0.2s;
border-radius: 6px;
}
.acc-token-input:focus {
background: rgba(0, 0, 0, 0.3);
color: #fff;
box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.4);
}
.acc-save-btn {
padding: 6px 12px;
font-size: 14px;
border-radius: 8px;
background: rgba(16, 185, 129, 0.2);
color: #6ee7b7;
border: 1px solid rgba(16, 185, 129, 0.4);
cursor: pointer;
transition: all 0.2s;
}
.acc-save-btn:hover {
background: rgba(16, 185, 129, 0.4);
}
.acc-active-top {
background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(16, 185, 129, 0.05));
border: 2px solid rgba(16, 185, 129, 0.5);
border-radius: 14px;
padding: 16px;
margin-bottom: 20px;
box-shadow: 0 0 25px rgba(16, 185, 129, 0.15);
}
.acc-active-label {
font-size: 12px;
color: #94a3b8;
margin-bottom: 6px;
}
.acc-active-name {
font-size: 16px;
font-weight: 800;
color: #6ee7b7;
margin-bottom: 14px;
}
.acc-active-token-label {
font-size: 12px;
color: #94a3b8;
margin-bottom: 8px;
}
.acc-active-badge {
background: rgba(16, 185, 129, 0.25);
color: #6ee7b7;
border: 1px solid rgba(16, 185, 129, 0.5);
padding: 3px 10px;
border-radius: 12px;
font-size: 11px;
font-weight: 700;
margin-inline-start: auto;
}
.acc-status-box {
padding: 12px 14px;
border-radius: 12px;
margin: 10px 0;
border: 2px solid;
}
.acc-status-ready {
background: rgba(16, 185, 129, 0.12);
border-color: rgba(16, 185, 129, 0.5);
}
.acc-status-limited {
background: rgba(245, 158, 11, 0.12);
border-color: rgba(245, 158, 11, 0.5);
}
.acc-status-exhausted {
background: rgba(239, 68, 68, 0.12);
border-color: rgba(239, 68, 68, 0.5);
}
.acc-status-unknown {
background: rgba(148, 163, 184, 0.12);
border-color: rgba(148, 163, 184, 0.4);
}
.acc-status-title {
font-size: 15px;
font-weight: 800;
margin-bottom: 4px;
}
.acc-status-ready .acc-status-title { color: #6ee7b7; }
.acc-status-limited .acc-status-title { color: #fcd34d; }
.acc-status-exhausted .acc-status-title { color: #fca5a5; }
.acc-status-unknown .acc-status-title { color: #cbd5e1; }
.acc-status-detail {
font-size: 12px;
color: #94a3b8;
}