/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
    user-select: none;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #000000;
    color: #ffffff;
    overflow-x: hidden;
    min-height: 100vh;
    width: 100vw;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    position: relative;
}

/* Main Container */
.game-container {
    width: 100%;
    min-height: 100vh;
    max-width: 1200px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding: 20px;
    touch-action: manipulation;
}

/* Logo */
.logo {
    position: fixed;
    top: 20px;
    left: 20px;
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: #d4af37;
    text-decoration: none;
    z-index: 10;
}

/* Start Screen */
.start-screen {
    text-align: center;
    animation: fadeIn 1s ease;
    width: 100%;
    padding: 2rem 1rem;
}

.start-screen h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #d4af37 0%, #ffffff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -1px;
}

.tagline {
    font-size: 1.2rem;
    color: #888;
    margin-bottom: 3rem;
    letter-spacing: 0.5px;
}

/* Buttons */
.btn {
    background: linear-gradient(135deg, #d4af37, #b8941f);
    color: #000000;
    border: none;
    padding: 1rem 3rem;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0.5rem;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.3);
}

.btn-secondary {
    background: transparent;
    border: 2px solid #d4af37;
    color: #d4af37;
}

.btn-secondary:hover {
    background: #d4af37;
    color: #000000;
}

/* Game Area */
.game-area {
    width: 100%;
    height: 100vh;
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    position: fixed;
    top: 0;
    left: 0;
    overflow: hidden;
}

.game-area.waiting {
    background: #1a1a1a;
    animation: pulse 2s infinite;
}

.game-area.ready {
    background: #d4af37;
    animation: glow 0.5s ease;
}

.game-area.early {
    background: #ff3333;
}

/* Click Ripple Effect */
.click-ripple {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0.4) 50%, transparent 100%);
    border: 3px solid rgba(255, 255, 255, 0.9);
    pointer-events: none;
    transform: scale(0);
    animation: ripple 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
}

.click-ripple::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 50%;
    height: 50%;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    transform: translate(-50%, -50%) scale(0);
    animation: rippleInner 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.1s;
}

@keyframes ripple {
    0% {
        transform: scale(0);
        opacity: 1;
    }
    50% {
        opacity: 0.8;
    }
    100% {
        transform: scale(5);
        opacity: 0;
    }
}

@keyframes rippleInner {
    0% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(3);
        opacity: 0;
    }
}

/* Glow Circles (background effect) */
.glow-circle {
    position: absolute;
    border-radius: 50%;
    border: 2px solid rgba(212, 175, 55, 0.3);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.game-area.ready .glow-circle {
    opacity: 1;
    animation: pulseGlow 2s ease-in-out infinite;
}

.glow-circle:nth-child(1) {
    width: 300px;
    height: 300px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.glow-circle:nth-child(2) {
    width: 400px;
    height: 400px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: 0.5s;
}

.glow-circle:nth-child(3) {
    width: 500px;
    height: 500px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: 1s;
}

@keyframes pulseGlow {
    0%, 100% {
        opacity: 0.3;
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        opacity: 0.6;
        transform: translate(-50%, -50%) scale(1.05);
    }
}

.instruction {
    font-size: 1.5rem;
    font-weight: 600;
    text-align: center;
    pointer-events: none;
}

/* Results Screen - CLEAN LAYOUT */
.results-screen {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    max-width: 100%;
    min-height: 100vh;
    padding: 2rem 1rem;
    box-sizing: border-box;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    text-align: center;
    animation: fadeIn 1s ease;
}

/* Header Row: CHALLENGE COMPLETE + Time */
.result-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
    width: 100%;
    flex-wrap: wrap;
}

/* On mobile, force column layout - EARLY OVERRIDE */
@media (max-width: 768px) {
    .result-header {
        flex-direction: column !important;
        flex-wrap: nowrap !important;
        display: flex !important;
    }
    
    .result-header > * {
        width: 100% !important;
        display: block !important;
        text-align: center !important;
    }
}

.results-screen h2 {
    font-size: 2rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 2px;
    white-space: nowrap;
}

/* Mobile override for h2 */
@media (max-width: 768px) {
    .results-screen h2 {
        white-space: normal !important;
        display: block !important;
        width: 100% !important;
    }
}

.result-time {
    font-size: 4rem;
    font-weight: 800;
    color: #d4af37;
    margin: 0;
    line-height: 1;
    white-space: nowrap;
}

/* Mobile override for result-time */
@media (max-width: 768px) {
    .result-time {
        white-space: normal !important;
        display: block !important;
        width: 100% !important;
    }
}

/* Average Message Row */
.result-message {
    font-size: 1.5rem;
    margin: 0 0 1rem 0;
    color: #ffffff;
    font-weight: 600;
    width: 100%;
}

/* Rounds Survived */
.rounds-survived {
    font-size: 1.2rem;
    color: #888;
    margin: 0 0 2rem 0;
    line-height: 1.6;
    width: 100%;
}

/* Leaderboard Container */
#leaderboardContainer {
    width: 100%;
    max-width: 500px;
    margin: 0 0 2rem 0;
    order: 1;
}

