body {
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    margin: 0;
    padding: 0;
}

/* Hide browser scrollbars */
html {
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* Internet Explorer 10+ */
}

html::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

body::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

/* Hide scrollbars on all elements */
* {
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* Internet Explorer 10+ */
}

*::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

/* Top Navigation Bar styles moved to menu.css */

.menu-nav .glossary-definition {
    display: none;
}

.menu-nav .glossary-item[data-expanded="true"] .glossary-definition {
    display: block;
}

.menu-nav .glossary-definition ul {
    margin: 0;
    padding: 0;
}

.menu-nav .glossary-definition ul li {
    margin-bottom: var(--spacing-2);
}

.menu-nav .glossary-definition ul li:last-child {
    margin-bottom: 0;
}

.slides-container {
    display: flex;
    width: fit-content;
    height: 100vh; /* Fallback for older browsers */
    height: 100dvh; /* Dynamic viewport height for modern browsers */
    padding-top: 40px; /* Account for the top navigation bar */
    border-bottom: 1px solid var(--color-gray-600);
}

.slide {
    min-width: 100vw;
    width: 100vw;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex-shrink: 0;
    padding: 2rem;
    overflow-y: auto;
}

.slide > * {
    max-width: 640px;
    width: 100%;
    text-align: left;
}

.slide > img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Full height image modifier */
.full-height img {
    height: calc(100vh - 40px); /* Fallback for older browsers */
    height: calc(100dvh - 40px); /* Dynamic viewport height minus navigation bar */
    width: auto;
    max-width: none;
    object-fit: contain;
}

/* Full height minus padding image modifier */
.full-height-padding img {
    height: calc(100vh - 40px - 4rem); /* Fallback for older browsers */
    height: calc(100dvh - 40px - 4rem); /* Dynamic viewport height minus navigation bar and padding */
    width: auto;
    max-width: 100%;
    object-fit: contain;
}

.slide.portrait {
    width: auto;
    min-width: auto;
    padding: 0 2rem;
}

.slide.portrait > * {
    height: 100vh;
    width: auto;
    max-width: none;
    object-fit: contain;
}

.slide.actual {
    width: auto;
    min-width: auto;
    padding: 0 2rem;
}

.slide.actual > * {
    width: auto;
    height: auto;
    max-width: none;
    max-height: none;
    object-fit: none;
}

.slide.full {
    width: auto;
    min-width: auto;
    padding: 0;
}

.slide.full > * {
    height: 100vh;
    width: auto;
    max-width: none;
    object-fit: contain;
}

.hug {
    width: auto !important;
    min-width: auto !important;
}

.slideleft {
    align-items: flex-start;
}

/* Center content both vertically and horizontally */
.center {
    align-items: center;
    text-align: center;
}

.center > * {
    text-align: center;
}

.card {
    width: 640px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex-shrink: 0;
    padding: 2rem;
    overflow-y: auto;
    text-align: left;
}

.card > * {
    text-align: left;
}

/* Navigation arrow styles moved to menu.css */

/* Custom scrollbar */
.custom-scrollbar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 12px;
    background: rgba(0, 0, 0, 0.1);
    z-index: 1001;
}

.custom-scrollbar-thumb {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background-color: var(--color-brand-purple);
    cursor: pointer;
    transition: background-color 0.2s;
}

.slide .section {
    width: 100%;
    max-width: 1200px;
}

.slide .metrics-grid {
    margin-bottom: 2rem;
}

.slide .chart-container {
    width: 100%;
    max-width: 800px;
    position: relative;
    min-height: 300px;
}

.slide .trends-container {
    width: 100%;
    max-width: 1200px;
}

.slide .devices-container {
    width: 100%;
    max-width: 800px;
    position: relative;
    min-height: 300px;
}

/* User dots styling */
.users-container {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    padding: 1rem;
    position: relative;
}

.users-title {
    position: absolute;
    top: 1rem;
    left: 1rem;
    z-index: 10;
    margin: 0;
}

.user-dot {
    width: 20px;
    height: 20px;
    background-color: #F39BC7; /* Brand pink */
    border-radius: 50%;
}

.user-icon {
    width: 80%;
    height: 80%;
    fill: var(--color-brand-purple); /* Brand purple */
    display: block;
    margin: auto;
}

