/* Orbify Collection - Design System & Styles */

:root {
    /* Colors */
    --bg-base: #0b0d11;
    --bg-sidebar: #12151b;
    --bg-surface: #191d24;
    --bg-surface-hover: #222731;
    --bg-card: #15181e;

    --primary: #31ff5d;
    --primary-glow: rgba(49, 255, 93, 0.4);
    --secondary: #1a2e20;
    --accent-cyan: #31ff5d;
    --accent-sage: #7da884;

    --text-primary: #f3f4f6;
    --text-muted: #9ca3af;
    --text-disabled: #4b5563;

    --border-color: rgba(255, 255, 255, 0.08);
    --border-color-hover: rgba(255, 255, 255, 0.15);
    --glass-bg: rgba(25, 29, 36, 0.6);
    --glass-border: rgba(255, 255, 255, 0.05);

    /* Collection States */
    --status-owned: #2ecc71;
    --status-wishlist: #f1c40f;
    --status-lent: #e74c3c;

    /* Fonts & Sizes */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Radii & Shadows */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-full: 9999px;

    --shadow-sm: none;
    --shadow-md: none;
    --shadow-lg: none;

    /* Layout */
    --sidebar-width: 290px;
    --topbar-height: 80px;

    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html,
body {
    background-color: var(--bg-base);
    color: var(--text-primary);
    font-family: var(--font-body);
    overflow: hidden;
    -webkit-font-smoothing: antialiased;
    overscroll-behavior: none;
    overscroll-behavior-y: none;
    overscroll-behavior-x: none;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-base);
}

::-webkit-scrollbar-thumb {
    background: var(--bg-surface);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--bg-surface-hover);
}

/* Main Container Grid layout */
.app-container {
    display: flex;
    width: 100vw;
    height: 100vh;
}

/* Sidebar Styling */
.sidebar {
    width: var(--sidebar-width);
    height: 100%;
    background-color: var(--bg-sidebar);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    padding: 24px;
    flex-shrink: 0;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 32px;
}

.logo-container {
    width: 38px;
    height: 38px;
    background: rgba(25, 29, 36, 0.6);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    box-shadow: none;
    flex-shrink: 0;
}

.logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    transition: transform var(--transition-fast);
}

.logo-container:hover .logo-img {
    transform: scale(1.1) rotate(6deg);
}

.brand h1 {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.5px;
    background: linear-gradient(to right, #fff, #d1d5db);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Profile Card */
.profile-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(12px);
    border-radius: var(--radius-lg);
    padding: 16px;
    margin-bottom: 32px;
}

.profile-card .avatar {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    overflow: hidden;
    border: 2px solid var(--primary);
    margin-bottom: 12px;
}

.profile-card .avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-info h3 {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 600;
}

.profile-info .role {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.profile-stats {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid var(--border-color);
    padding-top: 12px;
}

.profile-stats .stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
}

.profile-stats .stat:not(:last-child) {
    border-right: 1px solid var(--border-color);
}

.profile-stats .stat-val {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 700;
    color: var(--accent-cyan);
}

.profile-stats .stat-lbl {
    font-size: 10px;
    color: var(--text-muted);
    text-transform: uppercase;
}

/* Sidebar Nav Menu */
.nav-menu {
    flex-grow: 1;
}

.nav-section-title {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    margin-bottom: 16px;
    font-weight: 600;
}

.nav-list {
    list-style: none;
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    cursor: pointer;
    margin-bottom: 8px;
    transition: var(--transition-fast);
    position: relative;
}

.nav-item:hover:not(.disabled) {
    background-color: var(--bg-surface);
    color: #fff;
}

.nav-item.active,
.nav-item.active:hover {
    background-color: var(--primary);
    color: #0b0d11;
    font-weight: 600;
}

.nav-icon {
    margin-right: 12px;
    display: flex;
    align-items: center;
}

.nav-icon i,
.nav-icon svg {
    width: 18px;
    height: 18px;
}

.nav-item.active .nav-label {
    color: #0b0d11;
    font-weight: 600;
}

.nav-item.active .nav-icon {
    color: #0b0d11;
}

.nav-item.active .nav-icon i,
.nav-item.active .nav-icon svg {
    stroke: #0b0d11;
    color: #0b0d11;
}

.nav-label {
    font-size: 14px;
    font-weight: 500;
    flex-grow: 1;
}

.nav-badge {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    font-size: 11px;
    padding: 2px 8px;
    border-radius: var(--radius-full);
    font-weight: 600;
}

.nav-item.active .nav-badge {
    background-color: rgba(0, 0, 0, 0.16);
    color: #0b0d11;
    font-weight: 700;
}

.sidebar-footer {
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

/* Buttons */
.btn-primary,
.btn-secondary,
.btn-danger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: none;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition-fast);
}

