mirror of
https://github.com/ovosimpatico/xtream2m3u.git
synced 2026-01-15 08:22:56 -03:00
Some checks failed
Build and Push Docker Image / build-and-push (push) Failing after 12s
784 lines
15 KiB
CSS
784 lines
15 KiB
CSS
/* Reset & Base Styles */
|
|
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');
|
|
|
|
:root {
|
|
--bg-primary: #0f172a;
|
|
--bg-secondary: #1e293b;
|
|
--bg-tertiary: #334155;
|
|
--bg-card: rgba(30, 41, 59, 0.7);
|
|
--text-primary: #f8fafc;
|
|
--text-secondary: #94a3b8;
|
|
--text-muted: #64748b;
|
|
--accent-primary: #3b82f6;
|
|
--accent-hover: #2563eb;
|
|
--accent-success: #10b981;
|
|
--accent-danger: #ef4444;
|
|
--accent-warning: #f59e0b;
|
|
--border-color: #334155;
|
|
--border-hover: #475569;
|
|
--shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
|
|
--shadow-md: 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);
|
|
}
|
|
|
|
* {
|
|
box-sizing: border-box;
|
|
margin: 0;
|
|
padding: 0;
|
|
}
|
|
|
|
body {
|
|
font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
|
|
line-height: 1.6;
|
|
color: var(--text-primary);
|
|
background: var(--bg-primary);
|
|
background-image:
|
|
radial-gradient(at 0% 0%, rgba(59, 130, 246, 0.15) 0px, transparent 50%),
|
|
radial-gradient(at 100% 0%, rgba(16, 185, 129, 0.15) 0px, transparent 50%);
|
|
background-attachment: fixed;
|
|
min-height: 100vh;
|
|
-webkit-font-smoothing: antialiased;
|
|
}
|
|
|
|
.container {
|
|
max-width: 900px;
|
|
margin: 0 auto;
|
|
padding: 2rem 1.5rem;
|
|
}
|
|
|
|
/* Header */
|
|
.header {
|
|
text-align: center;
|
|
margin-bottom: 3rem;
|
|
animation: fadeInDown 0.6s ease-out;
|
|
}
|
|
|
|
.logo {
|
|
width: 64px;
|
|
height: 64px;
|
|
margin: 0 auto 1.5rem;
|
|
border-radius: 16px;
|
|
box-shadow: var(--shadow-lg);
|
|
position: relative;
|
|
background: var(--bg-secondary);
|
|
padding: 4px;
|
|
}
|
|
|
|
.logo img {
|
|
width: 100%;
|
|
height: 100%;
|
|
object-fit: contain;
|
|
border-radius: 12px;
|
|
}
|
|
|
|
h1 {
|
|
font-size: 2.5rem;
|
|
font-weight: 800;
|
|
margin-bottom: 0.5rem;
|
|
background: linear-gradient(to right, #fff, #94a3b8);
|
|
-webkit-background-clip: text;
|
|
-webkit-text-fill-color: transparent;
|
|
letter-spacing: -0.025em;
|
|
}
|
|
|
|
.subtitle {
|
|
color: var(--text-secondary);
|
|
font-size: 1.125rem;
|
|
max-width: 600px;
|
|
margin: 0 auto;
|
|
}
|
|
|
|
/* Cards */
|
|
.card {
|
|
background: var(--bg-card);
|
|
border: 1px solid var(--border-color);
|
|
border-radius: 16px;
|
|
box-shadow: var(--shadow-lg);
|
|
backdrop-filter: blur(12px);
|
|
margin-bottom: 1.5rem;
|
|
overflow: hidden;
|
|
transition: transform 0.2s ease, box-shadow 0.2s ease;
|
|
}
|
|
|
|
.card:hover {
|
|
box-shadow: var(--shadow-xl);
|
|
border-color: var(--border-hover);
|
|
}
|
|
|
|
.card-header {
|
|
background: rgba(15, 23, 42, 0.3);
|
|
border-bottom: 1px solid var(--border-color);
|
|
padding: 1.25rem 1.5rem;
|
|
font-size: 1.1rem;
|
|
font-weight: 600;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.75rem;
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
.card-body {
|
|
padding: 1.5rem;
|
|
}
|
|
|
|
/* Forms */
|
|
.form-group {
|
|
margin-bottom: 1.5rem;
|
|
}
|
|
|
|
label {
|
|
display: block;
|
|
margin-bottom: 0.5rem;
|
|
font-weight: 500;
|
|
color: var(--text-secondary);
|
|
font-size: 0.9rem;
|
|
}
|
|
|
|
input[type="text"],
|
|
input[type="url"],
|
|
input[type="password"],
|
|
select {
|
|
width: 100%;
|
|
padding: 0.75rem 1rem;
|
|
background: var(--bg-secondary);
|
|
border: 1px solid var(--border-color);
|
|
border-radius: 8px;
|
|
color: var(--text-primary);
|
|
font-size: 1rem;
|
|
transition: all 0.2s ease;
|
|
}
|
|
|
|
input:focus {
|
|
outline: none;
|
|
border-color: var(--accent-primary);
|
|
box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
|
|
background: var(--bg-tertiary);
|
|
}
|
|
|
|
input::placeholder {
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
/* Checkbox */
|
|
.checkbox-wrapper {
|
|
display: flex;
|
|
align-items: center;
|
|
}
|
|
|
|
.checkbox-label {
|
|
display: flex;
|
|
align-items: flex-start;
|
|
gap: 1rem;
|
|
cursor: pointer;
|
|
padding: 1rem;
|
|
background: rgba(30, 41, 59, 0.5);
|
|
border: 1px solid var(--border-color);
|
|
border-radius: 8px;
|
|
transition: all 0.2s ease;
|
|
width: 100%;
|
|
}
|
|
|
|
.checkbox-label:hover {
|
|
background: var(--bg-tertiary);
|
|
border-color: var(--border-hover);
|
|
}
|
|
|
|
.checkbox-label input {
|
|
display: none;
|
|
}
|
|
|
|
.checkmark {
|
|
width: 22px;
|
|
height: 22px;
|
|
border: 2px solid var(--text-muted);
|
|
border-radius: 6px;
|
|
position: relative;
|
|
flex-shrink: 0;
|
|
transition: all 0.2s ease;
|
|
margin-top: 2px;
|
|
}
|
|
|
|
.checkbox-label input:checked + .checkmark {
|
|
background: var(--accent-primary);
|
|
border-color: var(--accent-primary);
|
|
}
|
|
|
|
.checkmark::after {
|
|
content: '';
|
|
position: absolute;
|
|
left: 6px;
|
|
top: 2px;
|
|
width: 6px;
|
|
height: 12px;
|
|
border: solid white;
|
|
border-width: 0 2px 2px 0;
|
|
transform: rotate(45deg) scale(0);
|
|
transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
|
|
}
|
|
|
|
.checkbox-label input:checked + .checkmark::after {
|
|
transform: rotate(45deg) scale(1);
|
|
}
|
|
|
|
.checkbox-text strong {
|
|
display: block;
|
|
color: var(--text-primary);
|
|
margin-bottom: 0.25rem;
|
|
}
|
|
|
|
.checkbox-text small {
|
|
color: var(--text-secondary);
|
|
font-size: 0.85rem;
|
|
}
|
|
|
|
/* Buttons */
|
|
.btn {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
padding: 0.875rem 1.5rem;
|
|
border-radius: 8px;
|
|
font-weight: 600;
|
|
font-size: 0.95rem;
|
|
cursor: pointer;
|
|
transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
|
|
border: none;
|
|
gap: 0.5rem;
|
|
width: 100%; /* Mobile first */
|
|
}
|
|
|
|
@media (min-width: 640px) {
|
|
.btn {
|
|
width: auto;
|
|
}
|
|
}
|
|
|
|
.btn-primary {
|
|
background: var(--accent-primary);
|
|
color: white;
|
|
}
|
|
|
|
.btn-primary:hover {
|
|
background: var(--accent-hover);
|
|
transform: translateY(-1px);
|
|
box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
|
|
}
|
|
|
|
.btn-success {
|
|
background: var(--accent-success);
|
|
color: white;
|
|
}
|
|
|
|
.btn-success:hover {
|
|
background: #059669;
|
|
transform: translateY(-1px);
|
|
box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
|
|
}
|
|
|
|
.btn-secondary {
|
|
background: transparent;
|
|
border: 1px solid var(--border-color);
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
.btn-secondary:hover {
|
|
background: var(--bg-tertiary);
|
|
color: var(--text-primary);
|
|
border-color: var(--text-muted);
|
|
}
|
|
|
|
.btn-text {
|
|
background: transparent;
|
|
border: none;
|
|
color: var(--text-secondary);
|
|
font-size: 0.85rem;
|
|
cursor: pointer;
|
|
padding: 0.25rem 0.5rem;
|
|
border-radius: 4px;
|
|
transition: all 0.2s;
|
|
}
|
|
|
|
.btn-text:hover {
|
|
color: var(--accent-primary);
|
|
background: rgba(59, 130, 246, 0.1);
|
|
}
|
|
|
|
/* Steps */
|
|
.step {
|
|
display: none;
|
|
animation: fadeIn 0.4s ease-out;
|
|
}
|
|
|
|
.step.active {
|
|
display: block;
|
|
}
|
|
|
|
/* Toolbar & Filters */
|
|
.toolbar {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 1rem;
|
|
margin-bottom: 1rem;
|
|
}
|
|
|
|
@media (min-width: 640px) {
|
|
.toolbar {
|
|
flex-direction: row;
|
|
align-items: stretch;
|
|
}
|
|
}
|
|
|
|
.filter-mode {
|
|
display: flex;
|
|
gap: 0.5rem;
|
|
background: var(--bg-secondary);
|
|
padding: 0.25rem;
|
|
border-radius: 10px;
|
|
border: 1px solid var(--border-color);
|
|
flex: 1;
|
|
}
|
|
|
|
.filter-mode label {
|
|
flex: 1;
|
|
text-align: center;
|
|
padding: 0.6rem;
|
|
border-radius: 8px;
|
|
cursor: pointer;
|
|
margin: 0;
|
|
color: var(--text-secondary);
|
|
transition: all 0.2s ease;
|
|
font-size: 0.9rem;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.filter-mode label:hover {
|
|
background: rgba(255, 255, 255, 0.05);
|
|
}
|
|
|
|
.filter-mode input {
|
|
display: none;
|
|
}
|
|
|
|
.filter-mode input:checked + span {
|
|
color: var(--text-primary);
|
|
font-weight: 600;
|
|
}
|
|
|
|
.filter-mode label:has(input:checked) {
|
|
background: var(--bg-tertiary);
|
|
box-shadow: var(--shadow-sm);
|
|
}
|
|
|
|
.search-box {
|
|
position: relative;
|
|
flex: 1.5;
|
|
}
|
|
|
|
.search-box input {
|
|
padding-right: 2.5rem;
|
|
height: 100%;
|
|
}
|
|
|
|
.search-icon {
|
|
position: absolute;
|
|
right: 0.8rem;
|
|
top: 50%;
|
|
transform: translateY(-50%);
|
|
opacity: 0.5;
|
|
pointer-events: none;
|
|
}
|
|
|
|
/* Categories */
|
|
.category-chips {
|
|
max-height: 500px;
|
|
overflow-y: auto;
|
|
padding: 0.5rem;
|
|
border: 1px solid var(--border-color);
|
|
border-radius: 12px;
|
|
background: rgba(15, 23, 42, 0.3);
|
|
}
|
|
|
|
.category-section-header {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
padding: 1rem 0.5rem;
|
|
position: sticky;
|
|
top: 0;
|
|
background: var(--bg-card);
|
|
z-index: 10;
|
|
border-bottom: 1px solid var(--border-color);
|
|
backdrop-filter: blur(12px); /* Increased blur */
|
|
-webkit-backdrop-filter: blur(12px);
|
|
cursor: pointer;
|
|
user-select: none;
|
|
border-radius: 8px 8px 0 0;
|
|
box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1); /* Add shadow for separation */
|
|
}
|
|
|
|
.category-group-wrapper {
|
|
position: relative;
|
|
margin-bottom: 0.5rem;
|
|
}
|
|
|
|
.category-section-header h3 {
|
|
font-size: 1rem;
|
|
color: var(--text-primary);
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.5rem;
|
|
flex: 1;
|
|
}
|
|
|
|
.chevron {
|
|
transition: transform 0.2s ease;
|
|
}
|
|
|
|
.category-section-header.collapsed .chevron {
|
|
transform: rotate(-90deg);
|
|
}
|
|
|
|
.category-section-header.collapsed {
|
|
border-bottom-color: transparent;
|
|
border-radius: 8px;
|
|
}
|
|
|
|
.btn-section-select-all {
|
|
background: var(--bg-tertiary);
|
|
border: 1px solid var(--border-color);
|
|
color: var(--text-secondary);
|
|
font-size: 0.75rem;
|
|
padding: 0.25rem 0.75rem;
|
|
border-radius: 4px;
|
|
cursor: pointer;
|
|
transition: all 0.2s;
|
|
margin-left: 1rem;
|
|
}
|
|
|
|
.btn-section-select-all:hover {
|
|
color: var(--text-primary);
|
|
border-color: var(--text-muted);
|
|
}
|
|
|
|
.category-section {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
|
|
gap: 0.75rem;
|
|
padding: 1rem 0.5rem;
|
|
}
|
|
|
|
.category-section.hidden {
|
|
display: none;
|
|
}
|
|
|
|
.category-chip {
|
|
background: var(--bg-secondary);
|
|
border: 1px solid var(--border-color);
|
|
padding: 0.6rem 0.8rem;
|
|
border-radius: 8px;
|
|
font-size: 0.85rem;
|
|
color: var(--text-secondary);
|
|
cursor: pointer;
|
|
transition: all 0.15s ease;
|
|
user-select: none;
|
|
text-align: left;
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
position: relative;
|
|
}
|
|
|
|
.category-chip:hover {
|
|
background: var(--bg-tertiary);
|
|
border-color: var(--border-hover);
|
|
transform: translateY(-1px);
|
|
}
|
|
|
|
.category-chip.selected {
|
|
background: rgba(16, 185, 129, 0.15);
|
|
border-color: var(--accent-success);
|
|
color: var(--accent-success);
|
|
font-weight: 500;
|
|
}
|
|
|
|
.category-chip.hidden {
|
|
display: none;
|
|
}
|
|
|
|
.selection-counter {
|
|
background: var(--bg-secondary);
|
|
border: 1px solid var(--border-color);
|
|
padding: 0.75rem 1rem;
|
|
border-radius: 8px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
margin: 1rem 0;
|
|
font-size: 0.95rem;
|
|
color: var(--text-secondary);
|
|
gap: 1rem;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.selection-counter.has-selection {
|
|
background: rgba(59, 130, 246, 0.1);
|
|
border-color: rgba(59, 130, 246, 0.3);
|
|
color: var(--accent-primary);
|
|
font-weight: 500;
|
|
}
|
|
|
|
.selection-actions {
|
|
display: flex;
|
|
gap: 0.5rem;
|
|
}
|
|
|
|
/* Success State */
|
|
.success-state {
|
|
text-align: center;
|
|
padding: 3rem 1rem;
|
|
}
|
|
|
|
.success-checkmark {
|
|
width: 80px;
|
|
height: 80px;
|
|
background: var(--accent-success);
|
|
border-radius: 50%;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
font-size: 2.5rem;
|
|
color: white;
|
|
margin: 0 auto 1.5rem;
|
|
box-shadow: 0 0 20px rgba(16, 185, 129, 0.4);
|
|
animation: popIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
|
|
}
|
|
|
|
.success-title {
|
|
font-size: 1.75rem;
|
|
margin-bottom: 1rem;
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
.success-actions {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 1rem;
|
|
margin-top: 2rem;
|
|
justify-content: center;
|
|
}
|
|
|
|
@media (min-width: 640px) {
|
|
.success-actions {
|
|
flex-direction: row;
|
|
}
|
|
}
|
|
|
|
.download-link {
|
|
text-decoration: none;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 0.5rem;
|
|
}
|
|
|
|
/* Alerts */
|
|
.alert {
|
|
padding: 1rem;
|
|
border-radius: 8px;
|
|
margin: 1rem 0;
|
|
font-size: 0.9rem;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.5rem;
|
|
animation: slideUp 0.3s ease-out;
|
|
}
|
|
|
|
.alert-error {
|
|
background: rgba(239, 68, 68, 0.1);
|
|
border: 1px solid rgba(239, 68, 68, 0.2);
|
|
color: #fca5a5;
|
|
}
|
|
|
|
.alert-warning {
|
|
background: rgba(245, 158, 11, 0.1);
|
|
border: 1px solid rgba(245, 158, 11, 0.2);
|
|
color: #fcd34d;
|
|
}
|
|
|
|
.alert-success {
|
|
background: rgba(16, 185, 129, 0.1);
|
|
border: 1px solid rgba(16, 185, 129, 0.2);
|
|
color: #6ee7b7;
|
|
}
|
|
|
|
/* Loading */
|
|
.loading {
|
|
display: none;
|
|
text-align: center;
|
|
padding: 2rem;
|
|
}
|
|
|
|
.spinner {
|
|
width: 40px;
|
|
height: 40px;
|
|
border: 3px solid rgba(59, 130, 246, 0.3);
|
|
border-radius: 50%;
|
|
border-top-color: var(--accent-primary);
|
|
animation: spin 1s linear infinite;
|
|
margin: 0 auto 1rem;
|
|
}
|
|
|
|
/* Animations */
|
|
@keyframes fadeIn {
|
|
from { opacity: 0; }
|
|
to { opacity: 1; }
|
|
}
|
|
|
|
@keyframes fadeInDown {
|
|
from {
|
|
opacity: 0;
|
|
transform: translateY(-20px);
|
|
}
|
|
to {
|
|
opacity: 1;
|
|
transform: translateY(0);
|
|
}
|
|
}
|
|
|
|
@keyframes slideUp {
|
|
from {
|
|
opacity: 0;
|
|
transform: translateY(10px);
|
|
}
|
|
to {
|
|
opacity: 1;
|
|
transform: translateY(0);
|
|
}
|
|
}
|
|
|
|
@keyframes spin {
|
|
to { transform: rotate(360deg); }
|
|
}
|
|
|
|
@keyframes popIn {
|
|
0% { transform: scale(0); opacity: 0; }
|
|
70% { transform: scale(1.1); }
|
|
100% { transform: scale(1); opacity: 1; }
|
|
}
|
|
|
|
/* Modal */
|
|
.modal {
|
|
display: none;
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
background: rgba(0, 0, 0, 0.7);
|
|
backdrop-filter: blur(4px);
|
|
z-index: 50;
|
|
align-items: center;
|
|
justify-content: center;
|
|
padding: 1rem;
|
|
}
|
|
|
|
.modal.active {
|
|
display: flex;
|
|
animation: fadeIn 0.2s ease-out;
|
|
}
|
|
|
|
.modal-content {
|
|
background: var(--bg-card);
|
|
border: 1px solid var(--border-color);
|
|
border-radius: 16px;
|
|
padding: 2rem;
|
|
max-width: 500px;
|
|
width: 100%;
|
|
box-shadow: var(--shadow-xl);
|
|
animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
|
|
}
|
|
|
|
.modal-header h3 {
|
|
font-size: 1.5rem;
|
|
margin-bottom: 0.5rem;
|
|
text-align: center;
|
|
}
|
|
|
|
.modal-summary {
|
|
background: var(--bg-secondary);
|
|
border-radius: 8px;
|
|
padding: 1rem;
|
|
margin: 1.5rem 0;
|
|
border: 1px solid var(--border-color);
|
|
}
|
|
|
|
.summary-row {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
padding: 0.5rem 0;
|
|
border-bottom: 1px solid var(--border-color);
|
|
font-size: 0.9rem;
|
|
}
|
|
|
|
.summary-row:last-child {
|
|
border-bottom: none;
|
|
}
|
|
|
|
.summary-label {
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
.summary-value {
|
|
color: var(--text-primary);
|
|
font-weight: 600;
|
|
}
|
|
|
|
.modal-actions {
|
|
display: flex;
|
|
gap: 1rem;
|
|
justify-content: flex-end;
|
|
}
|
|
|
|
/* API Builder Styles */
|
|
.api-url-container {
|
|
margin-top: 1rem;
|
|
}
|
|
|
|
.url-display-box {
|
|
background: var(--bg-primary);
|
|
border: 1px solid var(--border-color);
|
|
border-radius: 8px;
|
|
padding: 0.75rem;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.5rem;
|
|
position: relative;
|
|
}
|
|
|
|
.url-display-box code {
|
|
flex: 1;
|
|
font-family: monospace;
|
|
font-size: 0.85rem;
|
|
color: var(--accent-primary);
|
|
overflow-x: auto;
|
|
white-space: nowrap;
|
|
padding-right: 2rem;
|
|
}
|
|
|
|
.btn-copy {
|
|
background: transparent;
|
|
border: none;
|
|
cursor: pointer;
|
|
font-size: 1.2rem;
|
|
padding: 0.25rem;
|
|
border-radius: 4px;
|
|
transition: all 0.2s;
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
.btn-copy:hover {
|
|
background: var(--bg-tertiary);
|
|
color: var(--text-primary);
|
|
}
|