:root {
    --bg-color: #0a0a0a;
    --text-main: #ffffff;
    --text-muted: #888888;
    --accent-color: #e5e5e5;
    --accent-hover: #ffffff;
    --glass-bg: rgba(25, 25, 25, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
    --disabled-bg: #1a1a1a;
    --disabled-text: #555555;
    --success-bg: #2a2a2a;
    --error-bg: #222222;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    overflow: hidden;
    overscroll-behavior-y: none;
    width: 100%;
    position: fixed; /* Ostatecznie blokuje "skakanie" paska URL na iOS/Android */
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    display: flex;
    flex-direction: column;
    align-items: center;
    -webkit-font-smoothing: antialiased;
}

.header {
    text-align: center;
    padding: 2.5rem 1rem 1rem;
    width: 100%;
}

.header h1 {
    font-size: 2.2rem;
    font-weight: 800;
    background: linear-gradient(90deg, #fff, var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
}

.header .status {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.container {
    width: 100%;
    max-width: 600px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    flex-grow: 1;
    overflow-y: auto; /* Scrollowanie działa tylko wewnątrz kontenera */
    padding-bottom: 100px; /* Miejsce na dolną nawigację, żeby nie zasłaniała statystyk */
    -webkit-overflow-scrolling: touch;
}

/* Ukrywamy pasek przewijania dla estetyki (ale nadal można scrollować) */
.container::-webkit-scrollbar {
    display: none;
}
.container {
    -ms-overflow-style: none;
    scrollbar-width: none;
}


.report-section {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    z-index: 10;
}

.report-btn {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    border: none;
    background: var(--accent-color);
    color: #000;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    box-shadow: 0 0 35px rgba(255, 255, 255, 0.15), inset 0 0 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    -webkit-tap-highlight-color: transparent;
}

.report-btn::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.3s;
}

.report-btn:hover:not(:disabled) {
    transform: scale(1.05);
    box-shadow: 0 0 50px rgba(255, 255, 255, 0.25), inset 0 0 20px rgba(0, 0, 0, 0.1);
}

.report-btn:hover:not(:disabled)::before {
    opacity: 1;
}

.report-btn:active:not(:disabled) {
    transform: scale(0.95);
}

.report-btn:disabled {
    background: var(--disabled-bg);
    box-shadow: none;
    cursor: not-allowed;
    color: var(--disabled-text);
}

.report-btn:disabled .btn-content .icon {
    filter: grayscale(100%) opacity(0.5);
}

.report-btn.show-gif {
    background-image: url('dog.gif');
    background-size: 140%;
    background-repeat: no-repeat;
    background-position: center;
    background-color: transparent;
    box-shadow: 0 0 50px rgba(255, 255, 255, 0.3), inset 0 0 20px rgba(0, 0, 0, 0.2);
}

.report-btn.show-gif::before {
    display: none;
}

.report-btn.show-gif .btn-content {
    opacity: 0;
}

.btn-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    pointer-events: none;
    transition: opacity 0.3s;
}

.btn-content .icon {
    font-size: 3.5rem;
    transition: all 0.3s;
}

.btn-content .text {
    font-size: 1.25rem;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.counter {
    margin-top: 1.5rem;
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 600;
    background: rgba(0,0,0,0.2);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
}


.stats-section {
    width: 100%;
    margin-bottom: 2rem;
}

.glass-panel {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 1.5rem;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 10px 40px 0 rgba(0, 0, 0, 0.4);
}

.total-reports-container {
    text-align: center;
    margin-bottom: 0;
}

.summary-panel {
    margin-bottom: 1.5rem;
}

.current-filter-info {
    text-align: center;
    margin-top: 1.5rem;
    margin-bottom: 0;
}

.current-filter-info h2 {
    font-size: 1.1rem;
    color: var(--text-main);
    font-weight: 600;
}

.accent-text {
    color: var(--accent-color);
    font-weight: 800;
    font-size: 1.3rem;
}

.total-reports-label {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.total-reports-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--accent-color);
    margin: 0;
    line-height: 1;
}

.tabs {
    display: flex;
    gap: 0.5rem;
    margin-top: 1.5rem;
    width: 100%;
}



.tab-btn {
    flex: 1;
    text-align: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    color: var(--text-muted);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

.tab-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-main);
}

.tab-btn.active {
    background: var(--accent-color);
    color: #000;
    border-color: var(--accent-color);
    box-shadow: 0 2px 10px rgba(255, 255, 255, 0.15);
}

.chart-wrapper {
    position: relative;
    width: 100%;
}

.chart-container {
    position: relative;
    height: 250px;
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
}

.chart-container::-webkit-scrollbar {
    display: none;
}

.chart-scroll-area {
    width: 100%;
    height: 100%;
    transition: width 0.3s ease;
}


.toast-container {
    position: fixed;
    top: 120px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 1000;
    width: 90%;
    max-width: 400px;
    pointer-events: none;
}

.toast {
    padding: 1rem;
    border-radius: 16px;
    color: white;
    font-weight: 500;
    font-size: 0.95rem;
    text-align: center;
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
    animation: slideDown 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    pointer-events: auto;
}

.toast.success {
    background: rgba(5, 150, 105, 0.9);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.toast.error {
    background: rgba(225, 29, 72, 0.9);
    border: 1px solid rgba(244, 63, 94, 0.3);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-20px);
    }
}


.bottom-nav {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    width: 90%;
    max-width: 400px;
}

.nav-pill {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 30px;
    display: flex;
    position: relative;
    padding: 4px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.nav-indicator {
    position: absolute;
    top: 4px;
    bottom: 4px;
    left: 4px;
    width: calc(50% - 4px);
    background: var(--accent-color);
    border-radius: 26px;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
}

.nav-pill[data-active="stats"] .nav-indicator {
    transform: translateX(100%);
}

.nav-btn {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 12px 0;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    position: relative;
    z-index: 1;
    transition: color 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    -webkit-tap-highlight-color: transparent;
}

.nav-btn.active {
    color: #000;
}

.mobile-hidden {
    display: none !important;
}


