/* ── Global styles for TsApp Blazor ──────────────────────────────── */

/* Ryd op i standard-margin */
html, body {
    height: 100%;
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: #f8f9fa;
}

/* Shell-layout */
.app-shell {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.app-content {
    flex: 1;
    overflow-y: auto;
    padding-bottom: 72px; /* plads til bund-nav */
}

/* ── Bund-navigation (svarende til TabView i Swift) ─────────────── */
.bottom-nav {
    height: 60px;
    z-index: 1030;
    box-shadow: 0 -1px 8px rgba(0,0,0,.08);
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 0.7rem;
    color: #6c757d;
    text-decoration: none;
    padding: 4px 12px;
    border-radius: 8px;
    transition: color .15s;
}

.bottom-nav-item i {
    font-size: 1.4rem;
    line-height: 1.2;
}

.bottom-nav-item.active {
    color: #0d6efd;
    font-weight: 600;
}

/* ── Login-side ──────────────────────────────────────────────────── */
.login-bg {
    background: linear-gradient(135deg, #e2c691 0%, #c8a05e 100%);
    position: relative;
    overflow: hidden;
}

.login-overlay {
    background: rgba(0,0,0,.25);
}

.login-card {
    background: rgba(255,255,255,.88);
    backdrop-filter: blur(12px);
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,.5);
}

/* ── Album-kort (grid) ───────────────────────────────────────────── */
.album-card {
    transition: transform .15s, box-shadow .15s;
    border-radius: 10px;
    overflow: hidden;
}

.album-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,.12) !important;
}

.album-cover {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.album-cover-placeholder {
    width: 100%;
    height: 180px;
}

/* ── Album-liste (listevisning) ──────────────────────────────────── */
.album-list {
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 1px 4px rgba(0,0,0,.08);
}

.album-list-row {
    display: flex;
    align-items: center;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    transition: background .12s;
    min-height: 72px;
}

.album-list-row:last-child {
    border-bottom: none;
}

.album-list-row:hover {
    background: #f5f8ff;
}

.album-list-thumb {
    width: 56px;
    height: 72px;
    object-fit: cover;
    flex-shrink: 0;
}

.album-list-thumb-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f0f0;
    font-size: 1.4rem;
}

.album-list-info {
    flex: 1;
    min-width: 0;
    padding: 8px 10px;
}

.album-list-titel {
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1.2;
}

.album-list-sub {
    font-size: 0.8rem;
    color: #6c757d;
    margin-top: 2px;
}

.album-list-nr {
    font-size: 0.75rem;
    color: #adb5bd;
    margin-top: 1px;
}

.album-list-arrow {
    padding-right: 12px;
    font-size: 0.85rem;
    flex-shrink: 0;
}

/* ── Album-detalje billede ───────────────────────────────────────── */
.album-detail-img {
    max-height: 320px;
    object-fit: contain;
    background: #000;
}

/* ── Floating Action Button ──────────────────────────────────────── */
.fab {
    position: fixed;
    bottom: 76px;
    right: 20px;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50% !important;
    z-index: 1020;
}

/* ── Blazor fejl-UI ──────────────────────────────────────────────── */
#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0,0,0,.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}
