* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: "Segoe UI", Arial, sans-serif;
}

body {
    background: #f2f4f8;
    color: #222;
}

/* LOGIN */
.login-page {
    min-height: 100vh;
    background: url('/lager-tool/assets/img/login-bg2.png') center center / cover no-repeat;
    position: relative;
}

.login-page::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
}

.login-overlay {
    position: relative;
    z-index: 2;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 30px;
}

.login-panel {
    width: 540px;
    max-width: 95%;
    background: rgba(255,255,255,0.96);
    border-radius: 4px;
    padding: 34px 34px 28px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.login-avatar-wrap {
    text-align: center;
    margin-bottom: 22px;
}

.login-avatar {
    width: 120px;
    height: 120px;
    object-fit: contain;
}

.login-form label {
    display: block;
    font-size: 14px;
    color: #363636;
    margin-bottom: 8px;
    margin-top: 10px;
}

.login-form input[type="text"],
.login-form input[type="password"] {
    width: 100%;
    height: 48px;
    border: 1px solid #d9dee7;
    background: #edf1f7;
    padding: 0 14px;
    border-radius: 3px;
    outline: none;
    font-size: 14px;
    margin-bottom: 8px;
}

.login-btn {
    width: 100%;
    height: 46px;
    margin-top: 10px;
    border: none;
    background: #4d92f3;
    color: #fff;
    border-radius: 3px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
}

.login-btn:hover {
    background: #3c84ea;
}

.remember-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
    font-size: 14px;
    color: #444;
}

.remember-row input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #4d92f3;
}

.login-footer-text {
    margin-top: 12px;
    color: #d8d8d8;
    font-size: 13px;
    text-align: center;
}

.login-footer-text span {
    color: #4d92f3;
}

.error-box {
    background: #ffe3e3;
    color: #b42318;
    border: 1px solid #f5bcbc;
    padding: 12px;
    border-radius: 4px;
    margin-bottom: 14px;
    font-size: 14px;
}

/* TOPBAR */
.topbar {
    background: #07104d;
    height: 66px;
    display: flex;
    align-items: center;
}

.topbar-inner {
    width: 1480px;
    max-width: calc(100% - 40px);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-img {
    width: 173px;
    height: 114px;
    object-fit: contain;
}

.logo-text {
    color: white;
    font-weight: 700;
    letter-spacing: 0.5px;
    font-size: 24px;
}

.topbar-user {
    position: relative;
}

.user-dropdown-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 15px;
}

.user-avatar {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    object-fit: cover;
}

.arrow-icon {
    font-size: 11px;
    opacity: 0.85;
}

.dropdown-menu {
    position: absolute;
    right: 0;
    top: 38px;
    min-width: 160px;
    background: white;
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
    border: 1px solid #e8edf3;
    display: none;
    overflow: hidden;
    z-index: 50;
    width: 228px;
}

.dropdown-menu.show {
    display: block;
}

.dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #2a2a2a;
    text-decoration: none;
    padding: 12px 14px;
    font-size: 14px;
}

.dropdown-menu a:hover {
    background: #f5f8fc;
}

/* NAV */
.main-nav {
    background: #ffffff;
    border-bottom: 1px solid #eceef3;
    height: 56px;
    display: flex;
    align-items: center;
}

.main-nav-inner {
    width: 1480px;
    max-width: calc(100% - 40px);
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 42px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #2b2b2b;
    font-size: 15px;
    position: relative;
    padding: 18px 0;
    color: white;
}

.nav-item i {
    font-size: 15px;
}

.nav-item:hover {
    color: #4d92f3;
}

.nav-item.active {
    color: #4d92f3;
}

.nav-item.active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 3px;
    background: #4d92f3;
    border-radius: 2px;
}

/* PAGE */
.page-wrap {
    width: 1480px;
    max-width: calc(100% - 40px);
    margin: 40px auto;
    min-height: calc(100vh - 190px);
}

.content-card {
    background: #fff;
    border-radius: 3px;
    padding: 28px 24px;
    min-height: 420px;
    box-shadow: 0 0 0 1px #edf0f5 inset;
}

.page-title {
    font-size: 33px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #1f1f1f;
    text-transform: uppercase;
}

.page-subtitle {
    color: #666;
    font-size: 15px;
}

/* FOOTER */
.footer {
    border-top: 1px solid #e6eaf0;
    background: #f2f4f8;
    min-height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    color: #7a7a7a;
    font-size: 13px;
}

.footer-brand {
    color: #6cc04a;
}

/* GENERIC UI */
.panel-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.panel-table th,
.panel-table td {
    text-align: left;
    padding: 14px 10px;
    border-bottom: 1px solid #eef1f5;
    font-size: 14px;
}

.panel-table th {
    color: #222;
    font-weight: 600;
    background: #fff;
}

.panel-btn {
    display: inline-block;
    padding: 8px 14px;
    border: 1px solid #6aa6ff;
    color: #6aa6ff;
    background: #fff;
    border-radius: 3px;
    text-decoration: none;
    font-size: 13px;
    cursor: pointer;
}

.panel-btn-green {
    background: #7fd321;
    color: #fff;
    border: none;
}

.panel-btn-danger {
    background: #e65050;
    color: #fff;
    border: none;
}

.panel-input,
.panel-select {
    width: 100%;
    height: 42px;
    border: 1px solid #d9dee7;
    background: #f7f9fc;
    padding: 0 12px;
    border-radius: 3px;
    outline: none;
}

