:root {
    --bg: #f7f9ff;
    --card: #ffffff;
    --primary: #5b6ef5;
    --primary-strong: #4b5be0;
    --text: #1f2a44;
    --muted: #6b7285;
    --border: #e5e8f1;
    --shadow: 0 18px 40px rgba(68, 84, 178, 0.12);
    font-family: "Inter", system-ui, -apple-system, sans-serif;
}

* {
    box-sizing: border-box;
    -ms-overflow-style: none;  /* Internet Explorer 10+ */
    scrollbar-width: none;  /* Firefox, Safari 18.2+, Chromium 121+ */
}
*::-webkit-scrollbar {
    display: none;  /* Older Safari and Chromium */
}

body {
    margin: 0;
    padding: 0;
    background: radial-gradient(circle at 20% 20%, rgba(91, 110, 245, 0.12), transparent 25%),
        radial-gradient(circle at 80% 0%, rgba(120, 173, 255, 0.15), transparent 30%),
        var(--bg);
    color: var(--text);
}

.page-container {
    margin: 0 auto;
    padding: 0 1.25rem 0.25rem;
    flex-direction: column;
    height: 100vh;
    display: flex;
}

.hero {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--card);
    padding: 1.25rem 1.5rem;
    border-radius: 18px;
    box-shadow: var(--shadow);
}

.hero-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: linear-gradient(135deg, #f5e6ff, #dfe7ff);
    display: grid;
    place-items: center;
    font-size: 1.6rem;
}

.hero-text h1 {
    margin: 0.2rem 0 0.25rem;
    font-size: 1.8rem;
    letter-spacing: -0.01em;
}

.hero-text .eyebrow {
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.8rem;
    color: var(--muted);
}

.subtitle {
    margin: 0;
    color: var(--muted);
}

.hero-meta {
    margin-left: auto;
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    gap: 0.3rem;
}

.meta-label {
    font-size: 0.85rem;
    color: var(--muted);
}

.char-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.75rem;
    background: #eef2ff;
    color: #3949ab;
    border-radius: 999px;
    font-weight: 600;
    min-width: 160px;
    justify-content: center;
}

.subtabs {
    position: sticky;
    top: 0;
    z-index: 100;
    margin: 1rem 0 0.25rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    background: linear-gradient(180deg, rgba(247, 249, 255, 0.98), rgba(247, 249, 255, 0.9));
    padding: 0.75rem 0.5rem 0.25rem 0.5rem;
    backdrop-filter: blur(6px);
    border-radius: 14px;
}

.subtab-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.picks {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.subtab-button {
    padding: 0.55rem 0.95rem;
    background: #eef1f8;
    color: var(--text);
    border-radius: 12px;
    cursor: pointer;
    border: 1px solid var(--border);
    transition: all 0.2s ease;
    font-weight: 600;
}

.subtab-button.active {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 10px 25px rgba(91, 110, 245, 0.35);
    border-color: var(--primary);
}

.subtab-actions {
    margin-left: auto;
}

.ghost-button,
.primary-button {
    border: none;
    cursor: pointer;
    border-radius: 12px;
    padding: 0.55rem 0.95rem;
    font-weight: 700;
    transition: all 0.2s ease;
    font-size: 0.95rem;
}

.ghost-button {
    background: #fff;
    color: var(--text);
    border: 1px solid var(--border);
}

.ghost-button:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.primary-button {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 12px 30px rgba(91, 110, 245, 0.35);
}

.primary-button:hover {
    background: var(--primary-strong);
}

.filter {
    display: flex;
    gap: 1rem;
    width: 100%;
    align-items: center;
    flex-wrap: wrap;
    background: var(--card);
    padding: 0.9rem 1rem;
    border-radius: 14px;
    border: 1px solid var(--border);
    box-shadow: 0 6px 18px rgba(31, 42, 68, 0.05);
}

.checkbox-label,
.select-label {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-weight: 600;
    color: var(--text);
}

.checkbox-label input {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
}

.select-label select {
    padding: 0.45rem 0.75rem;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: #f7f8fb;
    font-weight: 600;
    min-width: 180px;
}

.entries {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    overflow-y: scroll;
    flex: 1;
}

.subtab-content {
    display: none;
    flex-direction: column;
    gap: 0.75rem;
}

.subtab-content.active {
    display: flex;
}

.entry {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    padding: 1rem 1rem 0.9rem;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: var(--shadow);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.entry:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 40px rgba(31, 42, 68, 0.14);
}

.entry-header {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.entry-meta {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    flex: 1;
    min-width: 0;
}

.number {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 1px solid var(--border);
    display: grid;
    place-items: center;
    font-weight: 700;
    color: var(--primary-strong);
    background: #f0f3ff;
}

.name-group {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-width: 0;
}

.name {
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.art-tag,
.chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.65rem;
    border-radius: 999px;
    color: var(--muted);
    font-weight: 700;
    font-size: 0.85rem;
}

.entry-actions {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.beschreibung {
    color: var(--muted);
    line-height: 1.4;
    margin-left: calc(44px + 0.8rem);
}

.entry.acquired {
    border-color: #d6f5d0;
    background: #f4fff1;
    display: none;
}

.entry.acquired .name {
    color: #1c7c3d;
}

.entry.acquired .art-tag {
    color: #1c7c3d;
}

.art-name
{
    width: 150px;
}

.entry.acquired .craftforme {
    display: none !important;
}

.craftforme button {
    width: 120px;
}

#import {
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) scale(calc(100vw / 1920px));
    background-color: var(--card);
    padding: 1.5rem;
    box-sizing: border-box;
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: 0 18px 40px rgba(31, 42, 68, 0.18);
    z-index: 9999;
    width: 90vw;
    height: 950px !important;
}

#import #importtext {
    width: 100%;
    height: 200px;
    resize: none;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 0.65rem;
    font-family: inherit;
    background: #f8faff;
}

#import #importbutton {
    float: right;
    margin-top: 1rem;
    padding: 0.55rem 1rem;
    border-radius: 10px;
    background: var(--primary);
    color: white;
    border: none;
    cursor: pointer;
}

.parse-item {
    color: var(--primary);
    text-decoration: underline;
    cursor: pointer;
}

.sent,
.refuse {
    width: 40px;
    height: 32px;
    margin-right: 10px;
}

.notExists
{
    display: none !important;
}

#importTypeList
{
    display: flex;
    flex-direction: row;
    width: 100%;
    height: 60px;
}

.importType
{
    flex: 1;
    font-size: 30px;
}

.importType.active {
    background-color: white;
}

.importContent
{
    margin-top: 20px;
}

.refresh
{
    display: inline-block;
    width: 34px;
    height: 34px;
    border-radius: 17px;
    background: #eef2ff;
    color: var(--primary);
    border: none;
    cursor: pointer;
}