.btn-primary {
    background: linear-gradient(135deg, #31ff5d, #1ecb47);
    color: #0b0d11;
    font-weight: 700;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #45ff6d, #25e052);
    color: #0b0d11;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: var(--bg-surface);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    width: 100%;
}

.btn-secondary:hover {
    background-color: var(--bg-surface-hover);
    border-color: var(--border-color-hover);
}

/* Main Workspace Area */
.main-content {
    flex-grow: 1;
    height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: var(--bg-base);
    overflow: hidden;
}

/* Topbar */
.topbar {
    height: var(--topbar-height);
    padding: 0 40px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}

.search-box {
    position: relative;
    width: 320px;
}

.search-box input {
    width: 100%;
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    padding: 10px 16px 10px 42px;
    color: #fff;
    font-family: var(--font-body);
    font-size: 13px;
    transition: var(--transition-fast);
}

.search-box input:focus {
    outline: none;
    border-color: var(--primary);

}

.search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    width: 18px;
    height: 18px;
    pointer-events: none;
}

/* Dashboard Section */
.dashboard-section {
    padding: 32px 40px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 24px;
}

.section-header h2 {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 4px;
}

.section-header .subtitle {
    color: var(--text-muted);
    font-size: 14px;
}

.view-options select {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 13px;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    outline: none;
    cursor: pointer;
}

.view-options select:focus {
    border-color: var(--primary);
}

/* Quick Filters */
.quick-filters {
    display: flex;
    gap: 10px;
    margin-bottom: 28px;
    overflow-x: auto;
    padding-bottom: 4px;
    flex-shrink: 0;
    /* Prevent squishing by flex containers */
}

.filter-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 32px;
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    padding: 0 16px;
    border-radius: var(--radius-full);
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-fast);
    white-space: nowrap;
    box-sizing: border-box;
}

.filter-pill:hover {
    background-color: var(--bg-surface-hover);
    color: #fff;
}

.filter-pill.active {
    background-color: #fff;
    color: var(--bg-base);
    border-color: #fff;
    font-weight: 600;
}

/* Collections Grid Layout */
.grid-container {
    flex-grow: 1;
    position: relative;
    min-height: 300px;
}

.collection-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 32px 24px;
}

/* Vinyl Card Hover Micro-Animation */
.card-wrapper {
    position: relative;
    cursor: pointer;
    perspective: 1000px;
    min-width: 0;
    /* Allow grid items to shrink */
}

.vinyl-card {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    min-width: 0;
    /* Allow grid items to shrink */
}

/* Container containing the cover and the sliding disc */
.cover-sleeve-container {
    position: relative;
    width: 100%;
    aspect-ratio: 1/1;
    margin-bottom: 12px;
    border-radius: var(--radius-md);
    z-index: 2;
}

/* Cover jacket sleeve */
.album-cover-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: var(--radius-md);
    overflow: hidden;
    z-index: 4;
    box-shadow: none;
    background-color: var(--bg-surface);
    transition: transform var(--transition-slow);
    border: 1px solid var(--border-color);
}

.album-cover-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* The actual vinyl disc */
.vinyl-disc-wrapper {
    position: absolute;
    top: 5%;
    left: 5%;
    width: 90%;
    height: 90%;
    border-radius: var(--radius-full);
    z-index: 3;
    background: radial-gradient(circle, #2a2a2a 25%, #151515 25.5%, #151515 27%, #2a2a2a 27.5%, #101010 38%, #202020 38.5%, #101010 49%, #222 49.5%, #101010 65%, #222 65.5%, #101010 78%, #252525 78.5%, #101010 88%);
    box-shadow: none;
    transition: transform var(--transition-slow);
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

/* Groove texture lines overlay */
.vinyl-disc-wrapper::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: var(--radius-full);
    background: repeating-radial-gradient(circle, rgba(255, 255, 255, 0.03) 0px, rgba(255, 255, 255, 0.03) 1px, transparent 1px, transparent 3px);
}

/* Vinyl label in the center */
.vinyl-label {
    width: 32%;
    height: 32%;
    border-radius: var(--radius-full);
    background-color: var(--primary);
    background-size: cover;
    background-position: center;
    position: relative;
    z-index: 5;
    border: 3px solid #111;
}

.vinyl-center-hole {
    width: 15%;
    height: 15%;
    border-radius: var(--radius-full);
    background-color: var(--bg-base);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: none;
    z-index: 6;
}

/* Trigger sliding vinil disc on hover */
.card-wrapper:hover .album-cover-wrapper {
    transform: translateX(-15%) translateY(-2px);
    box-shadow: none;
}

.card-wrapper:hover .vinyl-disc-wrapper {
    transform: translateX(35%) rotate(160deg);
}

/* Pokémon Card Holographic Glint Effect */
.pokemon-card {
    position: relative;
    border-radius: var(--radius-md);
    background: linear-gradient(145deg, #1b2029, #13171e);
    border: 2px solid var(--border-color);
    padding: 12px;
    transition: transform var(--transition-slow), border-color var(--transition-normal);
    overflow: hidden;
}

.pokemon-card::before {
    content: '';
    position: absolute;
    top: -150%;
    left: -150%;
    width: 300%;
    height: 300%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0) 35%, rgba(255, 255, 255, 0.12) 50%, rgba(255, 255, 255, 0) 65%);
    z-index: 3;
    pointer-events: none;
    transition: transform 0.6s ease;
}

