/* Pup Wanna Walk - Professional Brand Styling */

:root {
    /* Brand Colors from Company Background */
    --sky-blue: #87CEEB;
    --deep-blue: #4682B4;
    --warm-orange: #FFA500;
    --sunset-orange: #FF8C00;
    --fresh-green: #32CD32;
    --park-green: #228B22;
    --golden-sun: #FFD700;
    --cloud-white: #F8F8FF;
    --bridge-teal: #40E0D0;
    --city-gray: #708090;
    
    /* Primary Brand Palette */
    --primary-color: var(--deep-blue);
    --primary-dark: #1e3a8a;
    --primary-light: var(--sky-blue);
    --secondary-color: var(--warm-orange);
    --secondary-dark: var(--sunset-orange);
    --secondary-light: #FFCC99;
    --accent-color: var(--fresh-green);
    --accent-dark: var(--park-green);
    
    /* Background with Professional Transparency */
    --background-primary: rgba(248, 248, 255, 0.92);
    --background-secondary: rgba(255, 255, 255, 0.88);
    --background-light: rgba(248, 248, 255, 0.82);
    --background-overlay: rgba(70, 130, 180, 0.06);
    
    /* Professional Glass Effects */
    --glass-bg: rgba(255, 255, 255, 0.25);
    --glass-bg-strong: rgba(255, 255, 255, 0.4);
    --glass-border: rgba(255, 255, 255, 0.35);
    --glass-shadow: rgba(70, 130, 180, 0.15);
    
    /* Brand Gradients */
    --gradient-primary: linear-gradient(135deg, var(--deep-blue), var(--sky-blue));
    --gradient-secondary: linear-gradient(135deg, var(--warm-orange), var(--sunset-orange));
    --gradient-accent: linear-gradient(135deg, var(--fresh-green), var(--park-green));
    --gradient-card: linear-gradient(135deg, rgba(255, 255, 255, 0.45), rgba(248, 248, 255, 0.25));
    --gradient-hover: linear-gradient(135deg, rgba(70, 130, 180, 0.12), rgba(255, 165, 0, 0.12));
    --gradient-sky: linear-gradient(180deg, var(--sky-blue), rgba(135, 206, 235, 0.4));
    
    /* Typography */
    --text-primary: #1a365d;
    --text-secondary: #2d3748;
    --text-light: #4a5568;
    --text-dark: #1a202c;
    --text-medium: #718096;
    --text-brand: var(--deep-blue);
    
    /* Status Colors */
    --success: var(--fresh-green);
    --warning: var(--golden-sun);
    --error: #e53e3e;
    --info: var(--bridge-teal);
    
    /* Professional Shadows */
    --shadow-light: 0 2px 12px rgba(70, 130, 180, 0.12);
    --shadow-medium: 0 4px 20px rgba(70, 130, 180, 0.18);
    --shadow-heavy: 0 8px 32px rgba(70, 130, 180, 0.25);
    --shadow-glow: 0 0 24px rgba(255, 165, 0, 0.35);
    --shadow-brand: 0 4px 16px rgba(70, 130, 180, 0.3);
    
    /* Border Radius */
    --radius-sm: 12px;
    --radius-md: 18px;
    --radius-lg: 24px;
    --radius-xl: 30px;
    --radius-full: 50%;
    
    /* Animations */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-medium: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    background: url('/static/background.png') no-repeat center center fixed;
    background-size: cover;
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    font-weight: 400;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--background-overlay);
    backdrop-filter: blur(1px);
    z-index: -1;
    pointer-events: none;
}

/* App Container */
.app-container {
    max-width: 430px;
    margin: 0 auto;
    min-height: 100vh;
    background: var(--background-primary);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-medium);
    position: relative;
    overflow: hidden;
}

/* Status Bar */
.status-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px 8px;
    background: var(--glass-bg-strong);
    backdrop-filter: blur(25px);
    border-bottom: 1px solid var(--glass-border);
    font-size: 14px;
    font-weight: 600;
    color: var(--text-brand);
}

