body {
    background-color: #f6f7fb;
    color: #1f2533;
}

.admin-body {
    background-color: #eef1f7;
}

.admin-layout {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 280px 1fr;
}

.admin-sidebar {
    background: linear-gradient(180deg, #101828 0%, #1f2937 100%);
    color: #fff;
    padding: 24px 18px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.admin-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.admin-close {
    margin-left: auto;
    display: none;
}

.brand-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #f4c542;
    display: grid;
    place-items: center;
    color: #1f2937;
    font-size: 22px;
}

.brand-title {
    font-weight: 700;
    font-size: 18px;
}

.brand-subtitle {
    font-size: 12px;
    color: #cbd5f5;
}

.admin-menu {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.menu-label {
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.08em;
    color: #94a3b8;
    margin-top: 6px;
}

.menu-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    color: #e2e8f0;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
    position: relative;
}

.menu-link i {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: rgba(148, 163, 184, 0.16);
    color: #f8fafc;
    font-size: 16px;
    transition: background 0.2s ease, transform 0.2s ease;
}

.menu-link span {
    white-space: nowrap;
}

.menu-link:hover {
    background: rgba(148, 163, 184, 0.2);
    color: #fff;
    box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.2);
}

.menu-link:hover i {
    background: rgba(248, 250, 252, 0.18);
    transform: translateX(1px);
}

.admin-content {
    display: flex;
    flex-direction: column;
}

.admin-topbar {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 28px;
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
    position: sticky;
    top: 0;
    z-index: 1050;
}

.admin-toggle {
    display: none;
}

.admin-search {
    align-items: center;
    gap: 8px;
    background: #f1f5f9;
    border-radius: 999px;
    padding: 6px 12px;
}

.admin-search input {
    border: none;
    background: transparent;
    width: 220px;
}

.admin-search input:focus {
    outline: none;
}

.admin-user {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #0ea5e9;
    color: #fff;
    display: grid;
    place-items: center;
    font-weight: 600;
}

.user-info {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.user-role {
    font-size: 12px;
    color: #64748b;
}

.admin-main {
    padding: 28px;
}

.admin-main .card {
    border: none;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
}

.sort-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: inherit;
}

.sort-indicator {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 999px;
    background: #eef2ff;
    color: #4338ca;
    font-size: 12px;
}

.sort-link:hover .sort-indicator {
    background: #e0e7ff;
}

.drag-handle {
    cursor: grab;
}

.drag-handle:active {
    cursor: grabbing;
}

.relation-search-results {
    margin-top: 8px;
    max-height: 240px;
    overflow-y: auto;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
}

.relation-search-results:empty {
    display: none;
}

.relation-search-results .list-group-item {
    border: none;
}

.relation-search-selected {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.relation-search-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.relation-search-chip .btn-close {
    font-size: 0.6rem;
    filter: invert(1);
}

.sortable-row.is-dragging {
    opacity: 0.6;
}

@media (max-width: 992px) {
    .admin-layout {
        grid-template-columns: 1fr;
    }

    .admin-layout.toggled {
        grid-template-columns: 1fr;
    }

    .admin-sidebar {
        position: fixed;
        top: 76px;
        bottom: 0;
        left: 0;
        width: 220px;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        transform: translateX(-100%);
        transition: transform 0.2s ease;
        z-index: 1040;
    }

    #wrapper.toggled .admin-sidebar {
        transform: translateX(0);
    }

    .admin-content {
        margin-left: 0;
    }

    .admin-toggle {
        display: inline-flex;
    }

    .admin-close {
        display: inline-flex;
    }
}

.cookie-consent-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1060;
    background: #fff;
    color: #1f2937;
    min-height: 96px;
    border-top: 1px solid #C7C7C7;
    box-shadow: 0 -8px 24px rgba(15, 23, 42, 0.12);
    display: flex;
    align-items: center;
}

.cookie-consent-content {
    width: 100%;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    justify-content: space-between;
}

.cookie-consent-text {
    flex: 1;
    min-width: 0;
    font-size: 14px;
    line-height: 1.5;
}

.cookie-consent-accept {
    flex-shrink: 0;
    white-space: nowrap;
    background: #fff;
    border: 2px solid #C7C7C7;
    color: #4b5563;
    font-size: 14px;
    font-weight: 600;
    padding: 6px 22px;
}

.cookie-consent-accept:hover,
.cookie-consent-accept:focus {
    background: #fff;
    border-color: #9ca3af;
    color: #1f2937;
}

.cookie-consent-hidden {
    display: none;
}

@media (max-width: 576px) {
    .cookie-consent-banner {
        min-height: auto;
        padding: 12px 0;
    }

    .cookie-consent-content {
        padding: 0 12px;
        gap: 10px;
    }

    .cookie-consent-text {
        font-size: 13px;
        line-height: 1.35;
    }

    .cookie-consent-accept {
        padding: 6px 16px;
    }
}