.card-wrapper:hover .pokemon-card {
    transform: translateY(-8px) scale(1.02);
    border-color: var(--accent-cyan);
}

.card-wrapper:hover .pokemon-card::before {
    transform: translate(100%, 100%);
}

.pokemon-image-container {
    width: 100%;
    aspect-ratio: 0.7143 / 1;
    /* Proporção de aspecto padrão de cartas (2.5 / 3.5) */
    background: transparent;
    border-radius: var(--radius-sm);
    overflow: hidden;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pokemon-image-container img {
    width: 100%;
    height: 100%;
    object-fit: fill;
    /* Preenche todo o retângulo da carta sem deixar espaços */
    );
}

/* Card details metadata */
.card-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.card-info .title {
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-info .subtitle {
    font-size: 12px;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
}

.card-meta-row .year {
    font-size: 11px;
    color: var(--text-muted);
}

.status-badge {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 2px 8px;
    border-radius: var(--radius-full);
    letter-spacing: 0.5px;
}

.status-badge.colecionado {
    background-color: rgba(46, 204, 113, 0.15);
    color: var(--status-owned);
}

.status-badge.desejado {
    background-color: rgba(241, 196, 18, 0.15);
    color: var(--status-wishlist);
}

.status-badge.emprestado {
    background-color: rgba(231, 76, 60, 0.15);
    color: var(--status-lent);
}

/* Empty State */
.empty-state {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
    max-width: 380px;
}

.empty-state.hidden {
    display: none !important;
}

.empty-icon-container {
    width: 80px;
    height: 80px;
    background-color: var(--bg-surface);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-disabled);
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
}

.empty-icon-container i {
    width: 36px;
    height: 36px;
}

.empty-state h3 {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.empty-state p {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 24px;
    line-height: 1.5;
}

/* Drawer CSS */
.drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 100vw;
    height: 100vh;
    z-index: 100;
    visibility: hidden;
    transition: visibility var(--transition-normal);
}

.drawer.active {
    visibility: visible;
}

.drawer-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.drawer.active .drawer-overlay {
    opacity: 1;
}

.drawer-content {
    position: absolute;
    top: 0;
    right: 0;
    width: 460px;
    max-width: 90vw;
    height: 100%;
    background-color: var(--bg-sidebar);
    border-left: 1px solid var(--border-color);
    box-shadow: none;
    transform: translateX(100%);
    transition: transform var(--transition-slow);
    padding: 36px;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.drawer.active .drawer-content {
    transform: translateX(0);
}

.btn-close {
    position: absolute;
    top: 24px;
    right: 24px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 6px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.btn-close:hover {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.05);
}

/* Details Drawer Contents */
.drawer-detail-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 28px;
    margin-top: 16px;
}

.drawer-detail-cover {
    width: 180px;
    height: 180px;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: none;
    border: 1px solid var(--border-color);
    margin-bottom: 20px;
    background-color: var(--bg-surface);
}

.drawer-detail-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.drawer-detail-header h3 {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 4px;
}

.drawer-detail-header p {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 12px;
}

.drawer-meta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 28px;
}

.drawer-meta-item {
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 12px;
}

.drawer-meta-item label {
    font-size: 10px;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 600;
    display: block;
    margin-bottom: 4px;
}

.drawer-meta-item span {
    font-size: 13px;
    font-weight: 500;
}

.drawer-section {
    margin-bottom: 28px;
}

.drawer-section h4 {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 8px;
    margin-bottom: 12px;
}

