@import url('https://fonts.googleapis.com/css2?family=Lato:wght@400;700&display=swap');

@keyframes gradientBG {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes fillBar {
    from { width: 0%; }
    to   { width: var(--bar-width); }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

body {
    background: linear-gradient(270deg, #49a4ee 0%,#3277ff 50%, #1b6bff 75%, #3c93da 100%);
    background-size: 300% 300%;
    height: 100vh;
    animation: gradientBG 12s ease-in-out infinite;
    font-family: 'Lato', Tahoma, sans-serif;
    color: #ffffff;
    margin: 0;
    font-weight: 1000;
    padding: 20px;
    box-sizing: border-box;
  
    display: flex;
    gap: 45px;
    align-items: center;
    justify-content: center; 
    overflow-y: auto; 
    overflow-x: hidden; 
}

.container {
    width: 100%;
    max-width: 350px;
    text-align: center;
    font-weight: 1000;
}

h1 {
    font-size: 3rem;
    font-weight: 1000;
    margin-bottom: 24px;
}

#app, #results {
    width: 35%;
    max-width: 800px;
    min-width: 500px;
    text-align: center;
    animation: fadeIn 0.4s ease both;
    flex-shrink: 0;
    position: relative;
    padding-bottom: 27px;
    border-radius: 20px;
    border: 3px solid white;
    background-color: rgba(255, 255, 255, 0.08);
}

#capture-zone {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

#preview-img {
    display: none;
    max-width: 95%;
    max-height: 45vh;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(124, 58, 237, 0.2);
}

#placeholder {
    color: #5dff86;
    background-clip: text;
    font-size: 1.15rem;
}

#app #placeholder {
    margin-bottom: 0px;
}

#results #placeholder {
    text-align: center;
}

.mode-toggle {
    display: flex;
    gap: 12px;
    margin-bottom: 32px;
    justify-content: center;
}


#uploadBtn,
#analyzeBtn {
    padding: 10px 28px;
    border: 2px solid #3dde65;
    border-radius: 30px;
    background: transparent;
    color: #ffffff;
    font-family: inherit;
    font-size: 20px;
    font-weight: 1000;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, transform 0.15s;
}

#uploadBtn:hover,
#analyzeBtn:hover {
    background: #3dde65;
    color: #fff;
    font-weight: 1000;
}

#uploadBtn:active,
#analyzeBtn:active {
    transform: scale(0.96);
}

/* --- Results --- */
#results {
    /* width: 100%; */
    display: flex;
    flex-direction: column;
    gap: 3px;
    margin-top: 24px;
    text-align: left;
    flex-shrink: 0;
    padding: 24px;
    max-height: 80vh;

    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
}

.organism-displayCard {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    flex-shrink: 0; 
    margin-bottom: 5px;
}

.organism-title {
    margin: 0 0 12px 0;
    font-size: 1.15rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    padding-bottom: 6px;
}

.trait-list {
    margin: 0;
    padding-left: 20px;
    font-size: 0.9rem;
    line-height: 1.5;
    font-weight: normal;
}

.trait-list li {
    margin-bottom: 8px;
}

/* --- Logo --- */
.headingContainer {
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo {
    width: 70px;
    height: 70px;
    margin: 5px;
}

#logo1 {
    margin-right: 10px;
}

/* Compression/Checkbox */
.checkbox-container {
    display: flex;
    align-items: center;
    gap: 2px;
    justify-content: center;
}

#compressionCheckbox {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #3dde65;
}

.compressionInfoCircle {
    border-radius: 50%;
    border: 2px solid white;
    width: 17px;
    height: 17px;
    font-size: 14px;
    margin-left: 3px;
}