:root {
    --header-gradient: linear-gradient(49deg, rgba(0, 9, 20, 1) 0%, rgba(9, 45, 93, 1) 38%, rgba(2, 52, 119, 1) 51%, rgba(4, 46, 102, 1) 86%, rgba(4, 43, 96, 1) 100%);
    --body-background: #f8f9fa;
}

[data-bs-theme="dark"] {
    --header-gradient: linear-gradient(49deg, rgba(5,10,20,1) 0%, rgba(15,30,60,1) 30%, rgba(20,40,70,1) 50%, rgba(25,30,60,1) 70%, rgba(10,20,40,1) 100%);
    --body-background: rgba(var(--bs-dark-rgb), var(--bs-bg-opacity)) !important;
}

body {
    background-color: var(--body-background) !important;
}

header {
    background: var(--header-gradient) center;
    background-size: cover;
    background-image: url('../img/header/home6.webp');
}

.hero-home {
    /*background-image: url('../img/header/home6.webp');*/
}

.hero-about {
    background-image: url('../img/header/home6.webp');
}

.hero-report {
    background-image: url('../img/header/report.webp');
}

.hero-home,
.hero-about,
.hero-report {
    background-color: #003371;
    background-size: cover;
    background-position: center;
    position: relative;
}

[data-bs-theme="dark"] header,
[data-bs-theme="dark"] .hero-home,
[data-bs-theme="dark"] .hero-about,
[data-bs-theme="dark"] .hero-report {
    background-color: rgba(0, 0, 0, 0.4); /* ciemna warstwa */
    background-blend-mode: darken;
}

.navbar-brand svg {
    height: 24px;
    vertical-align: text-top;
}

.min-vh-45 {
    min-height: 45vh !important;
}

.min-vh-55 {
    min-height: 55vh !important;
}

::placeholder {
    opacity: 0.4 !important;
}

.smaller {
    font-size: 0.75em;
}

.supersmall {
    font-size: 0.35em;
}

label.required:before {
    content:"*";
    color: #8f0707;
}

.navbar-dark {
    background: transparent !important;
}

.tooltip-trigger {
    cursor: pointer;
    position: relative;
    z-index: 2;
}

.bg-opacity-5 {
    --bs-bg-opacity: 0.05;
}

[data-bs-theme=dark] .badge.text-bg-dark {
    background-color: var(--bs-light-bg-subtle) !important;
}

/* partners */
img.theme-dark {
    display: none;
}

[data-bs-theme="dark"] img.theme-light {
    display: none;
}

[data-bs-theme="dark"] img.theme-dark {
    display: inline;
}

.partners img {
    max-height: 80px;  /* Adjust height as needed */
    width: auto;       /* Maintain aspect ratio */
}

/* tailwind */

/* Zielone odcienie – wzrosty */
.tw-green-500 { color: #22c55e; }
.tw-green-600 { color: #16a34a; }
.tw-green-700 { color: #15803d; }

/* Czerwone odcienie – spadki */
.tw-red-500 { color: #ef4444; }
.tw-red-600 { color: #dc2626; }
.tw-red-700 { color: #b91c1c; }

/* Neutralne – teksty pomocnicze */
.tw-gray-500 { color: #6b7280; }
.tw-gray-600 { color: #4b5563; }
.tw-gray-700 { color: #374151; }

/* Opcjonalnie: bold + small font helpers */
.tw-bold { font-weight: 600; }
.tw-sm { font-size: 0.875rem; }

.stat-card {
    position: relative;
    overflow: hidden;
}

.stat-trend {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    font-size: 0.875rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    opacity: 0;
    transform: translateY(-5px);
    animation: fadeInUp 0.6s ease-out forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stats-section {
    background: linear-gradient(to bottom, #f9fafb 0%, #f3f4f6 100%);
}

.bg-light-gradient {
    background: linear-gradient(to bottom, #f9fafb 0%, #f1f3f5 100%);
}

/* about us figures*/
.bg-fig1 {
    background-image: url('../img/fig/fig1.webp');
}

.bg-fig2 {
    background-image: url('../img/fig/fig2.webp');
}

.bg-fig3 {
    background-image: url('../img/fig/fig3.webp');
}

.bg-fig4 {
    background-image: url('../img/fig/fig4.webp');
}

.bg-fig5 {
    background-image: url('../img/fig/fig5.webp');
}

.bg-fig6 {
    background-image: url('../img/fig/fig6.webp');
}

.bg-fig7 {
    background-image: url('../img/fig/fig7.webp');
}

.bg-fig8 {
    background-image: url('../img/fig/fig8.webp');
}

/* Wspólne style */
.bg-fig1,
.bg-fig2,
.bg-fig3,
.bg-fig4,
.bg-fig5,
.bg-fig7,
.bg-fig8,
.bg-fig6 {
    background-size: cover;
    background-position: center;
    border-radius: .5rem;
    min-height: 200px;
}

[data-bs-theme="dark"] .bg-fig1,
[data-bs-theme="dark"] .bg-fig2,
[data-bs-theme="dark"] .bg-fig3,
[data-bs-theme="dark"] .bg-fig4,
[data-bs-theme="dark"] .bg-fig5,
[data-bs-theme="dark"] .bg-fig6,
[data-bs-theme="dark"] .bg-fig7,
[data-bs-theme="dark"] .bg-fig8 {
    background-color: rgba(0, 0, 0, 0.45);
    background-blend-mode: darken;
}

.text-shadow-subtle {
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.text-shadow-micro {
    text-shadow: 0.5px 0.5px 1px rgba(0, 0, 0, 0.4);
}

.text-shadow {
    text-shadow: 0 2px 4px rgba(0,0,0,0.6);
}

.step-badge{
    --size: 56px;
    width: var(--size);
    height: var(--size);
    border-radius: 50%;
    background: var(--bs-primary);
    color: #fff;
    display: grid;
    place-items: center;
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.bg-custom  {
    background-color: #003371;
    background-size: cover;
    background-position: center;
    position: relative;
}

.bg-custom-analytics {
    background-image: url('../img/header/about.webp');
}

.bg-custom-compass {
    background-image: url('../img/fig/compass.png');
    background-position: right;
    background-size: cover;
}

.lift {
    transition: transform .15s ease;
    will-change: transform;
}

@media (hover: hover) and (pointer: fine) {
    .lift:hover, .lift:focus-within { transform: translateY(-5px); }
    .lift:active { transform: translateY(-1px); }
}

@media (prefers-reduced-motion: reduce) {
    .lift { transition: none; }
}