.drawer-notes {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.6;
    background-color: rgba(255, 255, 255, 0.02);
    padding: 12px;
    border-radius: var(--radius-md);
    border-left: 3px solid var(--primary);
    white-space: pre-wrap;
}

/* Tracklist details */
.track-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

.track-table tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.track-table td {
    padding: 8px 4px;
    color: var(--text-muted);
}

.track-table td.track-num {
    width: 32px;
    font-weight: 600;
    color: var(--primary);
}

.track-table td.track-title {
    color: var(--text-primary);
}

.track-table td.track-duration {
    text-align: right;
}

.pokemon-specs-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pokemon-spec-row {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    padding: 6px 0;
    border-bottom: 1px dashed var(--border-color);
}

.pokemon-spec-row .spec-label {
    color: var(--text-muted);
}

.drawer-actions {
    display: flex;
    gap: 12px;
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

.btn-danger {
    background-color: #e74c3c;
    color: #ffffff;
    border: none;
    box-shadow: none;
}

.btn-danger:hover {
    background-color: #c0392b;
    box-shadow: none;
    transform: none;
}

/* Modal CSS */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 110;
    visibility: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal.active {
    visibility: visible;
}

.modal-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(6px);
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.modal.active .modal-overlay {
    opacity: 1;
}

.modal-content {
    position: relative;
    width: 680px;
    max-width: 92vw;
    max-height: 85vh;
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: none;
    transform: scale(0.9);
    opacity: 0;
    transition: transform var(--transition-normal), opacity var(--transition-normal);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 5;
}

.modal.active .modal-content {
    transform: scale(1);
    opacity: 1;
}

.modal-header {
    padding: 24px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
}

/* Tabs */
.modal-tabs {
    display: flex;
    background-color: var(--bg-sidebar);
    border-bottom: 1px solid var(--border-color);
    padding: 0 24px;
}

.tab-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 500;
    padding: 16px 20px;
    cursor: pointer;
    position: relative;
    transition: var(--transition-fast);
}

.tab-btn:hover {
    color: #fff;
}

.tab-btn.active {
    color: var(--primary);
    font-weight: 600;
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary);
}

.tab-pane {
    display: none;
    padding: 24px;
    overflow-y: auto;
    flex-grow: 1;
}

.tab-pane.active {
    display: block;
}

/* API Search layout */
.search-form-group {
    margin-bottom: 20px;
}

.api-search-box {
    display: flex;
    position: relative;
    gap: 12px;
    align-items: center;
}

.api-search-box input {
    flex-grow: 1;
    background-color: var(--bg-sidebar);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 12px 16px 12px 20px;
    color: #fff;
    font-family: var(--font-body);
    font-size: 14px;
}

.api-search-box input:focus {
    outline: none;
    border-color: var(--primary);
}

.api-search-box i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    width: 20px;
    height: 20px;
}

.search-results-wrapper {
    background-color: var(--bg-sidebar);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    height: 200px;
    overflow-y: auto;
    padding: 12px;
    margin-bottom: 20px;
}

.search-placeholder-text {
    color: var(--text-muted);
    font-size: 12px;
    text-align: center;
    padding-top: 80px;
}

/* Search loading */
.search-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    gap: 12px;
}

.search-loading.hidden {
    display: none;
}

.spinner {
    width: 24px;
    height: 24px;
    border: 3px solid rgba(255, 255, 255, 0.08);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.search-results-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
}

.search-result-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition-fast);
    border: 1px solid transparent;
}

.search-result-row:hover {
    background-color: rgba(255, 255, 255, 0.03);
    border-color: var(--border-color);
}

.search-result-row.selected {
    background-color: rgba(49, 255, 93, 0.15);
    border-color: var(--primary);
}

.search-result-img {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    background-color: var(--bg-surface);
}

.search-result-info h5 {
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 2px;
}

.search-result-info p {
    font-size: 11px;
    color: var(--text-muted);
}

/* Forms layout */
.grid-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.col-span-2 {
    grid-column: span 2;
}

.form-group label {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-muted);
}

.form-group input,
.form-group select,
.form-group textarea {
    background-color: var(--bg-sidebar);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 10px 14px;
    color: #fff;
    font-family: var(--font-body);
    font-size: 13px;
    outline: none;
    transition: var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary);
}

.form-group textarea {
    height: 80px;
    resize: none;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 12px;
}

.form-divider {
    grid-column: span 2;
    border: none;
    border-top: 1px solid var(--border-color);
    margin: 8px 0;
}

.hidden {
    display: none !important;
}

