/* PawBud AI - iOS-Inspired Design */

:root {
    --primary-color: #007AFF;
    --primary-light: #4DA6FF;
    --primary-dark: #0056B3;
    --secondary-color: #8E8E93;
    --success-color: #34C759;
    --warning-color: #FF9500;
    --danger-color: #FF3B30;
    --background: linear-gradient(135deg, #E3F2FD 0%, #F8F9FA 100%);
    --surface: rgba(255, 255, 255, 0.95);
    --surface-alt: rgba(248, 249, 250, 0.8);
    --surface-elevated: rgba(255, 255, 255, 0.98);
    --text-primary: #1D1D1F;
    --text-secondary: #6D6D70;
    --text-muted: #8E8E93;
    --border-color: rgba(0, 0, 0, 0.04);
    --border-radius: 16px;
    --border-radius-lg: 24px;
    --border-radius-xl: 32px;
    --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.08);
    --shadow-elevated: 0 16px 48px rgba(0, 0, 0, 0.12);
    --shadow-button: 0 4px 16px rgba(0, 122, 255, 0.24);
    --transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Global Styles - Enhanced Mobile */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background: var(--background);
    color: var(--text-primary);
    line-height: 1.47;
    font-size: 17px;
    margin: 0;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-feature-settings: "kern" 1, "liga" 1, "calt" 1, "pnum" 1, "tnum" 0, "onum" 1, "lnum" 0, "dlig" 0;
    overscroll-behavior: none;
    position: relative;
}

* {
    box-sizing: border-box;
}

.container {
    max-width: 390px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    width: 100%;
}

/* Advanced mobile layout */
@supports (padding: max(0px)) {
    .container {
        padding-left: max(20px, env(safe-area-inset-left));
        padding-right: max(20px, env(safe-area-inset-right));
    }
}

/* Responsive text sizing for different screen sizes */
@media (max-width: 375px) {
    .hero-title {
        padding: 0 20px;
        font-size: 26px;
    }
    
    .hero-subtitle {
        padding: 0 20px;
        font-size: 16px;
    }
    
    .footer-section {
        padding: 32px 4vw 20px;
    }
    
    footer {
        padding: 20px 4vw;
    }
}

