/* Enhanced Sample Collection Agent App Styles */

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

:root {
    /* Color Palette */
    --primary-color: #2563eb;
    --primary-dark: #1e40af;
    --primary-light: #60a5fa;
    --secondary-color: #10b981;
    --secondary-dark: #059669;
    --accent-color: #f59e0b;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --success-color: #22c55e;
    
    /* Background & Surface */
    --background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --background-alt: #f8fafc;
    --surface: rgba(255, 255, 255, 0.95);
    --surface-glass: rgba(255, 255, 255, 0.1);
    --surface-dark: rgba(0, 0, 0, 0.05);
    
    /* Text Colors */
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    --text-white: #ffffff;
    
    /* Border & Shadow */
    --border: rgba(226, 232, 240, 0.8);
    --border-light: rgba(255, 255, 255, 0.2);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    
    /* Glass Effects */
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --backdrop-blur: blur(20px);
    
    /* Animations */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Base Styles */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--background);
    background-attachment: fixed;
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><radialGradient id="a" cx="50%" cy="50%"><stop offset="0%" style="stop-color:rgba(255,255,255,0.1)"/><stop offset="100%" style="stop-color:rgba(255,255,255,0)"/></radialGradient></defs><circle cx="200" cy="200" r="100" fill="url(%23a)"/><circle cx="800" cy="300" r="150" fill="url(%23a)"/><circle cx="400" cy="700" r="120" fill="url(%23a)"/></svg>');
    pointer-events: none;
    z-index: -1;
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    color: white;
    opacity: 1;
    transition: opacity 0.5s ease;
}

.loading-screen.hidden {
    opacity: 0;
    pointer-events: none;
}

.loading-container {
    position: relative;
    margin-bottom: 2rem;
}

.pulse-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    animation: pulse-ring 2s cubic-bezier(0.455, 0.03, 0.515, 0.955) infinite;
}

.pulse-ring:nth-child(2) {
    animation-delay: 0.7s;
    width: 100px;
    height: 100px;
}

.pulse-ring:nth-child(3) {
    animation-delay: 1.4s;
    width: 120px;
    height: 120px;
}

.loading-icon {
    font-size: 3rem;
    animation: bounce 1.5s ease infinite alternate;
}

@keyframes pulse-ring {
    0% {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0;
    }
}

@keyframes bounce {
    0% { transform: translateY(0); }
    100% { transform: translateY(-10px); }
}

/* Header */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background: var(--glass-bg);
    backdrop-filter: var(--backdrop-blur);
    border-bottom: 1px solid var(--glass-border);
    z-index: 1000;
    padding: 1rem 0;
    transition: var(--transition);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 480px;
    margin: 0 auto;
    padding: 0 1rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: white;
}

.logo-icon {
    font-size: 2rem;
    animation: rotate 8s linear infinite;
}

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

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.logo-title {
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.025em;
}

.logo-subtitle {
    font-size: 0.75rem;
    font-weight: 400;
    opacity: 0.8;
    letter-spacing: 0.1em;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.status-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    backdrop-filter: var(--backdrop-blur);
    font-size: 0.875rem;
    font-weight: 500;
    color: white;
    transition: var(--transition);
}

.status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--success-color);
    animation: pulse 2s ease-in-out infinite alternate;
}

.status-indicator.offline {
    background: var(--danger-color);
}

@keyframes pulse {
    0% { opacity: 1; }
    100% { opacity: 0.5; }
}

.notification-btn {
    position: relative;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    color: white;
}

.notification-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.notification-count {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--danger-color);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.125rem 0.375rem;
    border-radius: 1rem;
    min-width: 1.25rem;
    text-align: center;
}

.header-wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 20px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120" preserveAspectRatio="none"><path d="M0,60 C300,20 600,100 1200,60 L1200,120 L0,120 Z" fill="rgba(255,255,255,0.1)"/></svg>') no-repeat;
    background-size: cover;
}

/* Main Container */
.container {
    max-width: 480px;
    margin: 0 auto;
    padding: 7rem 1rem 6rem;
    min-height: 100vh;
}

/* Section Styles */
.section {
    display: none;
    animation: fadeInUp 0.5s ease;
}

.section.active {
    display: block;
}

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

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