.panel-textarea {
    width: 100%;
    min-height: 90px;
    border: 1px solid #d9dee7;
    background: #f7f9fc;
    padding: 12px;
    border-radius: 3px;
    outline: none;
    resize: vertical;
    font-family: inherit;
    font-size: 14px;
}

.panel-file {
    font-size: 14px;
    background: #f7f9fc;
    border: 1px solid #d9dee7;
    border-radius: 6px;
    padding: 10px 12px;
}

.full-btn {
    width: 100%;
    height: 44px;
    border-radius: 6px;
    font-weight: 600;
}

.section-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 10px;
}

.section-text {
    color: #666;
    margin-bottom: 25px;
}

/* STORAGE PAGE */
.storage-page-card {
    min-height: auto;
}

.storage-top-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 25px;
}

.storage-title {
    margin-bottom: 6px;
}

.flash-message {
    padding: 12px 14px;
    border-radius: 6px;
    font-size: 14px;
    min-width: 260px;
}

.flash-success {
    background: #e7f8ed;
    color: #146c2e;
    border: 1px solid #bde7c8;
}

.flash-error {
    background: #ffe8e8;
    color: #b42318;
    border: 1px solid #f3c3c3;
}

.action-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
    margin-bottom: 34px;
}

.action-card {
    background: #ffffff;
    border: 1px solid #ebeff5;
    border-radius: 12px;
    padding: 18px;
    box-shadow: 0 8px 18px rgba(13, 33, 63, 0.04);
}

.compact-card {
    min-height: 220px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.action-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: #f3f7fd;
    color: #4d92f3;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    font-size: 20px;
}

.action-card h3 {
    font-size: 18px;
    margin-bottom: 14px;
    color: #222;
}

.action-card form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.action-card-text {
    color: #6b7280;
    font-size: 14px;
    line-height: 1.4;
    margin-bottom: 16px;
}

.disabled-card {
    opacity: 0.7;
}

/* STORAGE GRID */
.storage-board {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    align-items: start;
}

.crafting-todo-board {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    align-items: start;
}

@media (max-width: 1200px) {
    .crafting-todo-board {
        grid-template-columns: 1fr;
    }
}

.storage-column {
    background: #f8fafc;
    border: 1px solid #e8edf4;
    border-radius: 12px;
    padding: 16px;
    min-height: 280px;
    display: flex;
    flex-direction: column;
}

.storage-column-head {
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e5ebf3;
}

.storage-column-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

.storage-column-info {
    flex: 1;
    min-width: 0;
}

.storage-column-head h2 {
    font-size: 20px;
    margin-bottom: 6px;
    color: #202020;
    line-height: 1.2;
}

.storage-meta {
    color: #6b7280;
    font-size: 13px;
    margin-bottom: 8px;
}

.storage-badge {
    display: inline-block;
    padding: 6px 10px;
    background: #edf4ff;
    color: #3d7be0;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
}

.storage-delete-btn {
    width: 38px;
    height: 38px;
    min-width: 38px;
    border: none;
    border-radius: 10px;
    background: #fff1f1;
    color: #df4d4d;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: 0.15s ease;
    flex-shrink: 0;
}

.storage-delete-btn:hover {
    background: #ffe3e3;
    color: #c93333;
}

.storage-items-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: auto;
}

.empty-state,
.empty-item-card {
    background: #fff;
    border: 1px dashed #d7e0ec;
    border-radius: 10px;
    padding: 18px;
    color: #6b7280;
    text-align: center;
}

/* ITEM TILE */
.item-tile {
    position: relative;
    background: #ffffff;
    border: 1px solid #e8edf4;
    border-radius: 12px;
    padding: 14px;
    display: flex;
    gap: 12px;
    align-items: flex-start;
    box-shadow: 0 4px 10px rgba(21, 37, 60, 0.04);
}

.item-tile-image-wrap {
    width: 72px;
    min-width: 72px;
    height: 72px;
    border-radius: 10px;
    overflow: hidden;
    background: #292929;
    border: 1px solid #e6edf4;
}

.item-tile-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.item-tile-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #95a3b8;
    font-size: 24px;
}

.item-tile-actions-corner {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    gap: 8px;
}

.item-edit-btn-corner,
.item-delete-btn-corner {
    position: static;
    width: 38px;
    height: 38px;
    min-width: 38px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    transition: 0.15s ease;
}

.item-edit-btn-corner {
    background: #eef2f7;
    color: #4f5f75;
}

.item-edit-btn-corner:hover {
    background: #e2e8f0;
    color: #334155;
}

.item-delete-btn-corner {
    background: #fff1f1;
    color: #df4d4d;
}

.item-delete-btn-corner:hover {
    background: #ffe3e3;
    color: #c93333;
}

.item-tile-content {
    flex: 1;
    padding-top: 6px;
    padding-right: 92px;
}

.item-tile-name {
    font-size: 17px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 6px;
}

.item-tile-desc {
    font-size: 13px;
    color: #6b7280;
    line-height: 1.4;
    margin-bottom: 10px;
}

.item-tile-amount {
    font-size: 14px;
    color: #ffffff;
}

/* MODALS */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
}

.modal-overlay.show {
    display: flex;
}

.custom-modal {
    width: 100%;
    max-width: 520px;
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.18);
    padding: 22px;
}

.custom-modal-large {
    max-width: 900px;
}

.delete-modal {
    max-width: 560px;
}

.custom-modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}