.status-bar .time {
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.5px;
}

.status-bar .icons {
    display: flex;
    gap: 8px;
    font-size: 16px;
}

/* Main Content */
.main-content {
    padding: 24px 20px;
    min-height: calc(100vh - 60px);
}

/* Header Styles */
.header {
    text-align: center;
    margin-bottom: 36px;
    padding: 28px 0;
    position: relative;
}

.header img:hover {
    opacity: 1;
    transform: scale(1.05);
    filter: drop-shadow(0 12px 24px rgba(70, 130, 180, 0.5));
}

.header img {
    width: 140px;
    height: auto;
    margin-bottom: 20px;
    filter: drop-shadow(0 8px 16px rgba(70, 130, 180, 0.4));
    opacity: 0.95;
    transition: all var(--transition-medium);
    background: transparent;
}

.header h1 {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-brand);
    margin-bottom: 12px;
    text-shadow: 0 3px 6px rgba(70, 130, 180, 0.3);
    letter-spacing: -0.5px;
}

.header p {
    color: var(--text-medium);
    font-size: 16px;
    font-weight: 500;
}

/* Card Styles */
.card {
    background: var(--gradient-card);
    backdrop-filter: blur(25px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 28px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-medium);
    transition: all var(--transition-medium);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-heavy);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Demo Banner */
.demo-banner {
    background: var(--gradient-primary);
    color: white;
    padding: 24px;
    border-radius: var(--radius-md);
    margin-bottom: 28px;
    text-align: center;
    box-shadow: var(--shadow-brand);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.demo-banner h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
}

.demo-banner p {
    font-size: 14px;
    opacity: 0.95;
    margin-bottom: 4px;
}

.demo-banner small {
    font-size: 12px;
    opacity: 0.8;
}

/* Button Styles */
.primary-button, .secondary-button, .upload-button {
    display: inline-block;
    padding: 14px 24px;
    border: none;
    border-radius: var(--radius-md);
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-medium);
    box-shadow: var(--shadow-light);
    position: relative;
    overflow: hidden;
}

.primary-button {
    background: var(--gradient-primary);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.primary-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-brand);
}

.secondary-button {
    background: var(--gradient-card);
    color: var(--text-brand);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
}

.secondary-button:hover {
    background: var(--gradient-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-medium);
}

/* Action Buttons Grid */
.action-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 24px;
}

.action-buttons .primary-button,
.action-buttons .secondary-button {
    margin: 0;
    font-size: 14px;
    padding: 12px 16px;
}

.action-buttons a:last-child {
    grid-column: 1 / -1;
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-brand);
    font-size: 14px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    color: var(--text-primary);
    font-size: 16px;
    transition: all var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(70, 130, 180, 0.1);
    background: var(--glass-bg-strong);
}

/* Upload Section */
.upload-section {
    margin: 24px 0;
}

.file-upload-container {
    position: relative;
    margin: 20px 0;
}

.upload-button {
    display: block !important;
    width: 100%;
    padding: 32px 20px;
    border: 2px dashed var(--primary-color);
    border-radius: var(--radius-md);
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-medium);
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
}

.upload-button:hover {
    border-color: var(--primary-dark);
    background: var(--glass-bg-strong);
    transform: scale(1.02);
}

.upload-button div:first-child {
    font-size: 3rem;
    margin-bottom: 12px;
}

.upload-button div:nth-child(2) {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 16px;
}

.upload-button div:last-child {
    font-size: 14px;
    color: var(--text-medium);
    margin-top: 8px;
}

/* Image Preview */
#image-preview {
    margin: 24px 0;
    text-align: center;
}

#preview-img {
    max-width: 100%;
    max-height: 300px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-medium);
    border: 3px solid var(--glass-border);
}

/* Loading Spinner */
.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(70, 130, 180, 0.3);
    border-left: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

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

/* Results Section */
.breed-results {
    margin-top: 24px;
}

