body {
    font-family: sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    margin: 0;
    background: radial-gradient(1200px 600px at 120px -60px, rgba(45,62,46,1) 0, rgba(45,62,46,0) 720px),
                radial-gradient(900px 500px at 990px 0px, rgba(105,34,34,1) 0, rgba(46, 19, 19, 0) 500px),
                #0f1115;
    color: white;
}
.container {
    background-color: #14161b;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    text-align: center;
    max-width: 760px;
    width: 90%;
}
h1 {
    color: #7ee081;
    margin-bottom: 8px;
}
.subtitle {
    color: #b9c4c7;
    margin-top: 0;
}
p {
    color: #ccc;
}
.file-input-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-bottom: 20px;
    margin-top: 30px;
}
.file-input-label {
    display: inline-block;
    padding: 12px 24px;
    background-color: #2e7d32;
    color: white;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s, transform .2s ease;
}

.file-input { display: none; }
#image-preview {
    max-width: 100%;
    max-height: 300px;
    border-radius: 8px;
    border: 1px solid #2b2f36;
    display: none;
    margin: 20px auto 0;
    box-shadow: 0 8px 30px rgba(0,0,0,.35);
}
#result-text {
    margin-top: 20px;
    font-size: 20px;
    font-weight: bold;
    padding: 10px;
    border-radius: 10px;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.08);
    color: white;
}
#result-container { min-height: 6px; }
.result-recyclable { 
    background: linear-gradient(135deg, rgba(17, 105, 177, 0.18), rgba(3,169,244,.12));
    color: #9ad1ff;
}
.result-organic { 
    background: linear-gradient(135deg, rgba(31, 141, 35, 0.18), rgba(46,125,50,.12));
    color: #a7f0a9;
}
.result-hazardous { 
    background: linear-gradient(135deg, rgb(244,67,54), rgba(183,28,28,.12));
    color: #fef9f8;
}
.result-general { 
    background: linear-gradient(135deg, rgba(158,158,158,.18), rgba(97,97,97,.12));
    color: #e0e0e0;
}

#loading-text {
    margin-top: 10px;
    font-style: italic;
    color: #888;
    display: none;
}

.tips { margin-top: 28px; text-align: left; }
.section-title { margin: 0 0 10px; font-size: 16px; color: #cfead0; letter-spacing: .3px; }
.tips-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.tips-list li { display: flex; align-items: center; gap: 8px; color: #bfc6ca; }
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.dot.recyclable { background: #63b3ff; }
.dot.organic { background: #7ee081; }
.dot.hazardous { background: #ff8a80; }
.dot.general { background: #cfcfcf; }

.categories-grid { margin-top: 18px; display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
.category-card { background: #101318; border: 1px solid rgba(255,255,255,.06); border-radius: 12px; padding: 14px; text-align: left; transition: transform .2s ease, box-shadow .2s ease; }
.category-card:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(0,0,0,.35); }
.category-card h3 { margin: 6px 0 4px; font-size: 16px; }
.category-card p { margin: 0; font-size: 13px; color: #9ea7ad; }
.category-card .card-icon { font-size: 20px; }
.category-card.recyclable { box-shadow: inset 0 0 0 1px rgba(33,150,243,.18); }
.category-card.organic { box-shadow: inset 0 0 0 1px rgba(76,175,80,.18); }
.category-card.hazardous { box-shadow: inset 0 0 0 1px rgba(244,67,54,.10); }
.category-card.general { box-shadow: inset 0 0 0 1px rgba(158,158,158,.18); }

@media (max-width: 560px) {
  .categories-grid { grid-template-columns: 1fr; }
  .container { padding: 28px; }
}



.bins-legend { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.legend-item { padding: 6px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: .2px; border: 1px solid rgba(255,255,255,.1); }
.legend-item.recyclable { background-color: rgba(33, 150, 243, .15); color: #63b3ff; }
.legend-item.organic { background-color: rgba(76, 175, 80, .15); color: #7ee081; }
.legend-item.hazardous { background-color: rgba(244, 67, 54, .15); color: #ff8a80; }
.legend-item.general { background-color: rgba(158, 158, 158, .15); color: #cfcfcf; }