.modal-title-wrap {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.modal-title-wrap h3 {
    margin: 0 0 6px;
    font-size: 24px;
    color: #1f2937;
}

.modal-title-wrap p {
    margin: 0;
    font-size: 14px;
    color: #6b7280;
}

.modal-icon {
    margin-bottom: 0;
}

.danger-icon {
    background: #fff1f1;
    color: #df4d4d;
}

.modal-close-btn {
    width: 38px;
    height: 38px;
    border: none;
    background: #f3f6fb;
    border-radius: 10px;
    cursor: pointer;
    color: #475569;
    font-size: 18px;
}

.modal-close-btn:hover {
    background: #e8eef7;
}

.modal-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.delete-warning-box {
    background: #fff4e5;
    border: 1px solid #ffd9a6;
    color: #8a5a00;
    padding: 14px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.5;
}

.delete-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 6px;
}

.delete-cancel-btn {
    background: #eef2f7;
    color: #334155;
    border: none;
}

.delete-cancel-btn:hover {
    background: #e2e8f0;
}

/* FILE UPLOAD */
.file-upload-wrap {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.file-upload-label {
    font-size: 14px;
    color: #475569;
}

/* MULTI ROW MODALS */
.amount-row {
    display: grid;
    grid-template-columns: 1.4fr 1.4fr 0.8fr auto;
    gap: 12px;
    margin-bottom: 12px;
    align-items: center;
}

.amount-small-input {
    min-width: 110px;
}

.row-remove-btn {
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 10px;
    background: #fff1f1;
    color: #df4d4d;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.row-remove-btn:hover {
    background: #ffe3e3;
    color: #c93333;
}

.modal-multi-actions {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 8px;
}

.add-row-btn {
    background: #eef4ff;
    color: #3d7be0;
    border: none;
}

.add-row-btn:hover {
    background: #dfeafe;
}

/* RECIPES */
.recipes-section {
    margin-top: 28px;
}

.recipe-card {
    min-height: 100%;
}

.recipe-image-box {
    width: 100%;
    height: 150px;
    border-radius: 12px;
    overflow: hidden;
    background: #292929;
    border: 1px solid #e6edf4;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
}

.recipe-action-group {
    display: flex;
    gap: 8px;
    align-items: flex-start;
}

.recipe-image {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

.recipe-description {
    margin-bottom: 12px;
}

.recipe-material-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.recipe-material-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    border: 1px solid #e8edf4;
    border-radius: 10px;
    background: #fff;
    font-size: 14px;
}

/* TODO GENERAL */
.todo-toggle-form {
    margin-top: 10px;
}

.todo-check-btn {
    width: 100%;
    border: none;
    background: #eef4ff;
    color: #355fa8;
    border-radius: 10px;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
}

.todo-check-btn:hover {
    background: #dfeafe;
}

.todo-check-done {
    background: #e7f8ed;
    color: #146c2e;
}

.todo-check-done:hover {
    background: #d7f1e0;
}

/* TODO CRAFTING LINES */
/* TODO CRAFTING LINES */
.todo-crafting-card {
    min-width: 0;
}

.todo-line-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 12px;
    width: 100%;
}

.todo-line-head {
    display: grid;
    grid-template-columns:
        minmax(170px, 1.5fr)
        minmax(105px, 0.9fr)
        minmax(105px, 0.9fr)
        minmax(105px, 0.9fr);
    gap: 0;
    padding: 0;
    font-size: 12px;
    font-weight: 700;
    color: #64748b;
    align-items: stretch;
}

.todo-line-head span {
    display: flex;
    align-items: center;
    min-height: 34px;
    padding: 0 12px;
}

.todo-line-head span:not(:first-child) {
    border-left: 1px solid rgba(148, 163, 184, 0.22);
}

.todo-line-item {
    position: relative;
    border: 1px solid #e8edf4;
    border-radius: 12px;
    overflow: hidden;
    background: #ffffff;
    width: 100%;
}

.todo-line-progress-bg {
    position: absolute;
    inset: 0;
    background: #ffffff;
}

.todo-line-progress-fill {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 0;
    transition: width 0.25s ease;
}

