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

body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    background: linear-gradient(to right, #d3cce3, #e9e4f0);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 40px 20px 20px 20px;
    padding-top: 80px;
}
.app-bar {
    width: 100%;
    background-color: #6c63ff;
    color: white;
    padding: 15px 30px;
    font-size: 1.5rem;
    font-weight: bold;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
}

.app-title {
    margin: 0;
}

.main-wrapper {
    display: flex;
    flex-direction: column; /* Stack in column */
    gap: 15px;
    max-width: 50%;
    width: 100%;
    align-items: center;
}

.card {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    padding: 25px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

h2 {
    margin-bottom: 20px;
    color: #333;
    font-size: 1.4rem;
}

.upload-box {
    border: 2px #6c63ff;
    border-radius: 12px;
    padding: 20px;
    background: #f9f9f9;
    cursor: pointer;
    position: relative;
    width: 50%;
    height: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    transition: background 0.3s ease;
    text-align: center;
}

.upload-box:hover {
    background: #eef0ff;
}

.upload-box img.icon {
    width: 50px;
    margin-bottom: 10px;
    transition: opacity 0.3s ease;
}

.upload-box span {
    font-size: 1rem;
    color: #555;
    transition: opacity 0.3s ease;
}

.upload-box input {
    display: none;
}

.upload-box img.preview {
    width: auto;
    max-width: 100%;
    max-height: 180px;
    border-radius: 10px;
    object-fit: contain;
    display: none;
}

button {
    margin-top: 20px;
    padding: 12px 25px;
    background-color: #6c63ff;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s ease;
}


button:hover {
    background-color: #4b47cc;
}

#loader {
    margin-top: 20px;
    display: none;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #6c63ff;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

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

#result {
    width: 100%;
    text-align: center;
    font-size: 1rem;
    color: #333;
    padding: 10px 0;  /* Add padding for better spacing */
}

button {
    width: 60%;  /* Make button wider */
    max-width: 200px;
}

#result h3 {
    color: #4caf50;
    margin-top: 10px;
}

#result a {
    color: #6c63ff;
    text-decoration: none;
    font-weight: bold;
}

#result p {
    margin: 5px 0;
}