/* Result Config Preview Form */
.result-config-form {
    animation: fadeIn 0.3s ease;
}

.config-selected-item {
    display: flex;
    align-items: center;
    gap: 16px;
    background-color: var(--bg-sidebar);
    padding: 12px 16px;
    border-radius: var(--radius-md);
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
}

.config-selected-item img {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-sm);
    object-fit: cover;
}

.config-selected-item h4 {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 2px;
}

.config-selected-item p {
    font-size: 11px;
    color: var(--text-muted);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Search Tip helper text */
.search-tip {
    display: block;
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 8px;
    padding-left: 4px;
    line-height: 1.4;
}

.search-tip strong {
    color: var(--accent-cyan);
    font-weight: 600;
}

/* Mass action bar */
.mass-action-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--bg-sidebar);
    border: 1px solid rgba(49, 255, 93, 0.3);
    border-radius: var(--radius-md);
    padding: 12px 20px;
    margin-bottom: 20px;
    animation: fadeIn var(--transition-fast);
}

.mass-action-bar span {
    font-size: 13px;
    font-weight: 600;
    color: var(--accent-cyan);
}

.mass-action-bar button {
    padding: 8px 16px;
    font-size: 13px;
}

/* Result Checkbox Styling */
.result-checkbox-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-right: 8px;
}

.result-checkbox {
    width: 16px;
    height: 16px;
    accent-color: var(--primary);
    cursor: pointer;
}

/* Lock Screen styling */
.lock-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: var(--bg-base);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity var(--transition-normal), visibility var(--transition-normal);
}

.lock-screen.unlocked {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.lock-card {
    background: rgba(25, 29, 36, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-lg);
    padding: 40px;
    width: 380px;
    max-width: 90vw;
    text-align: center;
    box-shadow: none;
    animation: lockCardFloat 4s ease-in-out infinite;
}

@keyframes lockCardFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

.lock-logo {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    box-shadow: none;
}

.lock-logo svg {
    color: #fff;
}

.lock-card h2 {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #fff;
}

.lock-card p {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.lock-input-group {
    position: relative;
    margin-bottom: 16px;
}

.lock-input-group input {
    width: 100%;
    background-color: var(--bg-sidebar);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 12px 16px 12px 42px;
    color: #fff;
    font-family: var(--font-body);
    font-size: 14px;
    outline: none;
    transition: var(--transition-fast);
}

.lock-input-group input:focus {
    border-color: var(--primary);
}

.lock-input-group i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    width: 18px;
    height: 18px;
}

.lock-error {
    font-size: 12px;
    color: #e74c3c;
    margin-bottom: 16px;
    text-align: left;
    padding-left: 4px;
}

.lock-card button {
    width: 100%;
    padding: 12px;
    font-size: 14px;
}

/* Mobile Toggle Buttons (Hidden by default on Desktop) */
.btn-icon-menu,
.btn-close-sidebar {
    display: none;
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 6px;
    border-radius: var(--radius-sm);
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.btn-icon-menu i,
.btn-close-sidebar i {
    width: 24px;
    height: 24px;
}

.btn-icon-menu:hover,
.btn-close-sidebar:hover {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.05);
}

/* Google Sheets Sync Card */
.db-sync-card {
    background: rgba(25, 29, 36, 0.4);
    border: 1px dashed var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px;
    margin: 16px 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    box-sizing: border-box;
}

.db-sync-card h4 {
    font-family: var(--font-heading);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--accent-cyan);
    margin: 0;
}

.db-sync-card .sync-status {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 500;
}

.db-sync-card input {
    background-color: var(--bg-base);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 8px 10px;
    color: #fff;
    font-family: var(--font-body);
    font-size: 11px;
    outline: none;
    width: 100%;
    box-sizing: border-box;
    transition: var(--transition-fast);
}

.db-sync-card input:focus {
    border-color: var(--primary);
}

