/* Urusai Admin — Figure Inventory */

/* Login */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 1rem;
}

.login-card {
    width: 100%;
    max-width: 400px;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
}

[data-bs-theme="dark"] .login-card {
    background: var(--bs-dark);
    border: 1px solid var(--bs-border-color);
}

[data-bs-theme="light"] .login-card {
    background: #fff;
}

.login-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

/* Sidebar */
.sidebar {
    background: var(--bs-body-bg);
    border-right: 1px solid var(--bs-border-color);
    min-height: calc(100vh - 56px);
}

@media (min-width: 768px) {
    .sidebar .offcanvas-body {
        display: flex;
        flex-direction: column;
        overflow-y: auto;
    }
}

.sidebar .nav-link {
    color: var(--bs-body-color);
    padding: 0.6rem 1rem;
    border-radius: 6px;
    margin: 2px 8px;
    font-size: 0.9rem;
    white-space: nowrap;
}

.sidebar .nav-link:hover {
    background: var(--bs-tertiary-bg);
}

.sidebar .nav-link.active {
    background: var(--bs-info);
    color: #fff;
}

.sidebar .nav-link i {
    width: 20px;
    text-align: center;
    margin-right: 6px;
}

.sidebar-stats {
    border-top: 1px solid var(--bs-border-color);
    padding-top: 1rem;
}

/* Loading overlay */
.loading-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

/* Figure table */
#figureTable .thumb-cell img {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 4px;
}

#figureTable .thumb-placeholder {
    width: 40px;
    height: 40px;
    background: var(--bs-tertiary-bg);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bs-secondary-color);
    font-size: 0.8rem;
}

/* Verified badge */
.badge-verified {
    cursor: pointer;
    transition: opacity 0.2s;
}

.badge-verified:hover {
    opacity: 0.8;
}

/* Photo gallery */
#photoGallery .photo-card {
    position: relative;
}

#photoGallery .photo-card img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
}

#photoGallery .photo-actions {
    position: absolute;
    top: 4px;
    right: 4px;
    display: none;
}

#photoGallery .photo-card:hover .photo-actions {
    display: flex;
    gap: 2px;
}

#photoGallery .photo-primary {
    border: 2px solid var(--bs-info);
}

/* Market link items */
.market-link-item {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--bs-border-color);
}

.market-link-item:last-child {
    border-bottom: none;
}

/* Import steps */
.import-step {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    margin-right: 0.5rem;
    font-size: 0.9rem;
    color: var(--bs-secondary-color);
}

.import-step.active {
    background: var(--bs-info);
    color: #fff;
}

.import-step.done {
    color: var(--bs-success);
}

/* Pagination */
#pagination .pagination {
    margin-bottom: 0;
}

#pagination .page-link {
    padding: 0.25rem 0.5rem;
    font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 768px) {
    .sidebar {
        min-height: auto;
    }

    /* Hide Series, Manufacturer, Container on mobile */
    #figureTable th:nth-child(5),
    #figureTable td:nth-child(5),
    #figureTable th:nth-child(6),
    #figureTable td:nth-child(6),
    #figureTable th:nth-child(7),
    #figureTable td:nth-child(7) {
        display: none;
    }
}
