:root {
    --primary-color: #00f2fe;
    --secondary-color: #4facfe;
    --bg-dark: #0f172a;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --glass-bg: rgba(30, 41, 59, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
    --sidebar-bg: rgba(15, 23, 42, 0.8);
    --sidebar-hover: rgba(255, 255, 255, 0.1);
    --btn-bg: rgba(255, 255, 255, 0.1);
    --btn-hover: rgba(255, 255, 255, 0.2);
    --title-gradient: linear-gradient(to right, #fff, #a5b4fc);
}

[data-theme="light"] {
    --primary-color: #0093E9;
    --secondary-color: #80D0C7;
    --bg-dark: #ffffff;
    --text-main: #0f172a;
    --text-muted: #475569;
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(0, 0, 0, 0.1);
    --sidebar-bg: #f1f5f9;
    --sidebar-hover: rgba(0, 0, 0, 0.05);
    --btn-bg: rgba(0, 0, 0, 0.05);
    --btn-hover: rgba(0, 0, 0, 0.1);
    --title-gradient: linear-gradient(to right, #0f172a, #64748b);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body, html {
    width: 100%;
    height: 100%;
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    overflow: hidden;
}

/* 
  We use a background image for the gradient to ensure it doesn't 
  create stray elements that push content around 
*/
body {
    background-color: var(--bg-dark);
    background-image: 
        radial-gradient(circle at 15% 50%, rgba(0, 242, 254, 0.15), transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(79, 172, 254, 0.15), transparent 25%);
}

/* Centering Wrapper */
.app-wrapper {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
}

/* Glass Container */
.glass-container {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 4rem;
    max-width: 600px;
    width: 100%;
    text-align: center;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.8s ease-out forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Content Styles */
.logo-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 2rem;
}

.icon-pulse {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1.5rem;
    box-shadow: 0 0 30px rgba(79, 172, 254, 0.4);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(79, 172, 254, 0.4); }
    70% { box-shadow: 0 0 0 20px rgba(79, 172, 254, 0); }
    100% { box-shadow: 0 0 0 0 rgba(79, 172, 254, 0); }
}

.pre-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--primary-color);
}

.main-title {
    font-family: 'Outfit', sans-serif;
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1rem;
    background: var(--title-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.main-title span {
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.description {
    color: var(--text-muted);
    font-size: 1.125rem;
    line-height: 1.6;
    margin-bottom: 3rem;
}

/* Status Badge */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.dot {
    width: 8px;
    height: 8px;
    background-color: var(--primary-color);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--primary-color);
    animation: blink 1.5s infinite alternate;
}

@keyframes blink {
    from { opacity: 0.5; }
    to { opacity: 1; }
}

/* Responsive */
@media (max-width: 640px) {
    .glass-container { padding: 2rem; }
    .main-title { font-size: 3rem; }
    .description { font-size: 1rem; }
}

/* Primary Button */
.btn-primary {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 9999px;
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    border: none;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 15px rgba(79, 172, 254, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(79, 172, 254, 0.4);
}

/* Modal Overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

/* Modal Container */
.modal-container {
    width: 90vw;
    height: 85vh;
    max-width: 1200px;
    max-height: 800px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: scale(0.95);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-overlay.active .modal-container {
    transform: scale(1);
}

/* Header */
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 2rem;
    border-bottom: 1px solid var(--glass-border);
    background: rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .modal-header {
    background: rgba(0, 0, 0, 0.02);
}

.modal-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-main);
}

.modal-header-actions {
    display: flex;
    gap: 0.75rem;
}

.modal-btn-icon {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.modal-btn-icon:hover {
    color: var(--text-main);
    background: var(--sidebar-hover);
}

/* Body Layout */
.modal-body {
    flex: 1;
    display: flex;
    overflow: hidden;
}

/* Modal Sidebar */
.modal-sidebar {
    width: 240px;
    border-right: 1px solid var(--glass-border);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    background: rgba(0, 0, 0, 0.02);
    position: relative;
    z-index: 1;
}

.btn-upload {
    background: #0093E9; /* solid blue wix style */
    color: white;
    font-weight: 600;
    border: none;
    padding: 0.75rem 1.25rem;
    border-radius: 10px;
    cursor: pointer;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(0, 147, 233, 0.3);
}

.btn-upload:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0, 147, 233, 0.4);
}

.modal-sidebar-menu {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    overflow-y: auto;
}

.menu-section-header {
    font-size: 0.65rem;
    font-weight: 800;
    color: var(--text-muted);
    letter-spacing: 0.1em;
    margin: 1rem 0 0.5rem 0.75rem;
}

.modal-menu-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.modal-menu-item:hover, 
.modal-menu-item.active {
    background: var(--sidebar-hover);
    color: var(--text-main);
}

.modal-menu-item.active {
    background: rgba(0, 147, 233, 0.1);
    color: var(--primary-color);
}

.spark-icon {
    color: var(--primary-color);
}

.modal-sidebar-footer {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--glass-border);
}