/* Sidebar Overlay */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 98;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-normal), visibility var(--transition-normal);
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Media Queries for Mobile Responsiveness */
@media (max-width: 768px) {

    html,
    body {
        overflow: auto !important;
        height: auto !important;
    }

    .app-container {
        height: auto !important;
        width: 100vw !important;
        display: block !important;
        overflow: visible !important;
    }

    .main-content {
        height: auto !important;
        overflow: visible !important;
        display: block !important;
    }

    /* Sidebar as a slide-out drawer */
    .sidebar {
        position: fixed;
        top: 0;
        left: 0;
        z-index: 99;
        transform: translateX(-100%);
        transition: transform var(--transition-slow);
        box-shadow: none;
    }

    .sidebar.active {
        transform: translateX(0);
    }

    .btn-icon-menu {
        display: flex;
        /* Show Hamburger menu button */
    }

    .btn-close-sidebar {
        display: flex;
        /* Show Close button inside sidebar */
        margin-left: auto;
    }

    /* Topbar adjustments */
    .topbar {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100vw !important;
        height: var(--topbar-height) !important;
        z-index: 90 !important;
        background-color: var(--bg-base) !important;
        border-bottom: 1px solid var(--border-color) !important;
        padding: 0 20px !important;
        gap: 16px !important;
        box-sizing: border-box !important;
    }

    .search-box {
        flex-grow: 1;
        width: auto;
    }

    .dashboard-section {
        height: auto !important;
        overflow: visible !important;
        overflow-y: visible !important;
        padding: 24px 20px 120px 20px !important;
        margin-top: var(--topbar-height) !important;
    }

    .section-header {
        flex-direction: column;
        gap: 16px;
        align-items: stretch;
    }

    .view-options {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    /* Details drawer takes full screen width */
    .drawer-content {
        width: 100vw;
        max-width: 100vw;
        padding: 24px;
    }

    /* Forms inside modals */
    .grid-form {
        grid-template-columns: 1fr;
        /* Single column layout for forms on mobile */
    }

    .col-span-2 {
        grid-column: span 1;
    }

    .modal-content {
        width: 95vw;
        max-height: 90vh;
    }

    .search-results-grid {
        grid-template-columns: 1fr;
    }

    /* 2 columns grid for vinyl/pokemon items on mobile */
    .collection-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 16px 12px !important;
    }

    .card-info .title {
        font-size: 13px !important;
    }

    .card-info .subtitle {
        font-size: 11px !important;
    }

    .card-meta-row .year {
        font-size: 10px !important;
    }

    .status-badge {
        font-size: 9px !important;
        padding: 1px 6px !important;
    }
}

/* Wide mobile / Unfolded screens (like Samsung Z Fold 7) */
@media (min-width: 540px) and (max-width: 768px) {
    .collection-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
        gap: 16px 12px !important;
    }

    .dashboard-section {
        padding: 24px 16px !important;
    }

    .topbar {
        padding: 0 16px !important;
    }
}

/* Random Picker Modal Styling */
.random-picker-modal-content {
    background: linear-gradient(135deg, #1b2029, #11141a) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: none;
}

.picker-disc-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 24px 0;
    perspective: 1000px;
}

.picker-vinyl-disc {
    width: 180px;
    height: 180px;
    border-radius: var(--radius-full);
    background: radial-gradient(circle, #333 4%, #111 8%, #1a1a1a 12%, #000 18%, #161616 24%, #000 30%, #161616 36%, #000 42%, #222 50%, #000 60%);
    position: relative;
    box-shadow: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 2.5s cubic-bezier(0.25, 1, 0.5, 1);
    transform-style: preserve-3d;
}

.picker-vinyl-disc.spinning {
    animation: spin-infinite 0.8s linear infinite;
}

.picker-vinyl-lines {
    position: absolute;
    width: 92%;
    height: 92%;
    border-radius: var(--radius-full);
    border: 1px solid rgba(255, 255, 255, 0.04);
    pointer-events: none;
}

.picker-vinyl-lines::before {
    content: '';
    position: absolute;
    top: 15%;
    left: 15%;
    width: 70%;
    height: 70%;
    border-radius: var(--radius-full);
    border: 1px solid rgba(255, 255, 255, 0.03);
}

.picker-vinyl-cover {
    width: 38%;
    height: 38%;
    border-radius: var(--radius-full);
    background-color: #222;
    background-size: cover;
    background-position: center;
    z-index: 2;
    box-shadow: none;
    border: 2px solid #000;
}

.picker-vinyl-center-hole {
    width: 7%;
    height: 7%;
    border-radius: var(--radius-full);
    background-color: #11141a;
    position: absolute;
    z-index: 3;
    box-shadow: none;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.picker-result-info {
    margin-top: 16px;
    min-height: 70px;
}

.picker-result-info h3 {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 6px;
    word-break: break-word;
}

.picker-result-info p {
    font-size: 14px;
    color: var(--text-muted);
}

.topbar-actions {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 8px !important;
}

#btn-random-vinyl,
#btn-add-item {
    width: auto !important;
}

#btn-random-vinyl .btn-text,
#btn-add-item .btn-text {
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 600;
}

