body {
    font-family: Arial, sans-serif;
    background-color: #f0f8f0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    color: #333;
}

.container {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 600px;
    text-align: center;
    border: 1px solid #e0e0e0;
}

h1 {
    color: #2e8b57;
    margin-bottom: 20px;
}

.chat-area {
    height: 300px;
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 15px;
    overflow-y: auto;
    margin-bottom: 20px;
    background-color: #f9f9f9;
    text-align: left;
}

.chat-component {
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 20px;
  margin-top: 40px;
  background-color: #fdfdfd;
}

.chat-component h1 {
  margin-top: 0;
  text-align: center;
}

.message {
    padding: 8px 12px;
    border-radius: 15px;
    margin-bottom: 10px;
    max-width: 80%;
    word-wrap: break-word;
}

.user-message {
    background-color: #d1ffd1;
    align-self: flex-end;
    margin-left: auto;
}

.ai-message {
    background-color: #e6e6e6;
    align-self: flex-start;
    margin-right: auto;
}

.input-area {
    display: flex;
    gap: 10px;
}

#userInput {
    flex-grow: 1;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 16px;
}

#userInput:focus {
    outline: none;
    border-color: #2e8b57;
    box-shadow: 0 0 0 2px rgba(46, 139, 87, 0.2);
}

button {
    padding: 12px 20px;
    background-color: #2e8b57;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #256b43;
}


.chat-input {
    margin-top: 15px;
}

.suitability-input-area {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
    justify-content: center;
}

.suitability-input-area input[type="text"],
.suitability-input-area select {
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 16px;
    box-sizing: border-box;
}

.suitability-input-area select {
    appearance: none;
    background-color: white;
    background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23000%22%20d%3D%22M287%2C114.7L154.5%2C247.2c-2.9%2C2.9-6.4%2C4.4-9.9%2C4.4c-3.6%2C0-7.1-1.5-9.9-4.4L5.3%2C114.7c-2.9-2.9-4.4-6.4-4.4-9.9s1.5-6.9%2C4.4-9.9l16.1-16.1c2.9-2.9%2C6.4-4.4%2C9.9-4.4c3.6%2C0%2C7.1%2C1.5%2C9.9%2C4.4l112%2C112L251%2C78.7c2.9-2.9%2C6.4-4.4%2C9.9-4.4c3.6%2C0%2C7.1%2C1.5%2C9.9%2C4.4l16.1%2C16.1c2.9%2C2.9%2C4.4%2C6.4%2C4.4%2C9.9S289.9%2C111.8%2C287%2C114.7z%22%2F%3E%3C%2Fsvg%3E'); /* Custom arrow for select */
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 12px;
}

#plantNameInput {
    flex: 1 1 100%;
    margin-bottom: 10px;
}

#zoneSystemSelect,
#zoneValueInput {
    flex: 1;
    min-width: 120px;
}

#checkSuitabilityBtn {
    flex: 0 0 auto;
    padding: 12px 20px;
    background-color: #2e8b57;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

.suitability-input-area button {
    flex: 1 1 100%;
}

@media (min-width: 480px) { /* ddjust for wider screens */
    .suitability-input-area input {
        flex: 1 1 auto;
    }
    .suitability-input-area button {
        flex: 0 0 auto;
    }
}

.suitability-results {
    background-color: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    text-align: left;
    min-height: 150px;
    display: none;
}

.suitability-results h3 {
    color: #2e8b57;
    margin-top: 15px;
    margin-bottom: 8px;
    border-bottom: 1px solid #eee;
    padding-bottom: 5px;
}

.suitability-results ul {
    list-style-type: disc;
    margin-left: 20px;
    padding: 0;
    margin-bottom: 10px;
}

.loading-indicator {
    text-align: center;
    padding: 20px;
    font-style: italic;
    color: #666;
}

.suitability-input-area input:focus,
.suitability-input-area select:focus {
    outline: none;
    border-color: #2e8b57;
    box-shadow: 0 0 0 2px rgba(46, 139, 87, 0.2); 
}

.suitability-input-area button {
    flex: 1 1 100%;
}

@media (min-width: 480px) {
    .suitability-input-area input,
    .suitability-input-area select {
        flex: 1 1 auto;
    }
    .suitability-input-area button {
        flex: 0 0 auto;
    }
}

.icon-button {
    flex-shrink: 0;
    width: 46px;
    height: 46px;
    padding: 12px;
    background-color: #6c757d;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 18px;
    transition: background-color 0.3s ease;
}

.icon-button:hover {
    background-color: #5a6268;
}

.icon-button:disabled {
    background-color: #a0a0a0;
    cursor: not-allowed;
}

/* dropdown menu */

#account-menu {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

#account-menu-button {
    background-color: #fff;
    border: 2px solid #ccc;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.2s;
}

#account-menu-button:hover {
    background-color: #f0f0f0;
}

#account-menu-button .fa-user-circle {
    font-size: 24px;
    color: #555;
}

/* dropdown menu */
.dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + 5px);
    background-color: #f9f9f9;
    min-width: 250px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    border-radius: 8px;
    padding: 15px;
    z-index: 1;
}

.dropdown-content.active {
    display: block;
}

.auth-form {
    padding: 0;
    border: none;
    background: none;
    text-align: left;
}
.auth-form h3 {
    text-align: center;
    margin-bottom: 15px;
}
.auth-form input, .auth-form button, #logoutBtn {
    width: 100%;
    box-sizing: border-box;
}
.auth-form p {
    text-align: center;
    font-size: 13px;
}
.form-description {
    font-size: 14px;
    text-align: center;
    color: #666;
}
#auth-logged-in-view {
    text-align: center;
}
#auth-logged-in-view strong {
    display: block;
    margin-bottom: 15px;
    word-wrap: break-word;
}
#auth-message-area {
    margin-top: 15px;
    font-weight: bold;
    text-align: center;
}


/* back to home button */
.back-link {
    display: inline-block;
    padding: 12px 20px;
    background-color: #2e8b57;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    text-decoration: none;
    transition: background-color 0.3s ease;
    margin-bottom: 20px;
}

.back-link:hover {
    background-color: #256b43;
    color: white;
    text-decoration: none;
}