/* Button Group - Always at bottom */
.button-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 0;
    max-width: 400px;
    width: 100%;
    order: 2;
}

/* Leaderboard */
.leaderboard {
    background: #1a1a1a;
    border-radius: 8px;
    padding: 2rem;
    margin: 2rem auto;
    max-width: 500px;
    width: 100%;
    max-height: 400px;
    overflow-y: auto;
    overflow-x: hidden;
    border: 1px solid #333;
    -webkit-overflow-scrolling: touch;
    box-sizing: border-box;
}

.leaderboard h2 {
    color: #d4af37;
    margin-bottom: 1rem;
    font-size: 1.8rem;
    text-align: center;
}

.leaderboard-date-info {
    text-align: center;
    color: #888;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    font-style: italic;
}

.leaderboard-date-picker {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: #0a0a0a;
    border-radius: 4px;
    border: 1px solid #333;
}

.leaderboard-date-picker label {
    display: block;
    color: #888;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    text-align: center;
}

.date-picker-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
}

.leaderboard-date-picker input[type="date"] {
    flex: 1;
    padding: 0.8rem;
    font-size: 1rem;
    background: #1a1a1a;
    border: 2px solid #333;
    color: #fff;
    border-radius: 4px;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
    min-width: 0;
}

.leaderboard-date-picker input[type="date"]:focus {
    outline: none;
    border-color: #d4af37;
}

.leaderboard ol {
    list-style: none;
    padding: 0;
}