@media (max-width: 600px) {

    #btn-random-vinyl .btn-text,
    #btn-add-item .btn-text {
        display: none !important;
    }

    #btn-random-vinyl,
    #btn-add-item {
        padding: 8px !important;
        border-radius: var(--radius-full) !important;
        width: 36px !important;
        height: 36px !important;
        justify-content: center;
        align-items: center;
        display: inline-flex !important;
        box-shadow: none;
    }
}

.api-search-box input,
.api-search-box button {
    height: 46px !important;
    box-sizing: border-box !important;
    margin: 0 !important;
}

.api-search-box input {
    min-width: 0 !important;
    width: 100% !important;
}

.api-search-box button {
    flex-shrink: 0 !important;
    white-space: nowrap !important;
}

.picker-actions button {
    flex: 1 !important;
    width: auto !important;
    white-space: nowrap !important;
    justify-content: center !important;
}

@media (max-width: 600px) {
    .form-actions {
        flex-direction: column-reverse !important;
        width: 100% !important;
        gap: 8px !important;
    }

    .form-actions button {
        width: 100% !important;
        justify-content: center !important;
    }

    .mass-action-bar {
        flex-direction: column !important;
        gap: 10px !important;
        text-align: center !important;
        align-items: center !important;
    }

    .mass-action-bar button {
        width: 100% !important;
    }
}

.hidden-section {
    display: none !important;
}

/* ==========================================================================
   FIREBASE AUTHENTICATION SCREEN & PROFILE EXTENSIONS
   ========================================================================== */

.auth-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(circle at 50% 20%, rgba(49, 255, 93, 0.12), transparent 70%), var(--bg-base);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
    transition: opacity var(--transition-normal), visibility var(--transition-normal);
}

.auth-screen.authenticated {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.auth-card {
    background: rgba(25, 29, 36, 0.85);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-radius: var(--radius-lg);
    padding: 36px 32px;
    width: 420px;
    max-width: 100%;
    box-shadow: none;
    animation: authCardEntrance 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.auth-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #31ff5d, #7da884);
}

@keyframes authCardEntrance {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.97);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-header {
    text-align: center;
    margin-bottom: 24px;
}

.auth-logo {
    width: 68px;
    height: 68px;
    background: rgba(25, 29, 36, 0.7);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    padding: 8px;
    box-shadow: none;
}

.auth-logo .logo-img {
    animation: authLogoFloat 3s ease-in-out infinite alternate;
}

@keyframes authLogoFloat {
    0% {
        transform: scale(1);
        );
    }

    100% {
        transform: scale(1.06);
        );
    }
}

.auth-header h2 {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.5px;
    margin-bottom: 6px;
}

.auth-header p {
    font-size: 13px;
    color: var(--text-muted);
}

.auth-tabs {
    display: flex;
    background-color: var(--bg-surface);
    border-radius: var(--radius-md);
    padding: 4px;
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
}

.auth-tab-btn {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 600;
    padding: 10px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition-fast);
}

.auth-tab-btn:hover {
    color: #fff;
}

.auth-tab-btn.active {
    background-color: var(--primary);
    color: #0b0d11;
    font-weight: 700;
    box-shadow: none;
}

.auth-form {
    display: none;
}

.auth-form.active {
    display: flex;
    flex-direction: column;
    animation: fadeInTab 0.3s ease;
}

