/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #ffffff 0%, #fafafa 100%);
    min-height: 100vh;
}

.ai-response {
    line-height: 1.6;
    white-space: pre-wrap;
    word-wrap: break-word;
    font-size: 1.1em;
}

.ai-response p {
    margin-bottom: 1.2em;
}

.ai-response ul, .ai-response ol {
    margin: 1em 0;
    padding-left: 2em;
}

.ai-response li {
    margin-bottom: 0.5em;
}

.ai-response strong {
    font-weight: 600;
    color: #333;
}

.ai-paragraph {
    margin-bottom: 1.2em;
    line-height: 1.6;
    text-align: left;
}

.ai-paragraph:last-child {
    margin-bottom: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.battery-error {
    background: #fff3e0;
    border: 1px solid #ffb74d;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
}

.battery-help {
    color: #666;
    font-style: italic;
    margin-top: 10px;
}

.battery-summary {
    background: #e8f5e8;
    border: 1px solid #4caf50;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
}

/* Heart Spinner */

.heart-animation {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
}

.spinning-heart {
    font-size: 4em;
    animation: dramaticWobble 2s ease-in-out infinite;
    transform-origin: center;
    color: #f20a32; /* TRAKSIFY brand red */
    text-shadow: 0 0 10px rgba(242, 10, 50, 0.3);
    filter: drop-shadow(0 0 8px rgba(242, 10, 50, 0.4));
}

@keyframes dramaticWobble {
    0% {
        transform: rotate(0deg) scale(1) translateX(0px);
        color: #f20a32; /* Base red */
    }
    20% {
        transform: rotate(72deg) scale(1.4) translateX(-5px);
        color: #ff1a4a; /* Brighter red */
    }
    40% {
        transform: rotate(144deg) scale(1.2) translateX(5px);
        color: #f20a32; /* Base red */
    }
    60% {
        transform: rotate(216deg) scale(1.5) translateX(-3px);
        color: #ff3366; /* Even brighter red */
    }
    80% {
        transform: rotate(288deg) scale(1.3) translateX(3px);
        color: #f20a32; /* Base red */
    }
    100% {
        transform: rotate(360deg) scale(1) translateX(0px);
        color: #f20a32; /* Base red */
    }
}

/* Header styles */
header {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.loading-spinner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    font-family: Arial, sans-serif;
}

.pet-animation {
    margin-bottom: 30px;
    position: relative;
}

.pet-head {
    font-size: 80px;
    animation: spinAndWiggle 3s ease-in-out infinite;
    display: inline-block;
    transform-origin: center;
}

.loading-text {
    text-align: center;
    font-size: 18px;
    color: #333;
    max-width: 500px;
    line-height: 1.6;
}

/* Main animation - slow spin with gentle wiggle */
@keyframes spinAndWiggle {
    0% {
        transform: rotate(0deg) translateX(0px);
    }
    25% {
        transform: rotate(90deg) translateX(5px);
    }
    50% {
        transform: rotate(180deg) translateX(0px);
    }
    75% {
        transform: rotate(270deg) translateX(-5px);
    }
    100% {
        transform: rotate(360deg) translateX(0px);
    }
}

/* Alternative: Bounce and rotate */
@keyframes bounceRotate {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    25% {
        transform: translateY(-10px) rotate(90deg);
    }
    50% {
        transform: translateY(0px) rotate(180deg);
    }
    75% {
        transform: translateY(-5px) rotate(270deg);
    }
}

/* Alternative: Gentle sway */
@keyframes gentleSway {
    0%, 100% {
        transform: rotate(-5deg);
    }
    50% {
        transform: rotate(5deg);
    }
}

/* Pulse effect for extra fun */
@keyframes pulseGlow {
    0%, 100% {
        filter: drop-shadow(0 0 5px rgba(242, 10, 50, 0.3));
    }
    50% {
        filter: drop-shadow(0 0 15px rgba(242, 10, 50, 0.6));
    }
}

/* Add some floating particles for extra magic */
.floating-particle {
    position: absolute;
    font-size: 20px;
    opacity: 0.7;
    animation: float 4s ease-in-out infinite;
}

.floating-particle:nth-child(1) { top: 20px; left: 30px; animation-delay: 0s; }
.floating-particle:nth-child(2) { top: 60px; right: 40px; animation-delay: 1s; }
.floating-particle:nth-child(3) { bottom: 40px; left: 50px; animation-delay: 2s; }
.floating-particle:nth-child(4) { bottom: 20px; right: 30px; animation-delay: 3s; }

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
        opacity: 0.3;
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
        opacity: 0.8;
    }
}

/* Text typing animation */
.typing-text {
    overflow: hidden;
    border-right: 2px solid #f20a32;
    white-space: nowrap;
    animation: typing 3.5s steps(40, end), blink-caret 0.75s step-end infinite;
}

@keyframes typing {
    from { width: 0 }
    to { width: 100% }
}

@keyframes blink-caret {
    from, to { border-color: transparent }
    50% { border-color: #f20a32; }
}

/* Option 1: Compact Grid */
.geofence-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
    margin: 15px 0;
}

.geofence-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.geofence-card:hover {
    background: #e9ecef;
    transform: translateY(-1px);
}

.geofence-icon {
    font-size: 20px;
    color: #4CAF50;
}

.geofence-details {
    flex: 1;
    min-width: 0;
}

