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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 900px;
    margin: 0 auto;
}

header {
    text-align: center;
    color: white;
    margin-bottom: 40px;
}

h1 {
    font-size: 3em;
    margin-bottom: 10px;
}

.tagline {
    font-size: 1.2em;
    opacity: 0.9;
}

.stats-banner {
    display: flex;
    justify-content: space-around;
    background: white;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 40px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.stat {
    text-align: center;
}

.stat-value {
    display: block;
    font-size: 2.5em;
    font-weight: bold;
    color: #764ba2;
}

.stat-label {
    display: block;
    margin-top: 5px;
    color: #666;
}

.upload-section {
    background: white;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.upload-box {
    border: 3px dashed #ddd;
    border-radius: 12px;
    padding: 60px 40px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}

.upload-box:hover {
    border-color: #764ba2;
    background: #f8f8ff;
}

.upload-box.dragging {
    border-color: #667eea;
    background: #f0f0ff;
}

.upload-icon {
    width: 60px;
    height: 60px;
    color: #764ba2;
    margin-bottom: 20px;
}

.upload-text {
    font-size: 1.3em;
    color: #333;
    margin-bottom: 10px;
}

.upload-subtext {
    color: #999;
}

.demo-button {
    width: 100%;
    margin-top: 20px;
    padding: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1em;
    cursor: pointer;
    transition: transform 0.2s;
}

.demo-button:hover {
    transform: translateY(-2px);
}

.results-section {
    background: white;
    border-radius: 12px;
    padding: 40px;
    margin-top: 40px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.summary-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 30px 0;
}

.summary-card {
    padding: 25px;
    border-radius: 12px;
    text-align: center;
}

.summary-card.red {
    background: linear-gradient(135deg, #ff6b6b 0%, #ff8e53 100%);
    color: white;
}

.summary-card.green {
    background: linear-gradient(135deg, #48c774 0%, #3ec46d 100%);
    color: white;
}

.summary-card h3 {
    font-size: 0.9em;
    text-transform: uppercase;
    opacity: 0.9;
    margin-bottom: 10px;
}

.amount {
    font-size: 2.5em;
    font-weight: bold;
}

.percentage {
    font-size: 1.2em;
    opacity: 0.9;
}

.pattern-item {
    background: #f8f9fa;
    border-left: 4px solid #ff6b6b;
    padding: 20px;
    margin: 15px 0;
    border-radius: 8px;
}

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

.pattern-type {
    font-weight: bold;
    color: #333;
}

.pattern-waste {
    color: #ff6b6b;
    font-weight: bold;
}

.pattern-description {
    color: #666;
    margin-bottom: 15px;
}

.pattern-fix {
    background: white;
    padding: 10px;
    border-radius: 6px;
    color: #48c774;
    font-weight: 500;
}

.recommendation-item {
    display: flex;
    align-items: center;
    background: #f8f9fa;
    padding: 20px;
    margin: 15px 0;
    border-radius: 8px;
}

.priority-badge {
    background: #667eea;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-right: 20px;
}

.recommendation-content {
    flex: 1;
}

.recommendation-action {
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
}

.recommendation-meta {
    display: flex;
    gap: 20px;
    color: #666;
    font-size: 0.9em;
}

.cta-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 40px;
    border-radius: 12px;
    text-align: center;
    margin: 40px 0;
}

.cta-section h3 {
    font-size: 1.8em;
    margin-bottom: 10px;
}

.cta-button {
    background: white;
    color: #764ba2;
    padding: 15px 40px;
    border: none;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    margin-top: 20px;
    transition: transform 0.2s;
}

.cta-button:hover {
    transform: translateY(-2px);
}

.share-button {
    background: #1DA1F2;
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    font-size: 1em;
    cursor: pointer;
    transition: transform 0.2s;
}

.share-button:hover {
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .stats-banner {
        flex-direction: column;
        gap: 20px;
    }
    
    .summary-cards {
        grid-template-columns: 1fr;
    }
}
body { font-family: Arial, Helvetica, sans-serif; background: #f6f9fc; color: #102a43; padding: 2rem; }
main { max-width: 800px; margin: 0 auto; background: white; padding: 1.5rem; border-radius: 8px; box-shadow: 0 6px 18px rgba(16,42,67,0.08); }
h1 { margin-top: 0 }
form { display:flex; gap: .5rem; align-items:center; }
input[type="file"] { flex: 1 }
button { background:#0b69ff; color:white; border:none; padding: .5rem 1rem; border-radius:4px; cursor:pointer }
button:disabled { opacity: .6 }
#results { margin-top:1rem }
.card { padding: .75rem; border: 1px solid #e6eef8; border-radius:6px; background:#fbfdff }
.item { display:flex; justify-content:space-between; padding: .4rem 0; border-bottom:1px dashed #eef6ff }
.item:last-child { border-bottom: none }
