﻿
:root {
    --dark-mode-nav-text-color: rgba(255,255,255,0.6980392156862745);
    --nav-btn-hover-bg-color: #f3f4f6;
    --nav-btn-hover-text-color: #1a1a1a;
    --primary-bg-color: #f8f9fa;
    --secondary-bg-color: white;
    --tertiary-bg-color: var(--primary-bg-color);
    --primary-text-color: black;
    --border-color: #e2e8f0;
    --navbar-text-color: #6b7280;
}

.dark-mode {
    --primary-bg-color: #2C2D32;
    --secondary-bg-color: rgba(55,55,64,1);
    --tertiary-bg-color: #2e2e38;
    --primary-text-color: rgba(255,255,255,0.6980392156862745);
    --border-color: rgba(255, 255, 255, 0.3);
    --navbar-text-color: rgba(255,255,255,0.6980392156862745);
    --tenant-colour-primary: #888888;
    --tenant-colour-secondary: #888888;
    --tenant-colour-tertiary: #888888;
    --mud-palette-primary: #888888;
    --mud-palette-primary-rgb: rgb(136, 136, 136);
    --mud-palette-primary-text: rgba(255,255,255,0.6980392156862745);
    --mud-palette-secondary: #888888;
    --mud-palette-secondary-text: rgba(255,255,255,0.6980392156862745);
    --mud-palette-primary-darken: #101010;
    --mud-palette-secondary-darken: #101010;
    --mud-palette-primary-lighten: #777777;
    --mud-palette-secondary-lighten: #777777;
}

.mud-list-subheader {
    font-weight: 800;
}

.mud-container {
    padding-top: 10px;
}

.mud_avatar {
    height: 40px;
    width: 40px;
}

.generatePdfButton {
    background-color: yellow !important;
}

.demo_simulate_button, .demo_simulate_button:hover {
    background-color: yellow !important;
    color: green !important;
}

#blazor-error-ui {
    z-index: 99999 !important;
    background-color: lightsteelblue !important;
}

.mud-dialog {
    max-height: calc(100vh - var(--mud-appbar-height));
    overflow: scroll;
}

.mud-drawer-open-responsive-md-left .mud-main-content {
    margin-left: 270px !important;
}

.isDisabled {
    color: currentColor;
    cursor: not-allowed;
    opacity: 0.5;
    text-decoration: none;
}

    .isDisabled a {
        cursor: not-allowed;
    }

.buttonlink {
    border: 1px solid lightgrey;
    border-radius: 10px;
    height: 70px;
    padding: 10px;
    margin: 10px;
    font-weight: 100;
    text-transform: none;
}

/*    .buttonlink:hover, .cSelect:hover .button {
        background-color: green;
        color: white;
        border: 1px solid black;
    }*/

.tabPanel {
    margin-top: 20px;
    margin-bottom: 10px;
}

.mud-button {
    text-transform: none;
}

.mud-tab {
    padding: 6px 18px;
    text-transform: none;
}

.maincontainer {
    width: 100%;
    padding-left: 0px;
}

.mainlayout-badge > .mud-badge-wrapper > .mud-badge.mud-badge-top.right.mud-badge-overlap {
    inset: auto auto calc(100% - 16px) calc(100% - 16px);
}

.sticky {
    position: fixed;
    top: 0;
    width: 100%;
}

.userIcon {
    width: 50px;
    height: 50px;
}

.mud-drawer-open-responsive-md-left .mud-appbar {
    box-shadow: var(--mud-elevation-25);
    width: calc(100% - 200px);
    left: unset !important;
}

.mud-drawer-close-responsive-md-left .mud-appbar {
    width: 100%;
}

.mud-drawer--closed .side-nav {
    display: none;
}

.headerIcon {
    width: 30px;
}

@media screen and (max-width:1600px) {
    .mud-appbar {
        width: calc(100% - 200px);
    }
}

.bgAlert {
    background-image: linear-gradient(to top, rgba(255,99,71,0.3),rgba(0,0,0,0));
    border-radius: 10px;
    background-color: unset !important;
}

.buttonLoading {
    margin-left: 10px;
}

.mud-typography-body1 {
    font-size: .875rem;
}

.templateHelper {
}

.transactionDocPanel {
    position: relative;
}

.transactionDocPanelDelete {
    position: absolute;
    bottom: -10px;
    right: -10px;
    height: 35px;
    width: 35px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
}


.show-change {
    background-color: red;
}

.backgroundJob {
    bottom: 10px;
    left: 10px;
    position: fixed;
    z-index: 9999999999;
}

/* Styling for the loading icon */
#loading-container {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loading-icon {
    border: 8px solid #f3f3f3;
    border-top: 8px solid #3498db;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.contingentBox {
    box-shadow: var(--mud-elevation-25);
}