@keyframes fadeInTab {
    from {
        opacity: 0;
        transform: translateY(4px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-input-group {
    position: relative;
    margin-bottom: 14px;
}

.auth-input-group input {
    width: 100%;
    background-color: var(--bg-sidebar);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 12px 40px 12px 42px;
    color: #fff;
    font-family: var(--font-body);
    font-size: 14px;
    outline: none;
    transition: var(--transition-fast);
}

.auth-input-group input:focus {
    border-color: var(--primary);
    box-shadow: none;
}

.auth-input-group>i,
.auth-input-group>svg {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    width: 18px;
    height: 18px;
    pointer-events: none;
}

.btn-toggle-pwd {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-toggle-pwd:hover {
    color: #6e6e6e;
}

.auth-options {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 16px;
}

.btn-forgot-password {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 12px;
    cursor: pointer;
    padding: 0;
    transition: var(--transition-fast);
}

.btn-forgot-password:hover {
    color: var(--accent-cyan);
    text-decoration: underline;
}

.auth-submit-btn {
    width: 100%;
    padding: 13px;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.auth-divider {
    display: flex;
    align-items: center;
    margin: 18px 0;
    color: var(--text-disabled);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background-color: var(--border-color);
}

.auth-divider span {
    padding: 0 12px;
}

.btn-google-auth {
    width: 100%;
    padding: 11px;
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: #fff;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: var(--transition-fast);
}

.btn-google-auth:hover {
    background-color: var(--bg-surface-hover);
    border-color: var(--border-color-hover);
    transform: translateY(-1px);
}

.auth-alert {
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    line-height: 1.4;
}

.auth-alert.error {
    background-color: rgba(231, 76, 60, 0.15);
    border: 1px solid rgba(231, 76, 60, 0.4);
    color: #ff7675;
}

.auth-alert.success {
    background-color: rgba(46, 204, 113, 0.15);
    border: 1px solid rgba(46, 204, 113, 0.4);
    color: #2ecc71;
}

.auth-alert.info {
    background-color: rgba(49, 255, 93, 0.15);
    border: 1px solid rgba(49, 255, 93, 0.4);
    color: var(--accent-cyan);
}

.auth-footer-help {
    margin-top: 18px;
    text-align: center;
}

.btn-text-link {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 12px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: var(--transition-fast);
}

.btn-text-link:hover {
    color: var(--text-primary);
}

/* User Profile Sidebar Logout & States */
.profile-user-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px solid var(--border-color);
}

.user-status-indicator {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: var(--status-owned);
}

.status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background-color: var(--status-owned);
    box-shadow: none;
}

.btn-logout {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 11px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    transition: var(--transition-fast);
}

.btn-logout:hover {
    color: #ff7675;
    background-color: rgba(231, 76, 60, 0.1);
}

/* ==========================================================================
   PWA INSTALL & APP WIDGET STYLES
   ========================================================================== */

.pwa-install-section {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 12px;
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pwa-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pwa-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
}

.pwa-card-icon {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}

.pwa-card-info {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.pwa-title {
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
}

.pwa-status {
    font-size: 11px;
    color: var(--primary);
    font-weight: 500;
    margin-top: 2px;
}

.btn-install-pwa {
    width: 100%;
    font-size: 12px;
    padding: 9px 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-weight: 700;
}

/* Importer Modal Details */
.file-drop-zone {
    border: 2px dashed var(--border-color);
    border-radius: var(--radius-md);
    padding: 32px 20px;
    text-align: center;
    cursor: pointer;
    background-color: rgba(25, 29, 36, 0.3);
    transition: var(--transition-fast);
    margin-bottom: 16px;
}

.file-drop-zone:hover,
.file-drop-zone.dragover {
    border-color: var(--primary);
    background-color: rgba(49, 255, 93, 0.05);
}

.file-drop-zone h4 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 4px;
}

.file-drop-zone p {
    font-size: 12px;
    color: var(--text-muted);
}

.importer-preview-box {
    margin-top: 16px;
    border-top: 1px solid var(--border-color);
    padding-top: 16px;
}

.preview-stats-bar {
    display: flex;
    gap: 8px;
    margin-bottom: 14px;
}

.stat-pill {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    padding: 4px 12px;
    font-size: 12px;
    color: var(--text-muted);
}

.stat-pill span {
    color: var(--accent-cyan);
    font-weight: 700;
}

.importer-items-list {
    max-height: 220px;
    overflow-y: auto;
    background-color: var(--bg-sidebar);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    margin-bottom: 16px;
}

.importer-preview-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.importer-preview-row:last-child {
    border-bottom: none;
}

.importer-preview-thumb {
    width: 36px;
    height: 36px;
    border-radius: 4px;
    object-fit: cover;
    background-color: var(--bg-surface);
}

.importer-preview-info {
    flex: 1;
    min-width: 0;
}

.importer-preview-title {
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.importer-preview-meta {
    font-size: 11px;
    color: var(--text-muted);
}

.importer-preview-badge {
    font-size: 10px;
    padding: 2px 6px;
    border-radius: var(--radius-sm);
    text-transform: uppercase;
    font-weight: 600;
}

.importer-preview-badge.vinyl {
    background: rgba(49, 255, 93, 0.15);
    color: var(--accent-cyan);
}

.importer-preview-badge.pokemon {
    background: rgba(241, 196, 15, 0.2);
    color: #f1c40f;
}

.importer-progress-container {
    margin-bottom: 16px;
}

.progress-bar-bg {
    width: 100%;
    height: 8px;
    background-color: var(--bg-surface);
    border-radius: var(--radius-full);
    overflow: hidden;
    margin-bottom: 8px;
}

.progress-bar-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #31ff5d, #7da884);
    border-radius: var(--radius-full);
    transition: width 0.3s ease;
}

.progress-text {
    font-size: 12px;
    color: var(--text-muted);
    text-align: center;
}

.importer-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}