.todo-line-progress-fill-complete {
    background: linear-gradient(90deg, #66c94b 0%, #8be05e 100%);
}

.todo-line-progress-fill-missing {
    background: linear-gradient(90deg, #66c94b 0%, #8be05e 100%);
    opacity: 0.45;
}

.todo-line-row {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns:
        minmax(170px, 1.5fr)
        minmax(105px, 0.9fr)
        minmax(105px, 0.9fr)
        minmax(105px, 0.9fr);
    gap: 0;
    align-items: stretch;
    padding: 0;
}

.todo-line-material,
.todo-line-have,
.todo-line-need,
.todo-line-miss {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    min-height: 42px;
    padding: 10px 12px;
}

.todo-line-material {
    font-size: 14px;
    font-weight: 700;
    color: #1f2937;
    min-width: 0;
    white-space: normal;
    word-break: break-word;
    overflow-wrap: anywhere;
    line-height: 1.35;
}

.todo-line-have,
.todo-line-need,
.todo-line-miss {
    border-left: 1px solid rgba(148, 163, 184, 0.28);
    justify-content: center;
    text-align: center;
    flex-direction: column;
    gap: 2px;
}

.todo-value-number {
    font-size: 13px;
    font-weight: 700;
    color: #111827;
    line-height: 1.1;
    white-space: nowrap;
}

.todo-value-unit {
    font-size: 11px;
    font-weight: 700;
    color: #64748b;
    line-height: 1;
    white-space: nowrap;
}

@media (max-width: 1400px) {
    .todo-line-head,
    .todo-line-row {
        grid-template-columns:
            minmax(150px, 1.35fr)
            minmax(95px, 0.85fr)
            minmax(95px, 0.85fr)
            minmax(95px, 0.85fr);
    }

    .todo-line-material {
        font-size: 13px;
    }

    .todo-value-number {
        font-size: 12px;
    }

    .todo-value-unit {
        font-size: 10px;
    }
}

@media (max-width: 1100px) {
    .todo-line-head,
    .todo-line-row {
        grid-template-columns:
            minmax(135px, 1.2fr)
            minmax(85px, 0.8fr)
            minmax(85px, 0.8fr)
            minmax(85px, 0.8fr);
    }

    .todo-line-material {
        font-size: 12px;
    }

    .todo-value-number {
        font-size: 11px;
    }
}

@media (max-width: 640px) {
    .todo-line-head {
        display: none;
    }

    .todo-line-row {
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 12px;
    }

    .todo-line-material,
    .todo-line-have,
    .todo-line-need,
    .todo-line-miss {
        border-left: none;
        min-height: auto;
        padding: 8px 10px;
    }

    .todo-line-have,
    .todo-line-need,
    .todo-line-miss {
        align-items: flex-start;
        justify-content: flex-start;
        text-align: left;
        flex-direction: row;
        gap: 6px;
        background: rgba(255,255,255,0.65);
        border: 1px solid #e8edf4;
        border-radius: 8px;
    }

    .todo-line-have::before {
        content: "Haben:";
        font-weight: 700;
        color: #334155;
    }

    .todo-line-need::before {
        content: "Brauchen:";
        font-weight: 700;
        color: #334155;
    }

    .todo-line-miss::before {
        content: "Fehlt:";
        font-weight: 700;
        color: #334155;
    }
}

.general-todo-done-card {
    background: #eefcf1;
    border-color: #bde7c8;
}

.general-subtask-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 4px 0 16px;
}

.subtask-form {
    margin: 0;
}

.subtask-toggle-btn {
    width: 100%;
    border: 1px solid #e8edf4;
    background: #ffffff;
    color: #334155;
    border-radius: 12px;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-size: 14px;
    text-align: left;
    transition: 0.15s ease;
    box-shadow: 0 2px 6px rgba(21, 37, 60, 0.03);
}

.subtask-toggle-btn:hover {
    background: #f8fafc;
    border-color: #dbe4ef;
}

.subtask-toggle-btn i {
    font-size: 18px;
    color: #4d92f3;
    flex-shrink: 0;
}

.subtask-toggle-btn span {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
    line-height: 1.35;
    word-break: break-word;
}

.subtask-toggle-btn.subtask-done {
    background: #eaf8ee;
    border-color: #bde7c8;
}

.subtask-toggle-btn.subtask-done i {
    color: #1f9d45;
}

.subtask-toggle-btn.subtask-done span {
    color: #146c2e;
    text-decoration: line-through;
}

.general-subtask-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    align-items: center;
}

.general-subtask-row .panel-input {
    width: 100%;
}

.general-subtask-row .row-remove-btn {
    width: 42px;
    height: 42px;
}

@media (max-width: 700px) {
    .general-subtask-row {
        grid-template-columns: 1fr;
    }

    .general-subtask-row .row-remove-btn {
        width: 100%;
    }
}


/* =========================================================
   GROUPCORE DARK MODE - FINAL FIX
   Default bleibt hell. Dark Mode läuft über body.dark
   ========================================================= */

