2293 lines
45 KiB
CSS
2293 lines
45 KiB
CSS
* {
|
|
margin: 0;
|
|
padding: 0;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
:root {
|
|
--primary-color: #6366f1;
|
|
--primary-hover: #4f46e5;
|
|
--secondary-color: #8b5cf6;
|
|
--background: #0f172a;
|
|
--surface: #1e293b;
|
|
--surface-light: #334155;
|
|
--text-primary: #f1f5f9;
|
|
--text-secondary: #cbd5e1;
|
|
--text-muted: #94a3b8;
|
|
--border: #334155;
|
|
--success: #10b981;
|
|
--error: #ef4444;
|
|
--shadow: rgba(0, 0, 0, 0.3);
|
|
--shadow-lg: rgba(0, 0, 0, 0.5);
|
|
}
|
|
|
|
body {
|
|
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
|
|
background: linear-gradient(135deg, var(--background) 0%, #1a1f3a 100%);
|
|
color: var(--text-primary);
|
|
min-height: 100vh;
|
|
padding: 0;
|
|
line-height: 1.6;
|
|
}
|
|
|
|
/* Top Header Bar */
|
|
.top-header-bar {
|
|
position: sticky;
|
|
top: 0;
|
|
z-index: 100;
|
|
background: rgba(30, 41, 59, 0.95);
|
|
backdrop-filter: blur(20px);
|
|
border-bottom: 1px solid var(--border);
|
|
box-shadow: 0 4px 24px var(--shadow);
|
|
padding: 0.75rem 0;
|
|
}
|
|
|
|
.header-container {
|
|
width: 100%;
|
|
padding: 0 1rem;
|
|
}
|
|
|
|
.header-row {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
column-gap: 0.75rem;
|
|
}
|
|
|
|
.header-left {
|
|
display: flex;
|
|
align-items: center;
|
|
}
|
|
|
|
.header-right {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.75rem;
|
|
}
|
|
|
|
.header-fields-container {
|
|
width: 100%;
|
|
padding-top: 0;
|
|
}
|
|
|
|
.header-fields-container:has(.add-link-wrapper.show),
|
|
.header-fields-container:has(.search-wrapper.show) {
|
|
padding-top: 0.75rem;
|
|
}
|
|
|
|
.app-title {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.75rem;
|
|
font-size: 1.75rem;
|
|
font-weight: 700;
|
|
margin: 0;
|
|
background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
|
|
-webkit-background-clip: text;
|
|
-webkit-text-fill-color: transparent;
|
|
background-clip: text;
|
|
letter-spacing: -0.02em;
|
|
transition: opacity 0.3s ease;
|
|
}
|
|
|
|
.app-title:hover {
|
|
opacity: 0.8;
|
|
}
|
|
|
|
.title-icon {
|
|
width: 36px;
|
|
height: 36px;
|
|
border-radius: 8px;
|
|
object-fit: contain;
|
|
display: block;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.title-text {
|
|
background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
|
|
-webkit-background-clip: text;
|
|
-webkit-text-fill-color: transparent;
|
|
background-clip: text;
|
|
}
|
|
|
|
.header-right {
|
|
display: flex;
|
|
align-items: center;
|
|
flex: 1;
|
|
justify-content: flex-end;
|
|
max-width: 400px;
|
|
gap: 0.75rem;
|
|
}
|
|
|
|
/* Layout Toggle Button */
|
|
.layout-toggle-wrapper {
|
|
position: relative;
|
|
}
|
|
|
|
.layout-toggle-btn {
|
|
background: transparent;
|
|
border: 1px solid var(--border);
|
|
color: var(--text-secondary);
|
|
padding: 0.5rem;
|
|
border-radius: 8px;
|
|
cursor: pointer;
|
|
transition: all 0.3s ease;
|
|
width: 36px;
|
|
height: 36px;
|
|
flex-shrink: 0;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
|
|
.layout-toggle-btn:hover {
|
|
background: var(--surface-light);
|
|
border-color: var(--primary-color);
|
|
color: var(--primary-color);
|
|
}
|
|
|
|
.layout-toggle-btn.active {
|
|
background: rgba(99, 102, 241, 0.1);
|
|
border-color: var(--primary-color);
|
|
color: var(--primary-color);
|
|
}
|
|
|
|
.layout-toggle-btn svg {
|
|
width: 20px;
|
|
height: 20px;
|
|
}
|
|
|
|
/* Layout Dropdown */
|
|
.layout-dropdown {
|
|
position: absolute;
|
|
top: calc(100% + 0.5rem);
|
|
right: 0;
|
|
background: var(--surface);
|
|
border: 1px solid var(--border);
|
|
border-radius: 8px;
|
|
box-shadow: 0 8px 24px var(--shadow-lg);
|
|
min-width: 140px;
|
|
opacity: 0;
|
|
visibility: hidden;
|
|
transform: translateY(-10px);
|
|
transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
|
|
z-index: 1000;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.layout-dropdown.show {
|
|
opacity: 1;
|
|
visibility: visible;
|
|
transform: translateY(0);
|
|
}
|
|
|
|
.layout-option {
|
|
width: 100%;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
padding: 0.625rem 0.875rem;
|
|
background: transparent;
|
|
border: none;
|
|
color: var(--text-primary);
|
|
font-size: 0.875rem;
|
|
cursor: pointer;
|
|
transition: background 0.2s ease;
|
|
text-align: left;
|
|
}
|
|
|
|
.layout-option:hover {
|
|
background: var(--surface-light);
|
|
}
|
|
|
|
.layout-option.active {
|
|
background: rgba(99, 102, 241, 0.1);
|
|
color: var(--primary-color);
|
|
}
|
|
|
|
.layout-option .check-icon {
|
|
width: 16px;
|
|
height: 16px;
|
|
opacity: 0;
|
|
transition: opacity 0.2s ease;
|
|
}
|
|
|
|
.layout-option.active .check-icon {
|
|
opacity: 1;
|
|
}
|
|
|
|
.container {
|
|
width: 100%;
|
|
padding: 1.5rem 1rem;
|
|
}
|
|
|
|
/* Top Section - Removed since add link is in header now */
|
|
|
|
.section-subtitle {
|
|
color: var(--text-secondary);
|
|
font-size: 0.95rem;
|
|
font-weight: 400;
|
|
margin: 0 0 1.5rem 0;
|
|
opacity: 0.8;
|
|
}
|
|
|
|
/* Add Link Section */
|
|
.link-form {
|
|
margin: 0;
|
|
}
|
|
|
|
.input-wrapper {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.5rem;
|
|
background: var(--surface);
|
|
padding: 0.375rem 0.625rem;
|
|
border-radius: 10px;
|
|
border: 1px solid var(--border);
|
|
box-shadow: 0 2px 8px var(--shadow);
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
.input-wrapper:focus-within {
|
|
border-color: var(--primary-color);
|
|
box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1), 0 4px 12px var(--shadow);
|
|
}
|
|
|
|
.input-icon {
|
|
color: var(--text-muted);
|
|
flex-shrink: 0;
|
|
transition: color 0.3s ease;
|
|
}
|
|
|
|
.input-wrapper:focus-within .input-icon {
|
|
color: var(--primary-color);
|
|
}
|
|
|
|
#linkInput {
|
|
flex: 1;
|
|
background: transparent;
|
|
border: none;
|
|
color: var(--text-primary);
|
|
font-size: 0.95rem;
|
|
padding: 0.5rem 0;
|
|
outline: none;
|
|
font-weight: 400;
|
|
}
|
|
|
|
#linkInput::placeholder {
|
|
color: var(--text-muted);
|
|
font-weight: 400;
|
|
}
|
|
|
|
.btn-add {
|
|
background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
|
|
color: white;
|
|
border: none;
|
|
padding: 0.5rem;
|
|
border-radius: 8px;
|
|
font-size: 0;
|
|
font-weight: 600;
|
|
cursor: pointer;
|
|
transition: all 0.3s ease;
|
|
white-space: nowrap;
|
|
box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 36px;
|
|
height: 36px;
|
|
position: relative;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.btn-add .btn-text {
|
|
display: none;
|
|
}
|
|
|
|
.btn-add::after {
|
|
content: '+';
|
|
font-size: 1.5rem;
|
|
font-weight: 300;
|
|
line-height: 1;
|
|
}
|
|
|
|
.btn-add::before {
|
|
content: attr(data-tooltip);
|
|
position: absolute;
|
|
bottom: 100%;
|
|
left: 50%;
|
|
transform: translateX(-50%) translateY(-0.5rem);
|
|
background: var(--surface);
|
|
color: var(--text-primary);
|
|
padding: 0.375rem 0.625rem;
|
|
border-radius: 6px;
|
|
font-size: 0.75rem;
|
|
font-weight: 500;
|
|
white-space: nowrap;
|
|
opacity: 0;
|
|
pointer-events: none;
|
|
transition: opacity 0.2s ease, transform 0.2s ease;
|
|
border: 1px solid var(--border);
|
|
box-shadow: 0 4px 12px var(--shadow);
|
|
z-index: 1000;
|
|
}
|
|
|
|
.btn-add:hover::before,
|
|
.btn-add:focus::before {
|
|
opacity: 1;
|
|
transform: translateX(-50%) translateY(-0.25rem);
|
|
}
|
|
|
|
/* Touch support for mobile */
|
|
@media (hover: none) and (pointer: coarse) {
|
|
.btn-add:active::before {
|
|
opacity: 1;
|
|
transform: translateX(-50%) translateY(-0.25rem);
|
|
}
|
|
}
|
|
|
|
.btn-add .btn-loader {
|
|
width: 16px;
|
|
height: 16px;
|
|
}
|
|
|
|
.btn-add:hover:not(:disabled) {
|
|
transform: translateY(-1px);
|
|
box-shadow: 0 6px 16px rgba(99, 102, 241, 0.4);
|
|
}
|
|
|
|
.btn-add:active:not(:disabled) {
|
|
transform: translateY(0);
|
|
}
|
|
|
|
.btn-add:disabled {
|
|
opacity: 0.6;
|
|
cursor: not-allowed;
|
|
}
|
|
|
|
.btn-loader {
|
|
display: none;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
|
|
.btn-loader svg {
|
|
animation: spin 1s linear infinite;
|
|
}
|
|
|
|
@keyframes spin {
|
|
from { transform: rotate(0deg); }
|
|
to { transform: rotate(360deg); }
|
|
}
|
|
|
|
/* Search Toggle Button */
|
|
.search-toggle-btn {
|
|
display: flex;
|
|
background: transparent;
|
|
border: 1px solid var(--border);
|
|
color: var(--text-secondary);
|
|
padding: 0.5rem;
|
|
border-radius: 8px;
|
|
cursor: pointer;
|
|
transition: all 0.3s ease;
|
|
width: 36px;
|
|
height: 36px;
|
|
flex-shrink: 0;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
|
|
.search-toggle-btn:hover {
|
|
background: var(--surface-light);
|
|
border-color: var(--primary-color);
|
|
color: var(--primary-color);
|
|
}
|
|
|
|
.search-toggle-btn.active {
|
|
background: rgba(99, 102, 241, 0.1);
|
|
border-color: var(--primary-color);
|
|
color: var(--primary-color);
|
|
}
|
|
|
|
.search-toggle-btn svg {
|
|
width: 20px;
|
|
height: 20px;
|
|
}
|
|
|
|
/* Login Toggle Button */
|
|
.login-toggle-btn {
|
|
display: flex;
|
|
background: transparent;
|
|
border: 1px solid var(--border);
|
|
color: var(--text-secondary);
|
|
padding: 0.5rem;
|
|
border-radius: 8px;
|
|
cursor: pointer;
|
|
transition: all 0.3s ease;
|
|
width: 36px;
|
|
height: 36px;
|
|
flex-shrink: 0;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
|
|
.login-toggle-btn:hover {
|
|
background: var(--surface-light);
|
|
border-color: var(--primary-color);
|
|
color: var(--primary-color);
|
|
}
|
|
|
|
.login-toggle-btn svg {
|
|
width: 20px;
|
|
height: 20px;
|
|
}
|
|
|
|
/* User Info */
|
|
.user-info {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.75rem;
|
|
padding: 0.5rem 0.75rem;
|
|
background: var(--surface-light);
|
|
border: 1px solid var(--border);
|
|
border-radius: 8px;
|
|
color: var(--text-secondary);
|
|
font-size: 0.875rem;
|
|
}
|
|
|
|
.user-info span {
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
.logout-btn {
|
|
display: flex;
|
|
background: transparent;
|
|
border: none;
|
|
color: var(--text-secondary);
|
|
padding: 0.25rem;
|
|
border-radius: 4px;
|
|
cursor: pointer;
|
|
transition: all 0.3s ease;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
|
|
.logout-btn:hover {
|
|
background: var(--surface);
|
|
color: var(--error);
|
|
}
|
|
|
|
.logout-btn svg {
|
|
width: 16px;
|
|
height: 16px;
|
|
}
|
|
|
|
/* Add Link Toggle Button */
|
|
.add-link-toggle-btn {
|
|
display: flex;
|
|
background: transparent;
|
|
border: 1px solid var(--border);
|
|
color: var(--text-secondary);
|
|
padding: 0.5rem;
|
|
border-radius: 8px;
|
|
cursor: pointer;
|
|
transition: all 0.3s ease;
|
|
width: 36px;
|
|
height: 36px;
|
|
flex-shrink: 0;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
|
|
.add-link-toggle-btn:hover {
|
|
background: var(--surface-light);
|
|
border-color: var(--primary-color);
|
|
color: var(--primary-color);
|
|
}
|
|
|
|
.add-link-toggle-btn.active {
|
|
background: rgba(99, 102, 241, 0.1);
|
|
border-color: var(--primary-color);
|
|
color: var(--primary-color);
|
|
}
|
|
|
|
.add-link-toggle-btn svg {
|
|
width: 20px;
|
|
height: 20px;
|
|
}
|
|
|
|
/* Add Link Wrapper in Header */
|
|
.add-link-wrapper {
|
|
width: 100%;
|
|
margin: 0;
|
|
padding: 0;
|
|
display: none;
|
|
opacity: 0;
|
|
transform: translateY(-10px);
|
|
transition: opacity 0.3s ease, transform 0.3s ease;
|
|
}
|
|
|
|
.add-link-wrapper.show {
|
|
display: block;
|
|
opacity: 1;
|
|
transform: translateY(0);
|
|
}
|
|
|
|
.add-link-wrapper .link-form {
|
|
margin: 0;
|
|
padding: 0;
|
|
}
|
|
|
|
.add-link-wrapper .input-wrapper {
|
|
margin: 0 !important;
|
|
background: rgba(255, 255, 255, 0.05) !important;
|
|
border: 1px solid rgba(255, 255, 255, 0.1) !important;
|
|
padding: 0.625rem 1rem !important;
|
|
border-radius: 12px !important;
|
|
height: 44px !important;
|
|
display: flex !important;
|
|
align-items: center !important;
|
|
gap: 0.75rem !important;
|
|
box-shadow: none !important;
|
|
}
|
|
|
|
.add-link-wrapper .input-wrapper #linkInput {
|
|
padding: 0 !important;
|
|
line-height: 1.5 !important;
|
|
}
|
|
|
|
.add-link-wrapper .input-wrapper .btn-add {
|
|
width: 32px !important;
|
|
height: 32px !important;
|
|
padding: 0.375rem !important;
|
|
flex-shrink: 0 !important;
|
|
}
|
|
|
|
.add-link-wrapper .input-wrapper .btn-add::after {
|
|
font-size: 1.25rem !important;
|
|
}
|
|
|
|
.add-link-wrapper .input-wrapper .btn-loader {
|
|
width: 14px !important;
|
|
height: 14px !important;
|
|
}
|
|
|
|
.add-link-wrapper .input-wrapper:focus-within {
|
|
border-color: var(--primary-color);
|
|
background: rgba(99, 102, 241, 0.1);
|
|
box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
|
|
}
|
|
|
|
/* Search in Header */
|
|
.search-wrapper {
|
|
width: 100%;
|
|
margin: 0;
|
|
padding: 0.625rem 1rem;
|
|
display: none;
|
|
align-items: center;
|
|
gap: 0.75rem;
|
|
background: rgba(255, 255, 255, 0.05);
|
|
border-radius: 12px;
|
|
border: 1px solid rgba(255, 255, 255, 0.1);
|
|
transition: all 0.3s ease;
|
|
opacity: 0;
|
|
transform: translateY(-10px);
|
|
}
|
|
|
|
.search-wrapper.show {
|
|
display: flex;
|
|
opacity: 1;
|
|
transform: translateY(0);
|
|
}
|
|
|
|
.search-wrapper:focus-within {
|
|
border-color: var(--primary-color);
|
|
background: rgba(99, 102, 241, 0.1);
|
|
box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
|
|
}
|
|
|
|
.search-icon {
|
|
color: var(--text-muted);
|
|
flex-shrink: 0;
|
|
transition: color 0.3s ease;
|
|
}
|
|
|
|
.search-wrapper:focus-within .search-icon {
|
|
color: var(--primary-color);
|
|
}
|
|
|
|
#searchInput {
|
|
width: 100%;
|
|
background: transparent;
|
|
border: none;
|
|
color: var(--text-primary);
|
|
font-size: 0.95rem;
|
|
padding: 0;
|
|
outline: none;
|
|
font-weight: 400;
|
|
}
|
|
|
|
#searchInput::placeholder {
|
|
color: var(--text-muted);
|
|
font-weight: 400;
|
|
}
|
|
|
|
/* Toast Container */
|
|
.toast-container {
|
|
position: fixed;
|
|
bottom: 1rem;
|
|
right: 1rem;
|
|
z-index: 1000;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0.75rem;
|
|
pointer-events: none;
|
|
align-items: flex-end;
|
|
}
|
|
|
|
.toast {
|
|
padding: 0.875rem 1.25rem;
|
|
border-radius: 12px;
|
|
font-size: 0.9rem;
|
|
font-weight: 500;
|
|
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
|
|
backdrop-filter: blur(10px);
|
|
opacity: 0;
|
|
transform: translateX(400px);
|
|
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
|
|
pointer-events: auto;
|
|
word-wrap: break-word;
|
|
white-space: nowrap;
|
|
width: fit-content;
|
|
max-width: calc(100vw - 2rem);
|
|
}
|
|
|
|
.toast.show {
|
|
opacity: 1;
|
|
transform: translateX(0);
|
|
}
|
|
|
|
.toast-success {
|
|
background: rgba(16, 185, 129, 0.95);
|
|
border: 1px solid var(--success);
|
|
color: white;
|
|
}
|
|
|
|
.toast-error {
|
|
background: rgba(239, 68, 68, 0.95);
|
|
border: 1px solid var(--error);
|
|
color: white;
|
|
}
|
|
|
|
.links-container {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
|
|
gap: 1.5rem;
|
|
animation: fadeIn 1s ease-out;
|
|
}
|
|
|
|
/* Layout: Masonry */
|
|
.links-container.layout-masonry {
|
|
display: block;
|
|
column-count: auto;
|
|
column-width: 280px;
|
|
column-gap: 1.5rem;
|
|
animation: fadeIn 1s ease-out;
|
|
}
|
|
|
|
.links-container.layout-masonry .link-card {
|
|
display: inline-block;
|
|
width: 100%;
|
|
margin-bottom: 1.5rem;
|
|
break-inside: avoid;
|
|
page-break-inside: avoid;
|
|
height: auto;
|
|
}
|
|
|
|
.links-container.layout-masonry .link-image {
|
|
width: 100%;
|
|
height: auto;
|
|
min-height: 0;
|
|
}
|
|
|
|
.links-container.layout-masonry .link-image-link {
|
|
width: 100%;
|
|
height: auto;
|
|
display: block;
|
|
}
|
|
|
|
.links-container.layout-masonry .link-image img {
|
|
width: 100%;
|
|
height: auto;
|
|
object-fit: contain;
|
|
max-height: 400px;
|
|
display: block;
|
|
}
|
|
|
|
.links-container.layout-masonry .link-content {
|
|
flex: 0 1 auto;
|
|
padding: 1rem 1.25rem;
|
|
}
|
|
|
|
.links-container.layout-masonry .link-title {
|
|
font-size: 1.1rem;
|
|
margin-bottom: 0.5rem;
|
|
-webkit-line-clamp: 2;
|
|
}
|
|
|
|
.links-container.layout-masonry .link-description {
|
|
display: none;
|
|
}
|
|
|
|
.links-container.layout-masonry .link-url {
|
|
display: none;
|
|
}
|
|
|
|
.links-container.layout-masonry .link-footer {
|
|
padding: 0.75rem 1.25rem;
|
|
}
|
|
|
|
.links-container.layout-masonry .empty-state {
|
|
column-span: all;
|
|
}
|
|
|
|
/* Layout: Detail (default - current layout) */
|
|
.links-container.layout-detail {
|
|
grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
|
|
}
|
|
|
|
/* Layout: List */
|
|
.links-container.layout-list {
|
|
grid-template-columns: 1fr;
|
|
gap: 0.75rem;
|
|
}
|
|
|
|
.links-container.layout-list .link-card {
|
|
display: grid;
|
|
grid-template-columns: 100px 1fr;
|
|
grid-template-rows: 1fr auto;
|
|
border-radius: 10px;
|
|
padding: 0;
|
|
}
|
|
|
|
.links-container.layout-list .link-image {
|
|
width: 100px;
|
|
height: 100px;
|
|
grid-column: 1;
|
|
grid-row: 1;
|
|
border-radius: 0;
|
|
}
|
|
|
|
.links-container.layout-list .link-content {
|
|
padding: 0.75rem 1rem;
|
|
grid-column: 2;
|
|
grid-row: 1;
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.links-container.layout-list .link-title {
|
|
font-size: 1rem;
|
|
margin-bottom: 0.375rem;
|
|
-webkit-line-clamp: 1;
|
|
}
|
|
|
|
.links-container.layout-list .link-description {
|
|
font-size: 0.875rem;
|
|
-webkit-line-clamp: 1;
|
|
margin-bottom: 0.5rem;
|
|
line-height: 1.4;
|
|
}
|
|
|
|
.links-container.layout-list .link-url {
|
|
font-size: 0.8rem;
|
|
margin-bottom: 0.5rem;
|
|
}
|
|
|
|
.links-container.layout-list .link-footer {
|
|
padding: 0.75rem 1rem;
|
|
border-top: 1px solid var(--border);
|
|
grid-column: 1 / -1;
|
|
grid-row: 2;
|
|
width: 100%;
|
|
}
|
|
|
|
.links-container.layout-list .link-date {
|
|
font-size: 0.75rem;
|
|
}
|
|
|
|
.empty-state {
|
|
grid-column: 1 / -1;
|
|
text-align: center;
|
|
padding: 4rem 2rem;
|
|
color: var(--text-muted);
|
|
font-size: 1.1rem;
|
|
}
|
|
|
|
.link-card {
|
|
background: var(--surface);
|
|
border: 1px solid var(--border);
|
|
border-radius: 16px;
|
|
overflow: hidden;
|
|
transition: all 0.3s ease;
|
|
box-shadow: 0 4px 6px var(--shadow);
|
|
display: flex;
|
|
flex-direction: column;
|
|
animation: fadeInUp 0.5s ease-out;
|
|
}
|
|
|
|
.link-card:hover {
|
|
transform: translateY(-4px);
|
|
box-shadow: 0 8px 16px var(--shadow-lg);
|
|
border-color: var(--primary-color);
|
|
}
|
|
|
|
.link-image {
|
|
width: 100%;
|
|
height: 200px;
|
|
object-fit: cover;
|
|
background: var(--surface-light);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
color: var(--text-muted);
|
|
font-size: 0.9rem;
|
|
position: relative;
|
|
}
|
|
|
|
.link-image-link {
|
|
width: 100%;
|
|
height: 100%;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
text-decoration: none;
|
|
color: inherit;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.link-image img {
|
|
width: 100%;
|
|
height: 100%;
|
|
object-fit: cover;
|
|
display: block;
|
|
}
|
|
|
|
.link-content {
|
|
padding: 1.5rem;
|
|
flex: 1;
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.link-card .link-footer {
|
|
padding: 1rem 1.5rem;
|
|
}
|
|
|
|
.link-title {
|
|
font-size: 1.25rem;
|
|
font-weight: 600;
|
|
margin-bottom: 0.75rem;
|
|
color: var(--text-primary);
|
|
line-height: 1.4;
|
|
display: -webkit-box;
|
|
-webkit-line-clamp: 2;
|
|
-webkit-box-orient: vertical;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.link-description {
|
|
color: var(--text-secondary);
|
|
font-size: 0.95rem;
|
|
margin-bottom: 1rem;
|
|
flex: 1;
|
|
display: -webkit-box;
|
|
-webkit-line-clamp: 3;
|
|
-webkit-box-orient: vertical;
|
|
overflow: hidden;
|
|
line-height: 1.5;
|
|
}
|
|
|
|
.link-url {
|
|
color: var(--primary-color);
|
|
font-size: 0.85rem;
|
|
text-decoration: none;
|
|
margin-bottom: 1rem;
|
|
word-break: break-all;
|
|
transition: color 0.3s ease;
|
|
}
|
|
|
|
.link-url:hover {
|
|
color: var(--primary-hover);
|
|
text-decoration: underline;
|
|
}
|
|
|
|
.link-footer {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
border-top: 1px solid var(--border);
|
|
}
|
|
|
|
.link-actions {
|
|
display: flex;
|
|
gap: 0.5rem;
|
|
align-items: center;
|
|
}
|
|
|
|
.link-date {
|
|
color: var(--text-muted);
|
|
font-size: 0.85rem;
|
|
}
|
|
|
|
.archive-btn,
|
|
.delete-btn {
|
|
background: transparent;
|
|
color: var(--text-muted);
|
|
border: 1px solid var(--border);
|
|
padding: 0.375rem;
|
|
border-radius: 6px;
|
|
font-size: 0;
|
|
cursor: pointer;
|
|
transition: all 0.3s ease;
|
|
white-space: nowrap;
|
|
width: 32px;
|
|
height: 32px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
position: relative;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.archive-btn svg,
|
|
.delete-btn svg {
|
|
width: 16px;
|
|
height: 16px;
|
|
stroke-width: 2;
|
|
}
|
|
|
|
.archive-btn {
|
|
color: var(--secondary-color);
|
|
border-color: rgba(139, 92, 246, 0.3);
|
|
}
|
|
|
|
.archive-btn:hover {
|
|
background: rgba(139, 92, 246, 0.2);
|
|
border-color: var(--secondary-color);
|
|
color: var(--secondary-color);
|
|
}
|
|
|
|
.delete-btn {
|
|
color: var(--error);
|
|
border-color: rgba(239, 68, 68, 0.3);
|
|
}
|
|
|
|
.delete-btn:hover {
|
|
background: rgba(239, 68, 68, 0.2);
|
|
border-color: var(--error);
|
|
color: var(--error);
|
|
}
|
|
|
|
/* Tooltip for icon buttons */
|
|
.archive-btn::before,
|
|
.delete-btn::before {
|
|
content: attr(data-tooltip);
|
|
position: absolute;
|
|
bottom: 100%;
|
|
left: 50%;
|
|
transform: translateX(-50%) translateY(-0.5rem);
|
|
background: var(--surface);
|
|
color: var(--text-primary);
|
|
padding: 0.375rem 0.625rem;
|
|
border-radius: 6px;
|
|
font-size: 0.75rem;
|
|
font-weight: 500;
|
|
white-space: nowrap;
|
|
opacity: 0;
|
|
pointer-events: none;
|
|
transition: opacity 0.2s ease, transform 0.2s ease;
|
|
border: 1px solid var(--border);
|
|
box-shadow: 0 4px 12px var(--shadow);
|
|
z-index: 1000;
|
|
}
|
|
|
|
.archive-btn:hover::before,
|
|
.delete-btn:hover::before,
|
|
.archive-btn:focus::before,
|
|
.delete-btn:focus::before {
|
|
opacity: 1;
|
|
transform: translateX(-50%) translateY(-0.25rem);
|
|
}
|
|
|
|
/* Touch support for mobile - show tooltip on tap */
|
|
@media (hover: none) and (pointer: coarse) {
|
|
.archive-btn:active::before,
|
|
.delete-btn:active::before {
|
|
opacity: 1;
|
|
transform: translateX(-50%) translateY(-0.25rem);
|
|
}
|
|
}
|
|
|
|
@keyframes fadeIn {
|
|
from {
|
|
opacity: 0;
|
|
}
|
|
to {
|
|
opacity: 1;
|
|
}
|
|
}
|
|
|
|
@keyframes fadeInUp {
|
|
from {
|
|
opacity: 0;
|
|
transform: translateY(20px);
|
|
}
|
|
to {
|
|
opacity: 1;
|
|
transform: translateY(0);
|
|
}
|
|
}
|
|
|
|
@keyframes slideDown {
|
|
from {
|
|
opacity: 0;
|
|
transform: translateY(-10px);
|
|
}
|
|
to {
|
|
opacity: 1;
|
|
transform: translateY(0);
|
|
}
|
|
}
|
|
|
|
@media (max-width: 768px) {
|
|
.toast-container {
|
|
bottom: 0.75rem;
|
|
right: 0.75rem;
|
|
left: 0.75rem;
|
|
align-items: flex-end;
|
|
}
|
|
|
|
.toast {
|
|
white-space: normal;
|
|
max-width: 100%;
|
|
}
|
|
|
|
.top-header-bar {
|
|
padding: 0.75rem 0;
|
|
}
|
|
|
|
.header-row {
|
|
flex-wrap: wrap;
|
|
gap: 0.75rem;
|
|
}
|
|
|
|
.header-left {
|
|
justify-content: flex-start;
|
|
}
|
|
|
|
.app-title {
|
|
font-size: 1.5rem;
|
|
}
|
|
|
|
.title-icon {
|
|
width: 44px;
|
|
height: 44px;
|
|
}
|
|
|
|
.header-right {
|
|
flex-wrap: wrap;
|
|
gap: 0.75rem;
|
|
}
|
|
|
|
/* Remove focus outline and active state persistence on mobile nav buttons */
|
|
.search-toggle-btn,
|
|
.add-link-toggle-btn,
|
|
.lists-toggle-btn,
|
|
.layout-toggle-btn,
|
|
.login-toggle-btn {
|
|
-webkit-tap-highlight-color: transparent;
|
|
-webkit-touch-callout: none;
|
|
touch-action: manipulation;
|
|
width: 44px;
|
|
height: 44px;
|
|
padding: 0.625rem;
|
|
}
|
|
|
|
.search-toggle-btn svg,
|
|
.add-link-toggle-btn svg,
|
|
.lists-toggle-btn svg,
|
|
.layout-toggle-btn svg,
|
|
.login-toggle-btn svg {
|
|
width: 22px;
|
|
height: 22px;
|
|
}
|
|
|
|
.search-toggle-btn:focus,
|
|
.add-link-toggle-btn:focus,
|
|
.lists-toggle-btn:focus,
|
|
.layout-toggle-btn:focus,
|
|
.login-toggle-btn:focus {
|
|
outline: none;
|
|
}
|
|
|
|
/* Prevent active state from persisting when button is not in .active class */
|
|
.search-toggle-btn:active:not(.active),
|
|
.add-link-toggle-btn:active:not(.active),
|
|
.lists-toggle-btn:active:not(.active),
|
|
.layout-toggle-btn:active:not(.active),
|
|
.login-toggle-btn:active:not(.active) {
|
|
background: transparent !important;
|
|
border-color: var(--border) !important;
|
|
color: var(--text-secondary) !important;
|
|
}
|
|
|
|
/* Ensure buttons without .active class return to default state */
|
|
.search-toggle-btn:not(.active),
|
|
.add-link-toggle-btn:not(.active),
|
|
.lists-toggle-btn:not(.active),
|
|
.layout-toggle-btn:not(.active),
|
|
.login-toggle-btn:not(.active) {
|
|
background: transparent !important;
|
|
border-color: var(--border) !important;
|
|
color: var(--text-secondary) !important;
|
|
}
|
|
|
|
/* Extra specificity for lists-toggle-btn to ensure it resets */
|
|
.lists-toggle-btn:not(.active):not(:hover) {
|
|
background: transparent !important;
|
|
border-color: var(--border) !important;
|
|
color: var(--text-secondary) !important;
|
|
}
|
|
|
|
/* Hide username text on mobile, show only logout icon */
|
|
.user-info span {
|
|
display: none;
|
|
}
|
|
|
|
.user-info {
|
|
padding: 0;
|
|
gap: 0;
|
|
min-height: 44px;
|
|
width: 44px;
|
|
height: 44px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
|
|
.logout-btn {
|
|
width: 44px;
|
|
height: 44px;
|
|
padding: 0.625rem;
|
|
margin: 0;
|
|
}
|
|
|
|
.logout-btn svg {
|
|
width: 20px;
|
|
height: 20px;
|
|
}
|
|
|
|
.add-link-toggle-btn {
|
|
display: flex;
|
|
}
|
|
|
|
.lists-toggle-btn {
|
|
width: 44px !important;
|
|
height: 44px !important;
|
|
padding: 0.625rem;
|
|
}
|
|
|
|
.lists-toggle-btn svg {
|
|
width: 22px;
|
|
height: 22px;
|
|
}
|
|
|
|
.layout-toggle-wrapper {
|
|
position: relative;
|
|
}
|
|
|
|
.layout-dropdown {
|
|
right: 0;
|
|
}
|
|
|
|
.add-link-wrapper {
|
|
width: 100%;
|
|
margin: 0;
|
|
padding: 0;
|
|
display: none;
|
|
opacity: 0;
|
|
transform: translateY(-10px);
|
|
transition: opacity 0.3s ease, transform 0.3s ease;
|
|
}
|
|
|
|
.add-link-wrapper.show {
|
|
display: block;
|
|
opacity: 1;
|
|
transform: translateY(0);
|
|
}
|
|
|
|
.add-link-wrapper .input-wrapper {
|
|
height: 52px !important;
|
|
padding: 0.75rem 1rem !important;
|
|
}
|
|
|
|
.add-link-wrapper .input-wrapper #linkInput {
|
|
font-size: 1rem;
|
|
}
|
|
|
|
.add-link-wrapper .input-wrapper .btn-add {
|
|
width: 44px !important;
|
|
height: 44px !important;
|
|
padding: 0.625rem !important;
|
|
}
|
|
|
|
.add-link-wrapper .input-wrapper .btn-add::after {
|
|
font-size: 1.5rem !important;
|
|
}
|
|
|
|
.search-wrapper {
|
|
width: 100%;
|
|
margin: 0;
|
|
padding: 0.75rem 1rem;
|
|
display: none;
|
|
opacity: 0;
|
|
transform: translateY(-10px);
|
|
transition: opacity 0.3s ease, transform 0.3s ease;
|
|
min-height: 52px;
|
|
}
|
|
|
|
.search-wrapper.show {
|
|
display: flex;
|
|
opacity: 1;
|
|
transform: translateY(0);
|
|
}
|
|
|
|
.search-wrapper #searchInput {
|
|
font-size: 1rem;
|
|
}
|
|
|
|
.input-wrapper {
|
|
flex-wrap: nowrap;
|
|
min-height: 48px;
|
|
padding: 0.625rem 1rem;
|
|
}
|
|
|
|
#linkInput {
|
|
font-size: 1rem;
|
|
padding: 0.625rem 0;
|
|
}
|
|
|
|
.btn-add {
|
|
width: 44px;
|
|
height: 44px;
|
|
padding: 0.625rem;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.btn-add::after {
|
|
font-size: 1.75rem;
|
|
}
|
|
|
|
.link-actions {
|
|
flex-wrap: wrap;
|
|
gap: 0.625rem;
|
|
}
|
|
|
|
.archive-btn,
|
|
.delete-btn,
|
|
.add-to-list-btn {
|
|
width: 44px !important;
|
|
height: 44px !important;
|
|
padding: 0.625rem;
|
|
}
|
|
|
|
.archive-btn svg,
|
|
.delete-btn svg,
|
|
.add-to-list-btn svg {
|
|
width: 20px;
|
|
height: 20px;
|
|
}
|
|
|
|
.add-to-list-btn {
|
|
width: 44px !important;
|
|
height: 44px !important;
|
|
padding: 0.625rem;
|
|
}
|
|
|
|
.add-to-list-btn svg {
|
|
width: 20px;
|
|
height: 20px;
|
|
}
|
|
|
|
.edit-lists-btn,
|
|
.clear-list-filters-btn {
|
|
padding: 0.625rem 1rem;
|
|
font-size: 0.9375rem;
|
|
min-height: 44px;
|
|
}
|
|
|
|
.edit-lists-btn svg {
|
|
width: 18px;
|
|
height: 18px;
|
|
}
|
|
|
|
.list-filter-chip {
|
|
padding: 0.625rem 1rem;
|
|
font-size: 0.9375rem;
|
|
min-height: 44px;
|
|
}
|
|
|
|
.archive-toggle-slider {
|
|
width: 50px;
|
|
height: 28px;
|
|
}
|
|
|
|
.archive-toggle-slider:before {
|
|
height: 22px;
|
|
width: 22px;
|
|
}
|
|
|
|
.archive-toggle-switch input:checked + .archive-toggle-slider:before {
|
|
transform: translateX(22px);
|
|
}
|
|
|
|
.links-container {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
|
|
.close-modal-btn,
|
|
.close-overlay-btn {
|
|
width: 44px;
|
|
height: 44px;
|
|
padding: 0.625rem;
|
|
}
|
|
|
|
.close-modal-btn svg,
|
|
.close-overlay-btn svg {
|
|
width: 22px;
|
|
height: 22px;
|
|
}
|
|
|
|
.btn-login,
|
|
.btn-create-list {
|
|
padding: 0.875rem 1.5rem;
|
|
font-size: 1rem;
|
|
min-height: 48px;
|
|
}
|
|
|
|
.form-group input {
|
|
padding: 0.875rem;
|
|
font-size: 1rem;
|
|
min-height: 48px;
|
|
}
|
|
|
|
.create-list-form input {
|
|
padding: 0.875rem;
|
|
font-size: 1rem;
|
|
min-height: 48px;
|
|
}
|
|
}
|
|
|
|
/* Scroll to Top Button */
|
|
.scroll-to-top-btn {
|
|
position: fixed;
|
|
bottom: 2rem;
|
|
right: 2rem;
|
|
width: 50px;
|
|
height: 50px;
|
|
border-radius: 50%;
|
|
background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
|
|
color: white;
|
|
border: none;
|
|
cursor: pointer;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
|
|
transition: all 0.3s ease;
|
|
opacity: 0;
|
|
visibility: hidden;
|
|
transform: translateY(20px);
|
|
z-index: 999;
|
|
}
|
|
|
|
@media (max-width: 768px) {
|
|
.scroll-to-top-btn {
|
|
width: 56px;
|
|
height: 56px;
|
|
bottom: 1.5rem;
|
|
right: 1.5rem;
|
|
}
|
|
|
|
.scroll-to-top-btn svg {
|
|
width: 28px;
|
|
height: 28px;
|
|
}
|
|
}
|
|
|
|
.scroll-to-top-btn.show {
|
|
opacity: 1;
|
|
visibility: visible;
|
|
transform: translateY(0);
|
|
}
|
|
|
|
.scroll-to-top-btn:hover {
|
|
transform: translateY(-3px);
|
|
box-shadow: 0 6px 16px rgba(99, 102, 241, 0.5);
|
|
}
|
|
|
|
.scroll-to-top-btn:active {
|
|
transform: translateY(-1px);
|
|
}
|
|
|
|
.scroll-to-top-btn svg {
|
|
width: 24px;
|
|
height: 24px;
|
|
}
|
|
|
|
@media (max-width: 400px) {
|
|
.header-right {
|
|
flex-wrap: nowrap;
|
|
gap: 0.625rem;
|
|
}
|
|
|
|
.search-wrapper {
|
|
min-width: 100%;
|
|
}
|
|
|
|
.scroll-to-top-btn {
|
|
bottom: 1.5rem;
|
|
right: 1.5rem;
|
|
width: 52px;
|
|
height: 52px;
|
|
}
|
|
|
|
.scroll-to-top-btn svg {
|
|
width: 26px;
|
|
height: 26px;
|
|
}
|
|
}
|
|
|
|
/* Lists Toggle Button */
|
|
.lists-toggle-btn {
|
|
background: transparent;
|
|
border: 1px solid var(--border);
|
|
color: var(--text-secondary);
|
|
padding: 0.5rem;
|
|
border-radius: 8px;
|
|
cursor: pointer;
|
|
transition: all 0.3s ease;
|
|
width: 36px;
|
|
height: 36px;
|
|
flex-shrink: 0;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
.lists-toggle-btn:hover {
|
|
background: var(--surface-light);
|
|
border-color: var(--primary-color);
|
|
color: var(--primary-color);
|
|
}
|
|
|
|
.lists-toggle-btn.active {
|
|
background: rgba(99, 102, 241, 0.1);
|
|
border-color: var(--primary-color);
|
|
color: var(--primary-color);
|
|
}
|
|
|
|
.lists-toggle-btn svg {
|
|
width: 20px;
|
|
height: 20px;
|
|
flex-shrink: 0;
|
|
display: block;
|
|
margin: 0;
|
|
padding: 0;
|
|
}
|
|
|
|
/* List Filter Section */
|
|
.list-filter-wrapper {
|
|
width: 100%;
|
|
padding: 0.75rem 0;
|
|
margin-top: 8px;
|
|
border-top: 1px solid var(--border);
|
|
display: none;
|
|
opacity: 0;
|
|
max-height: 0;
|
|
overflow: hidden;
|
|
transition: opacity 0.3s ease, max-height 0.3s ease, padding 0.3s ease;
|
|
}
|
|
|
|
.list-filter-wrapper.show {
|
|
display: block;
|
|
opacity: 1;
|
|
max-height: 500px;
|
|
}
|
|
|
|
.list-filter-header {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
margin-bottom: 0.5rem;
|
|
}
|
|
|
|
.list-filter-actions {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.5rem;
|
|
}
|
|
|
|
/* Archive Toggle Switch */
|
|
.archive-toggle-switch {
|
|
position: relative;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.5rem;
|
|
cursor: pointer;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.archive-toggle-label {
|
|
font-size: 0.875rem;
|
|
color: var(--text-secondary);
|
|
user-select: none;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.archive-toggle-switch input {
|
|
opacity: 0;
|
|
width: 0;
|
|
height: 0;
|
|
}
|
|
|
|
.archive-toggle-slider {
|
|
position: relative;
|
|
display: inline-block;
|
|
width: 44px;
|
|
height: 24px;
|
|
cursor: pointer;
|
|
background-color: var(--border);
|
|
transition: 0.3s;
|
|
border-radius: 24px;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.archive-toggle-slider:before {
|
|
position: absolute;
|
|
content: "";
|
|
height: 18px;
|
|
width: 18px;
|
|
left: 3px;
|
|
bottom: 3px;
|
|
background-color: white;
|
|
transition: 0.3s;
|
|
border-radius: 50%;
|
|
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
|
|
}
|
|
|
|
.archive-toggle-switch input:checked + .archive-toggle-slider {
|
|
background-color: var(--secondary-color);
|
|
}
|
|
|
|
.archive-toggle-switch input:checked + .archive-toggle-slider:before {
|
|
transform: translateX(20px);
|
|
}
|
|
|
|
.archive-toggle-switch:hover .archive-toggle-slider {
|
|
background-color: var(--text-muted);
|
|
}
|
|
|
|
.archive-toggle-switch input:checked:hover + .archive-toggle-slider {
|
|
background-color: var(--primary-color);
|
|
}
|
|
|
|
.edit-lists-btn {
|
|
background: transparent;
|
|
border: 1px solid var(--border);
|
|
color: var(--text-secondary);
|
|
cursor: pointer;
|
|
font-size: 0.875rem;
|
|
padding: 0.375rem 0.75rem;
|
|
border-radius: 6px;
|
|
transition: all 0.3s ease;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.375rem;
|
|
}
|
|
|
|
.edit-lists-btn:hover {
|
|
background: var(--surface-light);
|
|
border-color: var(--primary-color);
|
|
color: var(--primary-color);
|
|
}
|
|
|
|
.edit-lists-btn svg {
|
|
width: 16px;
|
|
height: 16px;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.list-filter-label {
|
|
font-size: 0.875rem;
|
|
color: var(--text-secondary);
|
|
font-weight: 500;
|
|
}
|
|
|
|
.clear-list-filters-btn {
|
|
background: transparent;
|
|
border: 1px solid var(--border);
|
|
color: var(--text-secondary);
|
|
cursor: pointer;
|
|
font-size: 0.875rem;
|
|
padding: 0.375rem 0.75rem;
|
|
border-radius: 6px;
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
.clear-list-filters-btn:hover {
|
|
background: var(--surface-light);
|
|
border-color: var(--primary-color);
|
|
color: var(--primary-color);
|
|
}
|
|
|
|
.list-filter-chips {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 0.5rem;
|
|
}
|
|
|
|
.list-filter-chip {
|
|
background: transparent;
|
|
border: 1px solid var(--border);
|
|
color: var(--text-secondary);
|
|
padding: 0.375rem 0.75rem;
|
|
border-radius: 6px;
|
|
font-size: 0.875rem;
|
|
cursor: pointer;
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
.list-filter-chip:hover {
|
|
background: var(--surface-light);
|
|
border-color: var(--primary-color);
|
|
color: var(--primary-color);
|
|
}
|
|
|
|
.list-filter-chip.active {
|
|
background: rgba(99, 102, 241, 0.1);
|
|
border-color: var(--primary-color);
|
|
color: var(--primary-color);
|
|
}
|
|
|
|
/* Lists Management Modal */
|
|
.lists-modal {
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
background: rgba(0, 0, 0, 0.7);
|
|
backdrop-filter: blur(4px);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
z-index: 1000;
|
|
opacity: 0;
|
|
visibility: hidden;
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
.lists-modal.show {
|
|
opacity: 1;
|
|
visibility: visible;
|
|
}
|
|
|
|
.lists-modal-content {
|
|
background: var(--surface);
|
|
border-radius: 1rem;
|
|
width: 90%;
|
|
max-width: 600px;
|
|
max-height: 80vh;
|
|
display: flex;
|
|
flex-direction: column;
|
|
box-shadow: 0 20px 60px var(--shadow-lg);
|
|
transform: scale(0.9);
|
|
transition: transform 0.3s ease;
|
|
}
|
|
|
|
.lists-modal.show .lists-modal-content {
|
|
transform: scale(1);
|
|
}
|
|
|
|
.lists-modal-header {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
padding: 1.5rem;
|
|
border-bottom: 1px solid var(--border);
|
|
}
|
|
|
|
.lists-modal-header h2 {
|
|
margin: 0;
|
|
font-size: 1.5rem;
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
.close-modal-btn {
|
|
background: transparent;
|
|
border: 1px solid var(--border);
|
|
color: var(--text-secondary);
|
|
cursor: pointer;
|
|
padding: 0.5rem;
|
|
border-radius: 8px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
transition: all 0.3s ease;
|
|
width: 36px;
|
|
height: 36px;
|
|
}
|
|
|
|
.close-modal-btn:hover {
|
|
background: var(--surface-light);
|
|
border-color: var(--primary-color);
|
|
color: var(--primary-color);
|
|
}
|
|
|
|
.lists-modal-body {
|
|
padding: 1.5rem;
|
|
overflow-y: auto;
|
|
flex: 1;
|
|
}
|
|
|
|
.create-list-form {
|
|
display: flex;
|
|
gap: 0.75rem;
|
|
margin-bottom: 1.5rem;
|
|
}
|
|
|
|
.create-list-form input {
|
|
flex: 1;
|
|
background: var(--background);
|
|
border: 1px solid var(--border);
|
|
color: var(--text-primary);
|
|
padding: 0.75rem;
|
|
border-radius: 0.5rem;
|
|
font-size: 1rem;
|
|
}
|
|
|
|
.create-list-form input:focus {
|
|
outline: none;
|
|
border-color: var(--primary-color);
|
|
}
|
|
|
|
.btn-create-list {
|
|
background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
|
|
color: white;
|
|
border: none;
|
|
padding: 0.75rem 1.5rem;
|
|
border-radius: 8px;
|
|
cursor: pointer;
|
|
font-weight: 600;
|
|
transition: all 0.3s ease;
|
|
box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
|
|
}
|
|
|
|
.btn-create-list:hover {
|
|
transform: translateY(-1px);
|
|
box-shadow: 0 6px 16px rgba(99, 102, 241, 0.4);
|
|
}
|
|
|
|
.btn-create-list:active {
|
|
transform: translateY(0);
|
|
}
|
|
|
|
.lists-list {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0.75rem;
|
|
}
|
|
|
|
.list-item {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.75rem;
|
|
padding: 0.75rem;
|
|
background: var(--background);
|
|
border-radius: 0.5rem;
|
|
border: 1px solid var(--border);
|
|
min-width: 0;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.list-name-input {
|
|
flex: 1;
|
|
min-width: 0;
|
|
background: transparent;
|
|
border: none;
|
|
color: var(--text-primary);
|
|
font-size: 1rem;
|
|
padding: 0.25rem 0.5rem;
|
|
border-radius: 0.25rem;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
}
|
|
|
|
.list-name-input:focus {
|
|
outline: 2px solid var(--primary-color);
|
|
outline-offset: 2px;
|
|
}
|
|
|
|
.list-item-actions {
|
|
display: flex;
|
|
gap: 0.5rem;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.toggle-public-btn,
|
|
.public-url-btn,
|
|
.save-list-btn,
|
|
.delete-list-btn {
|
|
background: transparent;
|
|
color: var(--text-muted);
|
|
border: 1px solid var(--border);
|
|
padding: 0.375rem;
|
|
border-radius: 6px;
|
|
cursor: pointer;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
transition: all 0.3s ease;
|
|
position: relative;
|
|
}
|
|
|
|
.toggle-public-btn svg,
|
|
.public-url-btn svg,
|
|
.save-list-btn svg,
|
|
.delete-list-btn svg {
|
|
width: 16px;
|
|
height: 16px;
|
|
stroke-width: 2;
|
|
}
|
|
|
|
.toggle-public-btn {
|
|
color: var(--success);
|
|
border-color: rgba(16, 185, 129, 0.3);
|
|
}
|
|
|
|
.toggle-public-btn:hover {
|
|
background: rgba(16, 185, 129, 0.2);
|
|
border-color: var(--success);
|
|
color: var(--success);
|
|
}
|
|
|
|
.toggle-public-btn.active {
|
|
color: var(--text-secondary);
|
|
border-color: rgba(156, 163, 175, 0.3);
|
|
}
|
|
|
|
.toggle-public-btn.active:hover {
|
|
background: var(--surface-light);
|
|
border-color: var(--text-secondary);
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
.public-url-btn {
|
|
color: var(--primary-color);
|
|
border-color: rgba(99, 102, 241, 0.3);
|
|
}
|
|
|
|
.public-url-btn:hover {
|
|
background: rgba(99, 102, 241, 0.2);
|
|
border-color: var(--primary-color);
|
|
color: var(--primary-color);
|
|
}
|
|
|
|
.save-list-btn {
|
|
color: var(--success);
|
|
border-color: rgba(16, 185, 129, 0.3);
|
|
}
|
|
|
|
.save-list-btn:hover {
|
|
background: rgba(16, 185, 129, 0.2);
|
|
border-color: var(--success);
|
|
color: var(--success);
|
|
}
|
|
|
|
.delete-list-btn {
|
|
color: var(--error);
|
|
border-color: rgba(239, 68, 68, 0.3);
|
|
}
|
|
|
|
.delete-list-btn:hover {
|
|
background: rgba(239, 68, 68, 0.2);
|
|
border-color: var(--error);
|
|
color: var(--error);
|
|
}
|
|
|
|
.empty-lists-message {
|
|
text-align: center;
|
|
color: var(--text-muted);
|
|
padding: 2rem;
|
|
}
|
|
|
|
/* Login Modal */
|
|
.login-modal {
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
background: rgba(0, 0, 0, 0.7);
|
|
backdrop-filter: blur(4px);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
z-index: 1000;
|
|
opacity: 0;
|
|
visibility: hidden;
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
.login-modal.show {
|
|
opacity: 1;
|
|
visibility: visible;
|
|
}
|
|
|
|
.login-modal-content {
|
|
background: var(--surface);
|
|
border-radius: 1rem;
|
|
width: 90%;
|
|
max-width: 400px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
box-shadow: 0 20px 60px var(--shadow-lg);
|
|
transform: scale(0.9);
|
|
transition: transform 0.3s ease;
|
|
}
|
|
|
|
.login-modal.show .login-modal-content {
|
|
transform: scale(1);
|
|
}
|
|
|
|
.login-modal-header {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
padding: 0.8rem;
|
|
border-bottom: 1px solid var(--border);
|
|
}
|
|
|
|
.login-modal-header h2 {
|
|
margin: 0;
|
|
font-size: 1.5rem;
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
.login-modal-body {
|
|
padding: 1.5rem;
|
|
}
|
|
|
|
.login-form {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 1rem;
|
|
}
|
|
|
|
.form-group {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0.5rem;
|
|
}
|
|
|
|
.form-group label {
|
|
color: var(--text-secondary);
|
|
font-size: 0.875rem;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.form-group input {
|
|
background: var(--background);
|
|
border: 1px solid var(--border);
|
|
color: var(--text-primary);
|
|
padding: 0.75rem;
|
|
border-radius: 0.5rem;
|
|
font-size: 1rem;
|
|
transition: border-color 0.3s ease;
|
|
}
|
|
|
|
.form-group input:focus {
|
|
outline: none;
|
|
border-color: var(--primary-color);
|
|
}
|
|
|
|
.login-error {
|
|
background: rgba(239, 68, 68, 0.1);
|
|
border: 1px solid var(--error);
|
|
color: var(--error);
|
|
padding: 0.75rem;
|
|
border-radius: 0.5rem;
|
|
font-size: 0.875rem;
|
|
}
|
|
|
|
.btn-login {
|
|
background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
|
|
color: white;
|
|
border: none;
|
|
padding: 0.75rem 1.5rem;
|
|
border-radius: 8px;
|
|
cursor: pointer;
|
|
font-weight: 600;
|
|
transition: all 0.3s ease;
|
|
box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 0.5rem;
|
|
}
|
|
|
|
.btn-login:hover:not(:disabled) {
|
|
transform: translateY(-1px);
|
|
box-shadow: 0 6px 16px rgba(99, 102, 241, 0.4);
|
|
}
|
|
|
|
.btn-login:active:not(:disabled) {
|
|
transform: translateY(0);
|
|
}
|
|
|
|
.btn-login:disabled {
|
|
opacity: 0.6;
|
|
cursor: not-allowed;
|
|
}
|
|
|
|
.btn-login .btn-loader {
|
|
display: none;
|
|
animation: spin 1s linear infinite;
|
|
}
|
|
|
|
@keyframes spin {
|
|
from {
|
|
transform: rotate(0deg);
|
|
}
|
|
to {
|
|
transform: rotate(360deg);
|
|
}
|
|
}
|
|
|
|
/* List Selection Overlay */
|
|
.list-selection-overlay {
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
background: rgba(0, 0, 0, 0.7);
|
|
backdrop-filter: blur(4px);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
z-index: 1001;
|
|
opacity: 0;
|
|
visibility: hidden;
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
.list-selection-overlay.show {
|
|
opacity: 1;
|
|
visibility: visible;
|
|
}
|
|
|
|
.list-selection-content {
|
|
background: var(--surface);
|
|
border-radius: 1rem;
|
|
width: 90%;
|
|
max-width: 500px;
|
|
max-height: 80vh;
|
|
display: flex;
|
|
flex-direction: column;
|
|
box-shadow: 0 20px 60px var(--shadow-lg);
|
|
transform: scale(0.9);
|
|
transition: transform 0.3s ease;
|
|
}
|
|
|
|
.list-selection-overlay.show .list-selection-content {
|
|
transform: scale(1);
|
|
}
|
|
|
|
.list-selection-header {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
padding: 0.8rem;
|
|
border-bottom: 1px solid var(--border);
|
|
}
|
|
|
|
.list-selection-header h3 {
|
|
margin: 0;
|
|
font-size: 1.25rem;
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
.close-overlay-btn {
|
|
background: transparent;
|
|
border: 1px solid var(--border);
|
|
color: var(--text-secondary);
|
|
cursor: pointer;
|
|
padding: 0.5rem;
|
|
border-radius: 8px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
transition: all 0.3s ease;
|
|
width: 36px;
|
|
height: 36px;
|
|
}
|
|
|
|
.close-overlay-btn:hover {
|
|
background: var(--surface-light);
|
|
border-color: var(--primary-color);
|
|
color: var(--primary-color);
|
|
}
|
|
|
|
.list-selection-body {
|
|
padding: 1.5rem;
|
|
overflow-y: auto;
|
|
max-height: 400px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0.75rem;
|
|
}
|
|
|
|
.list-checkbox-item {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.75rem;
|
|
padding: 0.75rem;
|
|
background: var(--background);
|
|
border-radius: 0.5rem;
|
|
border: 1px solid var(--border);
|
|
cursor: pointer;
|
|
transition: all 0.2s ease;
|
|
}
|
|
|
|
.list-checkbox-item:hover {
|
|
background: var(--surface-light);
|
|
}
|
|
|
|
.list-checkbox-item input[type="checkbox"] {
|
|
width: 18px;
|
|
height: 18px;
|
|
cursor: pointer;
|
|
accent-color: var(--primary-color);
|
|
}
|
|
|
|
.list-checkbox-item span {
|
|
color: var(--text-primary);
|
|
flex: 1;
|
|
}
|
|
|
|
|
|
/* Add to List Button in Link Cards */
|
|
.add-to-list-btn {
|
|
background: transparent;
|
|
color: var(--text-muted);
|
|
border: 1px solid var(--border);
|
|
padding: 0.375rem;
|
|
border-radius: 6px;
|
|
cursor: pointer;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
transition: all 0.3s ease;
|
|
position: relative;
|
|
width: 32px;
|
|
height: 32px;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
.add-to-list-btn svg {
|
|
width: 16px;
|
|
height: 16px;
|
|
stroke-width: 2;
|
|
flex-shrink: 0;
|
|
display: block;
|
|
margin: 0;
|
|
padding: 0;
|
|
}
|
|
|
|
.add-to-list-btn {
|
|
color: var(--primary-color);
|
|
border-color: rgba(99, 102, 241, 0.3);
|
|
}
|
|
|
|
.add-to-list-btn:hover {
|
|
background: rgba(99, 102, 241, 0.2);
|
|
border-color: var(--primary-color);
|
|
color: var(--primary-color);
|
|
}
|
|
|
|
@media (max-width: 768px) {
|
|
.lists-modal-content,
|
|
.list-selection-content {
|
|
width: 95%;
|
|
max-height: 90vh;
|
|
}
|
|
|
|
.create-list-form {
|
|
flex-direction: column;
|
|
}
|
|
|
|
.list-item {
|
|
gap: 0.5rem;
|
|
padding: 0.5rem;
|
|
}
|
|
|
|
.list-name-input {
|
|
font-size: 0.9rem;
|
|
padding: 0.25rem;
|
|
}
|
|
|
|
.list-item-actions {
|
|
gap: 0.25rem;
|
|
}
|
|
|
|
.toggle-public-btn,
|
|
.public-url-btn,
|
|
.save-list-btn,
|
|
.delete-list-btn {
|
|
padding: 0.625rem;
|
|
min-width: 44px;
|
|
width: 44px;
|
|
height: 44px;
|
|
}
|
|
|
|
.toggle-public-btn svg,
|
|
.public-url-btn svg,
|
|
.save-list-btn svg,
|
|
.delete-list-btn svg {
|
|
width: 20px;
|
|
height: 20px;
|
|
}
|
|
|
|
.list-item {
|
|
padding: 0.75rem;
|
|
}
|
|
|
|
.list-name-input {
|
|
font-size: 1rem;
|
|
padding: 0.5rem;
|
|
min-height: 44px;
|
|
}
|
|
}
|
|
|
|
/* Hide page title on very small screens */
|
|
@media (max-width: 357px) {
|
|
.app-title {
|
|
display: none;
|
|
}
|
|
}
|
|
|