/* Petlify Dashboard - Styles */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* Global Styles & Variables */
:root {
    /* NEW TERRACOTTA/TEAL PALETTE */
    --color-primary: #E07A5F;
    /* Terracotta Orange - warmth & care */
    --color-primary-dark: #C36A50;
    /* Darker terracotta */
    --color-primary-light: #F09580;
    /* Lighter terracotta */

    --color-secondary: #2A9D8F;
    /* Teal - cleanliness & hygiene */
    --color-success: #2A9D8F;
    /* Teal for success states */
    --color-warning: #F4A261;
    /* Warm orange for warnings */
    --color-danger: #E76F51;
    /* Coral red for errors */

    /* Gray Scale */
    --color-gray-50: #F9FAFB;
    --color-gray-100: #F3F4F6;
    --color-gray-200: #E5E7EB;
    --color-gray-300: #D1D5DB;
    --color-gray-400: #9CA3AF;
    --color-gray-500: #6B7280;
    --color-gray-600: #4B5563;
    --color-gray-700: #374151;
    --color-gray-800: #1F2937;
    --color-gray-900: #111827;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--color-gray-50);
    color: var(--color-gray-900);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    padding-bottom: 80px;
    /* Space for bottom nav */
}

/* Dashboard Content */
.dashboard-content {
    max-width: 42rem;
    margin: 0 auto;
    padding: 1.5rem 1rem;
}

/* Lady the AI Section */
.lady-section {
    margin-bottom: 2rem;
}

.lady-card {
    background: linear-gradient(135deg, var(--color-primary) 0%, #6B05A0 100%);
    border-radius: 1.5rem;
    padding: 1.5rem;
    color: white;
    box-shadow: 0 10px 30px rgba(130, 10, 209, 0.3);
    display: flex;
    gap: 1rem;
    animation: fadeInUp 0.5s ease;
}

.lady-avatar {
    font-size: 3.5rem;
    width: 4rem;
    height: 4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    flex-shrink: 0;
    border: 3px solid rgba(255, 255, 255, 0.3);
}

.lady-content {
    flex: 1;
}

.lady-greeting {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.lady-message {
    font-size: 0.95rem;
    line-height: 1.5;
    opacity: 0.95;
}

.lady-message strong {
    font-weight: 700;
    color: var(--color-gold);
}

/* Metrics Section */
.metrics-section {
    margin-bottom: 2rem;
}

.section-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--color-gray-900);
    margin-bottom: 1rem;
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.875rem;
}

.metric-card {
    background: white;
    border-radius: 1rem;
    padding: 1.25rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid var(--color-gray-100);
    transition: all 0.3s ease;
    animation: fadeInUp 0.5s ease;
}

.metric-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.metric-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.metric-label {
    font-size: 0.75rem;
    color: var(--color-gray-500);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.metric-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-gray-900);
    margin-bottom: 0.5rem;
}

.metric-growth {
    font-size: 0.75rem;
    font-weight: 600;
}

.metric-growth.positive {
    color: var(--color-success);
}

.metric-growth.negative {
    color: var(--color-danger);
}

.metric-progress {
    margin-top: 0.5rem;
}

.progress-bar {
    height: 6px;
    background: var(--color-gray-200);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 0.25rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--color-primary), #6B05A0);
    border-radius: 3px;
    transition: width 0.5s ease;
}

.progress-text {
    font-size: 0.7rem;
    color: var(--color-gray-500);
}

.metric-status {
    font-size: 0.75rem;
    color: var(--color-success);
    font-weight: 600;
}

.metric-detail {
    font-size: 0.75rem;
    color: var(--color-gray-500);
}

/* Chart Section */
.chart-section {
    margin-bottom: 2rem;
}

.chart-container {
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid var(--color-gray-100);
}

.chart-bars {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 0.5rem;
    height: 150px;
}

.chart-bar {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.bar-fill {
    width: 100%;
    background: linear-gradient(180deg, var(--color-primary), #6B05A0);
    border-radius: 0.5rem 0.5rem 0 0;
    transition: all 0.3s ease;
    position: relative;
    min-height: 20px;
}

.bar-fill.active {
    background: linear-gradient(180deg, var(--color-gold), var(--color-gold-dark));
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
}

.bar-fill:hover {
    opacity: 0.8;
    transform: scale(1.05);
}

.bar-label {
    font-size: 0.7rem;
    color: var(--color-gray-600);
    font-weight: 600;
}

/* PRO Teaser */
.pro-teaser-section {
    margin-bottom: 2rem;
}

.pro-teaser {
    position: relative;
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    border: 2px solid var(--color-gold);
    overflow: hidden;
}

.teaser-content {
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
}

.teaser-content.blurred {
    filter: blur(5px);
    user-select: none;
    pointer-events: none;
}

.teaser-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: var(--color-gray-50);
    border-radius: 0.5rem;
}

.teaser-label {
    font-size: 0.875rem;
    color: var(--color-gray-700);
    font-weight: 600;
}

.teaser-value {
    font-size: 0.875rem;
    color: var(--color-gray-900);
    font-weight: 700;
}

.pro-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(2px);
}

.lock-icon {
    font-size: 3rem;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

.pro-button {
    background: linear-gradient(135deg, var(--color-gold) 0%, var(--color-gold-dark) 100%);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 0.75rem;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(255, 215, 0, 0.4);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.pro-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(255, 215, 0, 0.5);
}

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

.pro-button-icon {
    font-size: 1.25rem;
}

.pro-button-badge {
    font-size: 0.7rem;
    padding: 0.25rem 0.5rem;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 0.25rem;
    letter-spacing: 0.05em;
}

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-top: 1px solid var(--color-gray-200);
    display: flex;
    justify-content: space-around;
    padding: 0.75rem 0.5rem;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.05);
    z-index: 1000;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    text-decoration: none;
    color: var(--color-gray-500);
    transition: all 0.2s ease;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
}

.nav-item:hover {
    background: var(--color-gray-50);
}

.nav-item.active {
    color: var(--color-primary);
}

.nav-item.active .nav-icon {
    transform: scale(1.1);
}

.nav-icon {
    font-size: 1.5rem;
    transition: transform 0.2s ease;
}

.nav-label {
    font-size: 0.7rem;
    font-weight: 600;
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 640px) {
    .dashboard-content {
        padding: 1rem 0.75rem;
    }

    .lady-card {
        flex-direction: column;
        text-align: center;
    }

    .lady-avatar {
        margin: 0 auto;
    }

    .metrics-grid {
        grid-template-columns: 1fr;
    }

    .metric-card {
        display: flex;
        align-items: center;
        gap: 1rem;
    }

    .metric-info {
        flex: 1;
    }

    .pro-button {
        font-size: 0.875rem;
        padding: 0.875rem 1.5rem;
    }

    .nav-item {
        padding: 0.5rem 0.5rem;
    }

    .nav-label {
        font-size: 0.65rem;
    }
}