Download app/static/css/dashboard/links.css from paisaly/backend: direct link, hf CLI and curl.
- Browser
- Download file 29.6 kB
-
https://huggingface.co/spaces/paisaly/backend/resolve/main/app/static/css/dashboard/links.css
- Command line
-
hf download hf://spaces/paisaly/backend/app/static/css/dashboard/links.css
-
curl -L -o links.css https://huggingface.co/spaces/paisaly/backend/resolve/main/app/static/css/dashboard/links.css
29.6 kB
/* Links Page Specific Styles */
/* Page Header */
.page-header-content {
display: flex;
justify-content: space-between;
align-items: flex-start;
gap: 20px;
}
.page-header-text {
flex: 1;
}
.page-header-actions {
display: flex;
gap: 12px;
align-items: center;
}
.page-header-actions .btn {
text-decoration: none;
background: var(--accent-primary);
border: 1px solid var(--accent-primary);
border-radius: var(--radius-sm);
color: white;
font-size: 14px;
font-weight: 500;
cursor: pointer;
transition: all 0.2s;
display: inline-flex;
align-items: center;
gap: 8px;
padding: 10px 16px;
}
.page-header-actions .btn:hover {
background: var(--accent-primary);
border-color: var(--accent-primary);
text-decoration: none;
filter: brightness(1.12);
transform: translateY(-1px);
box-shadow: 0 6px 18px rgba(124, 58, 237, 0.35);
}
/* Success modal must sit above all other modals on this page */
#link-success-modal {
z-index: calc(var(--z-max) + 1);
}
/* Success Modal Close Button */
#link-success-modal .modal-close {
background: none;
border: none;
color: var(--text-secondary);
font-size: 24px;
cursor: pointer;
padding: 8px;
border-radius: 8px;
transition: all 0.2s ease;
display: flex;
align-items: center;
justify-content: center;
width: 40px;
height: 40px;
}
#link-success-modal .modal-close:hover {
background: rgba(255, 255, 255, 0.1);
color: var(--text-primary);
}
/* Success Modal Styles */
.success-content {
text-align: center;
padding: 8px 0;
}
/* Specific spacing for success modal body */
#link-success-modal .modal-body {
padding: 28px 32px 32px;
}
.link-display {
margin-bottom: 28px;
}
.link-display .field {
margin-bottom: 8px;
}
.link-display label {
color: var(--text-secondary);
font-size: 14px;
font-weight: 500;
margin-bottom: 8px;
display: block;
}
.link-result {
display: flex;
align-items: stretch;
gap: 0;
margin-top: 12px;
}
.link-input {
flex: 1;
padding: 12px 16px;
background: rgba(0, 0, 0, 0.3);
border: 1px solid var(--border-color);
border-top-left-radius: var(--radius-sm);
border-bottom-left-radius: var(--radius-sm);
border-top-right-radius: 0;
border-bottom-right-radius: 0;
color: var(--text-primary);
font-family: 'Monaco', 'Courier New', monospace;
font-size: 13px;
transition: all 0.2s;
}
.link-input:hover {
background: rgba(0, 0, 0, 0.4);
border-color: var(--accent-primary);
}
.link-actions {
display: flex;
justify-content: center;
gap: 16px;
margin-top: 20px;
margin-bottom: 0;
padding-top: 16px;
border-top: 1px solid rgba(255, 255, 255, 0.1);
}
/* Action buttons styling */
.link-actions .btn {
min-width: 120px;
padding: 12px 20px;
font-size: 14px;
font-weight: 500;
border-radius: 8px;
transition: all 0.2s ease;
text-decoration: none;
display: inline-flex;
align-items: center;
justify-content: center;
gap: 8px;
background: rgba(255, 255, 255, 0.08);
border: 1px solid rgba(255, 255, 255, 0.15);
color: var(--text-primary);
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.link-actions .btn:hover {
transform: translateY(-1px);
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
background: rgba(255, 255, 255, 0.12);
border-color: rgba(255, 255, 255, 0.25);
}
.link-actions .btn:active {
transform: translateY(0);
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}
.link-actions .btn i {
font-size: 16px;
transition: transform 0.2s ease;
}
.link-actions .btn:hover i {
transform: scale(1.1);
}
/* QR block inside success modal */
.qr-block {
margin: 20px auto 20px;
display: flex;
flex-direction: column;
align-items: center;
gap: 16px;
}
.qr-container {
position: relative;
display: inline-block;
border-radius: 12px;
overflow: hidden;
cursor: pointer;
transition: transform 0.2s ease;
}
.qr-container:hover {
transform: scale(1.02);
}
.qr-image {
width: 150px;
height: 150px;
border-radius: 12px;
background: rgba(255, 255, 255, 0.04);
border: 1px solid var(--border-color);
padding: 8px;
display: block;
transition: opacity 0.2s ease;
}
/* QR loading animation — hide alt text while loading */
.qr-image:not([src*="qr.spoo.me"]) {
animation: qr-loading 1.5s infinite;
color: transparent;
font-size: 0;
}
@keyframes qr-loading {
0% {
background: rgba(255, 255, 255, 0.04);
}
50% {
background: rgba(255, 255, 255, 0.08);
}
100% {
background: rgba(255, 255, 255, 0.04);
}
}
/* QR overlay */
.qr-overlay {
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: rgba(0, 0, 0, 0.7);
backdrop-filter: blur(4px);
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
gap: 4px;
opacity: 0;
visibility: hidden;
transition: all 0.3s ease;
border-radius: 12px;
color: white;
font-size: 14px;
font-weight: 500;
letter-spacing: 0.5px;
}
.qr-overlay i {
font-size: 24px;
margin-bottom: 4px;
}
.qr-container:hover .qr-overlay {
opacity: 1;
visibility: visible;
}
/* Remove old download button styles */
.qr-block .btn {
display: none;
}
.link-result .copy-btn {
display: inline-flex;
align-items: center;
justify-content: center;
padding: 0 14px;
height: 44px;
background: rgba(255, 255, 255, 0.06);
border: 1px solid var(--border-color);
border-top-right-radius: var(--radius-sm);
border-bottom-right-radius: var(--radius-sm);
border-left: 0;
color: var(--text-secondary);
cursor: pointer;
transition: all 0.2s;
}
.link-result .copy-btn:hover {
background: rgba(255, 255, 255, 0.1);
color: var(--text-primary);
border-color: var(--accent-primary);
}
.link-result .copy-btn i {
font-size: 18px;
}
.link-result input {
border-bottom-right-radius: 0 !important;
border-top-right-radius: 0 !important;
}
.copy-btn.copied,
.btn.copied {
transition: all 0.2s ease;
}
.modal-icon {
width: 60px;
height: 60px;
margin: 0 auto 16px;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
border: 2px solid rgba(34, 197, 94, 0.2);
}
.success-icon {
background: rgba(34, 197, 94, 0.1);
color: var(--color-success);
}
.success-icon i {
font-size: 28px;
}
/* Form Error States */
.field input.error,
.field textarea.error {
border-color: var(--color-danger);
background: rgba(239, 68, 68, 0.05);
}
.field-error {
color: var(--color-danger);
font-size: 12px;
margin-top: 4px;
display: block;
}
/* Loading Animation */
.spinning {
animation: spin 1s linear infinite;
}
/* Button Loading State */
.btn:disabled {
opacity: 0.6;
cursor: not-allowed;
}
.btn:disabled:hover {
background: inherit;
border-color: inherit;
}
/* Links Container */
.links-container {
background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
backdrop-filter: blur(20px);
border: 1px solid var(--border-color);
border-radius: var(--radius-lg);
/* `overflow: visible` lets the Options dropdown extend past the
container's bottom edge — important when the table is short. Children
that touch the bottom edge (pagination-bar) carry their own matching
border-radius so the rounded look survives. */
}
/* Toolbar */
.toolbar {
display: flex;
justify-content: space-between;
align-items: center;
gap: 20px;
flex-wrap: wrap;
position: relative;
z-index: var(--z-dropdown);
padding: 20px 24px;
border-bottom: 1px solid var(--border-color);
background: rgba(255, 255, 255, 0.02);
}
.filters {
flex: 1;
max-width: 400px;
}
.search-input-wrapper {
position: relative;
display: flex;
align-items: center;
}
.search-icon {
position: absolute;
left: 12px;
color: var(--text-secondary);
font-size: 16px;
pointer-events: none;
z-index: 1;
}
.field.search input {
width: 100%;
padding: 10px 16px 10px 40px;
background: rgba(255, 255, 255, 0.05);
border: 1px solid var(--border-color);
border-radius: var(--radius-sm);
color: var(--text-primary);
font-size: 14px;
transition: all 0.2s;
}
.field.search input:focus {
outline: none;
border-color: var(--accent-primary);
background: rgba(255, 255, 255, 0.08);
}
.field.search input:focus+.search-icon,
.search-input-wrapper:hover .search-icon {
color: var(--accent-primary);
}
.field.search input::placeholder {
color: var(--text-secondary);
}
/* Options Button */
.btn {
padding: 10px 16px;
background: rgba(255, 255, 255, 0.08);
border: 1px solid var(--border-color);
border-radius: var(--radius-sm);
color: var(--text-primary);
font-size: 14px;
font-weight: 500;
cursor: pointer;
transition: all 0.2s;
display: inline-flex;
align-items: center;
gap: 8px;
}
.btn:hover {
background: rgba(255, 255, 255, 0.12);
border-color: rgba(255, 255, 255, 0.2);
}
.btn-primary {
background: var(--accent-primary);
border-color: var(--accent-primary);
color: white;
}
.btn-primary:hover {
background: var(--accent-primary);
border-color: var(--accent-primary);
filter: brightness(1.12);
transform: translateY(-1px);
box-shadow: 0 6px 18px rgba(124, 58, 237, 0.35);
}
.btn-ghost {
background: transparent;
border-color: transparent;
}
.btn-ghost:hover {
background: rgba(255, 255, 255, 0.08);
}
/* Options Dropdown */
.options {
position: relative;
z-index: var(--z-dropdown);
}
.options-dropdown {
position: absolute;
top: calc(100% + 10px);
right: 0;
left: auto;
width: 500px;
max-width: 90vw;
padding: 20px;
background: rgba(15, 20, 35, 0.98);
border: 1px solid rgba(255, 255, 255, 0.15);
border-radius: 12px;
backdrop-filter: blur(60px);
box-shadow: rgba(0, 0, 0, 0.3) 0 20px 40px 0px;
z-index: var(--z-dropdown);
visibility: hidden;
opacity: 0;
transform: translateY(-8px);
transition: opacity 0.15s ease-out, transform 0.15s ease-out, visibility 0s linear 0.15s;
}
.options.dropdown.is-open > .options-dropdown {
visibility: visible;
opacity: 1;
transform: translateY(0);
transition: opacity 0.15s ease-out, transform 0.15s ease-out, visibility 0s linear 0s;
}
.options-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
gap: 16px;
margin-bottom: 20px;
}
.field {
display: flex;
flex-direction: column;
gap: 8px;
}
.field label {
font-size: 12px;
font-weight: 500;
color: var(--text-secondary);
text-transform: uppercase;
letter-spacing: 0.5px;
}
/* Select and DateTime Wrappers */
.select-wrapper,
.datetime-wrapper {
position: relative;
display: flex;
align-items: center;
}
.select-wrapper select,
.datetime-wrapper input,
.field select,
.field input[type="datetime-local"] {
padding: 0 36px 0 12px;
background: rgba(255, 255, 255, 0.05);
border: 1px solid var(--border-color);
border-radius: var(--radius-sm);
color: var(--text-primary);
font-size: 14px;
height: 36px;
box-sizing: border-box;
transition: all 0.2s;
width: 100%;
-webkit-appearance: none;
-moz-appearance: none;
appearance: none;
}
.select-wrapper select:focus,
.datetime-wrapper input:focus,
.field select:focus,
.field input[type="datetime-local"]:focus {
outline: none;
border-color: var(--accent-primary);
background: rgba(255, 255, 255, 0.08);
}
.select-icon {
position: absolute;
right: 12px;
color: var(--text-secondary);
font-size: 16px;
pointer-events: none;
transition: color 0.2s;
}
.datetime-icon {
position: absolute;
right: 12px;
color: var(--text-secondary);
font-size: 16px;
pointer-events: auto;
cursor: pointer;
transition: color 0.2s;
}
.select-wrapper:hover .select-icon,
.datetime-wrapper:hover .datetime-icon,
.select-wrapper select:focus+.select-icon,
.datetime-wrapper input:focus+.datetime-icon {
color: var(--accent-primary);
}
/* Hide default datetime-local calendar icon */
input[type="datetime-local"]::-webkit-calendar-picker-indicator {
display: none;
}
input[type="datetime-local"]::-webkit-inner-spin-button {
display: none;
}
/* Segmented Control */
.seg {
display: flex;
align-items: stretch;
background: rgba(255, 255, 255, 0.05);
border: 1px solid var(--border-color);
border-radius: var(--radius-sm);
overflow: hidden;
position: relative;
height: 36px;
box-sizing: border-box;
}
.seg button {
flex: 1;
padding: 0 8px;
background: transparent;
border: none;
color: var(--text-secondary);
font-size: 13px;
cursor: pointer;
transition: color 0.2s;
position: relative;
z-index: 1;
}
.seg button:hover {
color: var(--text-primary);
}
.seg button.active {
color: var(--text-primary);
}
.seg-indicator {
position: absolute;
top: 3px;
bottom: 2.5px;
left: 2.5px;
width: calc(33.33% - 2.67px);
background: rgba(124, 58, 237, 0.3);
border-radius: calc(var(--radius-sm) - 2px);
transition: transform 0.3s ease;
pointer-events: none;
}
.seg--2 .seg-indicator {
width: calc(50% - 2.31px);
}
.seg--3 .seg-indicator {
width: calc(33.33% - 2.11px);
}
/* Segmented control state management */
.seg[data-active="0"] .seg-indicator {
transform: translateX(0);
}
.seg[data-active="1"] .seg-indicator {
transform: translateX(calc(100% + 0.67px));
}
.seg[data-active="2"] .seg-indicator {
transform: translateX(calc(200% + 1.33px));
}
.seg--2[data-active="0"] .seg-indicator {
transform: translateX(0);
}
.seg--2[data-active="1"] .seg-indicator {
transform: translateX(100%);
}
.options-actions {
display: flex;
gap: 12px;
justify-content: flex-end;
padding-top: 16px;
border-top: 1px solid var(--border-color);
}
/* List Container */
.list-container {
min-height: 400px;
position: relative;
z-index: 1;
background: transparent;
}
/* Table Layout */
.links-table {
overflow: hidden;
}
.table-header {
display: grid;
grid-template-columns: 200px minmax(0, 1fr) 140px 140px 80px 140px;
background: rgba(255, 255, 255, 0.08);
border-bottom: 1px solid var(--border-color);
}
.header-cell {
padding: 16px 12px;
font-size: 12px;
font-weight: 600;
color: var(--text-secondary);
text-transform: uppercase;
letter-spacing: 0.5px;
border-right: 1px solid rgba(255, 255, 255, 0.05);
overflow: hidden;
}
.header-cell:last-child {
border-right: none;
}
.table-body {
background: rgba(15, 20, 40, 0.3);
}
.table-row {
display: grid;
grid-template-columns: 200px minmax(0, 1fr) 140px 140px 80px 140px;
border-bottom: 1px solid rgba(255, 255, 255, 0.05);
transition: background 0.2s;
}
.table-row:hover {
background: rgba(255, 255, 255, 0.03);
}
.table-row:last-child {
border-bottom: none;
}
.table-cell {
padding: 16px 12px;
display: flex;
align-items: center;
border-right: 1px solid rgba(255, 255, 255, 0.03);
min-height: 60px;
min-width: 0;
/* Allow shrinking */
overflow: hidden;
}
.table-cell:last-child {
border-right: none;
}
/* Column specific styles */
.col-short-url .link-short {
color: var(--accent-primary);
font-weight: 600;
font-size: 14px;
text-decoration: none;
transition: color 0.2s;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.col-short-url .link-short:hover {
color: var(--accent-primary);
}
.col-long-url {
min-width: 0;
/* Important for flex items to shrink */
overflow: hidden;
}
.col-long-url .link-long {
color: var(--text-secondary);
font-size: 13px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
width: 100%;
max-width: 100%;
display: block;
}
.col-created,
.col-last-click {
font-size: 13px;
color: var(--text-primary);
}
.col-clicks {
font-size: 14px;
font-weight: 600;
color: var(--text-primary);
justify-content: center;
}
/* Attribute Badges */
.attribute-badges {
display: flex;
gap: 6px;
flex-wrap: wrap;
}
.badge {
display: inline-flex;
align-items: center;
justify-content: center;
width: 24px;
height: 24px;
border-radius: 6px;
font-size: 12px;
transition: all 0.2s;
}
.badge i {
font-size: 14px;
}
.badge-status.badge-active {
background: rgba(34, 197, 94, 0.1);
color: var(--color-success);
border: 1px solid rgba(34, 197, 94, 0.2);
}
.badge-status.badge-inactive {
background: rgba(249, 115, 22, 0.1);
color: #f97316;
border: 1px solid rgba(249, 115, 22, 0.2);
}
.badge-status.badge-expired {
background: rgba(202, 138, 4, 0.1);
color: #ca8a04;
border: 1px solid rgba(202, 138, 4, 0.2);
}
.badge-status.badge-blocked {
background: rgba(239, 68, 68, 0.15);
color: #f87171;
border: 1px solid rgba(239, 68, 68, 0.3);
}
.table-row.row-blocked {
background: rgba(239, 68, 68, 0.05);
}
.table-row.row-blocked:hover {
background: rgba(239, 68, 68, 0.08);
}
.badge-password {
background: rgba(245, 158, 11, 0.1);
color: var(--color-warning);
border: 1px solid rgba(245, 158, 11, 0.2);
}
.badge-max-clicks {
background: rgba(37, 99, 235, 0.1);
color: var(--accent-secondary);
border: 1px solid rgba(37, 99, 235, 0.2);
}
.badge-private {
background: rgba(100, 116, 139, 0.1);
color: #64748b;
border: 1px solid rgba(100, 116, 139, 0.2);
}
.badge-block-bots {
background: rgba(129, 140, 248, 0.1);
color: #818cf8;
border: 1px solid rgba(129, 140, 248, 0.2);
}
.badge:hover {
transform: scale(1.1);
}
/* Empty State */
.empty {
display: flex;
align-items: center;
justify-content: center;
min-height: 400px;
padding: 40px 20px;
}
.empty-state {
text-align: center;
}
.empty-icon {
width: 80px;
height: 80px;
margin: 0 auto 24px;
border-radius: 50%;
background: linear-gradient(135deg, rgba(124, 58, 237, 0.1), rgba(37, 99, 235, 0.1));
display: flex;
align-items: center;
justify-content: center;
color: var(--accent-primary);
}
.empty-icon i {
font-size: 36px;
}
.empty-title {
font-size: 24px;
font-weight: 600;
color: var(--text-primary);
margin: 0 0 12px 0;
}
.empty-message {
font-size: 16px;
color: var(--text-secondary);
line-height: 1.6;
margin: 0;
max-width: 440px;
margin-left: auto;
margin-right: auto;
}
.empty-state .empty-cta.btn-primary {
margin-top: 28px;
background: var(--accent-primary);
border: 1px solid var(--accent-primary);
color: white;
padding: 10px 16px;
font-size: 14px;
font-weight: 500;
}
/* Pagination */
.pagination-bar {
display: flex;
justify-content: space-between;
align-items: center;
gap: 8px;
padding: 16px 24px;
border-top: 1px solid var(--border-color);
background: rgba(255, 255, 255, 0.02);
/* Match the container's bottom corners — since .links-container no
longer clips overflow, the pagination bar paints its own background
all the way to the (formerly clipped) edge. */
border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}
.pagination-controls {
display: flex;
gap: 8px;
}
.pagination-controls button {
padding: 8px 16px;
background: rgba(255, 255, 255, 0.05);
border: 1px solid var(--border-color);
border-radius: var(--radius-sm);
color: var(--text-secondary);
font-size: 14px;
cursor: pointer;
transition: all 0.2s;
}
.pagination-controls button:hover:not(:disabled) {
background: rgba(255, 255, 255, 0.08);
color: var(--text-primary);
border-color: rgba(255, 255, 255, 0.2);
}
.pagination-controls button:disabled {
opacity: 0.4;
cursor: not-allowed;
}
.pagination-info {
color: var(--text-secondary);
font-size: 14px;
}
/* Animations */
.fade-in {
animation: fadeIn 0.3s ease;
}
@keyframes fadeIn {
from {
opacity: 0;
transform: translateY(10px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
/* Responsive */
@media (max-width: 1200px) {
.table-header,
.table-row {
grid-template-columns: 180px 1fr 120px 120px 70px 100px;
}
}
@media (max-width: 992px) {
.table-header,
.table-row {
grid-template-columns: 160px 1fr 100px 100px 60px 80px;
}
.header-cell,
.table-cell {
padding: 12px 8px;
font-size: 12px;
}
}
@media (max-width: 768px) {
.dashboard-content {
padding: 0 !important;
display: flex;
flex-direction: column;
}
.page-header {
padding: 20px;
margin-bottom: 10px;
}
.page-header-content {
flex-direction: column;
gap: 0;
}
.page-header-actions {
justify-content: right;
width: 100%;
margin-top: 10px;
}
.filters {
max-width: none;
}
/* Mobile Bottom Sheet for Dropdowns */
.options-dropdown {
/* Reset desktop positioning */
position: fixed !important;
top: auto !important;
right: 0 !important;
left: 0 !important;
bottom: 0 !important;
width: 100% !important;
max-width: 100% !important;
max-height: 85vh;
margin: 0 !important;
/* Mobile bottom sheet styling */
background: rgba(15, 20, 35, 0.98);
backdrop-filter: blur(20px);
border-radius: 24px 24px 0 0;
border: 1px solid rgba(255, 255, 255, 0.15);
border-bottom: none;
box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.4);
/* Animation - use visibility and opacity for smooth transitions */
display: block !important;
visibility: hidden;
opacity: 0;
transform: translateY(100%);
transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1),
visibility 0s linear 0.3s;
z-index: var(--z-modal) !important;
/* Enable scrolling for long content */
overflow-y: auto;
-webkit-overflow-scrolling: touch;
}
.options.dropdown.is-open > .options-dropdown {
visibility: visible !important;
opacity: 1 !important;
transform: translateY(0) !important;
transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1),
visibility 0s linear 0s;
}
/* Backdrop overlay for mobile bottom sheet */
.options-dropdown::before {
content: '';
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: rgba(15, 20, 35, 0.95);
z-index: -1;
opacity: 0;
transition: opacity 0.3s ease;
pointer-events: none;
}
.options.dropdown.is-open > .options-dropdown::before {
opacity: 1;
pointer-events: auto;
}
/* Handle bar: visible + functional drag/tap-to-close zone. */
.options-dropdown .sheet-handle {
display: flex;
justify-content: center;
align-items: center;
height: 20px;
width: 100%;
touch-action: none;
cursor: grab;
user-select: none;
position: sticky;
top: 0;
background: rgba(15, 20, 35, 0.98);
z-index: 3;
}
.options-dropdown .sheet-handle::before {
content: '';
width: 36px;
height: 4px;
border-radius: 2px;
background: rgba(255, 255, 255, 0.3);
transition: background 0.2s ease;
}
.options-dropdown .sheet-handle:active {
cursor: grabbing;
}
.options-dropdown .sheet-handle:active::before {
background: rgba(255, 255, 255, 0.5);
}
/* Adjust padding for mobile bottom sheet (handle bar owns the top space). */
.options-dropdown .options-grid {
padding: 4px 20px 20px;
}
/* Pin Apply/Reset to the bottom of the bottom sheet so the user never
has to scroll to submit. */
.options-dropdown .options-actions {
position: sticky;
bottom: 0;
padding: 16px 20px calc(16px + env(safe-area-inset-bottom));
margin: 0;
background: rgba(15, 20, 35, 0.98);
backdrop-filter: blur(20px);
z-index: 2;
}
/* Fix the container width to viewport */
.links-container {
overflow: visible;
/* Allow dropdown to overflow */
max-width: 100vw;
/* Never exceed viewport width */
width: 100%;
/* Take full available width */
padding: 0;
border-radius: 0;
margin: 0;
backdrop-filter: none;
/* Remove backdrop-filter to allow fixed positioning */
flex: 1;
display: flex;
flex-direction: column;
}
.toolbar {
overflow: visible;
/* Allow dropdown to overflow */
width: 100%;
padding: 20px 16px;
gap: 12px;
}
.toolbar-actions {
overflow: visible;
}
/* ONLY the list-container should scroll horizontally */
.list-container {
overflow-x: auto;
overflow-y: visible;
-webkit-overflow-scrolling: touch;
/* Smooth scrolling on iOS */
padding: 0;
/* Remove any padding that might interfere */
width: 100%;
/* Constrain to parent width */
max-width: 100%;
/* Never exceed parent */
flex: 1;
}
/* Style scrollbar */
.list-container::-webkit-scrollbar {
height: 6px;
}
.list-container::-webkit-scrollbar-track {
background: rgba(255, 255, 255, 0.05);
border-radius: 3px;
}
.list-container::-webkit-scrollbar-thumb {
background: rgba(124, 58, 237, 0.6);
border-radius: 3px;
}
.list-container::-webkit-scrollbar-thumb:hover {
background: rgba(124, 58, 237, 0.8);
}
/* Table stays in table format, just scrollable */
.links-table {
min-width: 1000px;
/* Ensure table doesn't shrink below readable width */
width: max-content;
/* Let table be as wide as it needs */
}
/* Fix column widths - no minmax, just fixed widths */
.table-header,
.table-row {
grid-template-columns: 180px 280px 130px 130px 90px 110px;
width: 100%;
}
/* Adjust font sizes for mobile */
.header-cell {
font-size: 11px;
padding: 12px 10px;
white-space: nowrap;
}
.table-cell {
padding: 14px 10px;
font-size: 13px;
}
.col-short-url .link-short {
font-size: 13px;
font-weight: 600;
}
.col-long-url .link-long {
font-size: 12px;
/* Keep ellipsis for long URLs */
}
/* Make date columns compact */
.col-created,
.col-last-click {
font-size: 12px;
}
/* Make clicks number more prominent on mobile */
.col-clicks {
font-size: 15px;
font-weight: 700;
}
/* Slightly smaller badges on mobile */
.badge {
width: 22px;
height: 22px;
}
.badge i {
font-size: 13px;
}
/* Empty state adjustments */
.empty {
min-width: 100%;
/* Prevent empty state from being cut off */
}
/* Pagination adjustments */
.pagination-bar {
padding: 12px 16px;
flex-wrap: wrap;
gap: 12px;
overflow-x: hidden;
/* Pagination should not cause horizontal scroll */
}
.pagination-info {
font-size: 13px;
}
.pagination-controls button {
padding: 8px 12px;
font-size: 13px;
}
}
/* Links Page Specific Styles */
/* Page Header */
.page-header-content {
display: flex;
justify-content: space-between;
align-items: flex-start;
gap: 20px;
}
.page-header-text {
flex: 1;
}
.page-header-actions {
display: flex;
gap: 12px;
align-items: center;
}
.page-header-actions .btn {
text-decoration: none;
background: var(--accent-primary);
border: 1px solid var(--accent-primary);
border-radius: var(--radius-sm);
color: white;
font-size: 14px;
font-weight: 500;
cursor: pointer;
transition: all 0.2s;
display: inline-flex;
align-items: center;
gap: 8px;
padding: 10px 16px;
}
.page-header-actions .btn:hover {
background: var(--accent-primary);
border-color: var(--accent-primary);
text-decoration: none;
filter: brightness(1.12);
transform: translateY(-1px);
box-shadow: 0 6px 18px rgba(124, 58, 237, 0.35);
}
/* Success modal must sit above all other modals on this page */
#link-success-modal {
z-index: calc(var(--z-max) + 1);
}
/* Success Modal Close Button */
#link-success-modal .modal-close {
background: none;
border: none;
color: var(--text-secondary);
font-size: 24px;
cursor: pointer;
padding: 8px;
border-radius: 8px;
transition: all 0.2s ease;
display: flex;
align-items: center;
justify-content: center;
width: 40px;
height: 40px;
}
#link-success-modal .modal-close:hover {
background: rgba(255, 255, 255, 0.1);
color: var(--text-primary);
}
/* Success Modal Styles */
.success-content {
text-align: center;
padding: 8px 0;
}
/* Specific spacing for success modal body */
#link-success-modal .modal-body {
padding: 28px 32px 32px;
}
.link-display {
margin-bottom: 28px;
}
.link-display .field {
margin-bottom: 8px;
}
.link-display label {
color: var(--text-secondary);
font-size: 14px;
font-weight: 500;
margin-bottom: 8px;
display: block;
}
.link-result {