.storage-text {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.storage-bar {
    height: 4px;
    background: var(--glass-border);
    border-radius: 2px;
    overflow: hidden;
}

.storage-progress {
    height: 100%;
    background: var(--primary-color);
}

.upgrade-link {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
}

.upgrade-link:hover {
    text-decoration: underline;
}

/* Center Content */
.modal-main-content {
    flex: 1;
    padding: 1.5rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    overflow-y: auto;
    position: relative;
    z-index: 2;
}

.modal-search-bar {
    position: relative;
    width: 100%;
}

.modal-search-bar .search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.modal-search-bar input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    border-radius: 30px;
    border: 1px solid var(--glass-border);
    background: var(--glass-bg);
    color: var(--text-main);
    font-size: 0.9rem;
    outline: none;
    transition: all 0.2s ease;
}

.modal-search-bar input:focus {
    border-color: var(--primary-color);
}

.modal-sub-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-content-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-main);
}

.modal-content-actions {
    display: flex;
    gap: 0.5rem;
}

.action-btn {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--text-muted);
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.action-btn:hover {
    background: var(--btn-hover);
    color: var(--text-main);
    border-color: var(--text-muted);
}

/* Modal Grid */
.modal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 1.5rem;
}

.grid-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    text-align: center;
    padding: 0.5rem;
    border-radius: 12px;
    border: 1px solid transparent;
    transition: all 0.2s ease;
    position: relative;
}

/* Hover/Selection Actions Overlay on Grid Items */
.item-actions-overlay {
    position: absolute;
    top: 8px;
    right: 8px;
    display: none;
    gap: 4px;
    z-index: 10;
}

.grid-item:hover .item-actions-overlay,
.grid-item.selected .item-actions-overlay {
    display: flex;
}

.item-action-btn-sm {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
}

.item-action-btn-sm:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--bg-dark);
}

.grid-item.selected {
    border-color: var(--primary-color) !important;
    background: var(--sidebar-hover) !important;
}

.grid-item.selected .item-preview {
    border-color: var(--primary-color) !important;
}

.grid-item:hover {
    background: var(--sidebar-hover);
    border-color: var(--glass-border);
}

.item-preview {
    width: 120px;
    height: 90px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: all 0.2s ease;
}

.folder-item .item-preview {
    background: transparent !important;
    border: 1px solid transparent !important;
}

