﻿html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}
/* Accessibility: reduce motion */
@media (prefers-reduced-motion: reduce) {
    .slide, .hero-caption, .control-btn {
        transition: none !important;
        animation: none !important;
    }
}

/* Responsive tweaks */
@media (max-width: 768px) {
    .hero-caption {
        max-width: 90%;
        left: 1rem;
        right: 1rem;
        bottom: 1rem;
        padding: 12px;
        font-size: 0.95rem;
    }

    .hero {
        height: 320px;
    }
}
/* === MicroMood Logo Section === */
.logo-section {
    text-align: center;
    position: relative;
    margin: 3rem 0;
}

.globe-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 320px;
    height: 320px;
    background: radial-gradient(circle at 30% 30%, #00b4d8 0%, #0077b6 40%, #03045e 80%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: spinGlobe 18s linear infinite;
    opacity: 0.25;
    z-index: 1;
    filter: blur(2px) drop-shadow(0 0 10px rgba(0, 0, 0, 0.3));
}

@keyframes spinGlobe {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

.logo-img {
    transition: transform 0.5s ease;
    filter: drop-shadow(0 6px 10px rgba(0,0,0,0.3));
    position: relative;
    z-index: 2;
    max-width: 420px;
    height: auto;
}

    .logo-img:hover {
        transform: scale(1.05);
    }

.fade-in-text {
    opacity: 0;
    animation: fadeInMove 2s ease forwards;
    animation-delay: 0.5s;
    color: #0d6efd;
    font-weight: 600;
    letter-spacing: 1px;
}

.fade-in-subtext {
    opacity: 0;
    animation: fadeInMove 3s ease forwards;
    animation-delay: 1.5s;
    color: #444;
    font-weight: 400;
}

@keyframes fadeInMove {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


.quick-mood {
    position: fixed;
    z-index: 9999;
    transition: all 1s ease-in-out;
    /* Optional: add a shadow and rounded corners for better aesthetics */
    filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.2));
}

    .quick-mood button {
        border-radius: 25px;
        padding: 10px 18px;
        font-weight: 500;
    }

        /* Optional: add a subtle hover bounce */
        .quick-mood button:hover {
            transform: scale(1.05);
            transition: transform 0.3s ease;
        }


/* ✨ Soft pulse-glow animation */
@keyframes softPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 123, 255, 0.5);
        transform: scale(1);
    }

    50% {
        box-shadow: 0 0 20px 10px rgba(0, 123, 255, 0.2);
        transform: scale(1.05);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(0, 123, 255, 0.5);
        transform: scale(1);
    }
}

.pulse-glow {
    animation: softPulse 2.5s infinite ease-in-out;
    transition: transform 0.2s ease-in-out;
}

    /* Hover effect */
    .pulse-glow:hover {
        animation: none;
        transform: scale(1.08);
        box-shadow: 0 0 25px rgba(0, 123, 255, 0.4);
    }

/* Responsive adjustments */
@media (max-width: 576px) {
    .quick-mood {
        bottom: 15px;
        right: 15px;
    }

    .pulse-glow {
        min-width: 130px;
        padding: 0.6rem;
    }

        .pulse-glow span {
            font-size: 0.85rem !important;
        }
}


/* Fade-in animation for charts */
@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.chart-box {
    background: #fff;
    border-radius: 14px;
    padding: 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    width: 100%;
    opacity: 0; /* start hidden */
    animation: fadeInUp 0.8s ease forwards;
}

    /* Staggered animation timing */
    .chart-box:nth-child(1) {
        animation-delay: 0.2s;
    }

    .chart-box:nth-child(2) {
        animation-delay: 0.4s;
    }

    .chart-box:nth-child(3) {
        animation-delay: 0.6s;
    }

/* Stack all charts vertically */
.charts {
    display: flex;
    flex-direction: column;
    gap: 25px; /* space between each chart */
    margin-bottom: 30px;
}

    /* Optional: consistent height for charts */
.chart-box canvas {
    width: 100% !important;
    height: 300px !important;
}
.charts-toolbar {
    text-align: right;
    margin-bottom: 15px;
}

    .charts-toolbar button {
        margin-left: 5px;
    }
#map {
    height: 450px;
    border-radius: 14px;
    margin-top: 30px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    overflow: hidden;
}
.leaflet-container {
    background: #eef3f9;
}

.mood-flag div:hover {
    transform: scale(1.15);
    transition: 0.2s ease;
}
.mood-flag div:hover {
    transform: scale(1.2);
    transition: transform 0.25s;
}
