/* General Styles */
body {
    font-family: 'Montserrat', sans-serif;
    background-color: #f7f9fc;
    color: #333;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    text-align: center;
}

.container {
    max-width: 600px;
    width: 90%;
    padding: 20px;
}

h1 {
    color: #4a4a4a;
    font-size: 2.5rem;
}

p {
    color: #6a6a6a;
    font-size: 1.2rem;
}

/* Upload Section */
.upload-button {
    display: inline-block;
    padding: 15px 30px;
    background-color: #5a9cff;
    color: white;
    font-size: 1.2rem;
    border-radius: 50px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
    margin-top: 20px;
}

.upload-button:hover {
    background-color: #4a8cff;
    transform: translateY(-2px);
}

#image-uploader {
    display: none;
}

/* Loader */
.loader {
    border: 8px solid #f3f3f3;
    border-top: 8px solid #5a9cff;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite;
    margin: 30px auto;
}

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

/* Progress Bar */
#progress-container {
    width: 80%;
    margin: 30px auto;
    border: 1px solid #ccc;
    border-radius: 10px;
    background-color: #f3f3f3;
}

#progress-bar {
    height: 20px;
    width: 0%; /* Start at 0 */
    background-color: #5a9cff;
    border-radius: 10px;
    transition: width 1.5s ease-in-out; /* Animate the width change */
}

/* Image Preview */
.image-preview-section {
    margin-top: 30px;
}

#image-preview {
    max-width: 100%;
    max-height: 400px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Result Section */
.result-section {
    margin-top: 30px;
}

.result-title {
    font-size: 2rem;
    color: #5a9cff;
}

.result-message {
    font-size: 1.5rem;
}

.result-bar {
    background-color: #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    margin: 15px 0;
    text-align: left;
}

.bar-inner {
    height: 40px;
    background-color: #5a9cff;
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 15px;
    font-size: 1.1rem;
    white-space: nowrap;
    border-radius: 10px 0 0 10px;
}

.bar-inner.cat {
    background-color: #ff8c61;
}