.primary-breed {
    background: var(--gradient-card);
    padding: 24px;
    border-radius: var(--radius-md);
    margin-bottom: 20px;
    border-left: 4px solid var(--primary-color);
    backdrop-filter: blur(15px);
}

.primary-breed h4 {
    font-size: 20px;
    color: var(--primary-color);
    margin-bottom: 12px;
    font-weight: 700;
}

.confidence-bar {
    background: rgba(70, 130, 180, 0.1);
    border-radius: 10px;
    height: 10px;
    margin-bottom: 12px;
    overflow: hidden;
}

.confidence-bar div {
    height: 100%;
    border-radius: 10px;
    transition: width 0.5s var(--bounce);
}

/* Navigation Styles for Dashboard */
.nav-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin: 24px 0;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 16px;
    background: var(--gradient-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    text-decoration: none;
    color: var(--text-brand);
    transition: all var(--transition-medium);
    backdrop-filter: blur(15px);
    box-shadow: var(--shadow-light);
}

.nav-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
    background: var(--gradient-hover);
}

.nav-icon {
    font-size: 32px;
    margin-bottom: 8px;
}

.nav-label {
    font-weight: 600;
    font-size: 14px;
}

/* Dog Profile Styles */
.dog-profile {
    background: var(--gradient-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 20px;
    margin-bottom: 16px;
    backdrop-filter: blur(15px);
    box-shadow: var(--shadow-light);
    transition: all var(--transition-medium);
}

.dog-profile:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.dog-avatar {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-full);
    background: var(--gradient-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 12px;
    box-shadow: var(--shadow-light);
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin: 24px 0;
}

.stat-card {
    background: var(--gradient-card);
    padding: 20px;
    border-radius: var(--radius-md);
    text-align: center;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(15px);
    box-shadow: var(--shadow-light);
}

.stat-number {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 4px;
}

.stat-label {
    font-size: 12px;
    color: var(--text-medium);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Responsive Design */
@media (max-width: 480px) {
    .app-container {
        max-width: 100%;
        border-radius: 0;
        border-left: none;
        border-right: none;
    }
    
    .main-content {
        padding: 20px 16px;
    }
    
    .card {
        padding: 20px;
        margin-bottom: 20px;
    }
    
    .action-buttons {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

/* Pup Step Meter Styles */
.pup-step-meter {
    background: var(--gradient-card);
    backdrop-filter: blur(25px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 20px;
    margin: 24px 0;
    box-shadow: var(--shadow-medium);
    position: sticky;
    top: 20px;
    z-index: 100;
}

.step-header {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
}

.step-header h3 {
    margin: 0 0 4px 0;
    font-size: 18px;
    font-weight: 700;
    color: var(--text-brand);
}

.step-stats {
    font-size: 24px;
    font-weight: 800;
    color: var(--primary-color);
}

.current-steps {
    color: var(--accent-color);
}

.goal-steps {
    color: var(--text-medium);
}

.step-settings {
    margin-left: auto;
    padding: 8px 12px;
    background: var(--glass-bg);
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-size: 16px;
    transition: all var(--transition-fast);
}

.step-settings:hover {
    background: var(--glass-bg-strong);
    transform: scale(1.1);
}

.progress-container {
    margin: 16px 0;
}

.progress-bar {
    width: 100%;
    height: 12px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-sm);
    overflow: hidden;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: var(--gradient-accent);
    border-radius: var(--radius-sm);
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.4) 50%, transparent 100%);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.progress-text {
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-medium);
    margin-top: 8px;
}

.step-actions {
    display: flex;
    gap: 8px;
    margin-top: 16px;
}

.step-btn {
    flex: 1;
    padding: 8px 12px;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    background: var(--gradient-primary);
    color: white;
}

.step-btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-light);
}

.device-btn {
    background: var(--gradient-secondary);
}

/* Step Analyzer Specific Styles */
.analysis-card {
    background: linear-gradient(135deg, rgba(50, 205, 50, 0.1), rgba(34, 139, 34, 0.1));
    border: 1px solid rgba(50, 205, 50, 0.3);
    border-radius: 12px;
    padding: 20px;
    margin: 15px 0;
}

