@import url('https://fonts.googleapis.com/css2?family=Noto+Color+Emoji&display=swap');

body {
    margin: 0;
    padding: 0;
    background-color: #f5f5f7 ;
    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-aside-navlink {
    border-radius: 0;
    margin-bottom: 2px;
    padding: var(--mantine-spacing-xs);

    &[data-active='true'] {
        color: var(--mantine-color-black);
        background: linear-gradient(to right, var(--mantine-color-gray-2), #fff) !important;
    }
    &:hover {
        color: var(--mantine-color-black);
        background: linear-gradient(to right, var(--mantine-color-gray-1), #fff) !important;
    }
}

/* Style active state for Mantine Anchor when data-active is set */
.mantine-Anchor-root[data-active='true'] {
    color: var(--mantine-color-black);
    background: linear-gradient(to right, #fff, var(--mantine-color-gray-2)) !important;
    border-radius: var(--mantine-radius-sm);
}

.quantise-button {
  &[data-variant='outline'] {
    border: 1px solid var(--mantine-primary-color-9);
  }
}

/* Banner animations */
.animated-banner {
    cursor: pointer;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s ease;
}

.animated-banner:hover {
    transform: scale(1.01);
    box-shadow: 0 12px 48px rgba(24, 52, 94, 0.5), 0 0 40px rgba(168, 36, 38, 0.2);
}

/* Logo highlight effect on hover */
.animated-banner:hover .banner-logo {
    filter: brightness(0) invert(1) drop-shadow(0 0 25px rgba(168, 36, 38, 0.9)) drop-shadow(0 0 50px rgba(168, 36, 38, 0.6)) !important;
    animation: logoGlow 1.5s ease-in-out infinite !important;
}

@keyframes logoGlow {
    0%, 100% { filter: brightness(0) invert(1) drop-shadow(0 0 25px rgba(168, 36, 38, 0.9)) drop-shadow(0 0 50px rgba(168, 36, 38, 0.6)); }
    50% { filter: bright ness(0) invert(1) drop-shadow(0 0 40px rgba(168, 36, 38, 1)) drop-shadow(0 0 80px rgba(168, 36, 38, 0.8)); }
}

/* Center SVG atom hover effect */
.center-atom-svg {
    transition: opacity 0.5s ease;
}

.animated-banner:hover .center-atom-svg {
    opacity: 0.5 !important;
}

/* Logo quality improvement */
.banner-logo-small {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: optimizeQuality;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
    will-change: auto;
}

/* Click effect */
.animated-banner:active {
    transform: scale(0.99);
}

.animated-banner:active .banner-logo {
    filter: brightness(0) invert(1) drop-shadow(0 0 60px rgba(168, 36, 38, 1)) !important;
}

/* QUANTISE letter animation on hover */
.tagline-container {
    text-align: center;
    display: block;
}

/* Static intro text */
.tagline-static {
    color: rgba(255,255,255,0.8);
    transition: opacity 0.4s ease, font-size 0.4s ease;
}

.animated-banner:hover .tagline-static {
    opacity: 0;
    font-size: 0;
}

/* Letters that stay (QUANTISE) - red */
.letter-stay {
    color: #a82426;
    font-weight: 700;
    transition: all 0.4s ease;
}

/* B from "Be" - white normally, stays on hover */
.letter-by {
    color: rgba(255,255,255,0.8);
    font-weight: 400;
    transition: all 0.4s ease;
}

.animated-banner:hover .letter-by {
    letter-spacing: 3px;
}

/* Space between BY and QUANTISE */
.letter-stay-space {
    transition: all 0.4s ease;
}

/* "e" from "Be" fades out - white */
.letter-fade-be {
    color: rgba(255,255,255,0.8);
    font-weight: 400;
    transition: opacity 0.4s ease, font-size 0.4s ease;
}

.animated-banner:hover .letter-fade-be {
    opacity: 0;
    font-size: 0;
}

/* "Y" appears on hover (hidden by default) - white */
.letter-appear {
    color: rgba(255,255,255,0.8);
    font-weight: 400;
    font-size: 0;
    opacity: 0;
    transition: all 0.4s ease;
}

.animated-banner:hover .letter-appear {
    font-size: inherit;
    opacity: 1;
    letter-spacing: 3px;
}

/* Letters that fade out on hover */
.letter-fade {
    color: rgba(255,255,255,0.8);
    transition: opacity 0.4s ease, font-size 0.4s ease;
}

.animated-banner:hover .letter-fade {
    opacity: 0;
    font-size: 0;
}

/* Add glow to QUANTISE letters on hover */
.animated-banner:hover .letter-stay {
    text-shadow: 0 0 20px rgba(168, 36, 38, 0.8);
    letter-spacing: 3px;
}

/* Particle 1 - travels clockwise from left to top (top = -90deg) */
@keyframes particleToCollision1 {
    0% { transform: translate(-50%, -50%) rotate(180deg) translateX(100px); }
    50% { transform: translate(-50%, -50%) rotate(270deg) translateX(100px); }
    50.1%, 100% { transform: translate(-50%, -50%) rotate(270deg) translateX(100px); opacity: 0; }
}

@keyframes particleToCollision2 {
    0% { transform: translate(-50%, -50%) rotate(0deg) translateX(100px); }
    50% { transform: translate(-50%, -50%) rotate(-90deg) translateX(100px); }
    50.1%, 100% { transform: translate(-50%, -50%) rotate(-90deg) translateX(100px); opacity: 0; }
}

@keyframes collisionPulse {
    0%, 48% { transform: translate(-50%, -50%) scale(0); opacity: 0; }
    50% { transform: translate(-50%, -50%) scale(1); opacity: 1; box-shadow: 0 0 20px #a82426, 0 0 40px rgba(168, 36, 38, 0.6); }
    70% { transform: translate(-50%, -50%) scale(1.5); opacity: 0.6; box-shadow: 0 0 30px #a82426; }
    100% { transform: translate(-50%, -50%) scale(0); opacity: 0; }
}

@keyframes trackFade {
    0%, 49% { opacity: 0; }
    52% { opacity: 1; }
    100% { opacity: 0; }
}

.lhc-ring { transition: all 0.3s ease; }
.lhc-particle { transition: box-shadow 0.3s ease; }

.animated-banner:hover .lhc-ring {
    border-color: rgba(168, 36, 38, 0.6) !important;
    box-shadow: 0 0 15px rgba(168, 36, 38, 0.3);
}

.animated-banner:hover .lhc-particle { animation-duration: 1.5s !important; }
.animated-banner:hover .particle-1 { box-shadow: 0 0 15px #a82426, 0 0 30px #a82426 !important; }
.animated-banner:hover .particle-2 { box-shadow: 0 0 15px white, 0 0 30px rgba(255,255,255,0.8) !important; }
.animated-banner:hover .collision-point { animation-duration: 1.5s !important; }
.animated-banner:hover .collision-track { animation-duration: 1.5s !important; }