body.dark {
    background: linear-gradient(180deg, #1b1d23 0%, #20232a 100%);
    color: #e7ebf3;
}

/* globale Lesbarkeit */

body.dark .page-wrap,
body.dark .content-card,
body.dark .action-card,
body.dark .storage-column,
body.dark .item-tile,
body.dark .custom-modal,
body.dark .todo-line-item,
body.dark .recipe-material-row,
body.dark .subtask-toggle-btn,
body.dark .empty-state,
body.dark .empty-item-card,
body.dark .recipe-image-box {
    color: #e7ebf3;
}

/* Header / Navigation */
body.dark .topbar {
    background: #111827;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    box-shadow: 0 10px 30px rgba(0,0,0,0.35);
}

body.dark .user-dropdown-btn,
body.dark .username,
body.dark .arrow-icon,
body.dark .nav-item,
body.dark .nav-item i {
    color: #f3f4f6 !important;
}

body.dark .nav-item:hover,
body.dark .nav-item:hover i {
    color: #ffffff !important;
}

body.dark .nav-item.active,
body.dark .nav-item.active i {
    color: #6ea8ff !important;
}

body.dark .nav-item.active::after {
    background: #6ea8ff;
}

body.dark .dropdown-menu {
    background: #23272f;
    border: 1px solid rgba(255,255,255,0.07);
    box-shadow: 0 16px 40px rgba(0,0,0,0.45);
}

body.dark .dropdown-menu a {
    color: #e5e7eb;
}

body.dark .dropdown-menu a:hover {
    background: rgba(255,255,255,0.06);
}

body.dark .dropdown-menu .panel-select {
    background: #2a2f39;
    border-color: rgba(255,255,255,0.08);
    color: #eef2f7;
}

/* Seitencontainer */
body.dark .content-card {
    background: #23272f;
    box-shadow:
        0 0 0 1px rgba(255,255,255,0.04) inset,
        0 18px 40px rgba(0,0,0,0.28);
}

body.dark .page-title,
body.dark .section-title,
body.dark h1,
body.dark h2,
body.dark h3,
body.dark h4,
body.dark h5,
body.dark h6 {
    color: #ffffff !important;
}

body.dark .page-subtitle,
body.dark .section-text,
body.dark .action-card-text,
body.dark .storage-meta,
body.dark .modal-title-wrap p,
body.dark .item-tile-desc,
body.dark .recipe-description,
body.dark .file-upload-label,
body.dark p,
body.dark label {
    color: #b8c0cc !important;
}

/* Action Cards / Dashboard Cards */
body.dark .action-card,
body.dark .storage-column,
body.dark .item-tile,
body.dark .recipe-material-row,
body.dark .recipe-image-box,
body.dark .todo-line-item,
body.dark .subtask-toggle-btn {
    background: #262b34;
    border: 1px solid rgba(255,255,255,0.06);
    box-shadow: 0 14px 32px rgba(0,0,0,0.28);
}

body.dark .action-card h3,
body.dark .storage-column-head h2,
body.dark .item-tile-name,
body.dark .todo-line-material,
body.dark .todo-value-number,
body.dark .modal-title-wrap h3,
body.dark .subtask-toggle-btn span,
body.dark .panel-table td,
body.dark .panel-table th,
body.dark td,
body.dark th {
    color: #f8fafc !important;
}

body.dark .action-card-icon {
    background: #eef2f7;
    color: #4d92f3;
}

/* Buttons */
body.dark .panel-btn,
body.dark .full-btn,
body.dark .login-btn {
    background: #4d92f3;
    color: #ffffff !important;
    border: none;
    box-shadow: none;
}

body.dark .panel-btn:hover,
body.dark .full-btn:hover,
body.dark .login-btn:hover {
    background: #6aa6ff;
    color: #ffffff !important;
    box-shadow: 0 0 0 1px rgba(255,255,255,0.05) inset, 0 10px 22px rgba(77,146,243,0.28);
}

body.dark .panel-btn-green {
    background: #23a55a;
    color: #ffffff !important;
}

body.dark .panel-btn-green:hover {
    background: #2aba66;
}

body.dark .panel-btn-danger,
body.dark .storage-delete-btn,
body.dark .item-delete-btn-corner,
body.dark .row-remove-btn {
    background: #4a2328;
    color: #ffb4b4 !important;
    border: none;
}

body.dark .panel-btn-danger:hover,
body.dark .storage-delete-btn:hover,
body.dark .item-delete-btn-corner:hover,
body.dark .row-remove-btn:hover {
    background: #5c2a30;
    color: #ffd0d0 !important;
}

body.dark .item-edit-btn-corner,
body.dark .modal-close-btn,
body.dark .delete-cancel-btn {
    background: #343a46;
    color: #eef2f7 !important;
    border: none;
}

body.dark .item-edit-btn-corner:hover,
body.dark .modal-close-btn:hover,
body.dark .delete-cancel-btn:hover {
    background: #3e4654;
}

/* Inputs */
body.dark .panel-input,
body.dark .panel-select,
body.dark .panel-textarea,
body.dark .panel-file,
body.dark .login-form input[type="text"],
body.dark .login-form input[type="password"] {
    background: #2b313c;
    border: 1px solid rgba(255,255,255,0.08);
    color: #eef2f7 !important;
}

body.dark .panel-input::placeholder,
body.dark .panel-textarea::placeholder,
body.dark .login-form input::placeholder {
    color: #9aa4b2;
}

body.dark .panel-input:focus,
body.dark .panel-select:focus,
body.dark .panel-textarea:focus,
body.dark .login-form input[type="text"]:focus,
body.dark .login-form input[type="password"]:focus {
    border-color: #6aa6ff;
    box-shadow: 0 0 0 3px rgba(77,146,243,0.18);
}

body.dark option {
    background: #23272f;
    color: #eef2f7;
}

/* Tabellen */
body.dark .panel-table th {
    background: rgba(255,255,255,0.03);
    color: #e5e7eb !important;
}

body.dark .panel-table th,
body.dark .panel-table td {
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

body.dark .panel-table tr:hover td {
    background: rgba(255,255,255,0.02);
}

/* Badges / kleine Labels */
body.dark .storage-badge {
    background: rgba(77,146,243,0.16);
    color: #8fbcff !important;
}

body.dark .flash-success {
    background: rgba(35,165,90,0.14);
    color: #7ee2a8;
    border-color: rgba(35,165,90,0.28);
}

body.dark .flash-error {
    background: rgba(214,80,80,0.14);
    color: #ffb3b3;
    border-color: rgba(214,80,80,0.28);
}

body.dark .general-todo-done-card {
    background: rgba(35,165,90,0.12);
    border-color: rgba(35,165,90,0.24);
}

/* Empty states */
body.dark .empty-state,
body.dark .empty-item-card {
    background: #2a2f39;
    border: 1px dashed rgba(255,255,255,0.09);
    color: #b8c0cc !important;
}

/* Todo / crafting special */
body.dark .todo-check-btn {
    background: rgba(77,146,243,0.15);
    color: #dbeafe !important;
}

body.dark .todo-check-btn:hover {
    background: rgba(77,146,243,0.24);
}

body.dark .todo-check-done {
    background: rgba(35,165,90,0.18);
    color: #9ae6b4 !important;
}

body.dark .todo-check-done:hover {
    background: rgba(35,165,90,0.24);
}

body.dark .todo-line-head,
body.dark .todo-value-unit {
    color: #9aa4b2 !important;
}

body.dark .todo-line-progress-bg {
    background: #262b34;
}

body.dark .todo-line-head span:not(:first-child),
body.dark .todo-line-have,
body.dark .todo-line-need,
body.dark .todo-line-miss {
    border-left-color: rgba(255,255,255,0.08);
}

body.dark .todo-line-have,
body.dark .todo-line-need,
body.dark .todo-line-miss {
    color: #f1f5f9 !important;
}

body.dark .subtask-toggle-btn:hover {
    background: #2c323d;
    border-color: rgba(255,255,255,0.09);
}

body.dark .subtask-toggle-btn.subtask-done {
    background: rgba(35,165,90,0.14);
    border-color: rgba(35,165,90,0.26);
}

body.dark .subtask-toggle-btn.subtask-done span {
    color: #8ce0a8 !important;
}

/* Modals */
body.dark .modal-overlay {
    background: rgba(9, 11, 16, 0.72);
}

body.dark .custom-modal {
    background: #23272f;
    box-shadow: 0 24px 60px rgba(0,0,0,0.45);
}

body.dark .delete-warning-box {
    background: rgba(245, 158, 11, 0.12);
    border-color: rgba(245, 158, 11, 0.28);
    color: #f8d38a;
}

body.dark .danger-icon {
    background: rgba(214,80,80,0.18);
    color: #ffb3b3;
}

/* Footer */
body.dark .footer {
    background: #181c22;
    border-top: 1px solid rgba(255,255,255,0.06);
    color: #9aa4b2;
}

body.dark .footer-brand {
    color: #6aa6ff;
}

/* Login im Dark Mode */
body.dark .login-panel {
    background: rgba(35,39,47,0.96);
    box-shadow: 0 16px 40px rgba(0,0,0,0.45);
}

body.dark .login-form label,
body.dark .remember-row,
body.dark .login-footer-text {
    color: #d1d5db;
}

body.dark .login-footer-text span {
    color: #8fbcff;
}

.main-nav {
    display: none !important;
}

.home-info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    align-items: start;
}

.home-info-card {
    background: rgba(20, 24, 31, 0.92);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 18px;
    padding: 18px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.18);
    min-height: 220px;
}