.leaderboard li {
    padding: 0.8rem 1rem;
    margin: 0.5rem 0;
    background: #0a0a0a;
    border-radius: 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.1rem;
    transition: transform 0.2s ease;
    min-height: 50px;
    box-sizing: border-box;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.leaderboard li:hover {
    transform: translateX(5px);
}

.leaderboard li:nth-child(1) {
    background: linear-gradient(90deg, #d4af37, #b8941f);
    color: #000;
    font-weight: 700;
}

.leaderboard li:nth-child(2) {
    background: linear-gradient(90deg, #c0c0c0, #a0a0a0);
    color: #000;
}

.leaderboard li:nth-child(3) {
    background: linear-gradient(90deg, #cd7f32, #b87333);
    color: #000;
}

.rank {
    font-weight: 700;
    margin-right: 1rem;
    flex-shrink: 0;
}

.player-name {
    flex: 1;
    text-align: left;
    margin-right: 1rem;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.95rem;
    word-break: break-all;
}

.player-score {
    font-weight: 600;
    color: #d4af37;
    flex-shrink: 0;
}

.leaderboard li:nth-child(1) .player-score,
.leaderboard li:nth-child(2) .player-score,
.leaderboard li:nth-child(3) .player-score {
    color: #000;
}

/* Leaderboard Container */
#leaderboardContainer {
    width: 100%;
    max-width: 100%;
    margin: 1rem 0;
    box-sizing: border-box;
}

/* Name Input Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
    z-index: 1000;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.modal-content {
    background: #1a1a1a;
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    margin: 2rem auto;
    border: 2px solid #d4af37;
    box-sizing: border-box;
}

.modal h3 {
    color: #d4af37;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.name-input {
    width: 100%;
    padding: 0.8rem;
    font-size: 1.1rem;
    background: #000;
    border: 2px solid #333;
    color: #fff;
    border-radius: 4px;
    margin: 1rem 0;
    text-align: center;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.name-input:focus {
    outline: none;
    border-color: #d4af37;
}

.name-input:valid:not(:placeholder-shown) {
    border-color: #4caf50;
}

.name-input:invalid:not(:placeholder-shown) {
    border-color: #ff3333;
}

/* Round Indicator */
.round-indicator {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 1.2rem;
    color: #d4af37;
    font-weight: 600;
    z-index: 5;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
    0%, 100% { background: #1a1a1a; }
    50% { background: #2a2a2a; }
}

@keyframes glow {
    0% { box-shadow: inset 0 0 0 0 rgba(212, 175, 55, 0.5); }
    100% { box-shadow: inset 0 0 50px 0 rgba(212, 175, 55, 0.2); }
}

/* Loading Spinner */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #333;
    border-radius: 50%;
    border-top-color: #d4af37;
    animation: spin 1s linear infinite;
}

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

/* Error Message */
.error-message {
    color: #ff3333;
    margin-top: 1rem;
    font-size: 0.9rem;
}

/* Loading State */
.loading-state {
    text-align: center;
    padding: 2rem;
    color: #888;
}

.loading-state .loading {
    margin: 0 auto;
}

/* Mobile Optimization */
@media (max-width: 768px) {
    body {
        overflow-y: auto;
        overflow-x: hidden;
    }

    .game-container {
        min-height: 100vh;
        padding: 1rem;
    }

    .logo {
        font-size: 1.2rem;
        top: 15px;
        left: 15px;
    }

    .start-screen {
        padding: 1rem;
    }

    .start-screen h1 {
        font-size: 2rem;
    }

    .tagline {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    .btn {
        padding: 0.8rem 2rem;
        font-size: 1rem;
        margin: 0.3rem;
        width: 100%;
        max-width: 300px;
    }

    /* Results Screen Mobile - FORCE EVERYTHING VERTICAL */
    .results-screen {
        padding: 1rem 0.75rem;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: flex-start !important;
    }
    
    .results-screen.active {
        display: flex !important;
    }

    /* Header - FORCE vertical stack on mobile - OVERRIDE DESKTOP */
    .result-header {
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 0.75rem !important;
        margin-bottom: 1rem !important;
        width: 100% !important;
        flex-wrap: nowrap !important;
        display: flex !important;
    }
    
    /* Force all children to be block elements */
    .result-header > h2,
    .result-header > .result-time {
        display: block !important;
        width: 100% !important;
        text-align: center !important;
        white-space: normal !important;
        margin: 0 !important;
    }

    .results-screen h2 {
        font-size: 1.3rem !important;
        white-space: normal !important;
        text-align: center !important;
        width: 100% !important;
        margin: 0 !important;
        display: block !important;
    }

    .result-time {
        font-size: 2.5rem !important;
        white-space: normal !important;
        text-align: center !important;
        width: 100% !important;
        margin: 0 !important;
        display: block !important;
    }

    .result-message {
        font-size: 1rem;
        margin: 0 0 1rem 0 !important;
        width: 100% !important;
        text-align: center !important;
    }

    .rounds-survived {
        font-size: 0.9rem;
        margin: 0 0 1.5rem 0 !important;
        width: 100% !important;
        text-align: center !important;
        padding: 0 !important;
    }
    
    /* Leaderboard Container - FORCE full width, no side positioning */
    #leaderboardContainer {
        margin: 0 0 1.5rem 0 !important;
        max-width: 100% !important;
        width: 100% !important;
        order: 1 !important;
        position: relative !important;
        float: none !important;
    }
    
    /* Leaderboard itself */
    .leaderboard {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        position: relative !important;
        float: none !important;
    }
    
    /* Button Group - full width on mobile */
    .button-group {
        max-width: 100% !important;
        width: 100% !important;
        margin: 0 !important;
        order: 2 !important;
        position: relative !important;
        float: none !important;
    }

    .button-group .btn {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 1rem 2rem;
        font-size: 0.95rem;
    }

    /* Leaderboard Mobile */
    .leaderboard {
        padding: 1.2rem;
        margin: 1rem 0;
        max-width: 100%;
        max-height: 65vh;
        min-height: 200px;
        width: 100%;
    }

    .leaderboard h2 {
        font-size: 1.3rem;
        margin-bottom: 0.8rem;
        font-weight: 700;
    }

    .leaderboard-date-info {
        font-size: 0.8rem;
        margin-bottom: 0.8rem;
    }

    .leaderboard-date-picker {
        padding: 0.8rem;
        margin-bottom: 1rem;
    }

    .leaderboard-date-picker label {
        font-size: 0.85rem;
    }

    .date-picker-wrapper {
        flex-direction: column;
        gap: 0.5rem;
    }

    .leaderboard-date-picker input[type="date"] {
        font-size: 0.9rem;
        padding: 0.7rem;
        width: 100%;
    }

    .leaderboard-date-picker .date-picker-wrapper .btn {
        width: 100%;
        margin-left: 0 !important;
    }

    .leaderboard li {
        font-size: 0.8rem;
        padding: 0.75rem 0.9rem;
        margin: 0.5rem 0;
        flex-wrap: nowrap;
        align-items: center;
        min-height: 60px;
    }

    .player-name {
        font-size: 0.7rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        margin-right: 0.4rem;
        flex: 1;
        min-width: 0;
        max-width: 55%;
        line-height: 1.2;
        font-weight: 500;
    }

    .rank {
        font-size: 0.85rem;
        margin-right: 0.6rem;
        min-width: 28px;
        flex-shrink: 0;
    }

    .player-score {
        font-size: 0.85rem;
        white-space: nowrap;
        flex-shrink: 0;
        font-weight: 700;
    }

    /* Leaderboard Container Mobile */
    #leaderboardContainer {
        width: 100%;
        margin: 1.5rem 0;
        padding: 0;
    }

    #leaderboardContainer .leaderboard {
        width: 100%;
        max-width: 100%;
        margin: 0;
    }

    /* Modal Mobile */
    .modal-content {
        padding: 1.5rem;
        margin: 1rem;
        width: calc(100% - 2rem);
    }

    .modal h3 {
        font-size: 1.3rem;
    }

    .name-input {
        font-size: 1rem;
        padding: 0.7rem;
    }

    /* Round Indicator Mobile */
    .round-indicator {
        font-size: 1rem;
        top: 15px;
        right: 15px;
    }

    .instruction {
        font-size: 1.2rem;
    }
}

/* Very small screens */
@media (max-width: 480px) {
    .result-time {
        font-size: 2rem;
    }

    .leaderboard {
        max-height: 50vh;
        padding: 0.8rem;
    }

    .leaderboard li {
        font-size: 0.75rem;
        padding: 0.5rem 0.6rem;
    }
}

/* Analytics Screen */
.analytics-screen {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    max-width: 100%;
    min-height: 100vh;
    padding: 2rem 1rem;
    box-sizing: border-box;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    text-align: center;
    animation: fadeIn 1s ease;
}

.analytics-screen h2 {
    font-size: 2rem;
    font-weight: 800;
    color: #d4af37;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.analytics-controls {
    width: 100%;
    max-width: 600px;
    margin-bottom: 2rem;
}

.date-range-selector {
    margin-bottom: 1rem;
}

.date-range-selector label {
    display: block;
    color: #888;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.date-range-selector select {
    width: 100%;
    padding: 0.8rem;
    font-size: 1rem;
    background: #1a1a1a;
    border: 2px solid #333;
    color: #fff;
    border-radius: 4px;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.date-range-selector select:focus {
    outline: none;
    border-color: #d4af37;
}

.custom-date-range {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
    padding: 1rem;
    background: #0a0a0a;
    border-radius: 8px;
    border: 1px solid #333;
}

.custom-date-range > div {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.custom-date-range label {
    color: #888;
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
    text-align: left;
}

.custom-date-range input[type="date"] {
    width: 100%;
    padding: 0.8rem;
    font-size: 1rem;
    background: #1a1a1a;
    border: 2px solid #333;
    color: #fff;
    border-radius: 4px;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.custom-date-range input[type="date"]:focus {
    outline: none;
    border-color: #d4af37;
}

.analytics-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    width: 100%;
    max-width: 800px;
    margin-bottom: 2rem;
}

.stat-card {
    background: #1a1a1a;
    border: 2px solid #333;
    border-radius: 8px;
    padding: 2rem;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    border-color: #d4af37;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 800;
    color: #d4af37;
    margin-bottom: 0.5rem;
    line-height: 1;
}

.stat-label {
    font-size: 1rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Analytics Export */
.analytics-export {
    width: 100%;
    max-width: 800px;
    margin-top: 1rem;
    padding: 1.5rem;
    background: #0a0a0a;
    border-radius: 8px;
    border: 1px solid #333;
    text-align: left;
    box-sizing: border-box;
}

.analytics-export h3 {
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
    color: #d4af37;
}

.analytics-export-description {
    margin-bottom: 1rem;
    color: #aaa;
    font-size: 0.9rem;
}

.analytics-export-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: flex-end;
}

.analytics-export-field {
    flex: 1 1 180px;
    min-width: 0;
}

.analytics-export-field label {
    display: block;
    color: #888;
    font-size: 0.9rem;
    margin-bottom: 0.4rem;
}

.analytics-export-field input[type="date"] {
    width: 100%;
    padding: 0.7rem 0.8rem;
    font-size: 1rem;
    background: #1a1a1a;
    border: 2px solid #333;
    color: #fff;
    border-radius: 4px;
    box-sizing: border-box;
}

.analytics-export-field input[type="date"]:focus {
    outline: none;
    border-color: #d4af37;
}

.analytics-export-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.analytics-export-buttons .btn {
    padding: 0.8rem 1.5rem;
    font-size: 0.9rem;
}

/* Mobile Analytics */
@media (max-width: 768px) {
    .analytics-screen {
        padding: 1rem 0.75rem;
    }

    .analytics-screen h2 {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .analytics-controls {
        margin-bottom: 1.5rem;
    }

    .analytics-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .stat-card {
        padding: 1.5rem;
    }

    .stat-value {
        font-size: 2rem;
    }

    .stat-label {
        font-size: 0.9rem;
    }

    .analytics-export {
        padding: 1rem;
    }

    .analytics-export-row {
        flex-direction: column;
        align-items: stretch;
    }

    .analytics-export-buttons {
        width: 100%;
    }

    .analytics-export-buttons .btn {
        width: 100%;
        justify-content: center;
        text-align: center;
    }

    .custom-date-range {
        flex-direction: column;
    }
}