.section-title {
    font-size: 2rem;
    font-weight: 800;
    color: white;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.date-display {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
    background: var(--glass-bg);
    padding: 0.5rem 1rem;
    border-radius: 1rem;
    border: 1px solid var(--glass-border);
    backdrop-filter: var(--backdrop-blur);
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--surface);
    border-radius: 1rem;
    padding: 1.5rem;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-color);
}

.stat-card.pending::before {
    background: var(--warning-color);
}

.stat-card.collected::before {
    background: var(--success-color);
}

.stat-card.total::before {
    background: var(--primary-color);
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

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

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
}

.stat-trend {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.25rem;
    opacity: 0.5;
}

/* Quick Actions */
.quick-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.action-btn {
    flex: 1;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 1rem;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: var(--transition);
    color: white;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    backdrop-filter: var(--backdrop-blur);
}

.action-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.action-icon {
    font-size: 1.5rem;
}

/* Pickup Section */
.pickup-section {
    margin-bottom: 2rem;
}

.section-subheader {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.section-subheader h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin: 0;
}

.refresh-btn {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    color: white;
    backdrop-filter: var(--backdrop-blur);
}

.refresh-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.refresh-icon {
    font-size: 1.25rem;
    transition: transform 0.3s ease;
}

/* Pickup List */
.pickup-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.pickup-item {
    background: var(--surface);
    border-radius: 1rem;
    padding: 1.5rem;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    position: relative;
    transition: var(--transition);
}

.pickup-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    border-radius: 1rem 0 0 1rem;
}

.pickup-item.low-priority::before {
    background: var(--success-color);
}

.pickup-item.medium-priority::before {
    background: var(--warning-color);
}

.pickup-item.high-priority::before {
    background: var(--danger-color);
}

.pickup-item.urgent-priority::before {
    background: var(--danger-color);
    animation: pulse-border 2s infinite;
}