.dots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, 36px);
    gap: 0;
    padding: 1rem 0;
    justify-content: start;
    align-items: start;
    width: 100%;
    max-width: 100%;
}

.grid-square {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
}

.total-label {
    font-size: 1rem;
    color: white;
    font-weight: bold;
}

/* Loading Spinner Styles */
.loader {
    display: inline-block;
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--color-brand-purple);
    animation: spin 1s ease-in-out infinite;
    margin: 20px auto;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.chart-loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 10;
}

.chart-loader .loader {
    margin: 0 auto 10px;
}

.chart-loader .loading-text {
    color: var(--color-brand-purple);
    font-size: 16px;
    font-weight: 500;
}

.chart-container.loading {
    opacity: 0.6;
    pointer-events: none;
}

.chart-container.loading canvas {
    opacity: 0.3;
}

/* Metric Card Loading States */
.metric-card.loading {
    opacity: 0.6;
    pointer-events: none;
}

.metric-card.loading .metric-value {
    color: var(--color-brand-purple);
    font-style: italic;
}

.metric-card.loading .metric-value::after {
    content: "Loading...";
    display: block;
    font-size: 16px;
    margin-top: 5px;
    color: var(--color-brand-purple);
}

/* Error States */
.chart-error {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #ff6b6b;
    font-size: 14px;
    z-index: 10;
}

.metric-card.error .metric-value {
    color: #ff6b6b;
}

.metric-card.error .metric-value::after {
    content: "Error loading data";
    display: block;
    font-size: 12px;
    margin-top: 5px;
    color: #ff6b6b;
}

/* Mobile responsive navigation styles moved to menu.css */

/* Top alignment modifier for slides and cards */
.topalign {
    justify-content: flex-start;
    padding-top: 4rem;
}

/* Media Queries */
@media (max-width: 768px) {
    .full-height img {
        height: calc(100vh - 48px); /* Fallback for older browsers */
        height: calc(100dvh - 48px); /* Dynamic viewport height minus mobile navigation bar */
    }
    
    .full-height-padding img {
        height: calc(100vh - 48px - 2rem); /* Fallback for older browsers */
        height: calc(100dvh - 48px - 2rem); /* Dynamic viewport height minus mobile navigation bar and padding */
    }
}

@media (max-width: 640px) {
    .card {
        width: 100vw;
        min-width: 100vw;
    }
}

@media (max-width: 768px) {
    html, body {
        height: 100vh;
        max-height: 100vh;
        margin: 0;
        padding: 0;
    }
    
    .slides-container {
        height: 100vh; /* Fallback for older browsers */
        height: 100dvh; /* Dynamic viewport height for modern browsers */
        max-height: 100vh; /* Fallback for older browsers */
        max-height: 100dvh; /* Dynamic viewport height for modern browsers */
        flex-shrink: 0;
        padding-top: 48px; /* Match mobile navigation bar height */
    }
    
    .slide {
        flex-shrink: 0;
        padding: 1rem;
        overflow-y: auto;
    }
    
    .card {
        width: 100vw;
        min-width: 100vw;
        flex-shrink: 0;
        padding: 1rem;
        overflow-y: auto;
    }
    
    .slide.portrait > *,
    .slide.full > * {
        height: 100vh; /* Fallback for older browsers */
        height: 100dvh; /* Dynamic viewport height for modern browsers */
        max-height: 100vh; /* Fallback for older browsers */
        max-height: 100dvh; /* Dynamic viewport height for modern browsers */
    }
    
    .slide.actual > * {
        max-height: 100vh; /* Fallback for older browsers */
        max-height: 100dvh; /* Dynamic viewport height for modern browsers */
    }
    
    /* Hide navigation hint on mobile */
    .navigation-hint {
        display: none !important;
    }
}

@media (max-width: 480px) {
    .slides-container {
        padding-top: 56px; /* Match very small screen navigation bar height */
    }
    
    .full-height img {
        height: calc(100vh - 56px); /* Fallback for older browsers */
        height: calc(100dvh - 56px); /* Dynamic viewport height minus very small screen navigation bar */
    }
    
    .full-height-padding img {
        height: calc(100vh - 56px - 2rem); /* Fallback for older browsers */
        height: calc(100dvh - 56px - 2rem); /* Dynamic viewport height minus very small screen navigation bar and padding */
    }
}

@media (max-width: 768px) {
    .topalign {
        padding-top: 2rem;
    }
} 