.home-info-content {
    margin-top: 12px;
    line-height: 1.65;
    font-size: 15px;
    color: #d9e1ea;
    word-break: break-word;
}

.home-info-content p {
    margin: 0 0 12px;
}

.home-info-content h1,
.home-info-content h2,
.home-info-content h3,
.home-info-content h4 {
    margin: 0 0 12px;
    line-height: 1.3;
}

.home-info-content ul,
.home-info-content ol {
    padding-left: 20px;
    margin: 0 0 12px;
}

@media (max-width: 900px) {
    .home-info-grid {
        grid-template-columns: 1fr;
    }
}

.user-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255,255,255,0.12);
}

.panel-input {
    width: 100%;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.04);
    color: inherit;
    margin-top: 6px;
    box-sizing: border-box;
}

textarea.panel-input {
    resize: vertical;
    min-height: 120px;
}

.account-tile-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    margin-top: 30px;
}

.account-tile {
    padding: 18px;
    border-radius: 16px;
    height: 100%;
    box-sizing: border-box;
}

.account-tile h2 {
    margin-top: 0;
    margin-bottom: 18px;
    font-size: 1.8rem;
    font-weight: 700;
}

.account-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.account-form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.account-form-group label {
    font-weight: 600;
    color: #e5e7eb;
}

.account-avatar-box {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 10px 0 24px 0;
}

.account-avatar-large {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(255,255,255,0.12);
    box-shadow: 0 8px 24px rgba(0,0,0,0.35);
}

.account-info-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 10px;
}

.account-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.05);
}

.account-info-row-column {
    flex-direction: column;
    align-items: flex-start;
}

.account-alert {
    margin-top: 22px;
    margin-bottom: 10px;
    padding: 14px 18px;
    border-radius: 12px;
    font-weight: 600;
}

.account-alert.success {
    border-left: 4px solid #22c55e;
    background: rgba(34, 197, 94, 0.08);
}

.account-alert.error {
    border-left: 4px solid #ef4444;
    background: rgba(239, 68, 68, 0.08);
}

.panel-input {
    width: 100%;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.04);
    color: inherit;
    box-sizing: border-box;
}

textarea.panel-input {
    resize: vertical;
    min-height: 120px;
}

@media (max-width: 980px) {
    .account-tile-grid {
        grid-template-columns: 1fr;
    }
}
.home-admin-card,
.changelog-admin-card {
    min-height: 260px;
}

.home-admin-content,
.changelog-admin-content {
    margin-top: 14px;
    line-height: 1.65;
    font-size: 15px;
    color: inherit;
    word-break: break-word;
}

/* =========================================
   ADMIN PAGE COMPACT CARDS + USER SEARCH
   ========================================= */
.users-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.users-search-wrap {
    width: 100%;
    max-width: 440px;
}

.users-search-meta {
    margin-top: 8px;
    font-size: 13px;
    opacity: 0.75;
}

.users-table-wrap {
    overflow-x: auto;
}

.no-users-found-row {
    display: none;
}

.no-users-found-row td {
    text-align: center;
    padding: 18px 12px;
    opacity: 0.75;
}

@media (max-width: 900px) {
    .users-search-wrap {
        max-width: 100%;
    }
}

.home-admin-grid,
.changelog-admin-grid {
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    gap: 12px !important;
}

.home-admin-grid .storage-column,
.changelog-admin-grid .storage-column {
    min-height: auto !important;
    height: auto !important;
    padding: 12px !important;
}

@media (max-width: 1400px) {
    .home-admin-grid,
    .changelog-admin-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 1100px) {
    .home-admin-grid,
    .changelog-admin-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 800px) {
    .home-admin-grid,
    .changelog-admin-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 560px) {
    .home-admin-grid,
    .changelog-admin-grid {
        grid-template-columns: 1fr !important;
    }
}
.modal-overlay {
    position: fixed;
    inset: 0;
    overflow-y: auto;
    padding: 24px 16px;
    box-sizing: border-box;
}

