@import url('https://fonts.googleapis.com/css2?family=Noto+Color+Emoji&display=swap');

body {
    margin: 0;
    padding: 0;
    background-color: #f5f5f5 ;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

/* Top logo row */
.top-logo-row {
    margin: 0;
    padding: 0;
}
.top-logo-col img {
    width: 100%;
    background-color: #2c3e50;
    display: block;
}

/* Sidebar */
.sidebar {
    background-color: #2c3e50;
    height: 100vh;
    padding: 20px;
}
.sidebar .nav-link {
    color: #ffffff !important;
    margin-bottom: 10px;
    transition: background-color 0.2s ease;
}
.sidebar .nav-link:hover {
    background-color: #1a242f !important;
    color: #fff !important;
    border-radius: 4px;
}

/* Page content */
.page-content {
    padding: 20px;
    min-height: 100vh;
    background-color: #ffffff;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.05);
}

/* Cards and forms */
.card {
    border: none;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.card-header {
    background-color: #ffffff !important;
    color: #333333 !important;
    border-bottom: 1px solid #ddd !important;
    font-weight: bold;
}

.card-body label {
    font-weight: 600;
}

input, .Select-control, .DatePickerSingleInput {
    border-radius: 4px;
}

/* DataTable */
.dash-table-container .dash-spreadsheet-container {
    border: none !important;
}

.dash-table th {
    background-color: #f8f9fa !important;
    font-weight: bold;
    color: black;
    border-bottom: 2px solid #ddd !important;
}

.dash-table td {
    background-color: #ffffff !important;
    color: black !important;
    border: 1px solid #ddd !important;
    text-align: left;
    vertical-align: middle !important;
}

.dash-table tr:hover td {
    background-color: #f2f2f2 !important;
}

/* Selected cells in green */
.dash-cell-highlighted {
    background-color: lightgreen !important;
    border: 1px solid green !important;
    color: black !important;
}

/* Toast */
.toast-container .toast {
    background-color: #ffffff;
    color: #333;
    border-radius: 4px;
}

/* Buttons */
button {
    border-radius: 4px !important;
}

/* Tooltip */
.dash-tooltip {
    font-size: 0.8rem !important;
    background-color: #f0f0f0 !important;
    color: black !important;
}

/* Mantine input */
.mantine-NumberInput-input[readonly] {
    background-color: #f0f0f0 !important;
    cursor: not-allowed !important;
    opacity: 0.6;
}

@media screen and (max-width: 768px) {
    .ag-theme-alpine .ag-cell {
        font-size: 12px; /* Reduce font size on small screens */
    }
    .ag-theme-alpine .ag-header-cell {
        font-size: 14px;
    }
}
@media screen and (max-width: 480px) {
    .ag-theme-alpine .ag-cell {
        font-size: 10px; /* Even smaller font for mobile */
    }
    .ag-theme-alpine .ag-header-cell {
        font-size: 12px;
    }
}

/* Custom styles for Mantine components */
.quantise-navlink {
    border-radius: var(--mantine-radius-sm);
    margin-bottom: 2px;
    padding: var(--mantine-spacing-xs);

    &[data-active='true'] {
        color: var(--mantine-color-black);
        background: linear-gradient(to right, #fff, var(--mantine-color-gray-2)) !important;
    }
    &:hover {
        color: var(--mantine-color-black);
        background: linear-gradient(to right, #fff, var(--mantine-color-gray-1)) !important;
    }
}

.quantise-button {
  &[data-variant='outline'] {
    border: 1px solid var(--mantine-color-quantiseRed-8);
    color: var(--mantine-color-quantiseRed-8);
  }
}