@media (min-width: 700px) {
    .container {
        max-width: 1000px;
        padding: 0 40px;
    }
    
    .hero-title {
        padding: 0 20px;
        font-size: 38px;
    }
    
    .hero-subtitle {
        padding: 0 20px;
        font-size: 19px;
    }
    
    /* Better desktop layout for assessment results */
    .assessment-card {
        max-width: 900px;
        margin: 30px auto;
        padding: 40px;
    }
    
    .assessment-header {
        flex-direction: row;
        align-items: center;
        gap: 40px;
        margin-bottom: 30px;
    }
    
    .pet-info {
        flex: 1;
        text-align: left;
    }
    
    .risk-score-container {
        flex-shrink: 0;
        margin: 0;
    }
    
    /* Desktop-specific assessment layout */
    .assessment-content {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 30px;
        margin-top: 30px;
    }
    
    .assessment-summary,
    .care-tips {
        grid-column: span 1;
    }
    
    /* Better spacing for desktop cards */
    .card {
        margin-bottom: 24px;
    }
    
    .card-body {
        padding: 30px;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .container {
        max-width: 800px;
    }
    
    .footer-section {
        padding: 56px 6vw 28px;
    }
    
    footer {
        padding: 28px 6vw;
    }
}

@media (min-width: 1024px) {
    .container {
        max-width: 1200px;
        padding: 0 60px;
    }
    
    .hero-title {
        padding: 0 20px;
        font-size: 44px;
    }
    
    /* Desktop assessment layout improvements */
    .assessment-card {
        max-width: 1000px;
        padding: 50px;
    }
    
    .assessment-header {
        gap: 50px;
        margin-bottom: 40px;
    }
    
    .assessment-content {
        grid-template-columns: 2fr 1fr;
        gap: 40px;
    }
    
    .hero-subtitle {
        padding: 0 20px;
        font-size: 20px;
    }
    
    .footer-section {
        padding: 64px 4vw 32px;
    }
    
    footer {
        padding: 32px 4vw;
    }
}

/* Mobile-optimized touch targets */
.btn {
    min-height: 48px;
    touch-action: manipulation;
}

.form-control, .form-select {
    min-height: 48px;
    -webkit-appearance: none;
    appearance: none;
}

/* Improve mobile form experience */
.form-control:focus, .form-select:focus {
    transform: scale(1.02);
    z-index: 10;
    position: relative;
}

/* Mobile-friendly spacing */
.mb-4 {
    margin-bottom: 24px !important;
}

.py-4 {
    padding-top: 20px !important;
    padding-bottom: 20px !important;
}

/* Header Section Styles */
.header-section {
    background: var(--surface-color);
    border-bottom: 1px solid var(--border-color);
}

.page-header {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: -0.03em;
    line-height: 1.2;
    color: var(--text-primary);
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
}

.page-subheader {
    font-size: 17px;
    color: var(--text-secondary);
    font-weight: 400;
    max-width: 100%;
    margin: 0 auto;
    line-height: 1.4;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
}

/* Responsive header styles */
@media (max-width: 375px) {
    .page-header {
        font-size: 26px;
        padding: 0 20px;
    }
    
    .page-subheader {
        font-size: 16px;
        padding: 0 20px;
    }
}

@media (min-width: 700px) {
    .page-header {
        font-size: 38px;
        padding: 0 20px;
    }
    
    .page-subheader {
        font-size: 19px;
        padding: 0 20px;
    }
}

@media (min-width: 1024px) {
    .page-header {
        font-size: 44px;
        padding: 0 20px;
    }
    
    .page-subheader {
        font-size: 20px;
        padding: 0 20px;
    }
}

/* Top Navigation Bar - iOS Style */
.top-navbar {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 20px 0;
    box-shadow: 0 2px 30px rgba(0, 0, 0, 0.06);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.navbar-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.navbar-brand {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--text-primary);
    transition: none;
    padding: 8px 16px 8px 8px;
    border-radius: 20px;
    background: none;
    border: none;
}

.navbar-brand:hover {
    /* Removed hover effects to prevent unwanted animations */
}

.navbar-brand .logo {
    width: 80px;
    height: 80px;
    margin-right: 20px;
    border-radius: 20px;
    border: none;
    background: none;
    box-shadow: none;
    padding: 0;
    transition: none;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    object-fit: contain;
}

.navbar-brand:hover .logo {
    /* Removed logo hover effects */
}

.brand-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.brand-name {
    font-size: 28px;
    font-weight: 800;
    background: linear-gradient(135deg, #007AFF 0%, #5856D6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin: 0;
}

.brand-tagline {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 600;
    line-height: 1.2;
    margin: 0;
    opacity: 0.8;
}

/* iOS-Style Hamburger Menu Button */
.hamburger-menu {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, rgba(0, 122, 255, 0.1) 0%, rgba(88, 86, 214, 0.1) 100%);
    border: 1px solid rgba(0, 122, 255, 0.2);
    border-radius: 16px;
    cursor: pointer;
    padding: 0;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 4px 15px rgba(0, 122, 255, 0.15);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.hamburger-menu:hover {
    background: linear-gradient(135deg, rgba(0, 122, 255, 0.15) 0%, rgba(88, 86, 214, 0.15) 100%);
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 122, 255, 0.25);
    border-color: rgba(0, 122, 255, 0.3);
}

.hamburger-menu:active {
    transform: translateY(-1px) scale(1.02);
}

.hamburger-line {
    width: 22px;
    height: 3px;
    background: linear-gradient(135deg, #007AFF 0%, #5856D6 100%);
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform-origin: center;
    margin: 3px 0;
    box-shadow: 0 1px 3px rgba(0, 122, 255, 0.2);
}

.hamburger-menu.active {
    background: rgba(var(--primary-color-rgb), 0.1);
}

.hamburger-menu.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger-menu.active .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: scale(0);
}

.hamburger-menu.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Enhanced Mobile Menu Dropdown */
.mobile-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(248, 249, 250, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    transform: translateY(-20px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.mobile-menu.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.menu-items {
    display: flex;
    flex-direction: column;
    padding: 24px 20px 32px;
    max-width: 1200px;
    margin: 0 auto;
    gap: 4px;
}

.menu-item {
    display: flex;
    align-items: center;
    padding: 18px 20px;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border-radius: 16px;
    font-weight: 600;
    font-size: 16px;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(0, 0, 0, 0.04);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.menu-item:hover {
    background: rgba(var(--primary-color-rgb), 0.12);
    color: var(--primary-color);
    transform: translateX(4px) scale(1.02);
    box-shadow: 0 4px 16px rgba(var(--primary-color-rgb), 0.15);
    border-color: rgba(var(--primary-color-rgb), 0.1);
}

.menu-item:active {
    transform: translateX(4px) scale(0.98);
}

.menu-item i {
    width: 20px;
    height: 20px;
    margin-right: 16px;
    text-align: center;
    opacity: 0.8;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.menu-item:hover i {
    opacity: 1;
    transform: scale(1.1);
}

/* Responsive Navigation Styles */
@media (max-width: 480px) {
    .top-navbar {
        padding: 16px 0;
    }
    
    .navbar-content {
        padding: 0 16px;
    }
    
    .navbar-brand {
        padding: 6px 12px 6px 6px;
        border-radius: 16px;
    }
    
    .navbar-brand .logo {
        width: 60px;
        height: 60px;
        margin-right: 16px;
        border-radius: 16px;
    }
    
    .brand-name {
        font-size: 24px;
    }
    
    .brand-tagline {
        font-size: 12px;
    }
    
    .hamburger-menu {
        width: 48px;
        height: 48px;
        border-radius: 14px;
    }
    
    .hamburger-line {
        width: 20px;
        height: 2.5px;
        margin: 2.5px 0;
    }
}

@media (min-width: 768px) {
    .navbar-brand .logo {
        width: 90px;
        height: 90px;
        margin-right: 24px;
        border-radius: 22px;
    }
    
    .brand-name {
        font-size: 32px;
    }
    
    .brand-tagline {
        font-size: 16px;
    }
    
    .hamburger-menu {
        width: 56px;
        height: 56px;
        border-radius: 18px;
    }
    
    .hamburger-line {
        width: 24px;
        height: 3.5px;
        margin: 3.5px 0;
    }
}

.menu-item span {
    flex: 1;
    letter-spacing: -0.01em;
}

/* Assessment History Styles */
.assessment-cards {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 20px;
}

.assessment-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 20px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    overflow: hidden;
}

.assessment-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    border-color: rgba(var(--primary-color-rgb), 0.2);
}

.assessment-card .card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px 16px;
}

.assessment-card .pet-info h5 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.assessment-card .pet-breed {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
    margin-top: 2px;
}

.score-circle {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
    color: white;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.15);
}

.score-circle.risk-low {
    background: linear-gradient(135deg, #34D399 0%, #10B981 100%);
}

.score-circle.risk-medium {
    background: linear-gradient(135deg, #FBBF24 0%, #F59E0B 100%);
}

.score-circle.risk-high {
    background: linear-gradient(135deg, #F87171 0%, #EF4444 100%);
}

.assessment-card .card-body {
    padding: 0 24px 16px;
}

.assessment-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 12px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
}

.meta-item i {
    opacity: 0.7;
}

.assessment-summary p {
    margin: 0;
    color: var(--text-primary);
    font-size: 15px;
    line-height: 1.5;
}

.assessment-card .card-footer {
    padding: 16px 24px 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    background: rgba(248, 249, 250, 0.5);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.view-details {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.assessment-card:hover .view-details {
    transform: translateX(4px);
}

.share-options {
    display: flex;
    gap: 8px;
}

.share-btn {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.8);
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    backdrop-filter: blur(10px);
    font-size: 14px;
}

.share-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: scale(1.1) translateY(-1px);
    box-shadow: 0 4px 12px rgba(var(--primary-color-rgb), 0.3);
}

.share-btn:active {
    transform: scale(0.95);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.empty-icon {
    font-size: 64px;
    color: var(--text-secondary);
    opacity: 0.6;
    margin-bottom: 20px;
}

.empty-state h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.empty-state p {
    color: var(--text-secondary);
    font-size: 16px;
    margin-bottom: 24px;
}

/* Assessment Detail Styles */
.back-navigation {
    padding: 20px 0 10px;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    padding: 12px 20px;
    border-radius: 12px;
    background: rgba(var(--primary-color-rgb), 0.08);
    transition: all 0.3s ease;
}

.back-btn:hover {
    background: rgba(var(--primary-color-rgb), 0.15);
    color: var(--primary-color);
    transform: translateX(-4px);
}

.assessment-detail-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    margin-top: 20px;
}

.detail-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 32px;
    background: linear-gradient(135deg, rgba(248, 249, 250, 0.8) 0%, rgba(255, 255, 255, 0.8) 100%);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.pet-section h1 {
    font-size: 32px;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0 0 8px 0;
    letter-spacing: -0.02em;
}

.pet-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    font-size: 16px;
    font-weight: 500;
    color: var(--text-secondary);
}

.separator {
    opacity: 0.5;
}

.assessment-date {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
}

.risk-score-large {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    margin-bottom: 12px;
    border: 2px solid white;
}

.risk-score-large.risk-low {
    background: linear-gradient(135deg, #34D399 0%, #10B981 100%);
}

.risk-score-large.risk-medium {
    background: linear-gradient(135deg, #FBBF24 0%, #F59E0B 100%);
}

.risk-score-large.risk-high {
    background: linear-gradient(135deg, #F87171 0%, #EF4444 100%);
}

.score-number {
    font-size: 24px;
    font-weight: 800;
    line-height: 1;
}

.score-label {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.9;
}

.risk-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: white;
}

.risk-badge.risk-low {
    background: linear-gradient(135deg, #34D399 0%, #10B981 100%);
}

.risk-badge.risk-medium {
    background: linear-gradient(135deg, #FBBF24 0%, #F59E0B 100%);
}

.risk-badge.risk-high {
    background: linear-gradient(135deg, #F87171 0%, #EF4444 100%);
}

.detail-section {
    padding: 28px 32px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.detail-section:last-child {
    border-bottom: none;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 16px 0;
    letter-spacing: -0.01em;
}

.section-title i {
    color: var(--primary-color);
    width: 20px;
}

.summary-content p,
.symptoms-content p,
.notes-content p {
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary);
    margin: 0;
}

.care-tips {
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: linear-gradient(135deg, rgba(52, 199, 89, 0.03) 0%, rgba(34, 197, 94, 0.05) 100%);
    border-radius: 16px;
    padding: 20px;
    border: 1px solid rgba(52, 199, 89, 0.1);
}

.care-tip {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    background: rgba(34, 197, 94, 0.08);
    border-radius: 12px;
    border-left: 4px solid #22C55E;
}

.care-tip i {
    color: #22C55E;
    margin-top: 2px;
    flex-shrink: 0;
}

.care-tip span {
    color: var(--text-primary);
    font-size: 15px;
    line-height: 1.5;
}

.disclaimer-section {
    background: rgba(251, 146, 60, 0.08);
    border: 1px solid rgba(251, 146, 60, 0.2);
    border-radius: 16px;
    margin: 0 32px 32px;
    padding: 20px;
}

.disclaimer-content {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.disclaimer-content i {
    color: #F59E0B;
    margin-top: 2px;
    flex-shrink: 0;
}

.disclaimer-content p {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-primary);
    font-weight: 500;
}

.detail-actions {
    display: flex;
    gap: 16px;
    padding: 0 32px 32px;
    flex-wrap: wrap;
}

.detail-actions .btn {
    flex: 1;
    min-width: 180px;
    justify-content: center;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .detail-header {
        flex-direction: column;
        gap: 24px;
        text-align: center;
    }
    
    .detail-header,
    .detail-section,
    .disclaimer-section {
        padding: 20px;
    }
    
    .detail-actions {
        padding: 0 20px 20px;
        flex-direction: column;
    }
    
    .detail-actions .btn {
        min-width: auto;
    }
    
    .assessment-meta {
        flex-direction: column;
        gap: 8px;
        align-items: flex-start;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 12px;
        align-items: center;
    }
}

/* Sharing Functionality Styles */
.share-section {
    background: rgba(248, 249, 250, 0.6);
    border-radius: 16px;
    padding: 24px;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.share-description {
    color: var(--text-secondary);
    font-size: 15px;
    margin: 0 0 20px 0;
    text-align: center;
}

.share-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.share-button {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    border: none;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    text-align: left;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.share-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    background: rgba(255, 255, 255, 1);
}

.share-button:active {
    transform: translateY(0);
}

.share-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: white;
    flex-shrink: 0;
}

.share-button.email .share-icon {
    background: linear-gradient(135deg, #EA4335 0%, #D33B2C 100%);
}

.share-button.whatsapp .share-icon {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
}

.share-button.telegram .share-icon {
    background: linear-gradient(135deg, #229ED9 0%, #0088CC 100%);
}

.share-button.copy .share-icon {
    background: linear-gradient(135deg, #6366F1 0%, #4F46E5 100%);
}

.share-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.share-title {
    font-weight: 600;
    font-size: 16px;
    color: var(--text-primary);
    line-height: 1.2;
}

.share-subtitle {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.2;
}

/* Share Notification */
.share-notification {
    position: fixed;
    top: 100px;
    right: 20px;
    background: rgba(34, 197, 94, 0.95);
    color: white;
    padding: 12px 20px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 14px;
    z-index: 2000;
    transform: translateX(400px);
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.share-notification.show {
    transform: translateX(0);
}

@media (max-width: 768px) {
    .share-buttons {
        grid-template-columns: 1fr;
    }
    
    .share-notification {
        right: 50%;
        transform: translateX(50%);
        top: 80px;
    }
    
    .share-notification.show {
        transform: translateX(50%);
    }
}

/* Customer Reviews Section - Redesigned for Clean Layout */
.reviews-section {
    padding: 60px 0;
    background: linear-gradient(135deg, rgba(248, 249, 250, 0.8) 0%, rgba(255, 255, 255, 0.9) 100%);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    margin: 40px 0;
    position: relative;
    overflow: hidden;
}

.reviews-heading {
    font-size: 32px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.reviews-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 0;
    font-weight: 500;
}

.reviews-container {
    position: relative;
    overflow: hidden;
    margin: 0 auto;
    max-width: 1200px;
    padding: 0 20px;
}

.reviews-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    gap: 24px;
    padding: 20px 0;
    margin: 0 60px; /* Space for navigation arrows */
}

.review-card {
    flex: 0 0 auto;
    width: 350px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 24px;
    padding-top: 44px; /* Extra space for photo */
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.06);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    min-height: 200px;
    display: flex;
    flex-direction: column;
}

.review-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.12);
}

.review-photo {
    position: absolute;
    top: -16px;
    left: 24px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid white;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    z-index: 2;
}

.reviewer-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.review-content {
    padding-top: 24px;
}

.stars {
    display: flex;
    gap: 3px;
    margin: 8px 0 16px 0;
    color: #FFB800;
    font-size: 16px;
    line-height: 1;
}

.review-text {
    font-size: 15px;
    line-height: 1.5;
    color: var(--text-primary);
    margin-bottom: 16px;
    font-weight: 400;
    font-style: italic;
    flex: 1;
    overflow-wrap: break-word;
}

.reviewer-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-top: auto;
}

.reviewer-info strong {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

.reviewer-info span {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Navigation */
.reviews-navigation {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 32px;
}

.nav-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-dot.active {
    background: var(--primary-color);
    transform: scale(1.2);
}

.reviews-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: var(--text-primary);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 10;
}

.reviews-arrow:hover {
    background: white;
    color: var(--primary-color);
    transform: translateY(-50%) scale(1.05);
    border-color: rgba(0, 122, 255, 0.2);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.reviews-prev {
    left: 10px;
}

.reviews-next {
    right: 10px;
}

/* Mobile Responsiveness for Reviews */
@media (max-width: 768px) {
    .reviews-section {
        padding: 40px 0;
        margin: 20px 0;
    }
    
    .reviews-container {
        padding: 0 10px;
    }
    
    .reviews-heading {
        font-size: 24px;
    }
    
    .reviews-subtitle {
        font-size: 16px;
    }
    
    .review-card {
        width: 300px;
        padding: 20px;
        padding-top: 40px;
        min-height: 180px;
    }
    
    .reviews-track {
        padding: 20px 0;
        gap: 16px;
        margin: 0 50px;
    }
    
    .review-photo {
        width: 48px;
        height: 48px;
        top: -12px;
        left: 20px;
        border-width: 2px;
    }
    
    .review-text {
        font-size: 14px;
        margin-bottom: 14px;
    }
    
    .reviewer-info strong {
        font-size: 13px;
    }
    
    .reviewer-info span {
        font-size: 12px;
    }
    
    .reviews-arrow {
        width: 36px;
        height: 36px;
        font-size: 12px;
    }
    
    .reviews-prev {
        left: 8px;
    }
    
    .reviews-next {
        right: 8px;
    }
}

@media (max-width: 480px) {
    .review-card {
        width: 280px;
        padding: 18px;
        padding-top: 36px;
    }
    
    .reviews-track {
        margin: 0 40px;
        gap: 12px;
    }
    
    .review-text {
        font-size: 13px;
        line-height: 1.4;
    }
}

/* Enhanced iOS-Style Components */
.btn {
    border-radius: var(--border-radius);
    transition: var(--transition);
    font-weight: 600;
    border: none;
    padding: 16px 24px;
    font-size: 17px;
    letter-spacing: -0.022em;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.btn:active::before {
    opacity: 1;
}

.btn-primary {
    background: linear-gradient(135deg, #007AFF 0%, #0056CC 100%);
    color: white;
    box-shadow: 0 4px 20px rgba(0, 122, 255, 0.3), inset 0 1px 0 rgba(255,255,255,0.2);
}

.btn-primary:active {
    background: linear-gradient(135deg, #0056CC 0%, #003D99 100%);
    transform: translateY(1px);
    box-shadow: 0 2px 10px rgba(0, 122, 255, 0.4), inset 0 1px 0 rgba(255,255,255,0.1);
}

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    color: white;
}

.card {
    border-radius: var(--border-radius-lg);
    border: 0.5px solid rgba(255,255,255,0.8);
    background: var(--surface-elevated);
    box-shadow: var(--shadow-card);
    transition: var(--transition);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.8) 50%, transparent 100%);
    pointer-events: none;
}

@media (hover: hover) and (pointer: fine) {
    .card:hover {
        transform: translateY(-2px);
        box-shadow: var(--shadow-elevated);
        border-color: rgba(255,255,255,0.9);
    }
}

.form-control, .form-select {
    border-radius: var(--border-radius);
    border: 0.5px solid rgba(0,0,0,0.08);
    background: rgba(242, 242, 247, 0.8);
    color: var(--text-primary);
    transition: all 0.2s cubic-bezier(0.4, 0.0, 0.2, 1);
    font-size: 17px;
    padding: 16px 20px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: relative;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

/* Custom select dropdown styling */
.form-select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m1 6 7 7 7-7'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 16px 12px;
    padding-right: 48px;
}

.form-select:focus {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23007aff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m1 6 7 7 7-7'/%3e%3c/svg%3e");
}

/* Clean dropdown styling - light design */
.form-select optgroup {
    background: #f5f5f5 !important;
    color: #525252 !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    padding: 8px 16px !important;
    border: none !important;
    font-family: inherit !important;
}

.form-select option {
    background: #ffffff !important;
    color: #171717 !important;
    padding: 12px 16px !important;
    font-size: 16px !important;
    font-family: inherit !important;
    border: none !important;
    font-weight: 400 !important;
}

.form-select option:hover,
.form-select option:focus {
    background: #fafafa !important;
    color: #171717 !important;
}

.form-select option:checked {
    background: #2563eb !important;
    color: white !important;
    font-weight: 500 !important;
}

.form-select optgroup option {
    background: #ffffff !important;
    color: #171717 !important;
    font-weight: 400 !important;
    padding-left: 24px !important;
}

.form-control:focus, .form-select:focus {
    background: rgba(255, 255, 255, 0.95);
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.08), 0 2px 8px rgba(0,0,0,0.04);
    outline: none;
    transform: translateY(-1px);
}

.form-control:focus::placeholder {
    opacity: 0.6;
}

/* Premium Mobile Navigation */
.navbar {
    background: rgba(248, 249, 250, 0.8) !important;
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border-bottom: 0.5px solid rgba(0, 0, 0, 0.04);
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    min-height: 60px;
    box-shadow: inset 0 -1px 0 rgba(0,0,0,0.02);
}

@supports (padding: max(0px)) {
    .navbar {
        padding-top: max(16px, env(safe-area-inset-top));
    }
}

.navbar-brand {
    text-decoration: none;
    display: flex;
    align-items: center;
    margin: 0;
    touch-action: manipulation;
}

.brand-name {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    margin: 0;
    line-height: 1.2;
}

.brand-tagline {
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 500;
    margin-top: 1px;
    line-height: 1.2;
}

.navbar-toggler {
    border: none;
    padding: 8px;
    margin-left: auto;
}

.nav-link {
    color: var(--primary-color) !important;
    font-weight: 600;
    transition: var(--transition);
    border-radius: 12px;
    padding: 12px 16px !important;
    font-size: 16px;
    min-height: 44px;
    display: flex;
    align-items: center;
    touch-action: manipulation;
}

.nav-link:active {
    background: rgba(0, 122, 255, 0.2);
    color: var(--primary-dark) !important;
}

/* Mobile-Optimized Hero Section */
.hero-section {
    background: none;
    color: var(--text-primary);
    padding: 32px 0 24px;
    margin-bottom: 16px;
    text-align: center;
}

.hero-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: -0.03em;
    line-height: 1.2;
    color: var(--text-primary);
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
}

.hero-subtitle {
    font-size: 17px;
    color: var(--text-secondary);
    font-weight: 400;
    max-width: 100%;
    margin: 0 auto;
    line-height: 1.4;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
}

/* Mobile-Optimized Form Elements */
.form-label {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
    font-size: 16px;
    display: block;
    letter-spacing: -0.01em;
    line-height: 1.3;
}

.form-label i {
    color: var(--primary-color);
    margin-right: 8px;
    font-size: 18px;
}

.form-control-lg {
    font-size: 16px;
    padding: 16px 20px;
    border-radius: var(--border-radius);
    min-height: 56px;
    line-height: 1.5;
}

.form-control::placeholder {
    color: var(--text-muted);
    opacity: 1;
}

.form-select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 16px center;
    background-repeat: no-repeat;
    background-size: 16px 12px;
    padding-right: 48px;
}

.form-text {
    color: var(--text-muted);
    font-size: 14px;
    margin-top: 8px;
    line-height: 1.4;
}

/* Mobile textarea optimization */
textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

/* iOS-Style Risk Score Circle */
.risk-score-container {
    display: flex;
    justify-content: center;
    margin: 32px 0;
}

.risk-score-circle {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: var(--transition);
    background: var(--surface-elevated);
    box-shadow: var(--shadow-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 3px solid;
}

.risk-score-circle.risk-low {
    border-color: #34C759;
    background: linear-gradient(135deg, rgba(52, 199, 89, 0.1) 0%, rgba(48, 180, 84, 0.05) 100%);
}

.risk-score-circle.risk-medium {
    border-color: #FF9500;
    background: linear-gradient(135deg, rgba(255, 149, 0, 0.1) 0%, rgba(245, 158, 11, 0.05) 100%);
}

.risk-score-circle.risk-high {
    border-color: #FF3B30;
    background: linear-gradient(135deg, rgba(255, 59, 48, 0.1) 0%, rgba(239, 68, 68, 0.05) 100%);
}

.risk-score-inner {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.risk-score-number {
    font-size: 48px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
    letter-spacing: -0.02em;
}

.risk-score-label {
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 600;
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Mobile-Optimized Care Tips */
.care-tip-card {
    background: var(--surface-elevated);
    border: none;
    border-radius: var(--border-radius-lg);
    padding: 20px;
    text-align: left;
    transition: var(--transition);
    box-shadow: var(--shadow-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    margin-bottom: 12px;
    touch-action: manipulation;
}

.care-tip-card:active {
    transform: scale(0.98);
    box-shadow: var(--shadow-elevated);
}

.care-tip-icon {
    font-size: 20px;
    margin-bottom: 12px;
    color: var(--primary-color);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(0, 122, 255, 0.1);
    border-radius: 10px;
}

.care-tip-title {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
    font-size: 16px;
    letter-spacing: -0.01em;
    line-height: 1.3;
}

.care-tip-text {
    color: var(--text-secondary);
    margin-bottom: 0;
    line-height: 1.5;
    font-size: 15px;
}

/* iOS-Style Alerts */
.alert {
    border-radius: var(--border-radius);
    border: none;
    background: var(--surface-elevated);
    padding: 16px 20px;
    box-shadow: var(--shadow-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.alert-warning {
    background: rgba(255, 149, 0, 0.1);
    color: #B8860B;
}

.alert-info {
    background: rgba(0, 122, 255, 0.1);
    color: var(--primary-dark);
}

.alert-success {
    background: rgba(52, 199, 89, 0.1);
    color: #228B22;
}

.alert-danger {
    background: rgba(255, 59, 48, 0.1);
    color: #DC143C;
}

/* iOS-Style Badges */
.badge {
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 15px;
    letter-spacing: -0.01em;
}

.bg-success {
    background: var(--success-color) !important;
    color: white;
}

.bg-warning {
    background: var(--warning-color) !important;
    color: white;
}

.bg-danger {
    background: var(--danger-color) !important;
    color: white;
}

/* Loading State */
.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* iOS-Style Footer */
footer {
    background: rgba(248, 249, 250, 0.8);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding: 24px 5vw;
    margin-top: 40px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    width: 100%;
}

.disclaimer-text {
    max-width: none;
    width: 100%;
    padding-right: 20px;
    box-sizing: border-box;
    text-align: right;
}

/* Responsive disclaimer alignment - match form container exactly */
.footer-section .container {
    max-width: 390px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    width: 100%;
}

@media (min-width: 700px) {
    .footer-section .container {
        max-width: 900px;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .footer-section .container {
        max-width: 800px;
    }
}

@media (min-width: 1024px) {
    .footer-section .container {
        max-width: 1200px;
    }
}

/* Page Hero Section */
.page-hero {
    background: none;
    color: var(--text-primary);
    padding: 32px 0 24px;
    margin-bottom: 16px;
    text-align: center;
}

/* iOS-Style Spacing and Layout */
.section-spacing {
    padding: 32px 0;
}

.card-header {
    background: transparent;
    border-bottom: none;
    padding: 24px 24px 16px;
    border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
}

.card-header h4 {
    font-size: 20px;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin: 0;
}

.card-body {
    padding: 20px 24px 24px;
}

/* iOS-Style Animations */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.card {
    animation: slideInUp 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.care-tip-card {
    animation: slideInUp 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.care-tip-card:nth-child(1) {
    animation-delay: 0.1s;
}

.care-tip-card:nth-child(2) {
    animation-delay: 0.2s;
}

.care-tip-card:nth-child(3) {
    animation-delay: 0.3s;
}

/* Mobile-First Responsive Design */
.container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 16px;
}

/* Ensure cards don't have excessive margins on mobile */
.card {
    margin-bottom: 16px;
}

.card-body {
    padding: 20px;
}

.card-header {
    padding: 20px 20px 12px;
}

/* Optimize button sizes for mobile */
.btn-lg {
    padding: 16px 24px;
    font-size: 17px;
    font-weight: 600;
    min-height: 52px;
}

/* Row spacing optimization */
.row.g-2 > .col-6 {
    padding-left: 8px;
    padding-right: 8px;
}

.row.g-3 > .col-6 {
    padding-left: 12px;
    padding-right: 12px;
}

/* Safe area for devices with notches */
body {
    padding-bottom: env(safe-area-inset-bottom);
}

.navbar {
    padding-top: max(12px, env(safe-area-inset-top));
}

/* Larger tap targets for better accessibility */
.navbar-toggler {
    min-width: 44px;
    min-height: 44px;
}

/* Enhanced mobile interactions */
@media (hover: none) and (pointer: coarse) {
    .btn:hover {
        transform: none;
    }
    
    .btn:active {
        transform: scale(0.95);
    }
    
    .card:hover {
        transform: none;
    }
    
    .care-tip-card:hover {
        transform: none;
    }
}

@media (min-width: 768px) {
    .container {
        max-width: 800px;
        padding: 0 40px;
    }
    
    .card-body {
        padding: 30px;
    }
    
    /* Tablet-specific adjustments */
    .assessment-card {
        max-width: 700px;
        margin: 25px auto;
        padding: 35px;
    }
    
    .assessment-header {
        flex-direction: row;
        gap: 30px;
        align-items: center;
    }
    
    .pet-info {
        text-align: left;
    }
    
    .risk-score-container {
        margin: 0;
    }
}

/* Additional iOS-style elements */
.glass-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: var(--shadow-card);
}

.status-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 8px;
}

.status-low { background: var(--success-color); }
.status-medium { background: var(--warning-color); }
.status-high { background: var(--danger-color); }

/* Advanced Mobile Performance & UX */
html {
    -webkit-tap-highlight-color: transparent;
    scroll-behavior: smooth;
    text-size-adjust: 100%;
    -webkit-text-size-adjust: 100%;
}

body {
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-y: contain;
    scroll-padding-top: 80px;
}

/* Advanced scroll optimization */
.container {
    contain: layout style paint;
}

/* Enhanced momentum scrolling */
* {
    -webkit-overflow-scrolling: touch;
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Prevent text selection on UI elements */
.btn, .card-header, .navbar-brand, .badge {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Improve scrolling performance */
.card, .care-tip-card, .navbar {
    will-change: transform;
}

/* Loading states */
.btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.btn:disabled:active {
    transform: none !important;
}

/* Premium Mobile Experience */
@media (max-width: 767px) {
    /* Enhanced focus states */
    .form-control:focus, .form-select:focus {
        box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.12), 0 4px 12px rgba(0,0,0,0.08);
    }
    
    /* Improved touch feedback */
    .btn:active {
        transform: scale(0.98) translateY(1px);
    }
    
    .care-tip-card:active {
        transform: scale(0.97);
        transition: transform 0.1s ease;
    }
    
    /* Better visual hierarchy */
    .hero-title {
        font-size: clamp(24px, 7vw, 28px);
        font-weight: 700;
        line-height: 1.1;
    }
    
    /* Enhanced card interactions */
    .card {
        transition: all 0.25s cubic-bezier(0.4, 0.0, 0.2, 1);
    }
    
    /* Optimize viewport handling */
    body, html {
        overflow-x: hidden;
        width: 100vw;
        max-width: 100%;
    }
    
    /* Better input spacing on small screens */
    .row.g-3 > .col-6 {
        padding-left: 6px;
        padding-right: 6px;
    }
    
    /* Improved button hierarchy */
    .btn-lg {
        font-size: 17px;
        font-weight: 600;
        padding: 18px 24px;
        border-radius: 14px;
    }
}

/* Advanced mobile animations */
@keyframes focusRing {
    0% { 
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(0, 122, 255, 0.4);
    }
    50% { 
        transform: scale(1.02);
        box-shadow: 0 0 0 4px rgba(0, 122, 255, 0.2);
    }
    100% { 
        transform: scale(1.01);
        box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.08);
    }
}

@keyframes buttonPress {
    0% { transform: scale(1); }
    50% { transform: scale(0.98); }
    100% { transform: scale(1); }
}

/* Enhanced form states */
.form-control.has-content {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(0, 122, 255, 0.3);
}

/* Scrolling optimizations */
.scrolling .navbar {
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    background: rgba(248, 249, 250, 0.85) !important;
}

/* Ultra-smooth interactions */
.btn, .form-control, .form-select, .card {
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

/* Premium loading states */
.btn:disabled {
    position: relative;
    overflow: hidden;
}

.btn:disabled::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255,255,255,0.2), 
        transparent
    );
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Photo upload styles */
.photo-upload-container {
    position: relative;
}

.photo-preview img {
    max-width: 100%;
    max-height: 200px;
    object-fit: cover;
    border: 1px solid rgba(0,0,0,0.1);
}

.upload-hint {
    font-size: 13px;
    line-height: 1.4;
}

/* Enhanced file input styling for iOS */
input[type="file"] {
    padding: 12px 16px;
    border-radius: var(--border-radius);
    border: 1px solid rgba(0,0,0,0.1);
    background: rgba(242, 242, 247, 0.8);
    transition: var(--transition);
}

input[type="file"]:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.08);
    outline: none;
}

/* Footer Styles */
.footer-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    margin-top: 60px;
    padding: 48px 5vw 24px;
    width: 100%;
}

.footer-brand {
    margin-bottom: 16px;
}

.footer-logo {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
    letter-spacing: -0.02em;
}

.footer-tagline {
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    margin: 0;
}

.footer-description {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
}

.footer-heading {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 16px;
    letter-spacing: -0.01em;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
}

.footer-links a:hover {
    color: var(--primary-color);
    text-decoration: none;
}

.footer-contact {
    margin: 0;
    font-size: 14px;
}

.footer-contact a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.footer-contact a:hover {
    text-decoration: underline;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 12px;
}

@media (min-width: 768px) {
    .social-links {
        justify-content: flex-end;
    }
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(0, 122, 255, 0.08);
    border-radius: 50%;
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.4, 0.0, 0.2, 1);
    font-size: 16px;
}

.social-link:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 122, 255, 0.25);
}

.footer-divider {
    border: none;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(0, 0, 0, 0.1), transparent);
    margin: 32px 0 24px;
}

.footer-bottom {
    margin-bottom: 0;
}

.copyright-text, .disclaimer-text {
    font-size: 13px;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.4;
}

.copyright-text i.fa-heart {
    color: #e74c3c !important;
    animation: heartbeat 2s ease-in-out infinite;
}

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

/* Enhanced Photo Upload Styles */
.photo-upload-options {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.upload-option {
    flex: 1;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(248, 249, 250, 0.8) 100%);
    border: 2px solid rgba(0, 122, 255, 0.1);
    border-radius: 16px;
    padding: 20px 16px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    position: relative;
    overflow: hidden;
}

.upload-option::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 122, 255, 0.05) 0%, rgba(88, 86, 214, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.upload-option:hover {
    transform: translateY(-2px);
    border-color: rgba(0, 122, 255, 0.3);
    box-shadow: 0 8px 25px rgba(0, 122, 255, 0.15);
}

.upload-option:hover::before {
    opacity: 1;
}

.upload-option:active {
    transform: translateY(0);
    transition: transform 0.1s ease;
}

.upload-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 12px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #5856d6 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    transition: all 0.3s ease;
}

.camera-icon {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%);
}

.upload-option:hover .upload-icon {
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(0, 122, 255, 0.3);
}

.upload-option:hover .camera-icon {
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

.upload-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
    letter-spacing: -0.01em;
}

.upload-subtitle {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
}

.preview-card {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 16px;
    padding: 20px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    text-align: center;
}

.preview-card img {
    max-height: 240px;
    width: auto;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.preview-card img:hover {
    transform: scale(1.02);
}

.preview-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.action-btn {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0.0, 0.2, 1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--text-primary);
}

.remove-btn {
    color: #dc3545;
    border-color: rgba(220, 53, 69, 0.2);
}

.remove-btn:hover {
    background: rgba(220, 53, 69, 0.1);
    border-color: rgba(220, 53, 69, 0.3);
    transform: translateY(-1px);
}

.retake-btn {
    color: var(--primary-color);
    border-color: rgba(0, 122, 255, 0.2);
}

.retake-btn:hover {
    background: rgba(0, 122, 255, 0.1);
    border-color: rgba(0, 122, 255, 0.3);
    transform: translateY(-1px);
}

/* Video Recording Modal Styles */
.video-recording-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.recording-interface {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 20px;
    max-width: 90%;
    max-height: 90%;
    width: 400px;
    backdrop-filter: blur(20px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.recording-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.close-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s;
}

.close-btn:hover {
    background-color: rgba(0, 0, 0, 0.1);
}

.video-recording-area {
    text-align: center;
    margin-bottom: 20px;
    position: relative;
}

#video-preview {
    width: 100%;
    max-width: 300px;
    border-radius: 12px;
    background: #000;
}

.recording-timer {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 0, 0, 0.9);
    color: white;
    padding: 10px 15px;
    border-radius: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    box-shadow: 0 2px 10px rgba(255, 0, 0, 0.3);
}