.custom-modal,
.delete-modal {
    width: min(720px, 100%);
    max-height: calc(100vh - 48px);
    margin: auto;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

.custom-modal-header {
    flex-shrink: 0;
}

.modal-form {
    flex: 1 1 auto;
    overflow-y: auto;
    max-height: calc(100vh - 180px);
    padding-right: 4px;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .modal-overlay {
        padding: 12px;
    }

    .custom-modal,
    .delete-modal {
        max-height: calc(100vh - 24px);
    }

    .modal-form {
        max-height: calc(100vh - 140px);
    }
}

/* =========================================================
   GROUPCORE NAV / FOOTER REWORK
   ========================================================= */

:root {
    --gc-shell-bg-1: #081631;
    --gc-shell-bg-2: #0c2046;
    --gc-shell-bg-3: #133567;
    --gc-shell-border: rgba(255,255,255,0.08);
    --gc-shell-hover: rgba(255,255,255,0.08);
    --gc-shell-active: rgba(77, 146, 243, 0.22);
    --gc-shell-text: #eef4ff;
    --gc-shell-muted: rgba(238, 244, 255, 0.75);
    --gc-shadow: 0 20px 50px rgba(0,0,0,0.26);
}

body {
    min-height: 100vh;
}

.gc-topbar,
.gc-sidenav,
.gc-footer {
    background:
        linear-gradient(135deg, rgba(8, 22, 49, 0.97), rgba(12, 32, 70, 0.96)),
        radial-gradient(circle at top left, rgba(77, 146, 243, 0.16), transparent 40%);
    border: 1px solid var(--gc-shell-border);
    box-shadow: var(--gc-shadow);
    backdrop-filter: blur(14px);
}

.gc-brand-link,
.gc-brand-link:hover,
.gc-sidenav-brand,
.gc-sidenav-brand:hover {
    text-decoration: none;
}

/* =========================================
   TOP NAV
   ========================================= */

.gc-topbar {
    position: sticky;
    top: 0;
    z-index: 1300;
    border-radius: 0;
    border-left: none;
    border-right: none;
}

.gc-topbar-inner {
    width: min(1600px, calc(100% - 32px));
    margin: 0 auto;
    min-height: 78px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 20px;
}

.gc-brand-logo {
    height: 76px;
    width: auto;
    display: block;
}

.gc-topnav-shell {
    min-width: 0;
    overflow: hidden;
}

.gc-topnav {
    display: flex;
    align-items: center;
    gap: 10px;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    scrollbar-width: thin;
    padding: 6px 2px;
}

.gc-topnav::-webkit-scrollbar {
    height: 6px;
}

.gc-topnav-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 12px;
    color: var(--gc-shell-text) !important;
    text-decoration: none;
    transition: 0.18s ease;
    flex: 0 0 auto;
    font-weight: 600;
    font-size: 15px;
}

.gc-topnav-link:hover {
    background: var(--gc-shell-hover);
    color: #fff !important;
}

.gc-topnav-link.active {
    background: var(--gc-shell-active);
    color: #9cccff !important;
}

.gc-topnav-link.active::after {
    display: none;
}

.gc-user {
    position: relative;
}

.gc-user-btn {
    min-height: 52px;
    padding: 8px 14px;
    border-radius: 16px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.06);
    color: var(--gc-shell-text);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.gc-user-btn:hover {
    background: rgba(255,255,255,0.09);
}

/* =========================================
   SIDE NAV
   ========================================= */

.gc-sidenav {
    position: fixed;
    top: 14px;
    bottom: 14px;
    width: 74px;
    border-radius: 24px;
    z-index: 1350;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 12px 8px;
}

.gc-sidenav-left {
    left: 14px;
}

.gc-sidenav-right {
    right: 14px;
}

.gc-sidenav-top,
.gc-sidenav-bottom,
.gc-sidenav-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.gc-sidenav-brand,
.gc-sidenav-link,
.gc-side-user-trigger {
    width: 56px;
    height: 56px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gc-shell-text);
    text-decoration: none;
    background: rgba(255,255,255,0.035);
    border: 1px solid rgba(255,255,255,0.05);
    transition: 0.18s ease;
    position: relative;
}

.gc-sidenav-brand:hover,
.gc-sidenav-link:hover,
.gc-side-user-trigger:hover {
    background: rgba(255,255,255,0.085);
    color: #fff;
    transform: translateY(-1px);
}

.gc-sidenav-link.active {
    background: var(--gc-shell-active);
    color: #9cccff;
}

.gc-sidenav-link.active::after {
    display: none;
}