.goal-display {
    text-align: center;
    margin: 20px 0;
}

.goal-number {
    font-size: 48px;
    font-weight: bold;
    color: var(--accent-color);
    text-shadow: 0 2px 4px rgba(50, 205, 50, 0.3);
}

.goal-label {
    font-size: 16px;
    color: var(--text-secondary);
    margin: 5px 0;
}

.goal-range {
    font-size: 14px;
    color: var(--text-medium);
}

.size-info {
    background: rgba(255, 255, 255, 0.5);
    padding: 10px;
    border-radius: 8px;
    margin: 15px 0;
    font-size: 14px;
}

.settings-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin: 15px 0;
}

.setting-item {
    display: flex;
    justify-content: space-between;
    padding: 10px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 8px;
}

.advice-section ul {
    list-style: none;
    padding: 0;
}

.advice-section li {
    background: rgba(255, 255, 255, 0.2);
    margin: 8px 0;
    padding: 8px 12px;
    border-radius: 6px;
    border-left: 3px solid var(--accent-color);
}

/* Circular Pup Step Meter Styles */
.circular-step-meter {
    background: var(--gradient-card);
    backdrop-filter: blur(25px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    padding: 25px;
    margin: 20px 0;
    box-shadow: var(--shadow-heavy);
    display: flex;
    align-items: center;
    gap: 25px;
    position: relative;
    overflow: hidden;
    position: sticky;
    top: 20px;
    z-index: 100;
}

.circular-step-meter::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.08), rgba(118, 75, 162, 0.08));
    border-radius: var(--radius-xl);
    z-index: -1;
}

.step-circle {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.progress-ring {
    transform: rotate(-90deg);
    filter: drop-shadow(0 4px 8px rgba(102, 126, 234, 0.3));
}

.progress-ring-background {
    opacity: 0.3;
}

.progress-ring-progress {
    transition: stroke-dashoffset 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    animation: pulse-glow 3s ease-in-out infinite alternate;
}

@keyframes pulse-glow {
    0% { filter: drop-shadow(0 0 5px rgba(102, 126, 234, 0.5)); }
    100% { filter: drop-shadow(0 0 15px rgba(102, 126, 234, 0.8)); }
}

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

.step-mascot {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    padding: 3px;
    margin-bottom: 5px;
    box-shadow: var(--shadow-light);
    transition: all var(--transition-fast);
}

.step-mascot:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-medium);
}

.step-count {
    font-size: 1.4em;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1;
    margin-bottom: 2px;
}