.timer-circle {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: bold;
}

.recording-indicator {
    display: flex;
    align-items: center;
    gap: 5px;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: #fff;
    border-radius: 50%;
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}

.recording-controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 20px 0;
}

.recording-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
}

.start-btn {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.start-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
}

.stop-btn {
    background: linear-gradient(135deg, #dc3545, #e74c3c);
    color: white;
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.3);
}

.stop-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 53, 69, 0.4);
}

.recording-instructions {
    background: rgba(0, 122, 255, 0.05);
    border-radius: 12px;
    padding: 15px;
    border: 1px solid rgba(0, 122, 255, 0.1);
}

.instruction-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    font-size: 14px;
}

.instruction-item:last-child {
    margin-bottom: 0;
}

.instruction-item i {
    width: 16px;
    text-align: center;
}

/* Enhanced Movement Analysis Display Styles */
.movement-analysis-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(248, 249, 250, 0.8) 100%);
    border-radius: 16px;
    padding: 20px;
    border: 1px solid rgba(0, 122, 255, 0.1);
    backdrop-filter: blur(20px);
    margin-top: 12px;
}

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

.confidence-badge {
    background: rgba(0, 122, 255, 0.1);
    color: var(--primary-color);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.movement-score-display {
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 20px 0;
}

.score-circle {
    position: relative;
    width: 80px;
    height: 80px;
}

.score-progress {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.score-inner {
    background: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.score-number {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
}

.score-label {
    font-size: 11px;
    color: var(--text-secondary);
    margin-top: 2px;
}

.movement-status {
    display: flex;
    align-items: center;
    gap: 10px;
}

.status-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.status-good {
    background: #28a745;
}

.status-moderate {
    background: #ffc107;
}

.status-concern {
    background: #dc3545;
}

.movement-observations h6,
.personalized-recommendations h6,
.priority-actions h6 {
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 8px;
}

.recommendation-list,
.priority-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.recommendation-list li,
.priority-list li {
    padding: 6px 0;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.recommendation-list li i {
    margin-top: 2px;
}

.priority-list li i {
    margin-top: 2px;
}

@media (max-width: 576px) {
    .photo-upload-options {
        flex-direction: column;
        gap: 8px;
    }
    
    .upload-option {
        padding: 16px 12px;
    }
    
    .upload-icon {
        width: 40px;
        height: 40px;
        font-size: 18px;
        margin-bottom: 8px;
    }
    
    .upload-title {
        font-size: 15px;
    }
    
    .upload-subtitle {
        font-size: 12px;
    }
    
    .preview-actions {
        flex-direction: column;
        gap: 8px;
    }
    
    .action-btn {
        width: 100%;
        justify-content: center;
    }
    
    .recording-interface {
        width: 95%;
        padding: 15px;
    }
    
    .recording-btn {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .movement-score-display {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .movement-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .confidence-badge {
        align-self: stretch;
        text-align: center;
    }
}

/* Enhanced Media Upload States */
.media-selected .photo-upload-options {
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.05), rgba(32, 201, 151, 0.05));
    border: 2px solid rgba(40, 167, 69, 0.2);
    border-radius: 16px;
    padding: 20px;
}

.selected-media-info {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.media-type-indicator {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #28a745, #20c997);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.media-details h6 {
    color: var(--text-primary);
    font-weight: 600;
    margin: 0;
}

.media-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
}

/* Modern Full-Page Loading Animation */
#loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 122, 255, 0.95), rgba(88, 86, 214, 0.95));
    backdrop-filter: blur(20px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.5s ease;
}

.loading-container {
    text-align: center;
    max-width: 400px;
    padding: 40px 20px;
}

.loading-animation {
    position: relative;
    margin-bottom: 40px;
}

.loading-circle {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto;
}

.loading-dots {
    position: absolute;
    width: 100%;
    height: 100%;
    animation: rotate 2s linear infinite;
}

.dot {
    position: absolute;
    width: 12px;
    height: 12px;
    background: white;
    border-radius: 50%;
    opacity: 0.7;
}

.dot-1 {
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    animation: dotPulse 2s ease-in-out infinite;
}

.dot-2 {
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    animation: dotPulse 2s ease-in-out 0.5s infinite;
}

.dot-3 {
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    animation: dotPulse 2s ease-in-out 1s infinite;
}

.dot-4 {
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    animation: dotPulse 2s ease-in-out 1.5s infinite;
}

.loading-progress {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.progress-circle {
    animation: progressFill 8s ease-in-out infinite;
}

.loading-content {
    color: white;
}

.loading-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 30px;
    color: white;
}

.loading-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    gap: 10px;
}

.loading-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    opacity: 0.4;
    transition: opacity 0.5s ease;
    flex: 1;
}

.loading-step.active {
    opacity: 1;
    animation: stepPulse 1s ease-in-out infinite alternate;
}

.loading-step i {
    font-size: 18px;
    background: rgba(255, 255, 255, 0.1);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 5px;
}

.loading-step.active i {
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.loading-step span {
    font-size: 12px;
    font-weight: 500;
    text-align: center;
}

.loading-subtitle {
    font-size: 14px;
    opacity: 0.8;
    margin: 0;
    color: white;
}

/* Loading Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

@keyframes dotPulse {
    0%, 100% { transform: scale(1); opacity: 0.7; }
    50% { transform: scale(1.3); opacity: 1; }
}

@keyframes progressFill {
    0% { stroke-dashoffset: 226; }
    100% { stroke-dashoffset: 0; }
}

@keyframes stepPulse {
    from { transform: scale(1); }
    to { transform: scale(1.05); }
}

/* Mobile Loading Responsive */
@media (max-width: 576px) {
    .loading-container {
        padding: 20px 15px;
    }
    
    .loading-title {
        font-size: 20px;
    }
    
    .loading-steps {
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .loading-step {
        flex-basis: 45%;
    }
    
    .loading-circle {
        width: 100px;
        height: 100px;
    }
    
    .progress-ring svg {
        width: 70px;
        height: 70px;
    }
}

/* Enhanced Share Options Design */
.share-options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
    margin-top: 20px;
}

.share-option-card {
    background: var(--glass-background);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.share-option-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 122, 255, 0.15);
    border-color: rgba(0, 122, 255, 0.3);
}

.share-option-card:active {
    transform: translateY(0);
    transition: transform 0.1s;
}

.share-icon-wrapper {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: white;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

.vet-share .share-icon-wrapper {
    background: linear-gradient(135deg, #34C759, #30B454);
    box-shadow: 0 4px 15px rgba(52, 199, 89, 0.3);
}

.personal-share .share-icon-wrapper {
    background: linear-gradient(135deg, #007AFF, #0056CC);
    box-shadow: 0 4px 15px rgba(0, 122, 255, 0.3);
}

.message-share .share-icon-wrapper {
    background: linear-gradient(135deg, #5856D6, #4A48A6);
    box-shadow: 0 4px 15px rgba(88, 86, 214, 0.3);
}

.copy-share .share-icon-wrapper {
    background: linear-gradient(135deg, #8E8E93, #6D6D70);
    box-shadow: 0 4px 15px rgba(142, 142, 147, 0.3);
}

.share-content {
    flex: 1;
}

.share-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 4px 0;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', sans-serif;
}

.share-subtitle {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0;
    opacity: 0.8;
}

/* Hover Effects for Each Share Type */
.vet-share:hover {
    background: linear-gradient(135deg, rgba(52, 199, 89, 0.05), rgba(48, 180, 84, 0.05));
    border-color: rgba(52, 199, 89, 0.2);
}

.personal-share:hover {
    background: linear-gradient(135deg, rgba(0, 122, 255, 0.05), rgba(0, 86, 204, 0.05));
    border-color: rgba(0, 122, 255, 0.2);
}

.message-share:hover {
    background: linear-gradient(135deg, rgba(88, 86, 214, 0.05), rgba(74, 72, 166, 0.05));
    border-color: rgba(88, 86, 214, 0.2);
}

.copy-share:hover {
    background: linear-gradient(135deg, rgba(142, 142, 147, 0.05), rgba(109, 109, 112, 0.05));
    border-color: rgba(142, 142, 147, 0.2);
}

/* Ripple Effect */
.share-option-card::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
    pointer-events: none;
}

.share-option-card:active::before {
    width: 300px;
    height: 300px;
    transition: width 0.2s, height 0.2s;
}

/* Mobile Responsive for Share Options */
@media (max-width: 768px) {
    .share-options-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .share-option-card {
        padding: 16px;
        gap: 12px;
    }
    
    .share-icon-wrapper {
        width: 44px;
        height: 44px;
        font-size: 18px;
    }
    
    .share-title {
        font-size: 15px;
    }
    
    .share-subtitle {
        font-size: 13px;
    }
}

@media (max-width: 576px) {
    .share-options-grid {
        gap: 10px;
    }
    
    .share-option-card {
        padding: 14px;
        border-radius: 12px;
    }
    
    .share-icon-wrapper {
        width: 40px;
        height: 40px;
        border-radius: 10px;
        font-size: 16px;
    }
}

/* Enhanced Media Preview Section */
.media-preview-section {
    animation: slideInUp 0.4s ease-out;
}

.media-preview-card {
    background: var(--glass-background);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.media-header {
    padding: 16px 20px;
    background: linear-gradient(135deg, rgba(0, 122, 255, 0.05), rgba(88, 86, 214, 0.05));
    border-bottom: 1px solid var(--glass-border);
}

.media-status {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--text-primary);
}

.status-indicator i {
    font-size: 18px;
}

.media-badge {
    padding: 4px 12px;
    background: var(--primary-color);
    color: white;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.media-badge.video-badge {
    background: linear-gradient(135deg, #5856D6, #4A48A6);
}

.media-badge.photo-badge {
    background: linear-gradient(135deg, #34C759, #30B454);
}

.media-container {
    position: relative;
    background: #f8f9fa;
    padding: 20px;
}

#media-display {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px;
}

.media-content {
    max-width: 100%;
    max-height: 300px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    object-fit: contain;
}

.media-info-overlay {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
}

.media-details {
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 13px;
    backdrop-filter: blur(10px);
}

.media-actions {
    padding: 16px 20px;
    display: flex;
    gap: 12px;
    justify-content: center;
    border-bottom: 1px solid var(--glass-border);
}

.media-actions .btn {
    flex: 1;
    max-width: 140px;
    border-radius: 12px;
    font-weight: 600;
    padding: 8px 16px;
    transition: all 0.3s ease;
}

.media-actions .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.analysis-hint {
    padding: 16px 20px;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, rgba(52, 199, 89, 0.05), rgba(48, 180, 84, 0.05));
    color: var(--text-secondary);
    font-size: 14px;
    border-top: 1px solid rgba(52, 199, 89, 0.1);
}

.analysis-hint i {
    color: #34C759;
    font-size: 16px;
}

/* Animation for media preview appearance */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hide upload options when media is loaded */
.media-loaded .upload-options {
    opacity: 0.3;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.media-loaded .upload-hint {
    display: none;
}

/* Mobile Responsive for Media Preview */
@media (max-width: 768px) {
    .media-preview-card {
        border-radius: 16px;
    }
    
    .media-header {
        padding: 14px 16px;
    }
    
    .media-container {
        padding: 16px;
    }
    
    .media-content {
        max-height: 240px;
    }
    
    .media-actions {
        padding: 14px 16px;
    }
    
    .media-actions .btn {
        font-size: 14px;
        padding: 8px 12px;
    }
    
    .analysis-hint {
        padding: 14px 16px;
        font-size: 13px;
    }
}

@media (max-width: 576px) {
    .media-status {
        flex-direction: column;
        gap: 8px;
        align-items: flex-start;
    }
    
    .media-content {
        max-height: 200px;
    }
    
    .media-actions {
        gap: 8px;
    }
    
    .status-indicator {
        font-size: 14px;
    }
    
    .status-indicator i {
        font-size: 16px;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .risk-score-circle {
        width: 120px;
        height: 120px;
    }
    
    .risk-score-inner {
        width: 100px;
        height: 100px;
    }
    
    .risk-score-number {
        font-size: 2rem;
    }
    
    .care-tip-card {
        margin-bottom: 1rem;
    }
}

@media (max-width: 576px) {
    .hero-section {
        padding: 3rem 0 1.5rem;
    }
    
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .card-body {
        padding: 1.5rem !important;
    }
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

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

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #1e3f73;
}

/* Print Styles */
@media print {
    .navbar, .btn, footer {
        display: none !important;
    }
    
    .hero-section {
        background: white !important;
        color: black !important;
    }
    
    .card {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
    }
}