.geofence-name {
    font-weight: 600;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.geofence-id {
    font-size: 0.8em;
    color: #666;
    margin-top: 2px;
}

.geofence-count {
    text-align: center;
    color: #666;
    font-size: 0.9em;
    margin-top: 10px;
    font-style: italic;
}

/* Option 2: Horizontal Scroll */
.geofence-scroll-container {
    overflow-x: auto;
    margin: 15px 0;
    padding-bottom: 10px;
}

.geofence-scroll {
    display: flex;
    gap: 8px;
    min-width: min-content;
}

.geofence-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 20px;
    white-space: nowrap;
    font-size: 0.9em;
}

.geofence-bullet {
    color: #4CAF50;
    font-size: 14px;
}

.geofence-total {
    text-align: center;
    color: #666;
    font-size: 0.9em;
    margin-top: 5px;
}

/* Option 3: Compact Tags */
.geofence-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 12px 0;
}

.geofence-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    background: #e3f2fd;
    border: 1px solid #bbdefb;
    border-radius: 12px;
    font-size: 0.8em;
    color: #1976d2;
    cursor: help;
}

.tag-icon {
    font-size: 12px;
}

.geofence-more {
    text-align: center;
    color: #666;
    font-size: 0.8em;
    font-style: italic;
}

/* Option 4: Accordion */
.geofence-info.accordion details {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    overflow: hidden;
}

.geofence-info.accordion summary {
    padding: 12px 15px;
    background: #f8f9fa;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    list-style: none;
}

.geofence-info.accordion summary::-webkit-details-marker {
    display: none;
}

.summary-icon {
    font-size: 16px;
}

.summary-text {
    flex: 1;
}

.summary-arrow {
    transition: transform 0.2s ease;
    font-size: 12px;
}

.geofence-info.accordion details[open] .summary-arrow {
    transform: rotate(180deg);
}

.geofence-content {
    padding: 15px;
    background: white;
    border-top: 1px solid #e9ecef;
}

.geofence-compact-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.geofence-line {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    border-bottom: 1px solid #f5f5f5;
}

.geofence-line:last-child {
    border-bottom: none;
}

.line-icon {
    color: #4CAF50;
    font-size: 14px;
    min-width: 20px;
}

.line-name {
    color: #333;
    font-size: 0.9em;
}

.header-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    width: 100%;
}

.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 10px;
}

.logo {
    height: 150px;
    width: auto;
}

h1 {
    color: #2c3e50;
    font-size: 2.5rem;
    font-weight: 700;
}

.tagline {
    color: #7f8c8d;
    font-size: 1.1rem;
    font-weight: 400;
    position: relative;
    display: inline-block;
}

.tagline::after {
    content: 'BETA V14';
    font-size: 0.7rem;
    font-weight: 700;
    background: #f20a32;
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 8px;
    vertical-align: middle;
}

.taglinepet {
    color: #7f8c8d;
    font-size: 1.1rem;
    font-weight: 400;
    position: relative;
    display: inline-block;
}

.taglinepet::after {
    content: 'BETA V15';
    font-size: 0.7rem;
    font-weight: 700;
    background: #f20a32;
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 8px;
    vertical-align: middle;
}

.pet-info {
    background: #f8f9fa;
    padding: 15px 25px;
    border-radius: 12px;
    margin-top: 15px;
    border-left: 4px solid #f20a32;
    text-align: center;
    width: 100%;
    max-width: 500px;
}

.pet-info h2 {
    color: #2c3e50;
    font-size: 1.5rem;
    margin-bottom: 8px;
    font-weight: 600;
}