.grid-item:hover .item-preview {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.folder-item:hover .item-preview,
.folder-item.selected .item-preview {
    border-color: transparent !important;
}

.folder-large-icon {
    width: 64px;
    height: 64px;
    color: var(--primary-color);
}

.file-large-icon {
    width: 40px;
    height: 40px;
    color: var(--text-muted);
}

.item-name {
    font-size: 0.75rem;
    color: var(--text-main);
    word-break: break-all;
    max-width: 110px;
    font-weight: 500;
}

/* Right Detail Panel */
.modal-detail-panel {
    width: 270px;
    border-left: 1px solid var(--glass-border);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
    background: rgba(0, 0, 0, 0.01);
    overflow-y: auto;
}

.detail-illustration {
    width: 100%;
    height: 140px;
    background: var(--sidebar-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.detail-title-input {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-main);
    font-family: 'Outfit', sans-serif;
    background: transparent;
    border: 1px solid transparent;
    text-align: left;
    padding: 0.25rem 0;
    border-radius: 6px;
    width: 100%;
    outline: none;
    transition: all 0.2s ease;
}

.detail-title-input:hover {
    border-color: var(--glass-border);
    background: rgba(255, 255, 255, 0.02);
}

.detail-title-input:focus {
    border-color: var(--primary-color);
    background: var(--bg-dark);
    box-shadow: 0 0 10px rgba(0, 242, 254, 0.15);
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

[data-theme="light"] .detail-title-input:focus {
    background: #ffffff;
}

.detail-section {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.detail-section-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.section-action-icons {
    display: flex;
    gap: 0.375rem;
}

.icon-btn-sm,
.accordion-toggle-btn {
    background: transparent;
    border: 1.5px solid var(--primary-color);
    color: var(--primary-color);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
}

.icon-btn-sm:hover,
.accordion-toggle-btn:hover,
.icon-btn-sm.active {
    background: rgba(0, 147, 233, 0.08);
    color: var(--primary-color);
    border-color: var(--primary-color);
    box-shadow: 0 0 8px rgba(0, 147, 233, 0.2);
}

[data-theme="dark"] .icon-btn-sm:hover,
[data-theme="dark"] .accordion-toggle-btn:hover {
    background: rgba(0, 242, 254, 0.08);
    box-shadow: 0 0 8px rgba(0, 242, 254, 0.2);
}

.accordion-toggle-btn svg {
    transition: transform 0.3s ease;
}

.accordion-toggle-btn.collapsed svg {
    transform: rotate(180deg);
}

/* Collapsible Info content */
.detail-info-content {
    max-height: 300px;
    opacity: 1;
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding-top: 0.25rem;
}

.detail-info-content.collapsed {
    max-height: 0;
    opacity: 0;
    padding-top: 0;
    padding-bottom: 0;
    pointer-events: none;
}

.info-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.info-label {
    font-weight: 500;
}

.info-value {
    color: var(--text-main);
    text-align: right;
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Dropdown Flyout Menu */
.actions-dropdown-menu {
    position: absolute;
    top: 30px;
    right: 0;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    width: 180px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.4);
    z-index: 100;
    padding: 0.375rem;
    display: none;
    flex-direction: column;
    gap: 0.125rem;
    animation: dropdownFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="light"] .actions-dropdown-menu {
    background: #ffffff;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.15);
}

@keyframes dropdownFadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.actions-dropdown-menu.active {
    display: flex;
}

.dropdown-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0.75rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-main);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.dropdown-item:hover {
    background: var(--sidebar-hover);
    color: var(--primary-color);
}

.dropdown-item.disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.dropdown-item.disabled:hover {
    background: transparent;
    color: var(--text-main);
}

.dropdown-item.danger {
    color: #f87171;
}

.dropdown-item.danger:hover {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.dropdown-divider {
    height: 1px;
    background: var(--glass-border);
    margin: 0.25rem 0;
}

.dropdown-item .shortcut {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-weight: 400;
}

.detail-subtitle {
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.detail-action-link {
    font-size: 0.85rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    transition: all 0.2s ease;
}

.detail-action-link:hover {
    text-decoration: underline;
}

.detail-info-text {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.collaborator-link {
    color: var(--primary-color);
    text-decoration: none;
}

.collaborator-link:hover {
    text-decoration: underline;
}


/* Modal Footer */
.modal-footer {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 2rem;
    border-top: 1px solid var(--glass-border);
    background: rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .modal-footer {
    background: rgba(0, 0, 0, 0.02);
}

.btn-cancel {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 30px;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s ease;
}

.btn-cancel:hover {
    background: var(--btn-hover);
}

.btn-add-page {
    background: var(--text-muted);
    color: var(--bg-dark);
    font-weight: 600;
    border: none;
    padding: 0.75rem 1.75rem;
    border-radius: 30px;
    cursor: not-allowed;
    font-family: inherit;
    opacity: 0.5;
    transition: all 0.2s ease;
}

.detail-type-txt {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 600;
    margin-top: -0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.item-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
}

.image-float-btn {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0, 0, 0, 0.12);
    color: var(--text-muted);
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

.image-float-btn:hover {
    background: #ffffff;
    color: var(--primary-color);
    border-color: var(--primary-color);
    transform: scale(1.08);
}

.info-link {
    color: #116ae8;
    text-decoration: none;
    cursor: pointer;
    font-weight: 500;
}

.info-link:hover {
    text-decoration: underline;
}

/* Boards Grid & Cards Layout */
.boards-view-container {
    width: 100%;
}

.boards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1.5rem;
    padding-top: 0.5rem;
    width: 100%;
}

.board-card {
    background: var(--glass-bg);
    border: 1.5px solid var(--glass-border);
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    height: 180px;
    position: relative;
}

.board-card:hover {
    transform: translateY(-2px);
    border-color: var(--primary-color) !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.create-new-board-card {
    border: 1.5px dashed var(--primary-color);
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
}

.create-board-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    color: var(--primary-color);
    font-size: 0.8rem;
    font-weight: 600;
}

.board-card-preview {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.favorites-preview {
    background: #fefef0;
}

.board-card-info {
    padding: 0.6rem 0.75rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 0, 0, 0.02);
    border-top: 1px solid var(--glass-border);
}

.board-card-name {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-main);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 110px;
}

.board-share-icon {
    color: var(--text-muted);
    display: flex;
    align-items: center;
}

.create-new-board-card:hover {
    background: rgba(0, 147, 233, 0.05) !important;
}

/* Dark mode adjustment for favorites preview background */
.favorites-preview {
    background: #fefef0;
}

[data-theme="dark"] .favorites-preview {
    background: rgba(251, 191, 36, 0.05) !important;
}

.board-card-preview {
    position: relative;
}

.board-card-overlay-actions {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.4);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 5;
}

.board-card:hover .board-card-overlay-actions,
.board-card.selected .board-card-overlay-actions {
    display: flex;
}

.board-open-btn {
    background: #0093E9;
    color: white;
    font-weight: 700;
    font-size: 0.75rem;
    border: none;
    padding: 0.35rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 147, 233, 0.3);
    transition: all 0.2s;
}

.board-open-btn:hover {
    transform: scale(1.05);
    background: #0082d0;
}

.board-menu-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.75);
    border: none;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
}

.board-menu-btn:hover {
    background: rgba(15, 23, 42, 0.9);
}

.board-card.selected {
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 1px var(--primary-color);
}

/* Login Modal Styling */
.login-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.login-modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.login-modal-container {
    width: 90vw;
    max-width: 420px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: scale(0.96);
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

[data-theme="light"] .login-modal-container {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.08);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.login-modal-overlay.active .login-modal-container {
    transform: scale(1);
}

.login-modal-header {
    padding: 1.25rem 1.75rem;
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

[data-theme="light"] .login-modal-header {
    border-bottom-color: rgba(0, 0, 0, 0.05);
}

.login-modal-header h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-main);
}

.login-modal-close {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.login-modal-close:hover {
    background: var(--sidebar-hover);
    color: var(--text-main);
}

.login-modal-body {
    padding: 1.75rem;
}

.login-form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.login-form-group label {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-muted);
}

[data-theme="light"] .login-form-group label {
    color: #475569;
}

.login-form-group input {
    border: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-main);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    outline: none;
    transition: all 0.2s ease;
}

[data-theme="light"] .login-form-group input {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.15);
    color: #0f172a;
}

.login-form-group input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 242, 254, 0.15);
}

[data-theme="light"] .login-form-group input:focus {
    border-color: #0093E9;
    box-shadow: 0 0 0 3px rgba(0, 147, 233, 0.15);
}

.login-error-text {
    color: #ef4444;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    min-height: 1.2rem;
    display: none;
}

.btn-login-submit {
    width: 100%;
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.75rem;
    border-radius: 24px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(0, 242, 254, 0.2);
}

[data-theme="light"] .btn-login-submit {
    background: #0093E9;
    box-shadow: 0 4px 12px rgba(0, 147, 233, 0.2);
}

.btn-login-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0, 242, 254, 0.3);
}

[data-theme="light"] .btn-login-submit:hover {
    background: #0076bc;
}




