:root {
    --primary: #FF6B35;
    --primary-light: #FF8F66;
    --secondary: #2EC4B6;
    --accent: #FF9F1C;
    --bg-dark: #1A1A1D;
    --bg-card: #252529;
    --text-main: #FFFFFF;
    --text-muted: #A0A0A5;
    --border: rgba(255, 255, 255, 0.1);
    --radius-lg: 24px;
    --radius-md: 16px;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    --font-display: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

h1, h2, h3, .brand {
    font-family: var(--font-display);
    font-weight: 700;
}

/* Layout */
.app-container {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

/* Sidebar */
.sidebar {
    width: 280px;
    background: var(--bg-card);
    border-right: 1px solid var(--border);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
}

.brand {
    font-size: 1.5rem;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 3rem;
}

.nav-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-radius: var(--radius-md);
    color: var(--text-muted);
    text-decoration: none;
    transition: all 0.3s ease;
}

.nav-item:hover, .nav-item.active {
    background: rgba(255, 107, 53, 0.1);
    color: var(--primary);
}

.nav-item svg {
    width: 20px;
    height: 20px;
}

/* Main Content */
.main-content {
    flex: 1;
    padding: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2.5rem;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Cards & Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(12, 1-fr);
    gap: 1.5rem;
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    transition: transform 0.3s ease, border-color 0.3s ease;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
}

.span-8 { grid-column: span 8; }
.span-4 { grid-column: span 4; }
.span-6 { grid-column: span 6; }
.span-12 { grid-column: span 12; }

/* AI Scanner Section */
.scanner-box {
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.1), rgba(46, 196, 182, 0.05));
    border: 2px dashed var(--primary-light);
    height: 300px;
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-top: 1rem;
    position: relative;
    cursor: pointer;
}

.scanner-line {
    position: absolute;
    width: 90%;
    height: 2px;
    background: var(--primary);
    top: 50%;
    box-shadow: 0 0 15px var(--primary);
    animation: scan 3s infinite ease-in-out;
}

@keyframes scan {
    0%, 100% { top: 10%; }
    50% { top: 90%; }
}

/* Status Badges */
.badge {
    padding: 0.4rem 0.8rem;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge-success { background: rgba(46, 196, 182, 0.2); color: #2EC4B6; }
.badge-warning { background: rgba(255, 159, 28, 0.2); color: #FF9F1C; }
.badge-danger { background: rgba(255, 68, 68, 0.2); color: #FF4444; }

/* Buttons */
.btn {
    padding: 0.8rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
    font-family: var(--font-body);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

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

.btn-outline {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-main);
}

.btn-emergency {
    background: #FF4444;
    color: white;
    width: 100%;
    justify-content: center;
    padding: 1.2rem;
    font-size: 1.1rem;
    margin-top: auto;
}

/* Community Feed */
.post {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.post-avatar {
    width: 48px;
    height: 48px;
    background: #333;
    border-radius: 50%;
    flex-shrink: 0;
}

.post-content {
    background: rgba(255, 255, 255, 0.03);
    padding: 1rem;
    border-radius: 0 16px 16px 16px;
    flex: 1;
}

/* Placeholders */
.placeholder-image {
    background: #2a2a2e;
    border-radius: var(--radius-md);
    width: 100%;
    height: 120px;
}

.pet-hero-image {
    width: 100%;
    height: 240px;
    object-fit: cover;
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
}

/* Animations */
.fade-in {
    animation: fadeIn 0.8s ease-out forwards;
}

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