@import url('open-iconic/font/css/open-iconic-bootstrap.min.css');

:root {
    color-scheme: light dark;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #f0f2f5;
}

.theme-toggle {
    position: relative;
}

#theme-toggle-input {
    display: none;
}

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    appearance: none;
    margin: 0;
}

.card {
    background-color: light-dark(#FFF, #2B2B2B) !important;
}

.checkboxLabel {
    color: light-dark(black, white) !important;
}

.darkModeCard {
    color: light-dark(black, white) !important;
}

.no-spinner::-webkit-outer-spin-button,
.no-spinner::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.no-spinner {
    -moz-appearance: textfield;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(calc(240px + 1px), 1fr));
    gap: 0.75rem;
}

.operators-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(calc(280px + 1px), 1fr));
    gap: 0.75rem;
}

.toggle-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 82px;
    height: 40px;
    background-color: light-dark(#ccc, #ccc);
    border-radius: 30px;
    padding: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    position: relative;
}

.sun-icon, .moon-icon {
    font-size: 24px;
    transition: opacity 0.3s ease;
    color: light-dark(#FFF, #FFF);
}

.moon-icon {
    color: light-dark(#FFD700, #FFD700);
}

.sun-icon:before {
    color: light-dark(#FFF, #FFF);
}

.moon-icon:before {
    color: light-dark(#FFF, #FFF);
}

.dot {
    position: absolute;
    top: 50%;
    left: 5px;
    width: 35px;
    height: 35px;
    background-color: light-dark(black, black);
    border-radius: 50%;
    transform: translateY(-50%);
    transition: left 0.3s ease;
}

#theme-toggle-input:checked + .toggle-label {
    background-color: light-dark(#333, #333);
}

#theme-toggle-input:checked + .toggle-label .sun-icon {
    opacity: 1;
}

#theme-toggle-input:checked + .toggle-label .moon-icon {
    opacity: 0;
}

#theme-toggle-input:checked + .toggle-label .dot {
    left: 45px;
}

#theme-toggle-input:checked + .toggle-label .sun-icon:before {
    color: light-dark(#FFD700, #FFD700);
}

#theme-toggle-input:checked + .toggle-label .moon-icon:before {
    color: light-dark(#FFF, #FFF);
}

html, body {
    font-family: 'Verdana', sans-serif;
    background-color: light-dark(white, #303030);
    color: light-dark(#333, white);
}

input[type=date] {
    color-scheme: light;
}

input[type=checkbox] {
    color-scheme: light;
}

input[type=month] {
    color-scheme: light;
}

input[type=week] {
    color-scheme: light;
}

input[type=radio] {
    color-scheme: light;
}

.input-group-text.fixed-width {
    width: 5rem;
    min-width: 5rem;
    display: flex;
    align-items: center;
    justify-content: start;
}

.oi-spin {
    animation: spin 1s infinite linear;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

input[type=time] {
    color-scheme: light;
}

input[type=datetime] {
    color-scheme: light;
}

input[type=datetime-local] {
    color-scheme: light;
}

.card-body {
    color: light-dark(black, black);
}

.table {
    color: light-dark(#212529, white);
}

/*thead > tr:hover {
    color: light-dark(black, white) !important;
}*/

tr:hover:not(:where(thead tr, thead tr *)) {
    color: light-dark(var(--bs-table-hover-color), #dfd8d7) !important;
}

.table-striped > tbody > tr:nth-of-type(odd) {
    color: light-dark(var(--bs-table-striped-color), white);
}

.dropdown-menu {
    background-color: light-dark(white, #303030);
    color: light-dark(#333, white);
}

p {
    font-size: 1.1rem;
    line-height: 1.6;
}

h1:focus {
    outline: none;
}

a, .btn-link {
    color: light-dark(#0071c1, #47bef5);
}

.btn-primary {
    color: light-dark(#fff, #121212);
    background-color: light-dark(#1b6ec2, #3190e0);
    border-color: light-dark(#1861ac, #2d7fd2);
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.content {
    padding-top: 1.1rem;
}

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

.invalid {
    outline: 1px solid;
    outline-color: light-dark(red, #ff4d4d);
}

.validation-message {
    color: light-dark(red, #ff4d4d);
}

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

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

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: light-dark(white, #121212);
}

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

.pagination-wrapper {
    display: flex;
    justify-content: center;
    width: 100%;
    overflow: hidden;
}

.pagination {
    display: flex;
    list-style: none;
    flex-wrap: wrap;
    max-width: 800px;
    gap: 5px;
    padding: 0;
}

    .pagination .page-item {
        display: flex;
    }

.page-link {
    padding: 8px 12px;
    color: light-dark(#007bff, #339dff);
    border: 1px solid;
    border-color: light-dark(#ddd, #2e2e2e);
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

    .page-link:hover {
        background-color: light-dark(#007bff, #339dff);
        color: light-dark(white, #121212);
    }

.page-item.active .page-link {
    background-color: light-dark(#007bff, #339dff);
    color: light-dark(white, #121212);
    pointer-events: none;
}

.page-item.disabled .page-link {
    color: light-dark(#ddd, #2e2e2e);
    cursor: not-allowed;
}

.form-row {
    display: flex;
    gap: 15px;
}

.form-group {
    flex: 1;
}

.margin-t-20 {
    margin-top: 20px;
}

.margin-r-20 {
    margin-right: 20px;
}

.margin-b-20 {
    margin-bottom: 20px;
}

.margin-b-30 {
    margin-bottom: 30px;
}

.margin-l-15 {
    margin-left: 15px;
}

.margin-r-15 {
    margin-left: 15px;
}

.bold-text {
    font-weight: bold;
}

.radio-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.nav-item .nav.flex-column {
    padding-left: 20px;
    margin-top: 10px;
}

.nav-link-no-color {
    color: light-dark(#d7d7d7, #2e2e2e) !important;
}

.outer-nav {
    margin-left: 15px;
    padding-top: 0px;
    padding-bottom: 0px;
}

.padding-top-bottom-0 {
    padding-top: 0px !important;
    padding-bottom: 0px !important;
}

.padding-left-right-0 {
    padding-left: 0px !important;
    padding-right: 0px !important;
}

.padding-left-right-10 {
    padding-left: 10px;
    padding-right: 10px;
}

.padding-left-20 {
    padding-left: 20px;
}

.padding-top-bottom-10 {
    padding-top: 10px;
    padding-bottom: 10px;
}

.padding-bottom-30 {
    padding-bottom: 30px;
}

a.hover-effect:hover {
    color: light-dark(#0056b3, #007aff) !important;
}

/*.fade-in-out {
    opacity: 1; 
    animation: fadeOut 5s forwards;
}

@keyframes fadeOut {
    0% {
        opacity: 1;*/ /* Fully visible at the start */
/*}

    100% {
        opacity: 0;*/ /* Fully invisible at the end */
/*}
}*/

.fade-in-out {
    opacity: 1;
    animation: fadeOut 5s forwards;
    transition: opacity 0.5s ease-in-out; /* Smooth fade-in */
}

    .fade-in-out.hidden {
        opacity: 0; /* Element fades out */
        pointer-events: none; /* Prevent interaction after fade */
    }

@keyframes fadeOut {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

.divider {
    display: flex;
    align-items: center;
    text-align: center;
}

    .divider::before, .divider::after {
        content: '';
        flex: 1;
        border-bottom: 1px solid;
        border-color: light-dark(gray, #A6A6A6);
    }

    .divider:not(:empty)::before {
        margin-right: 10px;
    }

    .divider:not(:empty)::after {
        margin-left: 10px;
    }

.divider-text {
    font-size: 16px;
}

label.rotate::before {
    content: '\25B6';
    display: inline-block;
    margin-right: 10px;
    transition: transform 0.3s ease;
}

labe.rotate {
    cursor: pointer;
    margin-bottom: 10px;
    display: inline-block;
    font-weight: bold;
}

label.rotate:hover {
    color: light-dark(#2185D0, #39A7E0);
    cursor: pointer;
}

.modal-content {
    background-color: light-dark(#FFF, #303030);
}

table {
    width: 100%;
    white-space: nowrap;
}

.sortable-header {
    cursor: pointer;
}

.payed-matrix {
    min-width: 120px;
    max-width: 200px;
    margin-left: auto;
    margin-right: auto;
}

.table-container {
    display: flex;
    justify-content: space-around;
    align-items: flex-start;
    margin-top: 50px;
}

.table-wrapper {
    text-align: center;
}

    .table-wrapper p {
        margin-bottom: 20px;
        font-weight: bold;
    }

.list-inline-item {
    background-color: light-dark(lightblue, #3a6b8e);
    padding: 10px;
    margin-right: 10px;
    border-radius: 5px;
}

.legend-item {
    font-size: 14px;
    margin-bottom: 5px;
}

.image-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

.img-element {
    max-width: 100%;
    height: auto;
}

.image-container-corner {
    position: relative;
}

.custom-paragraph {
    font-size: 16px;
    color: light-dark(#2185D0, #39A7E0);
    font-weight: bold;
}

.nav-link {
    padding-left: 10px;
    color: light-dark(white, white) !important;
}

.nav-tabs .nav-link-ge.active {
    color: #495057;
    background-color: #fff;
    border-color: #dee2e6 #dee2e6 #fff;
}

.nav-tabs .nav-link-ge {
    margin-bottom: -1px;
    background: 0 0;
    border: 1px solid transparent;
    border-top-left-radius: .25rem;
    border-top-right-radius: .25rem;
}

.nav-link-ge {
    padding-left: 10px;
    display: block;
    padding: .5rem 1rem;
    color: #0d6efd;
    text-decoration: none;
    transition: color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out;
}

li.nav-item {
    padding-left: 10px;
}

.styled-hr {
    border: none;
    height: 2px;
    background: linear-gradient(to right, #4b79a1, #283e51);
    margin: 20px 0;
}

.loader {
    width: 115px;
    height: 90px;
}

.width-20 {
    width: 20px !important;
}

.table-striped > tbody > tr > td.custom-row-color {
    background-color: light-dark(#c3def5, #121212);
}

.select-height {
    line-height: 2; /* Increase the line height to make options taller */
}

.option-padding {
    padding: 8px 0;
}

.scrollable-vertical {
    max-height: calc(100vh - 56px);
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 0.5rem;
}

    .scrollable-vertical::-webkit-scrollbar {
        width: 8px;
    }

    .scrollable-vertical::-webkit-scrollbar-thumb {
        background-color: light-dark(#ccc, #303030);
        border-radius: 4px;
    }

        .scrollable-vertical::-webkit-scrollbar-thumb:hover {
            background-color: light-dark(#888, #444444);
        }

.user-info-wrapper {
    position: relative;
    display: inline-block;
}

.user-info {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: light-dark(#fff, #121212);
    color: light-dark(#000, #e5e5e5);
    padding: 10px;
    border: 1px solid;
    border-color: light-dark(#ccc, #303030);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    white-space: nowrap;
    z-index: 10;
}

.user-info-wrapper:hover .user-info {
    display: block;
}

.custom-placeholder::placeholder {
    color: light-dark(#2185D0, #39A7E0);
    opacity: 1;
}

.validation-message {
    color: light-dark(red, #ff4d4d);
    font-size: 0.875rem;
    margin-top: 4px;
    min-height: 1em;
}

.margin-t-40 {
    margin-top: 40px;
}

a {
    text-decoration: none;
}

@media (max-width: 1350px) {
    #simulatorResults > div {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    table {
        overflow-x: auto !important;
    }

    #rtpCalculatorResults > div {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    #rtpCalculatorMenu {
        flex-direction: column !important;
    }

    .rtpCheckBoxes {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 0;
        margin-top: 1rem;
    }

        .rtpCheckBoxes > div {
            margin: 0 !important;
        }

    .selectedGamesMenu {
        grid-template-columns: repeat(3, 1fr) !important;
    }

    #simulatorSelectedGames {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 1100px) {
    .selectedGamesMenu {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    #simulatorSelectedGames {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 1050px) {
    #simulatorResults > div {
        grid-template-columns: 1fr !important;
    }

    #rtpCalculatorResults > div {
        grid-template-columns: 1fr !important;
    }

    .selectedGamesMenu {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 950px) {
    #settingsCollapse {
        width: 100% !important;
    }

    #statisticsCollapse {
        width: 100% !important;
    }

    #simulatorResults > div {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    #rtpCalculatorResults > div {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    #simulatorSelectedGames {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    #mainContentMonthlyReports {
        width: 100% !important;
    }
}

@media (max-width: 750px) {
    #simulatorResults > div {
        grid-template-columns: 1fr !important;
    }

    #rtpCalculatorResults > div {
        grid-template-columns: 1fr !important;
    }

    .selectedGamesMenu {
        grid-template-columns: 1fr !important;
    }

    #simulatorSelectedGames {
        grid-template-columns: 1fr !important;
    }
}

.icon-color {
    color: light-dark(#2185D0, #39A7E0);
}

.red {
    color: light-dark(red, red);
}

.btn-rounded {
    border-radius: 20px !important;
}

.custom-reel-td {
    width: 40px;
    padding: 0;
    border: 0px;
}

/* Scoped styles for Account/Manage pages so nav items are readable on light background */
.account-manage .nav-link {
    color: #212529 !important; /* override global .nav-link white */
}

.account-manage .nav-link:hover {
    color: #0d6efd !important;
}

/* Active state already sets bg-primary text-white via ActiveClass */
.account-manage .nav-link.active {
    color: #fff !important;
}