@keyframes pulse-border {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.pickup-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.pickup-info h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.pickup-details {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.pickup-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.btn {
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    border: 1px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    text-decoration: none;
}

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

.btn-primary:hover {
    background: var(--primary-dark);
}

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

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

.btn-success:hover {
    background: var(--secondary-dark);
}

.btn-outline {
    background: transparent;
    border-color: var(--border);
    color: var(--text-secondary);
}

.btn-outline:hover {
    background: var(--surface-dark);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Status Badges */
.status {
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: capitalize;
}

.status-pending {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning-color);
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.status-collected {
    background: rgba(34, 197, 94, 0.1);
    color: var(--success-color);
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.status-in-transit {
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary-color);
    border: 1px solid rgba(37, 99, 235, 0.2);
}

/* Tracking Card */
.tracking-card {
    background: var(--surface);
    border-radius: 1rem;
    padding: 2rem;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

.tracking-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.sample-info h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.sample-details {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.detail {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.status-indicator-large {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--surface-dark);
    padding: 0.75rem 1rem;
    border-radius: 1rem;
    font-size: 0.875rem;
    font-weight: 500;
}

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

.status-dot.pending {
    background: var(--warning-color);
}

.status-dot.collected {
    background: var(--success-color);
}

.status-dot.in-transit {
    background: var(--primary-color);
}

/* Collection Toggle */
.collection-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: var(--surface-dark);
    border-radius: 0.5rem;
    margin-bottom: 2rem;
}

.toggle-label {
    font-weight: 500;
    color: var(--text-primary);
}

.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 34px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0 4px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: var(--success-color);
    justify-content: flex-end;
}

input:checked + .slider:before {
    transform: translateX(26px);
}

.slider-icon {
    font-size: 0.875rem;
    z-index: 1;
}

/* Timeline */
.timeline {
    position: relative;
    padding: 1rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 1.5rem;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border);
}

.timeline-progress {
    position: absolute;
    left: 1.5rem;
    top: 0;
    width: 2px;
    background: var(--success-color);
    height: var(--progress-width, 0%);
    transition: height 0.5s ease;
}

.timeline-step {
    position: relative;
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
}

.timeline-step:last-child {
    margin-bottom: 0;
}

.step-dot {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: var(--surface-dark);
    border: 2px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.timeline-step.active .step-dot {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    animation: pulse 2s infinite;
}

.timeline-step.completed .step-dot {
    background: var(--success-color);
    border-color: var(--success-color);
    color: white;
}

.step-icon {
    font-size: 1.25rem;
}

.step-content {
    margin-left: 1rem;
}

.step-title {
    font-weight: 600;
    color: var(--text-primary);
}

.step-time {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* Conditions Monitor */
.conditions-monitor {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.conditions-monitor h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.conditions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.condition-item {
    text-align: center;
}

.condition-icon {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.condition-value {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-primary);
}

.condition-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
}

/* Chat Styles */
.ai-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
}

.ai-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--success-color);
}

.ai-indicator.active {
    animation: pulse 2s infinite;
}

.chat-container {
    background: var(--surface);
    border-radius: 1rem;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    height: 500px;
    display: flex;
    flex-direction: column;
}

.chat-messages {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.message {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
}

.message.user {
    flex-direction: row-reverse;
}

.message.user .message-content {
    background: var(--primary-color);
    color: white;
}

.message-avatar {
    position: relative;
    flex-shrink: 0;
}

.avatar-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: var(--surface-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.avatar-pulse {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    background: var(--success-color);
    opacity: 0.3;
    animation: pulse 2s infinite;
}

.message-content {
    background: var(--surface-dark);
    border-radius: 1rem;
    padding: 0.75rem 1rem;
    max-width: 80%;
    word-wrap: break-word;
}

.message.user .message-content {
    border-radius: 1rem 1rem 0.25rem 1rem;
}

.message.ai .message-content {
    border-radius: 1rem 1rem 1rem 0.25rem;
}

.message-text {
    line-height: 1.5;
}

.message.welcome .message-content {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

.chat-input-container {
    padding: 1rem;
    border-top: 1px solid var(--border);
    display: flex;
    gap: 0.5rem;
}

.input-wrapper {
    flex: 1;
    position: relative;
    display: flex;
}

.chat-input {
    width: 100%;
    padding: 0.75rem 3rem 0.75rem 1rem;
    border: 1px solid var(--border);
    border-radius: 1.5rem;
    outline: none;
    font-size: 0.875rem;
    transition: var(--transition);
}

.chat-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.1);
}

.voice-btn {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    width: 2rem;
    height: 2rem;
    border: none;
    background: none;
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.voice-btn:hover {
    background: var(--surface-dark);
}

.voice-btn.recording {
    background: var(--danger-color);
    color: white;
    animation: pulse 1s infinite;
}

.send-btn {
    width: 3rem;
    height: 3rem;
    border: none;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.send-btn:hover {
    background: var(--primary-dark);
    transform: scale(1.05);
}

.quick-suggestions {
    padding: 1rem;
    border-top: 1px solid var(--border);
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.suggestion-chip {
    padding: 0.5rem 1rem;
    background: var(--surface-dark);
    border: 1px solid var(--border);
    border-radius: 1rem;
    font-size: 0.75rem;
    cursor: pointer;
    transition: var(--transition);
}

.suggestion-chip:hover {
    background: var(--primary-color);
    color: white;
}

/* Health Tips */
.tips-container {
    position: relative;
}

.tips-loading {
    display: none;
    text-align: center;
    padding: 2rem;
    color: var(--text-secondary);
}

.loading-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid var(--border);
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

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

.health-tips {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.tip-card {
    background: var(--surface);
    border-radius: 1rem;
    padding: 1.5rem;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    transition: var(--transition);
    animation: slideInUp 0.5s ease forwards;
    opacity: 0;
    transform: translateY(20px);
}

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

.tip-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.tip-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.tip-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.tip-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-primary);
    flex: 1;
}

.tip-category {
    background: var(--primary-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: capitalize;
}

.tip-content {
    color: var(--text-secondary);
    line-height: 1.6;
}

.tip-categories {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding: 0.5rem 0;
}

.category-btn {
    padding: 0.5rem 1rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
    flex-shrink: 0;
}

.category-btn:hover,
.category-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.refresh-tips-btn {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 1rem;
    padding: 0.5rem 1rem;
    cursor: pointer;
    transition: var(--transition);
    color: white;
    backdrop-filter: var(--backdrop-blur);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
}

.refresh-tips-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Report Form */
.report-container {
    background: var(--surface);
    border-radius: 1rem;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.priority-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
}

.priority-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.priority-dot.low {
    background: var(--success-color);
}

.priority-dot.medium {
    background: var(--warning-color);
}

.priority-dot.high {
    background: var(--danger-color);
}

.priority-dot.urgent {
    background: var(--danger-color);
    animation: pulse 1s infinite;
}

.issue-form {
    padding: 2rem;
}

.form-section {
    margin-bottom: 2rem;
}

.form-section h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.label-icon {
    font-size: 1rem;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    outline: none;
    font-size: 0.875rem;
    transition: var(--transition);
    font-family: inherit;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.1);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

.character-count {
    text-align: right;
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
}

.priority-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
}

.priority-buttons input[type="radio"] {
    display: none;
}

.priority-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.875rem;
    font-weight: 500;
}

.priority-btn:hover {
    background: var(--surface-dark);
}

.priority-buttons input[type="radio"]:checked + .priority-btn {
    border-color: var(--primary-color);
    background: rgba(37, 99, 235, 0.1);
}

.priority-color {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.priority-btn.low .priority-color {
    background: var(--success-color);
}

.priority-btn.medium .priority-color {
    background: var(--warning-color);
}

.priority-btn.high .priority-color {
    background: var(--danger-color);
}

.priority-btn.urgent .priority-color {
    background: var(--danger-color);
    animation: pulse 1s infinite;
}

.location-input-group {
    display: flex;
    gap: 0.5rem;
}

.location-btn {
    width: 3rem;
    height: 3rem;
    border: 1px solid var(--border);
    background: var(--surface-dark);
    border-radius: 0.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    flex-shrink: 0;
}

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

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.btn-icon {
    font-size: 1rem;
}

/* Navigation Bar */
.nav-bar {
    position: fixed;
    bottom: 0;
    width: 100%;
    background: var(--surface);
    border-top: 1px solid var(--border);
    backdrop-filter: var(--backdrop-blur);
    z-index: 1000;
    padding: 0.5rem 0;
}

.nav-content {
    display: flex;
    justify-content: space-around;
    max-width: 480px;
    margin: 0 auto;
    padding: 0 1rem;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding: 0.5rem;
    border: none;
    background: none;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    border-radius: 0.5rem;
    color: var(--text-secondary);
}

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

.nav-item:hover {
    background: var(--surface-dark);
}

.nav-icon {
    font-size: 1.5rem;
}

.nav-label {
    font-size: 0.75rem;
    font-weight: 500;
}

.nav-indicator {
    position: absolute;
    top: -0.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--primary-color);
    opacity: 0;
    transition: var(--transition);
}

.nav-item.active .nav-indicator {
    opacity: 1;
}

/* Floating Action Button */
.fab {
    position: fixed;
    bottom: 5rem;
    right: 1rem;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--primary-color);
    border: none;
    box-shadow: var(--shadow-xl);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 999;
    color: white;
}

.fab:hover {
    background: var(--primary-dark);
    transform: scale(1.1);
}

.fab-icon {
    font-size: 1.5rem;
}

/* Responsive Design */
@media (max-width: 640px) {
    .container {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .quick-actions {
        gap: 0.5rem;
    }
    
    .pickup-actions {
        flex-direction: column;
    }
    
    .conditions-grid {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .priority-buttons {
        grid-template-columns: 1fr;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .tip-categories {
        gap: 0.25rem;
    }
    
    .category-btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.75rem;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    :root {
        --surface: rgba(30, 41, 59, 0.95);
        --surface-dark: rgba(51, 65, 85, 0.5);
        --text-primary: #f8fafc;
        --text-secondary: #cbd5e1;
        --text-muted: #64748b;
        --border: rgba(51, 65, 85, 0.8);
    }
}

/* Print styles */
@media print {
    .header,
    .nav-bar,
    .fab,
    .quick-actions {
        display: none;
    }
    
    .container {
        padding-top: 1rem;
        padding-bottom: 1rem;
    }
    
    .section {
        display: block !important;
    }
    
    body {
        background: white;
    }
    
    * {
        box-shadow: none !important;
    }
}