.step-label {
    font-size: 0.7em;
    color: var(--text-medium);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.steps-remaining {
    font-size: 0.6em;
    color: var(--secondary-color);
    font-weight: 700;
    margin-top: 2px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    transition: all var(--transition-fast);
}

.steps-remaining.goal-achieved {
    color: var(--success);
    animation: celebrate 0.6s ease-in-out;
}

@keyframes celebrate {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Weather Dashboard Styles */
.weather-alert {
    margin-bottom: 20px;
    padding: 20px;
    border-radius: 12px;
    border-left: 4px solid;
}

.weather-alert.priority-normal {
    border-left-color: var(--primary-color);
    background: rgba(52, 152, 219, 0.1);
}

.weather-alert.priority-high {
    border-left-color: var(--secondary-color);
    background: rgba(255, 165, 0, 0.1);
}

.weather-alert.priority-urgent {
    border-left-color: #e74c3c;
    background: rgba(231, 76, 60, 0.1);
}

.alert-message {
    font-size: 0.95em;
    line-height: 1.5;
    color: var(--text-dark);
}

.current-weather {
    margin-bottom: 20px;
}

.weather-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 20px;
}

.temp-display {
    font-size: 3em;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.weather-desc {
    font-size: 1.2em;
    color: var(--text-medium);
    margin-bottom: 15px;
    text-transform: capitalize;
}

.weather-details {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.weather-details span {
    font-size: 0.9em;
    color: var(--text-medium);
    padding: 5px 10px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 20px;
}

.warnings, .recommendations {
    margin-top: 15px;
}

.warnings h4, .recommendations h4 {
    color: var(--text-dark);
    margin-bottom: 8px;
}

.warnings ul, .recommendations ul {
    list-style: none;
    padding: 0;
}

.warnings li, .recommendations li {
    padding: 5px 0;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.warnings li:before {
    content: "⚠️ ";
    margin-right: 5px;
}

.recommendations li:before {
    content: "💡 ";
    margin-right: 5px;
}

.walk-suggestions {
    margin-bottom: 20px;
}

.daily-summary {
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
    margin-bottom: 20px;
}

.daily-summary.safety-excellent {
    background: rgba(46, 204, 113, 0.2);
    color: #27ae60;
}

.daily-summary.safety-good {
    background: rgba(52, 152, 219, 0.2);
    color: #2980b9;
}

.daily-summary.safety-fair {
    background: rgba(255, 165, 0, 0.2);
    color: #f39c12;
}

.daily-summary.safety-poor {
    background: rgba(231, 76, 60, 0.2);
    color: #e74c3c;
}

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

.time-card {
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    border: 2px solid transparent;
    transition: all var(--transition-fast);
}

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

.time-card .time {
    font-size: 1.1em;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 5px;
}

.time-card .temp {
    font-size: 0.9em;
    color: var(--text-medium);
    margin-bottom: 5px;
}

.time-card .weather {
    font-size: 0.8em;
    color: var(--text-medium);
    margin-bottom: 8px;
}

.time-card .score {
    font-size: 0.8em;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 12px;
    display: inline-block;
}

/* Score-based coloring */
.time-card.score-9, .time-card.score-10 {
    background: rgba(46, 204, 113, 0.1);
    border-color: #2ecc71;
}

.time-card.score-9 .score, .time-card.score-10 .score {
    background: #2ecc71;
    color: white;
}

.time-card.score-7, .time-card.score-8 {
    background: rgba(52, 152, 219, 0.1);
    border-color: #3498db;
}

.time-card.score-7 .score, .time-card.score-8 .score {
    background: #3498db;
    color: white;
}

.time-card.score-5, .time-card.score-6 {
    background: rgba(255, 165, 0, 0.1);
    border-color: #f39c12;
}

.time-card.score-5 .score, .time-card.score-6 .score {
    background: #f39c12;
    color: white;
}

.time-card.score-0, .time-card.score-1, .time-card.score-2, .time-card.score-3, .time-card.score-4, .time-card.avoid {
    background: rgba(231, 76, 60, 0.1);
    border-color: #e74c3c;
}

.time-card.score-0 .score, .time-card.score-1 .score, .time-card.score-2 .score, .time-card.score-3 .score, .time-card.score-4 .score, .time-card.avoid .score {
    background: #e74c3c;
    color: white;
}

.emergency-check {
    margin-bottom: 20px;
    text-align: center;
}

.safety-alert {
    margin-top: 15px;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid;
}

.safety-alert.urgent {
    border-left-color: #e74c3c;
    background: rgba(231, 76, 60, 0.1);
}

.safety-alert.good {
    border-left-color: #2ecc71;
    background: rgba(46, 204, 113, 0.1);
}

.safety-alert h4 {
    margin-bottom: 8px;
    color: var(--text-dark);
}

.safety-alert ul {
    list-style: none;
    padding: 0;
    margin-top: 10px;
}

.safety-alert li {
    padding: 3px 0;
}

/* Weather setup styles */
.weather-setup {
    max-width: 400px;
    margin: 0 auto;
}

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

.weather-setup label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-dark);
}

.weather-setup input {
    width: 100%;
    padding: 12px;
    border: 2px solid rgba(0,0,0,0.1);
    border-radius: 8px;
    font-size: 1em;
    transition: border-color var(--transition-fast);
}

.weather-setup input:focus {
    outline: none;
    border-color: var(--primary-color);
}

@media (max-width: 768px) {
    .time-grid {
        grid-template-columns: 1fr;
    }
    
    .weather-details {
        flex-direction: column;
        gap: 10px;
    }
    
    .temp-display {
        font-size: 2.5em;
    }
}

.step-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.step-goal {
    font-size: 1.1em;
    font-weight: 700;
    color: var(--text-brand);
}

.step-percentage {
    font-size: 1.5em;
    font-weight: 800;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.step-actions-compact {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.step-btn-compact {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    color: var(--primary-color);
    border-radius: var(--radius-md);
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2em;
    cursor: pointer;
    transition: all var(--transition-medium);
    text-decoration: none;
    box-shadow: var(--shadow-light);
}

.step-btn-compact:hover {
    background: var(--gradient-accent);
    color: white;
    transform: translateY(-3px) scale(1.05);
    box-shadow: var(--shadow-medium);
}

.step-btn-compact:active {
    transform: translateY(-1px) scale(1.02);
}

.device-btn-compact {
    background: var(--gradient-secondary);
    color: white;
}

.device-btn-compact:hover {
    background: var(--gradient-accent);
}

/* Responsive Design for Circular Meter */
@media (max-width: 768px) {
    .circular-step-meter {
        flex-direction: column;
        text-align: center;
        gap: 20px;
        padding: 20px;
    }
    
    .step-info {
        align-items: center;
    }
    
    .step-actions-compact {
        justify-content: center;
    }
    
    .progress-ring {
        width: 100px;
        height: 100px;
    }
    
    .step-mascot {
        width: 30px;
        height: 30px;
    }
    
    .step-count {
        font-size: 1.2em;
    }
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }

/* Authentication Screens */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: var(--gradient-sky);
}

.auth-card {
    width: 100%;
    max-width: 400px;
    background: var(--gradient-card);
    backdrop-filter: blur(25px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    padding: 40px;
    box-shadow: var(--shadow-heavy);
    text-align: center;
}

.auth-header {
    margin-bottom: 32px;
}

.auth-header img {
    width: 160px;
    height: auto;
    margin-bottom: 24px;
    filter: drop-shadow(0 10px 20px rgba(70, 130, 180, 0.5));
    opacity: 0.95;
    transition: all var(--transition-medium);
    background: transparent;
}

.auth-header img:hover {
    opacity: 1;
    transform: scale(1.05);
    filter: drop-shadow(0 15px 30px rgba(70, 130, 180, 0.6));
}

.auth-header h1 {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-brand);
    margin-bottom: 8px;
}

.auth-header p {
    color: var(--text-medium);
    font-size: 16px;
}

/* Form Enhancements */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 16px 0;
}

.checkbox-group input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: var(--primary-color);
}

/* Error and Success Messages */
.message {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    font-weight: 500;
}

.message.error {
    background: rgba(229, 62, 62, 0.1);
    color: var(--error);
    border: 1px solid rgba(229, 62, 62, 0.2);
}

.message.success {
    background: rgba(50, 205, 50, 0.1);
    color: var(--success);
    border: 1px solid rgba(50, 205, 50, 0.2);
}

.message.warning {
    background: rgba(255, 215, 0, 0.1);
    color: var(--warning);
    border: 1px solid rgba(255, 215, 0, 0.2);
}

/* Journal Specific Styles */
.journal-tabs {
    display: flex;
    background: var(--glass-bg);
    border-radius: var(--radius-md);
    padding: 4px;
    margin-bottom: 24px;
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
}

.journal-tab {
    flex: 1;
    padding: 12px 16px;
    text-align: center;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all var(--transition-fast);
    color: var(--text-medium);
}

.journal-tab.active {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-light);
}

.mood-selector {
    display: flex;
    justify-content: space-between;
    margin: 20px 0;
}

.mood-option {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-full);
    border: 2px solid var(--glass-border);
    background: var(--glass-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.mood-option:hover,
.mood-option.selected {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: white;
    transform: scale(1.1);
}