html, body {
    font-family: "Inter", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    color: #e2e8f0;
    min-height: 100vh;
    font-size: 1rem;
}

body {
    background-color: rgb(37, 41, 42) !important;
}

a, .btn-link {
    color: #60a5fa;
}

a:hover, .btn-link:hover {
    color: #93c5fd;
}

.btn-primary {
    color: #fff;
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    border: 1px solid rgba(124, 58, 237, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
}

.btn-info {
    color: #fff;
    background: linear-gradient(135deg, #0ea5e9 0%, #06b6d4 100%);
    border: none;
    transition: all 0.2s ease-in-out;
}

.btn-info:hover {
    background: linear-gradient(135deg, #38bdf8 0%, #22d3ee 100%);
    transform: translateY(-1px);
}

.btn-success {
    color: #fff;
    background: linear-gradient(135deg, #10b981 0%, #14b8a6 100%);
    border: none;
    transition: all 0.2s ease-in-out;
}

.btn-success:hover {
    background: linear-gradient(135deg, #34d399 0%, #2dd4bf 100%);
    transform: translateY(-1px);
}

.btn-secondary {
    color: #fff;
    background: linear-gradient(135deg, #64748b 0%, #475569 100%);
    border: none;
    transition: all 0.2s ease-in-out;
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #94a3b8 0%, #64748b 100%);
    transform: translateY(-1px);
}

.btn-outline-secondary {
    color: #94a3b8;
    border-color: #475569;
    background: transparent;
}

.btn-outline-secondary:hover {
    background-color: #475569;
    border-color: #64748b;
    color: #e2e8f0;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem rgba(79, 70, 229, 0.5), 0 0 0 0.25rem rgba(79, 70, 229, 0.25);
}

.content {
    padding-top: 1.1rem;
}

h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor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kuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}

/* Clickable card styles for Game page */
.clickable-card {
    transition: all 0.2s ease-in-out !important;
    user-select: none;
}

.clickable-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 123, 255, 0.15);
    border-color: #0d6efd !important;
}

.clickable-card:active {
    transform: translateY(0);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.2);
}

/* Mobile touch feedback */
@media (hover: none) and (pointer: coarse) {
    .clickable-card:active {
        background-color: rgba(0, 123, 255, 0.1) !important;
        transform: scale(0.98);
    }
}

/* Sävis Modal Styling */
.modal-content.bg-dark {
    border: 1px solid #495057;
}

.modal-header.border-secondary {
    border-bottom-color: #495057 !important;
}

.modal-footer.border-secondary {
    border-top-color: #495057 !important;
}

/* Large modal buttons */
.modal-body .btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    border-radius: 0.5rem;
}

.modal-body .btn-lg i,
.modal-body .btn-lg span {
    font-size: 1.2rem;
}

/* Cards */

.card,
.list-group-item {
    background-color: rgb(44, 47, 48) !important;
    border-color: rgb(53, 57, 58) !important;
}

.card.selected {
    background-color: rgba(0.98, 0.725, 0, 0.1) !important;
    border-color: #fab900 !important;
}

/* Text */

.text-primary {
    color: #fab900 !important;
}

.text-statistics {
    background: linear-gradient(to bottom right, #d397fa, #8278DA);
    background-clip: text;
    color: transparent;
}

.text-achievement {
    background: linear-gradient(135deg, #fbd07c 0%, #f7f779 100%);
    background-clip: text;
    color: transparent;
}

/* Forms */

.form-control,
.form-select {
    background-color: rgba(29, 31, 32, 0.5) !important;
}

/* Custom Button Styles */

/* Statistics Button - Blue gradient */
.btn-statistics {
    background-image: linear-gradient(to bottom right, #d397fa, #8278DA);
    border: none;
    transition: all 0.2s ease-in-out;
    color: rgb(29, 31, 32)!important;
}

.btn-statistics:hover {
    background-image: linear-gradient(to bottom right, #e4b4fb, #9590e4);
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(211, 151, 250, 0.25);
    color: rgb(29, 31, 32)!important;
}

.btn-statistics:focus {
    box-shadow: 0 0 0 0.1rem rgba(211, 151, 250, 0.5), 0 0 0 0.25rem rgba(211, 151, 250, 0.25);
    color: rgb(29, 31, 32)!important;
}

.btn-statistics:active {
    background-image: linear-gradient(to bottom right, #c47ff9, #7066d6);
    transform: translateY(0);
    color: rgb(29, 31, 32)!important;
}

/* Statistics Button Outline - Blue gradient on text */
.btn-outline-statistics {
    background: transparent;
    border: 1px solid #8278DA;
    transition: all 0.2s ease-in-out;
    color: transparent;
}

.btn-outline-statistics i,
.btn-outline-statistics {
    background: linear-gradient(to bottom right, #d397fa, #8278DA);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.btn-outline-statistics:hover {
    background: linear-gradient(to bottom right, #d397fa, #8278DA) !important;
    border-color: #8278DA;
    transform: translateY(-1px);
    color: rgb(29, 31, 32)!important;
    -webkit-background-clip: unset !important;
    -webkit-text-fill-color: rgb(29, 31, 32) !important;
    background-clip: unset !important;
}

.btn-outline-statistics:hover i {
    background: none !important;
    -webkit-background-clip: unset !important;
    -webkit-text-fill-color: rgb(29, 31, 32) !important;
    background-clip: unset !important;
}

.btn-outline-statistics:active {
    background: linear-gradient(to bottom right, #c47ff9, #7066d6) !important;
    border-color: #7066d6;
    transform: translateY(0);
    color: rgb(29, 31, 32)!important;
    -webkit-background-clip: unset !important;
    -webkit-text-fill-color: rgb(29, 31, 32) !important;
    background-clip: unset !important;
}

.btn-outline-statistics:active i {
    background: none !important;
    -webkit-background-clip: unset !important;
    -webkit-text-fill-color: rgb(29, 31, 32) !important;
    background-clip: unset !important;
}

/* Achievement Button - Green gradient */
.btn-achievement {
    background: linear-gradient(135deg, #fbd07c 0%, #f7f779 100%);
    border: none;
    box-shadow: 0 1px 4px rgba(16, 185, 129, 0.2);
    transition: all 0.2s ease-in-out;
    color: rgb(29, 31, 32)!important;
}

.btn-achievement:hover {
    background: linear-gradient(135deg, #fcd790 0%, #f9f98d 100%);
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(251, 208, 124, 0.25);
    color: rgb(29, 31, 32)!important;
}

.btn-achievement:focus {
    box-shadow: 0 0 0 0.1rem rgba(251, 208, 124, 0.5), 0 0 0 0.25rem rgba(251, 208, 124, 0.25);
    color: rgb(29, 31, 32)!important;
}

.btn-achievement:active {
    background: linear-gradient(135deg, #f9c968 0%, #f5f565 100%);
    transform: translateY(0);
    color: rgb(29, 31, 32)!important;
}

/* Achievement Button Outline - Yellow gradient on text */
.btn-outline-achievement {
    background: transparent;
    border: 1px solid #f7f779;
    transition: all 0.2s ease-in-out;
    color: transparent;
}

.btn-outline-achievement i,
.btn-outline-achievement {
    background: linear-gradient(135deg, #fbd07c 0%, #f7f779 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.btn-outline-achievement:hover {
    background: linear-gradient(135deg, #fbd07c 0%, #f7f779 100%) !important;
    border-color: #f7f779;
    transform: translateY(-1px);
    color: rgb(29, 31, 32)!important;
    -webkit-background-clip: unset !important;
    -webkit-text-fill-color: rgb(29, 31, 32) !important;
    background-clip: unset !important;
}

.btn-outline-achievement:hover i {
    background: none !important;
    -webkit-background-clip: unset !important;
    -webkit-text-fill-color: rgb(29, 31, 32) !important;
    background-clip: unset !important;
}

.btn-outline-achievement:active {
    background: linear-gradient(135deg, #f9c968 0%, #f5f565 100%) !important;
    border-color: #f5f565;
    transform: translateY(0);
    color: rgb(29, 31, 32)!important;
    -webkit-background-clip: unset !important;
    -webkit-text-fill-color: rgb(29, 31, 32) !important;
    background-clip: unset !important;
}

.btn-outline-achievement:active i {
    background: none !important;
    -webkit-background-clip: unset !important;
    -webkit-text-fill-color: rgb(29, 31, 32) !important;
    background-clip: unset !important;
}

/* Leaderboard Button - Pink gradient */
.btn-leaderboard {
    background-image: linear-gradient(to right, #f78ca0 0%, #f9748f 19%, #fd868c 60%, #fe9a8b 100%);
    border: none !important;
    box-shadow: 0 1px 4px rgba(247, 140, 160, 0.2);
    transition: all 0.2s ease-in-out;
    color: rgb(29, 31, 32) !important;
}

.btn-leaderboard:hover {
    background-image: linear-gradient(to right, #f9a0b4 0%, #fba0a3 19%, #fea0a0 60%, #ffb4a9 100%) !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(247, 140, 160, 0.25);
    color: rgb(29, 31, 32) !important;
}

.btn-leaderboard:focus {
    box-shadow: 0 0 0 0.1rem rgba(247, 140, 160, 0.5), 0 0 0 0.25rem rgba(247, 140, 160, 0.25) !important;
    color: rgb(29, 31, 32) !important;
}

.btn-leaderboard:active {
    background-image: linear-gradient(to right, #f5788c 0%, #f7607b 19%, #fb7278 60%, #fc8677 100%) !important;
    transform: translateY(0);
    color: rgb(29, 31, 32) !important;
}

/* Accordion Styling */
.accordion {
    --bs-accordion-color: #e2e8f0;
    --bs-accordion-bg: rgb(52, 54, 55);
    --bs-accordion-border-color: rgb(53, 57, 58);
    --bs-accordion-btn-color: #e2e8f0;
    --bs-accordion-btn-bg: rgb(44, 47, 48);
    --bs-accordion-active-color: #e2e8f0;
    --bs-accordion-active-bg: rgb(41, 44, 45);
}

.accordion-button:hover {
    background-color: rgb(41, 44, 45);
}

.accordion-button:not(.collapsed) {
    background-color: rgb(41, 44, 45);
}

.accordion-button::after {
    filter: brightness(0) saturate(100%) invert(90%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(100%) contrast(90%);
}

.accordion-button:not(.collapsed)::after {
    filter: brightness(0) saturate(100%) invert(77%) sepia(76%) saturate(445%) hue-rotate(360deg) brightness(102%) contrast(98%);
}

.accordion-body {
    background-color: rgba(38, 41, 42, 1);
}

.completed {
    border-color: rgb(247, 220, 126) !important;
}

.completed h6,
.completed small {
    color: rgb(247, 220, 126) !important;
}