.contingentBoxAIHighlight {
    background: linear-gradient(135deg, #eef7ff, #f8fbff);
    border: 1px solid #4b9cd3;
    border-radius: 10px;
    padding: 1rem;
    position: relative;
    margin-bottom:10px;
}

.contingentBoxAIHighlight .ai-icon {
        position: absolute;
        top: -8px;
        left: -6px;
        color: #4b9cd3;
        opacity: 0.8;
        font-size: 1.8rem;
    }

.contingentBoxAIHighlight:hover {
    box-shadow: 0 0 6px rgba(75, 156, 211, 0.3);
}

.optionYearHighlight {
    background-color: lightgrey;
}

.draftWording {
    background-color: var(--mud-palette-background-gray);
    margin: 5px;
    padding: 10px;
    margin-bottom: 10px;
}

.query-wording, .previous-query-container {
    background-color: var(--mud-palette-background-gray);
}

.mud-breadcrumbs {
    padding: 0px;
    padding-right: 5px;
}

.dashboardCard {
    /* height: 210px; */
    padding: 10px 15px 0px 20px !important;
}

.playerdashboardCard {
    max-height: 250px;
    min-height: 250px;
    overflow-y: auto;
}




.alert-badge > .mud-badge-wrapper > .mud-badge.mud-badge-top.right.mud-badge-overlap {
    inset: auto auto calc(100% - 19px) calc(100% - 14px);
}


.contingent-base-icon {
    vertical-align: middle;
    padding-top: 0px;
    padding-bottom: 0px;
    right: 5px;
    margin-left: 5px;
}


/*RESULTS*/

.results-container {
    /* display: flex;
    justify-content: space-between;
    align-items: flex-start;*/
}

.results-label {
    display: flex;
    flex-direction: column;
}

.club-detail {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
}

.clubDetailText {
    font-weight: bold;
    margin-right: 5px;
}

.results-label {
    display: flex;
    flex-direction: column;
}

.club-detail, .club-value {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
}

.clubDetailText {
    font-weight: bold;
    margin-right: 5px;
}

.results-outcomes {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.results-outcomes-title {
    margin-bottom: 5px;
    text-align: center;
    width: 100%;
}

.outcome-container {
    display: flex;
}

.outcome {
    display: inline-block;
    margin: 0 2px;
    padding: 3px 6px;
    border-radius: 5px;
    color: white;
    text-align: center;
    font-size: 0.8em;
}

.win {
    background-color: green;
}

.loss {
    background-color: red;
}

.draw {
    background-color: gray;
}

.mud-align-right input {
    text-align: right;
}

.bold {
    font-weight: bold;
}

.sliding-panel {
    height: 100vh; /* or 100% if its parent already handles sizing */
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
}

.html-preview-frame {
    flex: 1; /* take up all available space */
    border: none;
    width: 100%;
    height: 100%; /* needed as fallback for older browsers */
}


.apexcharts-canvas text,
.apexcharts-canvas .apexcharts-legend span {
    fill: var(--mud-palette-text-primary);
    color: var(--mud-palette-text-primary) !important;
}

.apexcharts-data-labels text{
    color: #ffffff !important;
    fill: #ffffff !important;
}


.apexcharts-tooltip .apexcharts-tooltip-title {
    background: var(--mud-palette-background-gray) !important;
}

.apexcharts-tooltip {
    background: var(--mud-palette-surface) !important;
}

.mud-input-label-outlined {
    color: var(--mud-palette-text-primary) !important;
}

.dark-mode .mud-table-striped .mud-table-container .mud-table-root .mud-table-body .mud-table-row:nth-of-type(odd) {
    background-color: #ffffff05 !important;
}

.dark-mode .modal-cw1 {
    filter: invert(100%);
}

.dark-mode fieldset {
    border: 1px solid var(--mud-palette-lines-inputs) !important;
}

.dark-mode .button {
    border: 1px solid var(--mud-palette-lines-default);
}

.dark-mode .buttonlink {
    border: 1px solid var(--mud-palette-lines-default);
}

.preview {
    background: #FFF;
}

.highlight-container {
    position: relative;
    margin:1px;
}

.big-arrow-right {
    position: absolute;
    right: -40px; /* move arrow to the left of div */
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 30px solid transparent;
    border-bottom: 30px solid transparent;
    border-right: 50px solid;
    border-right-color: var(--mud-palette-primary);
}

.dark-mode .big-arrow-right, .dark-mode .big-arrow-left {
    border-right-color: black;
}

.big-arrow-left {
    position: absolute;
    left: -15px; /* move arrow to the left of div */
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 15px solid transparent;
    border-bottom: 15px solid transparent;
    border-left: 25px solid; /* change from border-right to border-left */
    border-left-color: var(--mud-palette-primary);
}
.timeline-appearance-bonus {
    background-color: rgba(var(--mud-palette-secondary-rgb), 0.1); /* 0.2 = 20% opacity */
}
.timeline-wage-change {
    background-color: rgba(var(--mud-palette-info-rgb), 0.1); /* 0.2 = 20% opacity */
}

.mud-paper {
    box-shadow: none !important;
}

.dark-mode .summary .mud-icon-root.mud-svg-icon {
    fill: var(--primary-text-color);
}

.navigate-button-container {
    margin-bottom: 12px;
}

.return-btn {
    background: linear-gradient(135deg, var(--tenant-colour-primary) 0%, var(--tenant-colour-secondary) 100%);
    color: white;
    padding: 10px 24px;
    border-radius: 8px;
    text-align: center;
    display: inline-block;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.dark-mode .return-btn {
    background: var(--secondary-bg-color);
    color: var(--primary-text-color);
}