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

:root {
    --primary-color: #6F4E37; /* Coffee Brown */
    --secondary-color: #F5F5DC; /* Beige */
    --text-color: #333;
    --background-color: #FFF8F0; /* Creamy White */
    --header-footer-bg: #362216; /* Darker Brown */
    --header-footer-text: #FFF8F0;
}

body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--background-color);
    color: var(--text-color);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding-bottom: 80px; /* Adjust as needed, should be more than FAB height + bottom margin */
}

header {
    background-color: var(--header-footer-bg);
    color: var(--header-footer-text);
    padding: 1em 0;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

header h1 {
    margin: 0;
    font-weight: 600;
}

header h1 sup {
    font-size: 0.6em; /* Adjust superscript size */
    vertical-align: super;
}

main {
    flex: 1;
    padding: 2em;
    max-width: 600px;
    margin: 2em auto;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.bean-display h2 {
    color: var(--primary-color);
    margin-bottom: 1em;
    font-weight: 400;
}

#beanImage {
    max-width: 100%;
    height: auto;
    max-height: 400px;
    border-radius: 8px;
    margin-top: 1em;
    border: 1px solid #eee;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

#noImageText {
    color: #777;
    font-style: italic;
}

.upload-section {
    margin-top: 2em;
}

.upload-button {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 12px 25px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-weight: 300;
}

.upload-button:hover {
    background-color: #5a3f2e; /* Darker shade on hover */
}

/* Hide default file input */
input[type="file"] {
    display: none;
}

.fab {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #8B4513; /* SaddleBrown - adjust as needed */
    color: white;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    text-decoration: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.fab:hover {
    background-color: #A0522D; /* Sienna - slightly lighter */
    transform: scale(1.05);
}

.fab:active {
    transform: scale(0.95);
}
