body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
    background: linear-gradient(to right, #e8f5e9, #c8e6c9); /* green gradient */
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
}


/* Header bar */
header {
    background-color: #2e7d32;
    color: white;
    padding: 20px;
    width: 100%;
    text-align: center;
    font-size: 1.8rem;
    font-weight: bold;
    letter-spacing: 1px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* Main container */
.container {
    margin-top: 40px;
    background: white;
    padding: 35px;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    text-align: center;
    width: 90%;
    max-width: 550px;
}

/* File input */
input[type="file"] {
    margin: 20px 0;
    font-size: 1rem;
}

#uploaded-image {
    max-width: 100%;
    height: auto;
    display: none;
    margin-bottom: 20px;
    border: 2px dashed #81c784;
    border-radius: 12px;
    padding: 10px;
    background-color: #f1f8e9;

    /* 🔥 Add these lines for glow and effect */
    box-shadow: 0 0 15px rgba(67, 160, 71, 0.4);
    transition: transform 0.3s ease;
}

#uploaded-image:hover {
    transform: scale(1.03);
}


/* Predict button */
button {
    background-color: #43a047;
    color: white;
    border: none;
    padding: 12px 28px;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

button:hover {
    background-color: #2e7d32;
    transform: scale(1.05);
    box-shadow: 0 6px 15px rgba(46, 125, 50, 0.4);
}


.result {
    margin-top: 25px;
    padding: 18px;
    border-radius: 10px;
    font-size: 1.2rem;
    font-weight: 500;
    display: none;
    animation: fadeIn 0.5s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}


/* Label-specific colors */
.recyclable {
    background: #e8f5e9;
    color: #2e7d32;
}

.compostable {
    background: #fff3e0;
    color: #ef6c00;
}

.trash {
    background: #ffebee;
    color: #c62828;
}

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



/* Loader Spinner */
.loader {
  border: 6px solid #f3f3f3;
  border-top: 6px solid #2e7d32;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
  margin: 20px auto;
}

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