.gc-sidenav-brand-logo {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.gc-sidenav-link i,
.gc-side-user-trigger i {
    font-size: 18px;
}

.gc-sidenav-link-text {
    display: none;
}

.gc-sidenav-link::before,
.gc-side-user-trigger::before,
.gc-sidenav-brand::before {
    content: attr(data-label);
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: 0.18s ease;
    background: rgba(8, 16, 40, 0.97);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    padding: 10px 12px;
    font-size: 13px;
    line-height: 1;
    box-shadow: 0 12px 28px rgba(0,0,0,0.24);
    z-index: 1500;
}

.nav-position-left .gc-sidenav-link::before,
.nav-position-left .gc-side-user-trigger::before,
.nav-position-left .gc-sidenav-brand::before {
    left: calc(100% + 12px);
}

.nav-position-right .gc-sidenav-link::before,
.nav-position-right .gc-side-user-trigger::before,
.nav-position-right .gc-sidenav-brand::before {
    right: calc(100% + 12px);
}

.gc-sidenav-link:hover::before,
.gc-side-user-trigger:hover::before,
.gc-sidenav-brand:hover::before {
    opacity: 1;
    visibility: visible;
}

.gc-side-user-trigger {
    border: none;
    cursor: pointer;
}

.gc-side-user-trigger .user-avatar {
    width: 28px;
    height: 28px;
}

/* =========================================
   DROPDOWN
   ========================================= */

.gc-user-dropdown {
    width: 290px;
    border-radius: 16px;
    overflow: hidden;
}

.gc-dropdown-row {
    padding: 12px 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.gc-context-switch-wrap {
    padding: 10px 14px 14px;
}

.gc-context-switch-label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    opacity: 0.8;
}

.gc-side-user-dropdown {
    position: absolute;
    bottom: 0;
    top: auto;
}

.nav-position-left .gc-side-user-dropdown {
    left: calc(100% + 14px);
    right: auto;
}

.nav-position-right .gc-side-user-dropdown {
    right: calc(100% + 14px);
    left: auto;
}

/* =========================================
   PAGE / FOOTER SPACING
   ========================================= */

.nav-position-top .page-wrap,
.nav-position-top .gc-footer {
    width: min(1600px, calc(100% - 32px));
    margin-left: auto;
    margin-right: auto;
}

.nav-position-top .page-wrap {
    margin-top: 26px;
}

.nav-position-left .page-wrap,
.nav-position-left .gc-footer {
    width: auto;
    max-width: none;
    margin-left: 102px;
    margin-right: 20px;
}

.nav-position-right .page-wrap,
.nav-position-right .gc-footer {
    width: auto;
    max-width: none;
    margin-left: 20px;
    margin-right: 102px;
}

.nav-position-left .page-wrap,
.nav-position-right .page-wrap {
    margin-top: 20px;
}

/* =========================================
   FOOTER
   ========================================= */

.gc-footer {
    min-height: 68px;
    margin-bottom: 14px;
    margin-top: 26px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 0 22px;
    color: var(--gc-shell-text);
}

.gc-footer a {
    color: var(--gc-shell-text);
    text-decoration: none;
}

.gc-footer a:hover {
    color: #fff;
}

.gc-footer-left,
.gc-footer-center,
.gc-footer-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.gc-footer-center {
    justify-content: center;
    flex: 1;
}

.gc-footer-right {
    justify-content: flex-end;
}

/* =========================================
   MOBILE
   ========================================= */

@media (max-width: 1100px) {
    .gc-topbar-inner {
        grid-template-columns: auto 1fr;
        gap: 14px;
    }

    .gc-user {
        grid-column: 1 / -1;
        justify-self: end;
    }
}

@media (max-width: 980px) {
    .gc-sidenav {
        display: none;
    }

    .nav-position-left .page-wrap,
    .nav-position-left .gc-footer,
    .nav-position-right .page-wrap,
    .nav-position-right .gc-footer {
        width: min(1600px, calc(100% - 24px));
        margin-left: auto;
        margin-right: auto;
    }

    .nav-position-left .page-wrap,
    .nav-position-right .page-wrap {
        margin-top: 18px;
    }
}

@media (max-width: 860px) {
    .gc-topbar-inner {
        width: calc(100% - 20px);
        min-height: 74px;
    }

    .gc-brand-logo {
        height: 36px;
    }

    .gc-topnav-link {
        font-size: 14px;
        padding: 9px 12px;
    }

    .gc-footer {
        flex-direction: column;
        justify-content: center;
        gap: 8px;
        padding: 14px 18px;
    }

    .gc-footer-center,
    .gc-footer-right,
    .gc-footer-left {
        justify-content: center;
    }
}

/* =========================================
   USER DROPDOWN FEINSCHLIFF
   ========================================= */

.gc-user-dropdown {
    width: 290px;
    border-radius: 18px;
    overflow: hidden;
    padding: 8px 0;
}

.gc-user-dropdown .gc-dropdown-row,
.gc-user-dropdown .gc-context-switch-wrap,
.gc-user-dropdown .dropdown-link {
    position: relative;
}

/* mehr Luft oben beim Darkmode-Block */
.gc-user-dropdown .gc-dropdown-row {
    padding: 16px 16px 14px;
    margin: 0;
}

/* Trennstreifen unter Darkmode */
.gc-user-dropdown .gc-dropdown-row::after {
    content: "";
    display: block;
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 0;
    height: 1px;
    background: rgba(255,255,255,0.08);
}

/* Kontextblock etwas luftiger */
.gc-user-dropdown .gc-context-switch-wrap {
    padding: 14px 16px 16px;
}

/* Trennstreifen unter Kontextblock */
.gc-user-dropdown .gc-context-switch-wrap::after {
    content: "";
    display: block;
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 0;
    height: 1px;
    background: rgba(255,255,255,0.08);
}

.gc-user-dropdown .gc-context-switch-label {
    margin-bottom: 10px;
    font-size: 13px;
    opacity: 0.8;
}

.gc-user-dropdown .panel-select {
    margin-bottom: 10px;
}

/* Actions luftiger machen */
.gc-user-dropdown .dropdown-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 16px;
    min-height: 50px;
    transition: 0.18s ease;
}

/* leichter Hover */
.gc-user-dropdown .dropdown-link:hover {
    background: rgba(255,255,255,0.04);
}

/* Trennstreifen zwischen den Action-Links */
.gc-user-dropdown .dropdown-link:not(:last-child)::after {
    content: "";
    display: block;
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 0;
    height: 1px;
    background: rgba(255,255,255,0.08);
}
