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

:root {
    --bg-color: #EFEFEF;
    --card-bg: #FFFFFF;
    --text-main: #111111;
    --text-muted: #6B6B6B;
    --primary-blue: #0A5EFF;
    --primary-blue-hover: #004BE6;
    --border-radius-lg: 32px;
    --border-radius-md: 24px;
    --border-radius-pill: 50px;
    --shadow-soft: 0 16px 40px rgba(0,0,0,0.06);
    --shadow-glass: 0 8px 32px rgba(0,0,0,0.08);
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.5);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Base Utility Classes */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px;
}

.title {
    font-size: 32px;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -0.5px;
}

.subtitle {
    font-size: 16px;
    color: var(--text-muted);
    margin-top: 8px;
    font-weight: 500;
}

/* Modern Pill Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 600;
    padding: 18px 32px;
    border-radius: var(--border-radius-pill);
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.btn-primary {
    background-color: var(--primary-blue);
    color: white;
    box-shadow: 0 8px 24px rgba(10, 94, 255, 0.3);
}

.btn-primary:hover {
    background-color: var(--primary-blue-hover);
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(10, 94, 255, 0.4);
}

.btn-secondary {
    background-color: white;
    color: var(--text-main);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

/* Glassmorphism Floating NavBar / UI Elements */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-pill);
}

/* Cards */
.card {
    background: var(--card-bg);
    border-radius: var(--border-radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-soft);
}

/* Input Styles */
.form-control {
    width: 100%;
    padding: 16px 24px;
    font-size: 16px;
    font-weight: 500;
    border: 1px solid #E0E0E0;
    border-radius: var(--border-radius-pill);
    background-color: #FAFAFA;
    transition: all 0.2s ease;
    outline: none;
}
.form-control:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 4px rgba(10, 94, 255, 0.1);
    background-color: white;
}

/* Landing Page Specifics */
.landing-hero {
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding-top: 60px;
}
.landing-hero h1 {
    font-size: 64px;
    font-weight: 800;
    letter-spacing: -2px;
    margin-bottom: 24px;
    max-width: 800px;
    line-height: 1.1;
}
.landing-hero p {
    font-size: 20px;
    color: var(--text-muted);
    max-width: 600px;
    margin-bottom: 48px;
    line-height: 1.5;
}

/* Feature Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    margin-top: -40px;
    padding-bottom: 80px;
}
.feature-card {
    background: white;
    border-radius: var(--border-radius-md);
    padding: 32px;
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: #F0F5FF;
    color: var(--primary-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}
.feature-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
}
.feature-card p {
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.5;
}

/* Nav */
.modern-nav {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1200px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 32px;
    z-index: 1000;
    box-shadow: var(--shadow-glass);
}
.nav-logo {
    font-weight: 800;
    font-size: 20px;
    color: var(--text-main);
    text-decoration: none;
}

/* --- NEW STYLES FOR EVALUATE PAGE & MOCKUP MATCHING --- */

.mobile-container {
    max-width: 600px;
    padding: 0 24px;
}

.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    max-width: 600px;
    margin: 0 auto;
}

.icon-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
    color: var(--text-main);
    cursor: pointer;
}

.icon-btn-dark {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: var(--text-main);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
    cursor: pointer;
}

.user-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #DDD;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #666;
    overflow: hidden;
}

.search-bar {
    display: flex;
    align-items: center;
    background: white;
    border-radius: var(--border-radius-pill);
    padding: 16px 20px;
    box-shadow: var(--shadow-soft);
    gap: 12px;
}

.search-bar ion-icon {
    font-size: 20px;
    color: var(--text-muted);
}

.search-bar input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 16px;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

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

.upload-box {
    border: 2px dashed #D0D0D0;
    border-radius: var(--border-radius-md);
    background: #FAFAFA;
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}

.upload-box.dragover {
    border-color: var(--primary-blue);
    background: #F0F5FF;
}

.upload-icon {
    font-size: 48px;
    color: #A0A0A0;
    margin-bottom: 12px;
}

.preview-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 16px;
    justify-content: center;
}

.preview-img {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    object-fit: cover;
    border: 1px solid #EEE;
    display: block;
}

/* Wrapper for each preview image — needed for the remove-button overlay */
.preview-wrapper {
    position: relative;
    display: inline-block;
    line-height: 0;
}

/* Small × dismiss button in the top-right corner of each preview image */
.preview-remove-btn {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(30, 30, 30, 0.75);
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 13px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: background 0.18s, transform 0.15s;
    padding: 0;
}
.preview-remove-btn:hover {
    background: #ef4444;
    transform: scale(1.15);
}


/* Results Hero Card */
.car-hero-card {
    background: white;
    border-radius: var(--border-radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-soft);
    position: relative;
    overflow: hidden;
}

.car-header {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
}

.car-image-container {
    position: relative;
    width: 100%;
    height: 220px;
    margin: 20px 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.car-image-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.value-badge {
    position: absolute;
    bottom: 20px;
    left: 0;
    padding: 12px 20px;
    border-radius: var(--border-radius-md);
    z-index: 10;
}

.specs-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}

.spec-pill {
    background: #F6F6F6;
    padding: 12px 16px;
    border-radius: var(--border-radius-pill);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
}

.action-buttons {
    display: flex;
    gap: 12px;
}

.analysis-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.stat-box {
    background: white;
    padding: 20px;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-soft);
    text-align: center;
}

.stat-box h3 {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 4px;
}

.stat-box p {
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 500;
}

.details-card {
    background: white;
    padding: 24px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-soft);
}

.damage-item {
    padding: 16px;
    background: #F9F9F9;
    border-radius: 16px;
    margin-bottom: 12px;
    display: flex;
    gap: 16px;
}

.damage-item-img {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    object-fit: cover;
}

.floating-menu {
    position: fixed;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 12px;
    border-radius: var(--border-radius-pill);
    box-shadow: var(--shadow-glass);
    z-index: 100;
}

.menu-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-size: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s;
}

.menu-btn.active {
    background: var(--primary-blue);
    color: white;
    box-shadow: 0 4px 12px rgba(10, 94, 255, 0.3);
}

/* Animations */
@keyframes spin { 100% { transform: rotate(360deg); } }
.spin { animation: spin 1s linear infinite; }