.pet-details {
    color: #7f8c8d;
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.pet-location {
    color: #f20a32;
    font-weight: 600;
    font-size: 1rem;
}

/* Weather info styles */
.weather-info {
    margin-top: 15px;
    padding: 12px;
    background-color: #e8f4fd;
    border-radius: 8px;
    border-left: 4px solid #3498db;
}

.weather-details {
    display: flex;
    align-items: center;
    gap: 15px;
}

.weather-icon {
    width: 60px;
    height: 60px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
}

.weather-text p {
    margin: 5px 0;
}

/* Geofences Styles */
.geofences-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.geofence-item {
    display: flex;
    align-items: center;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.geofence-icon {
    font-size: 2em;
    margin-right: 15px;
}

.geofence-name {
    font-weight: bold;
    color: #333;
}

.geofence-type {
    font-size: 0.9em;
    color: #666;
}

/* Achievement Score Styles */
.achievement-section {
    margin-top: 30px;
}

.score-card {
    display: flex;
    align-items: center;
    padding: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    color: white;
    margin: 20px 0;
}

.score-card.excellent { background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%); }
.score-card.very-good { background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%); }
.score-card.good { background: linear-gradient(135deg, #FF9800 0%, #F57C00 100%); }
.score-card.fair { background: linear-gradient(135deg, #FF5722 0%, #D84315 100%); }
.score-card.needs-improvement { background: linear-gradient(135deg, #F44336 0%, #C62828 100%); }

.score-circle {
    text-align: center;
    margin-right: 30px;
    min-width: 100px;
}

.score-value {
    font-size: 2.5em;
    font-weight: bold;
    line-height: 1;
}

.score-label {
    font-size: 1em;
    opacity: 0.9;
}

.achievement-level {
    font-size: 1.3em;
    font-weight: bold;
    margin-bottom: 10px;
}

.score-breakdown div {
    margin: 5px 0;
    font-size: 0.9em;
}

.recommendations {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    padding: 15px;
    margin-top: 15px;
}

.recommendations h4 {
    margin-top: 0;
    color: #856404;
}

.recommendations ul {
    margin-bottom: 0;
    padding-left: 20px;
}

.recommendations li {
    margin: 5px 0;
    color: #856404;
}

/* Main content layout */
.main-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

@media (max-width: 900px) {
    .main-content {
        grid-template-columns: 1fr;
    }
}

/* Enhanced Device Selection Styles */
.device-selection-container {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
}

.device-select {
    flex: 1;
    padding-right: 70px; /* Space for action buttons */
}

.device-actions {
    position: absolute;
    right: 8px;
    display: flex;
    gap: 4px;
}

.device-action-btn {
    background: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 6px 8px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
}

.device-action-btn:hover {
    background: #e9ecef;
    border-color: #007bff;
}

.device-action-btn.active {
    background: #fff3cd;
    border-color: #ffc107;
}

.usage-badge {
    background: #007bff;
    color: white;
    border-radius: 10px;
    padding: 1px 6px;
    font-size: 11px;
    margin-left: 5px;
}

.device-stats {
    margin-top: 5px;
    color: #666;
    font-style: italic;
    min-height: 20px;
}

/* Favorite star styling */
option[data-favorite="1"] {
    background-color: #fff3cd;
    font-weight: bold;
}

/* Quick device buttons */
.quick-devices {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.quick-device-btn {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 20px;
    padding: 6px 12px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 5px;
}

.quick-device-btn:hover {
    background: #e9ecef;
    border-color: #007bff;
}

.quick-device-btn.active {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

.quick-device-btn.favorite {
    background: #fff3cd;
    border-color: #ffc107;
}

.quick-device-btn .star {
    color: #ffc107;
}

/* Main Container Enhancement */
.main-container {
    background: white;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    padding: 30px;
    margin: 20px auto;
    max-width: 800px;
    width: 100%;
}

/* Activity Route Section */
.activity-route {
    text-align: center;
    margin: 25px 0;
    padding: 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.activity-route h3 {
    color: #2c3e50;
    font-size: 1.8rem;
    margin-bottom: 25px;
    font-weight: 700;
}

/* Activity Summary Grid */
.activity-summary-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 25px 0;
    padding: 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

@media (max-width: 600px) {
    .activity-summary-grid {
        grid-template-columns: 1fr;
    }
}

.summary-card {
    text-align: center;
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
}

.summary-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.summary-value {
    font-size: 2.2rem;
    font-weight: 800;
    color: #f20a32;
    margin-bottom: 8px;
    display: block;
}

.summary-label {
    font-size: 0.9rem;
    color: #7f8c8d;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Total distance special styling */
.summary-card.total-distance {
    grid-column: 1 / -1;
    background: linear-gradient(135deg, #f20a32 0%, #d3092a 100%);
    color: white;
}

.summary-card.total-distance .summary-value {
    color: white;
    font-size: 2.8rem;
}

.summary-card.total-distance .summary-label {
    color: rgba(255, 255, 255, 0.9);
}

/* Download Section */
.download-container {
    text-align: center;
    margin: 25px 0;
    padding: 20px;
}

.download-image-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 25px;
    background: linear-gradient(135deg, #f20a32 0%, #d3092a 100%);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.download-image-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(242, 10, 50, 0.4);
}

.download-icon {
    font-size: 1.2rem;
}

/* Generated By Footer */
.generated-footer {
    text-align: center;
    margin-top: 20px;
    padding: 15px;
    color: #7f8c8d;
    font-size: 0.9rem;
    border-top: 1px solid #e9ecef;
}

.generated-footer strong {
    color: #f20a32;
}

/* Battery insights styles */
.battery-insights {
    margin-top: 20px;
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 8px;
}

.battery-summary {
    margin-bottom: 15px;
    padding: 10px;
    background-color: #e8f4f8;
    border-radius: 6px;
    border-left: 4px solid #25a5d8;
}

/* Activity pie chart styles */
.activity-pie-chart {
    margin-top: 20px;
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 8px;
}

.chart-container-pie {
    position: relative;
    height: 300px;
    width: 100%;
}

/* Form styles */
.form-section {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
}

input[type="text"],
input[type="number"],
select,
textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e1e8ed;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

input[type="text"]:focus,
input[type="number"]:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #3498db;
}

textarea {
    min-height: 100px;
    resize: vertical;
}

/* Health Condition Selection Styles */
.condition-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.condition-option {
    padding: 8px 12px;
    background-color: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
}

.condition-option:hover {
    background-color: #e9e9e9;
    border-color: #ccc;
}

.condition-option.selected {
    background-color: #f20a32;
    color: white;
    border-color: #d80929;
}

/* Breed Selection Styles */
.breed-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.breed-option {
    padding: 8px 12px;
    background-color: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
}

.breed-option:hover {
    background-color: #e9e9e9;
    border-color: #ccc;
}

.breed-option.selected {
    background-color: #f20a32;
    color: white;
    border-color: #d80929;
}

/* Categories and questions */
.categories-container {
    border: 2px solid #e1e8ed;
    border-radius: 8px;
    overflow: hidden;
}

.category {
    border-bottom: 1px solid #e1e8ed;
}

.category:last-child {
    border-bottom: none;
}

.category-title {
    padding: 15px;
    background-color: #f8f9fa;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.category-title:hover {
    background-color: #e8f4fd;
}

.category-title.collapsed .toggle-icon::before {
    content: "+";
}

.category-title:not(.collapsed) .toggle-icon::before {
    content: "-";
}

.question-list {
    background-color: white;
}

.question-item {
    padding: 12px 20px;
    border-bottom: 1px solid #f1f1f1;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-size: 14px;
}

.question-item:hover {
    background-color: #f0f7ff;
}

.question-item.selected {
    background-color: #e3f2fd;
    border-left: 4px solid #3498db;
}

.question-item:last-child {
    border-bottom: none;
}

/* Button styles */
.submit-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #f20a32 0%, #f20a32 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.3);
}

/* Response section styles */
.response-section {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.response-card h2 {
    color: #2c3e50;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f1f1f1;
    text-align: center;
}

.question-preview {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 4px solid #3498db;
}

.ai-response {
    line-height: 1.8;
    font-size: 16px;
    color: #2c3e50;
    white-space: pre-wrap;
}

/* Activity insights */
.activity-insights {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 2px solid #f1f1f1;
}

.insight-subtext {
    font-size: 0.75em;
    color: #666;
    margin-top: 2px;
}

.activity-insights h3 {
    color: #2c3e50;
    margin-bottom: 15px;
}

.insight-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.insight-item {
    text-align: center;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.insight-value {
    font-size: 24px;
    font-weight: 700;
    color: #3498db;
    margin-bottom: 5px;
}

.insight-label {
    font-size: 14px;
    color: #7f8c8d;
}

.location-info,
.movement-status,
.geofence-info {
    margin-top: 15px;
    padding: 12px;
    background-color: #e8f4fd;
    border-radius: 8px;
    border-left: 4px solid #3498db;
}

.geofence-info h4 {
    margin-bottom: 10px;
    color: #2c3e50;
}

.geofence-info ul {
    list-style: none;
    padding-left: 0;
}

.geofence-info li {
    padding: 5px 0;
    border-bottom: 1px solid #d1e7f7;
}

.geofence-info li:last-child {
    border-bottom: none;
}

/* Welcome card */
.welcome-card {
    text-align: center;
}

.welcome-card h2 {
    color: #2c3e50;
    margin-bottom: 15px;
}

.welcome-card > p {
    font-size: 18px;
    color: #7f8c8d;
    margin-bottom: 30px;
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.feature {
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
    text-align: center;
}

.feature h3 {
    color: #2c3e50;
    margin-bottom: 10px;
}

.feature p {
    color: #7f8c8d;
}

/* Error messages */
.error-message {
    color: #e74c3c;
    font-size: 14px;
    margin-top: 5px;
    display: none;
}

/* Mapbox map container */
.mapbox-map {
    width: 100%;
    height: 400px;
    border-radius: 8px;
    margin-top: 15px;
}

/* Social media export styles */
.export-container {
    margin-top: 20px;
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 8px;
}

.export-btn {
    display: inline-flex;
    align-items: center;
    padding: 10px 15px;
    background: linear-gradient(135deg, #4267B2 0%, #3b5998 100%);
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    transition: background-color 0.2s;
    cursor: pointer;
    border: none;
    margin-right: 10px;
}

.export-btn:hover {
    background: linear-gradient(135deg, #3b5998 0%, #2d4373 100%);
}

.export-icon {
    margin-right: 8px;
    font-size: 18px;
}

/* Social Media Preview Styles */
.social-preview {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 10001;
    justify-content: center;
    align-items: center;
}

.preview-content {
    background: white;
    width: 420px;
    max-height: 85vh;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
}

.close-preview {
    position: absolute;
    top: 12px;
    right: 15px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    cursor: pointer;
    z-index: 10;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-preview:hover {
    background: rgba(0, 0, 0, 0.8);
}

.preview-header {
    background: linear-gradient(135deg, #f20a32 0%, #d3092a 100%);
    color: white;
    padding: 20px;
    text-align: center;
    border-bottom: 3px solid #b30824;
}

.preview-header h2 {
    color: white;
    margin: 0 0 8px 0;
    font-size: 20px;
    font-weight: 700;
}

.preview-header p {
    margin: 4px 0;
    font-size: 14px;
    opacity: 0.9;
}

.preview-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.preview-location {
    background: #f8f9fa;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 15px;
    border-left: 4px solid #f20a32;
}

.preview-location p {
    margin: 0;
    color: #666;
    font-size: 13px;
    line-height: 1.4;
    text-align: center;
}

.preview-map {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    height: 130px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.map-content {
    text-align: center;
}

.map-icon {
    font-size: 36px;
    margin-bottom: 8px;
}

.map-title {
    font-size: 16px;
    margin-bottom: 4px;
    font-weight: 600;
}

.map-date {
    font-size: 12px;
    opacity: 0.9;
}

.preview-title {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 18px;
    text-align: center;
    font-weight: 700;
}

.preview-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin: 0 0 20px 0;
}

.stat-item {
    text-align: center;
    padding: 15px 10px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #f20a32;
    transition: transform 0.2s ease;
}

.stat-item:hover {
    transform: translateY(-2px);
}

.stat-value {
    font-size: 18px;
    font-weight: bold;
    color: #f20a32;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 11px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.preview-insights {
    margin-top: 15px;
    padding: 15px;
    background: #f0f7ff;
    border-radius: 8px;
    border-left: 4px solid #3498db;
}

.preview-insights p {
    margin: 0;
    color: #2c3e50;
    font-style: italic;
    text-align: center;
    font-size: 13px;
    line-height: 1.4;
}

.preview-footer {
    background: #f8f9fa;
    padding: 15px 20px;
    text-align: center;
    border-top: 1px solid #e9ecef;
}

.preview-footer p {
    margin: 0 0 12px 0;
    color: #666;
    font-size: 12px;
}

.download-social-btn {
    background: linear-gradient(135deg, #f20a32 0%, #d3092a 100%);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.download-social-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(242, 10, 50, 0.3);
}

/* Geofence alarms styles */
.alarms-container {
    margin-top: 20px;
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 8px;
}

.alarm-period-selector {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    align-items: center;
}

.custom-date-range {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.geofence-summary {
    margin-top: 20px;
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.summary-card {
    background: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-top: 20px;
}

.summary-card h3 {
    margin-top: 0;
    color: #2c3e50;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.event-list {
    list-style: none;
    padding: 0;
    max-height: 300px;
    overflow-y: auto;
}

.event-item {
    padding: 8px 0;
    border-bottom: 1px solid #f1f1f1;
}

.event-item:last-child {
    border-bottom: none;
}

.event-time {
    font-size: 12px;
    color: #7f8c8d;
}

.geofence-name {
    font-weight: 600;
}

.event-type {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: bold;
    margin-left: 5px;
}

.event-type.enter {
    background-color: #e8f5e9;
    color: #2e7d32;
}

.event-type.exit {
    background-color: #ffebee;
    color: #c62828;
}

/* Footer */
footer {
    text-align: center;
    padding: 20px;
    color: #7f8c8d;
    font-size: 14px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

footer p:first-child {
    margin-bottom: 10px;
    font-weight: 600;
}

footer p a {
    color: #f20a32;
    text-decoration: none;
}

footer p a:hover {
    text-decoration: underline;
    color: #333333;
}

.applogo {
    margin-top: 32px;
    margin-bottom: 18px;
}

.traksify-form-group {
    border: 2px solid #f20a32;
    border-radius: 8px;
    padding-left: 6px;
    padding-right: 6px;
    background: #fafafa;
    margin-bottom: 24px; 
}

/* Loading spinner styles */
.loading-spinner {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #f20a32;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

.loading-text {
    font-size: 18px;
    color: #2c3e50;
    font-weight: bold;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Route visualization styles */
.route-visualization {
    margin-top: 20px;
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 8px;
}

.map-link {
    display: inline-flex;
    align-items: center;
    padding: 10px 15px;
    background-color: #4285f4;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    transition: background-color 0.2s;
}

.map-link:hover {
    background-color: #3367d6;
}

.map-icon {
    margin-right: 8px;
    font-size: 18px;
}

.static-map-preview {
    margin-top: 15px;
    text-align: center;
}

.static-map-preview img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

/* Weekly activity chart styles */
.weekly-activity {
    margin-top: 20px;
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 8px;
}

.activity-chart {
    margin-top: 15px;
    position: relative;
    height: 250px;
}

.favorite-locations {
    margin-top: 20px;
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 8px;
}

.favorite-locations ul {
    list-style-type: none;
    padding-left: 0;
}

.favorite-locations li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.favorite-locations li:last-child {
    border-bottom: none;
}

.chart-container {
    position: relative;
    margin: auto;
    height: 250px;
}

/* Popup styles */
.popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    justify-content: center;
    align-items: center;
}

.popup {
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    max-width: 500px;
    width: 90%;
    text-align: center;
}

.popup h3 {
    color: #d32f2f;
    margin-top: 0;
}

.popup-btn {
    background-color: #f20a32;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    margin-top: 15px;
}

.popup-btn:hover {
    background-color: #d3092a;
}

/* Login modal styles */
.login-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    justify-content: center;
    align-items: center;
}

.login-content {
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    max-width: 400px;
    width: 90%;
}

.login-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.login-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: #2c3e50;
}

.close-login {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
}

.login-form input {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.login-btn, .login-btn-form {
    background: linear-gradient(135deg, #f20a32 0%, #d3092a 100%);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.2s ease;
    width: 100%;
    margin-top: 10px;
}

.login-btn:hover, .login-btn-form:hover {
    background: linear-gradient(135deg, #d3092a 0%, #b30824 100%);
    transform: translateY(-1px);
}

.login-footer {
    margin-top: 15px;
    font-size: 14px;
    color: #666;
    text-align: center;
}

.login-footer a {
    text-decoration: none;
    color: #f20a32;
}

.login-footer a:hover {
    text-decoration: underline;
    color: #333333;
}

.login-error {
    background-color: #ffebee;
    color: #d32f2f;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 15px;
    font-size: 14px;
}

.login-success {
    background-color: #e8f5e9;
    color: #2e7d32;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 15px;
    font-size: 14px;
}

.user-info {
    align-items: center;
    margin-left: auto;
    margin-right: 20px;
    color: #7f8c8d;
    font-size: 14px;
    margin-top: 36px;
}

.logout-btn {
    background: linear-gradient(135deg, #f20a32 0%, #f20a32 100%);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    margin-left: 10px;
    text-decoration: none;
    margin-top: 12px;
    font-weight: 600;
}

.logout-btn:hover {
    background: #d3092a;
}

/* Disclaimer styles */
.disclaimer {
    background-color: #fff3f3;
    border-left: 4px solid #f20a32;
    padding: 15px;
    margin: 20px 0;
    border-radius: 4px;
    font-size: 14px;
}

.consent-checkbox {
    display: flex;
    align-items: flex-start;
    margin: 15px 0;
}

.consent-checkbox input {
    margin-right: 10px;
    margin-top: 3px;
}

.consent-label {
    font-size: 14px;
    line-height: 1.4;
}

.consent-label a {
    color: #f20a32;
    text-decoration: none;
}

.consent-label a:hover {
    text-decoration: underline;
    color: #333333;
}

/* Dynamic content styles */
.dynamic-content-container {
    background: white;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    padding: 30px;
    margin: 20px auto;
    max-width: 800px;
    width: 100%;
}

.activity-route-section,
.pet-details-section,
.summary-section {
    margin-bottom: 25px;
}

.dynamic-text {
    color: #2c3e50;
    line-height: 1.6;
}

.dynamic-heading {
    color: #2c3e50;
    font-weight: 700;
    margin-bottom: 15px;
}

.dynamic-loading {
    text-align: center;
    padding: 40px;
    color: #7f8c8d;
}

.dynamic-error {
    text-align: center;
    padding: 40px;
    color: #e74c3c;
    background: #ffebee;
    border-radius: 8px;
    border-left: 4px solid #e74c3c;
}

.additional-insights, .activity-note {
    margin-top: 10px; 
    text-align: center; 
    font-size: 0.85em; 
    color: #666;
}

/* New Features Styles */
.health-dashboard {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 25px;
    border-radius: 15px;
    margin: 25px 0;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.health-score-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    margin: 0 auto 20px;
    border: 4px solid rgba(255,255,255,0.3);
}

.health-score-main {
    font-size: 2.5em;
    font-weight: bold;
    line-height: 1;
}

.health-score-grade {
    font-size: 1.2em;
    opacity: 0.9;
}

.health-breakdown {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.health-metric {
    text-align: center;
    padding: 15px;
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
    backdrop-filter: blur(10px);
}

.health-metric-value {
    font-size: 1.8em;
    font-weight: bold;
    margin-bottom: 5px;
}

.health-metric-label {
    font-size: 0.9em;
    opacity: 0.8;
}

.personality-profile {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 15px;
    padding: 25px;
    margin: 25px 0;
    text-align: center;
}

.personality-badge {
    display: inline-block;
    background: #f20a32;
    color: white;
    padding: 8px 20px;
    border-radius: 25px;
    font-weight: bold;
    font-size: 1.2em;
    margin-bottom: 15px;
}

.personality-traits {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin: 20px 0;
}

.personality-trait {
    background: white;
    border: 2px solid #dee2e6;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: 500;
}

.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin: 25px 0;
}

.achievement-card {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.achievement-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.achievement-icon {
    font-size: 2.5em;
    margin-bottom: 15px;
}

.achievement-name {
    font-weight: bold;
    font-size: 1.2em;
    margin-bottom: 8px;
    color: #f20a32;
}

.achievement-progress {
    background: #e9ecef;
    border-radius: 10px;
    height: 8px;
    margin: 10px 0;
    overflow: hidden;
}

.achievement-progress-bar {
    height: 100%;
    background: #f20a32;
    border-radius: 10px;
    transition: width 0.5s ease;
}

.notifications-container {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 12px;
    padding: 20px;
    margin: 25px 0;
}

.notification-item {
    display: flex;
    align-items: center;
    padding: 12px;
    background: white;
    border-radius: 8px;
    margin-bottom: 10px;
    border-left: 4px solid #f20a32;
}

.notification-icon {
    font-size: 1.5em;
    margin-right: 15px;
}

.notification-message {
    flex: 1;
    font-weight: 500;
}

.seasonal-comparison {
    background: linear-gradient(135deg, #74b9ff 0%, #0984e3 100%);
    color: white;
    padding: 25px;
    border-radius: 15px;
    margin: 25px 0;
}

.seasonal-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.seasonal-stat {
    text-align: center;
    padding: 20px;
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
    backdrop-filter: blur(10px);
}

.trend-up { color: #00b894; }
.trend-down { color: #ff7675; }

/* Virtual Adventure Map */
.adventure-map {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    padding: 25px;
    border-radius: 15px;
    margin: 25px 0;
}

.adventure-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 15px;
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
}

.current-zone {
    display: flex;
    align-items: center;
    gap: 10px;
}

.zone-icon {
    font-size: 2em;
}

.zone-name {
    font-size: 1.3em;
    font-weight: bold;
}

.adventure-score {
    text-align: center;
}

.score-value {
    font-size: 2em;
    font-weight: bold;
    line-height: 1;
}

.score-label {
    font-size: 0.9em;
    opacity: 0.8;
}

.adventure-progress {
    margin: 20px 0;
}

.progress-bar {
    width: 100%;
    height: 12px;
    background: rgba(255,255,255,0.2);
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 8px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #00b894, #00cec9);
    border-radius: 6px;
    transition: width 1s ease-in-out;
}

.progress-text {
    text-align: center;
    font-size: 0.9em;
    opacity: 0.8;
}

.adventure-zones {
    display: grid;
    gap: 10px;
    margin: 25px 0;
}

.adventure-zone {
    display: flex;
    align-items: center;
    padding: 15px;
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.adventure-zone.unlocked {
    background: rgba(0, 184, 148, 0.2);
    border-left: 4px solid #00b894;
}

.adventure-zone.locked {
    background: rgba(255,255,255,0.05);
    opacity: 0.6;
}

.adventure-zone.current {
    background: rgba(242, 10, 50, 0.2);
    border-left: 4px solid #f20a32;
    transform: scale(1.02);
}

.zone-info {
    flex: 1;
    margin: 0 15px;
}

.zone-name {
    font-weight: bold;
    margin-bottom: 4px;
}

.zone-desc {
    font-size: 0.9em;
    opacity: 0.8;
}

.zone-status {
    font-size: 0.9em;
    font-weight: 500;
}

.next-zone-info {
    background: rgba(255,255,255,0.1);
    padding: 20px;
    border-radius: 10px;
    margin-top: 20px;
    text-align: center;
}

.next-zone-info p {
    color: #2e2e2e;
}

.completion-message {
    background: rgba(0, 184, 148, 0.3);
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    font-weight: bold;
    margin-top: 20px;
    border: 2px solid #00b894;
}

.mapbox-map {
    width: 100%;
    height: 400px;
    border-radius: 8px;
    border: 1px solid #ddd;
    margin: 15px 0;
}

/* Mapbox loading state */
.mapbox-map.loading {
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.map-loading-text {
    color: #666;
    font-style: italic;
}

/* Virtual Adventure Map Styles */
.adventure-map {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    padding: 25px;
    margin: 25px 0;
    color: white;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
}

.adventure-map h3 {
    color: white;
    margin-bottom: 20px;
    text-align: center;
    font-size: 1.5em;
}

.adventure-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.current-zone {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.2em;
    font-weight: bold;
}

.zone-icon {
    font-size: 1.5em;
}

.adventure-score {
    text-align: center;
    background: rgba(255,255,255,0.2);
    padding: 10px 20px;
    border-radius: 10px;
}

.score-value {
    font-size: 2em;
    font-weight: bold;
    line-height: 1;
}

.score-label {
    font-size: 0.9em;
    opacity: 0.9;
}

.adventure-progress {
    margin: 25px 0;
}

.progress-bar {
    background: rgba(255,255,255,0.3);
    height: 12px;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 8px;
}

.progress-fill {
    background: linear-gradient(90deg, #ffd89b, #19547b);
    height: 100%;
    border-radius: 6px;
    transition: width 1s ease-in-out;
}

.progress-text {
    text-align: center;
    font-size: 0.9em;
    opacity: 0.9;
}

.adventure-zones {
    display: grid;
    gap: 12px;
    margin: 25px 0;
}

.adventure-zone {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.adventure-zone.unlocked {
    background: rgba(255,255,255,0.2);
    border-left: 4px solid #4CAF50;
}

.adventure-zone.locked {
    opacity: 0.6;
    border-left: 4px solid #ff5252;
}

.adventure-zone.current {
    background: rgba(255,255,255,0.3);
    border-left: 4px solid #FFD700;
    transform: scale(1.02);
}

.zone-info {
    flex: 1;
}

.zone-name {
    font-weight: bold;
    margin-bottom: 4px;
}

.zone-desc {
    font-size: 0.9em;
    opacity: 0.9;
}

.zone-status {
    font-size: 0.85em;
    font-weight: bold;
}

.next-zone-info {
    background: rgba(255,255,255,0.15);
    padding: 20px;
    border-radius: 10px;
    margin-top: 20px;
    text-align: center;
}

.next-zone-info h4 {
    margin-bottom: 10px;
    color: #FFD700;
}

.unlock-progress {
    margin-top: 15px;
}

.completion-message {
    text-align: center;
    font-size: 1.1em;
    font-weight: bold;
    color: #FFD700;
    padding: 20px;
    background: rgba(255,255,255,0.15);
    border-radius: 10px;
    margin-top: 20px;
}

/* Animation for progress bars */
@keyframes fillProgress {
    from { width: 0%; }
    to { width: var(--target-width); }
}

.progress-fill {
    animation: fillProgress 1.5s ease-out forwards;
}

/* ===== ADVENTURE MAP STYLES ===== */

.adventure-map {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
    border: 2px solid #e9ecef;
}

.adventure-map h3 {
    color: #2c3e50;
    margin-bottom: 15px;
    text-align: center;
    font-size: 1.5em;
}

.adventure-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 15px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.current-zone {
    display: flex;
    align-items: center;
    gap: 10px;
}

.zone-icon {
    font-size: 2em;
}

.zone-name {
    font-weight: bold;
    color: #2c3e50;
    font-size: 1.2em;
}

.adventure-score {
    text-align: center;
}

.score-value {
    font-size: 2em;
    font-weight: bold;
    color: #f20a32;
}

.score-label {
    color: #6c757d;
    font-size: 0.9em;
}

.adventure-progress {
    margin: 20px 0;
}

.progress-bar {
    width: 100%;
    height: 12px;
    background: #e9ecef;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 8px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #f20a32, #ff6b6b);
    border-radius: 6px;
    transition: width 0.5s ease-in-out;
}

.progress-text {
    text-align: center;
    color: #6c757d;
    font-size: 0.9em;
}

.adventure-zones {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.adventure-zone {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: white;
    border-radius: 8px;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
}

.adventure-zone.unlocked {
    border-color: #28a745;
    background: #f8fff9;
}

.adventure-zone.locked {
    opacity: 0.6;
    background: #f8f9fa;
}

.adventure-zone.current {
    border-color: #f20a32;
    background: #fff5f5;
    transform: scale(1.02);
}

.zone-info {
    flex: 1;
}

.zone-name {
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 5px;
}

.zone-desc {
    color: #6c757d;
    font-size: 0.9em;
}

.zone-status {
    font-size: 0.8em;
    padding: 4px 8px;
    border-radius: 12px;
    font-weight: bold;
}

.adventure-zone.unlocked .zone-status {
    background: #d4edda;
    color: #155724;
}

.adventure-zone.locked .zone-status {
    background: #e2e3e5;
    color: #6c757d;
}

.next-zone-info {
    background: #e3f2fd;
    padding: 15px;
    border-radius: 8px;
    margin: 20px 0;
    border-left: 4px solid #2196f3;
}

.next-zone-info h4 {
    color: #1976d2;
    margin-bottom: 10px;
}

.unlock-progress {
    margin-top: 10px;
}

.completion-message {
    text-align: center;
    padding: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
}

/* Adventure Score Breakdown */
.adventure-score-breakdown {
    background: white;
    padding: 20px;
    border-radius: 8px;
    margin: 15px 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.adventure-score-breakdown h4 {
    color: #2c3e50;
    margin-bottom: 15px;
    text-align: center;
}

.score-components {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.score-component {
    text-align: center;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.component-label {
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 5px;
}

.component-value {
    font-size: 1.5em;
    font-weight: bold;
    color: #f20a32;
    margin-bottom: 5px;
}

.component-desc {
    color: #6c757d;
    font-size: 0.8em;
}

/* Adventure Data Filtering Info */
.adventure-data-info {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    padding: 15px;
    margin: 15px 0;
}

.adventure-data-info h4 {
    color: #856404;
    margin-bottom: 15px;
}

.data-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-bottom: 10px;
}

.data-stat {
    text-align: center;
    padding: 10px;
    background: white;
    border-radius: 6px;
    border: 1px solid #ffeaa7;
}

.data-stat .stat-value {
    font-size: 1.3em;
    font-weight: bold;
    color: #856404;
    margin-bottom: 5px;
}

.data-stat .stat-label {
    color: #6c757d;
    font-size: 0.8em;
}

.data-note {
    color: #856404;
    font-size: 0.9em;
    margin: 0;
    text-align: center;
}

/* ===== HEALTH DASHBOARD STYLES ===== */

.health-dashboard {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 12px;
    padding: 25px;
    margin: 20px 0;
    text-align: center;
}

.health-dashboard h3 {
    margin-bottom: 20px;
    font-size: 1.5em;
}

.health-score-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: white;
    color: #2c3e50;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 0 auto 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.health-score-main {
    font-size: 2.5em;
    font-weight: bold;
    line-height: 1;
}

.health-score-grade {
    font-size: 1.2em;
    font-weight: bold;
    color: #f20a32;
}

.health-breakdown {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.health-metric {
    background: rgba(255,255,255,0.2);
    padding: 15px;
    border-radius: 8px;
    backdrop-filter: blur(10px);
}

.health-metric-value {
    font-size: 1.5em;
    font-weight: bold;
    margin-bottom: 5px;
}

.health-metric-label {
    font-size: 0.9em;
    opacity: 0.9;
}

/* ===== PERSONALITY PROFILE STYLES ===== */

.personality-profile {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
    border-left: 4px solid #f20a32;
}

.personality-profile h3 {
    color: #2c3e50;
    margin-bottom: 15px;
}

.personality-badge {
    display: inline-block;
    background: #f20a32;
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: bold;
    margin-bottom: 15px;
}

.personality-description {
    color: #6c757d;
    margin-bottom: 15px;
    line-height: 1.5;
}

.personality-traits {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 10px;
}

.personality-trait {
    background: white;
    padding: 6px 12px;
    border-radius: 15px;
    border: 1px solid #e9ecef;
    font-size: 0.9em;
    color: #495057;
}

.confidence-score {
    text-align: center;
    color: #6c757d;
    font-size: 0.8em;
}

/* ===== ACHIEVEMENTS STYLES ===== */

.achievements-section {
    margin: 20px 0;
}

.achievements-section h3 {
    color: #2c3e50;
    margin-bottom: 15px;
    text-align: center;
}

.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 15px;
}

.achievement-card {
    background: white;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border: 1px solid #e9ecef;
    text-align: center;
}

.achievement-icon {
    font-size: 2em;
    margin-bottom: 10px;
}

.achievement-name {
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 5px;
}

.achievement-description {
    color: #6c757d;
    font-size: 0.9em;
    margin-bottom: 10px;
}

.achievement-progress {
    height: 6px;
    background: #e9ecef;
    border-radius: 3px;
    margin-bottom: 5px;
    overflow: hidden;
}

.achievement-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #f20a32, #ff6b6b);
    border-radius: 3px;
    transition: width 1s ease-in-out;
}

.achievement-details {
    color: #6c757d;
    font-size: 0.8em;
}

/* ===== NOTIFICATIONS STYLES ===== */

.notifications-container {
    background: #e3f2fd;
    border-radius: 8px;
    padding: 15px;
    margin: 20px 0;
    border: 1px solid #bbdefb;
}

.notifications-container h3 {
    color: #1976d2;
    margin-bottom: 15px;
}

.notification-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: white;
    border-radius: 6px;
    margin-bottom: 8px;
    border-left: 3px solid #2196f3;
}

.notification-icon {
    font-size: 1.2em;
}

.notification-message {
    color: #2c3e50;
    flex: 1;
}

/* ===== SEASONAL COMPARISON STYLES ===== */

.seasonal-comparison {
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
}

.seasonal-comparison h3 {
    color: #2c3e50;
    margin-bottom: 10px;
    text-align: center;
}

.seasonal-comparison p {
    color: #6c757d;
    text-align: center;
    margin-bottom: 20px;
}

.seasonal-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
}

.seasonal-stat {
    text-align: center;
    padding: 15px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.seasonal-stat .stat-value {
    font-size: 1.3em;
    font-weight: bold;
    margin-bottom: 5px;
}

.seasonal-stat .stat-value.trend-up {
    color: #28a745;
}

.seasonal-stat .stat-value.trend-down {
    color: #dc3545;
}

.seasonal-stat .stat-label {
    color: #6c757d;
    font-size: 0.9em;
}

/* Responsive Design */
@media (max-width: 768px) {
    .adventure-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .adventure-zones {
        grid-template-columns: 1fr;
    }
    
    .score-components,
    .data-stats,
    .seasonal-stats {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }
    
    .health-breakdown {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .achievements-grid {
        grid-template-columns: 1fr;
    }
}

/* Add to existing responsive section */
@media (max-width: 480px) {
    .adventure-zone {
        flex-direction: column;
        text-align: center;
    }
    
    .health-score-circle {
        width: 100px;
        height: 100px;
    }
    
    .health-score-main {
        font-size: 2em;
    }
}

/* Utility classes for animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.5s ease-out;
}

/* Smooth transitions for interactive elements */
.adventure-zone,
.achievement-card,
.notification-item {
    transition: all 0.3s ease;
}

.adventure-zone:hover,
.achievement-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}