#main {
    /* Make it cover the entire viewport */
    width: 100vw;
    height: 100vh;

    /* Gradient background: sky, ocean, sand */
    background: linear-gradient(to bottom, 
        #87CEEB 0%,     /* Sky blue at the top */
        #00BFFF 50%,    /* Deep ocean blue in the middle */
        #F4A460 100%    /* Sandy color at the bottom */
    );

    /* Ensure the gradient doesn't repeat and scales properly */
    background-repeat: no-repeat;
    background-size: cover;

    /* Optional: Smooth the transition between colors */
    background-blend-mode: soft-light;
}

#hoonaLoginForm {
    /* Set dimensions to the smaller of 66vh or 66vw */
    width: min(66vw, 66vh);
    height: min(66vw, 66vh);

    /* Center the element */
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    /* Style the box */
    border-radius: 20px; /* Rounded corners */
    background-image: url('/static/images/hoona/hoona.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Optional shadow */
}

#loginForm {
    position: absolute;
    top: 42%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(255, 255, 255, 0.8);
    padding: 20px 40px;
    border-radius: 15px;
    border: 1px solid black;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    width: 80%;
    max-width: 400px;
    box-sizing: border-box;
}

/* Style text inside the form */
#loginForm label {
    display: block;
    font-size: 1.3rem; /* Medium-large text */
    margin-bottom: 8px;
    color: #222;
}

/* Style inputs inside the form */
#loginForm input {
    width: 100%; /* Full width */
    font-size: 1.3rem; /* Medium-large input text */
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
}

/* Style the submit button */
#loginForm button {
    display: block;
    width: 100%;
    font-size: 1.3rem;
    padding: 10px;
    color: white;
    background-color: #007BFF;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

#loginForm button:hover {
    background-color: #0056b3; /* Slightly darker blue on hover */
}

/* General Reset */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: #f4f4f9;
    color: #333;
}

/* Top Bar */
.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background-color: #007BFF;
    color: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.top-bar img {
    height: 40px;
}

.top-bar button {
    font-size: 1rem;
    padding: 8px 15px;
    background-color: #0056b3;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.top-bar button:hover {
    background-color: #003f8a;
}

/* Main Content Area with Center Alignment */
#main {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); /* Responsive grid */
    grid-auto-rows: minmax(400px, 20vh); /* Maintain square dimensions */
    gap: 20px; /* Space between cards */
    padding: 20px; /* Optional padding around the grid */
    justify-content: center; /* Center items horizontally */
    align-content: flex-start; /* Center items vertically */
    min-height: 100vh; /* Full viewport height to center vertically */
    box-sizing: border-box; /* Ensure padding is accounted for */
}

.main-content {
    width: calc(100% - 0px);
    display: inline-block;
    max-width: 1200px;
}

/* Dashboard Card */
.dashboard-card {
    background-color: white; /* Solid white background */
    border: 2px solid; /* Border with gradient */
    /* border-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.5), rgba(255, 255, 255, 0.5), rgba(0, 0, 0, 0.5)) 1; /* Gradient border */
    border-radius: 10px; /* Rounded corners */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Light shadow */
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* Align content to start */
    align-items: center;
    width: 100%; /* Full width of grid cell */
    aspect-ratio: 1 / 1; /* Ensure square shape */
    min-width: 400px;
    min-height: 400px;
    max-height: 20vh;
    max-width: 20vh;
    overflow: hidden; /* Ensure border follows rounded corners */
}

/* Card Title (h3) */
.dashboard-card h3 {
    width: 100%; /* Full width of the card */
    margin: 0;
    padding: 10px 0;
    text-align: center;
    font-size: 1.5rem;
    color: black; /* Black text */
    background-color: #E6D3A3; /* Hawaiian beach sand color */
    border-bottom: 2px solid black; /* Bottom border */
    border-top-left-radius: 8px; /* Match card corner radius */
    border-top-right-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); /* Subtle shadow under title */
}

.dashboard-card-content {
    font-size: 1rem;
    color: #555;
}

.dashboard-card-content div {
    margin: 10px 0;
    cursor: pointer;
}

.dashboard-card-content div span {
    font-weight: bold;
    color: #007BFF;
    cursor: pointer;
}

.dashboard-card-content div span:hover {
    text-decoration: underline;
}

/* Dropdown Menu */
.dropdown {
    display: none;
    position: absolute;
    background-color: white;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin-top: 10px;
    min-width: 150px;
    z-index: 10;
}

.dropdown button {
    width: 100%;
    padding: 10px;
    border: none;
    background: none;
    text-align: left;
    font-size: 1rem;
    color: #333;
    cursor: pointer;
}

.dropdown button:hover {
    background-color: #f4f4f4;
}

/* User Button with Dropdown */
.resource-button-container {
    position: relative;
}

.resource-button-container button {
    font-size: 1rem;
    padding: 8px 15px;
    background-color: #007BFF;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.resource-button-container button:hover {
    background-color: #0056b3;
}

/* User Management Container */
.resource-management {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 20px;
    background-color: #f9f9f9; /* Light background for contrast */
    border: 2px solid #ddd; /* Subtle border */
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Light shadow for depth */
    max-width: 900px;
    margin: 20px auto; /* Center the element on the page */
}

/* Filter Section */
.filter-section {
    display: flex;
    gap: 10px;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    align-items: center;
}

.filter-section label {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 1rem;
    color: #333;
}

/* Table Styles */
.resource-table {
    width: 100%;
    border-collapse: collapse; /* Remove spacing between table cells */
}

.resource-table th, .resource-table td {
    border: 1px solid #ddd; /* Light border for cells */
    padding: 10px;
    text-align: left;
    font-size: 1rem;
}

.resource-table th {
    background-color: #007BFF; /* Blue header background */
    color: white; /* White text for contrast */
    font-weight: bold;
}

.resource-table tr:nth-child(even) {
    background-color: #f2f2f2; /* Light gray for alternating rows */
}

.resource-table tr:hover {
    background-color: #e6e6e6; /* Highlight row on hover */
}

/* Buttons */
.resource-management button {
    font-size: 1rem;
    padding: 10px 15px;
    margin: 5px 0;
    background-color: #007BFF;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.resource-management button:hover {
    background-color: #0056b3;
}

.resource-management button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

/* New User Button */
.resource-management .new-resource-button {
    align-self: flex-start; /* Align the button to the left */
}

/* Edit and Delete Buttons */
.resource-table button {
    margin: 0 5px;
    font-size: 0.9rem;
    padding: 5px 10px;
    border-radius: 5px;
}

.resource-table button.edit {
    background-color: #28a745; /* Green for edit */
    color: white;
}

.resource-table button.edit:hover {
    background-color: #218838;
}

.resource-table button.delete {
    background-color: #dc3545; /* Red for delete */
    color: white;
}

.resource-table button.delete:hover {
    background-color: #c82333;
}

/* General Edit Form Styling */
.edit-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 20px;
    background-color: #f9f9f9; /* Light background for contrast */
    border: 2px solid #ddd; /* Subtle border */
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Light shadow for depth */
    max-width: 500px;
    margin: 0 auto; /* Center the form horizontally */
}

/* Form Title */
.edit-form h3 {
    margin: 0;
    font-size: 1.5rem;
    color: #333; /* Neutral dark color for text */
    text-align: center;
    border-bottom: 2px solid #ddd;
    padding-bottom: 10px;
}

/* Form Rows */
.edit-form .form-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.edit-form label {
    flex: 1;
    font-size: 1rem;
    color: #555; /* Subtle text color for labels */
}

.edit-form input[type="text"],
.edit-form input[type="email"],
.edit-form input[type="password"],
.edit-form select,
.edit-form textarea {
    flex: 2; /* Larger width for inputs compared to labels */
    padding: 10px;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
}

.edit-form input[type="checkbox"] {
    flex: 0; /* Checkbox doesn't need extra space */
    margin-left: 10px; /* Add spacing from the label */
}

/* Buttons */
.edit-form button {
    font-size: 1rem;
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    color: white;
}

.edit-form button[type="submit"] {
    background-color: #007BFF; /* Primary color for submit */
}

.edit-form button[type="submit"]:hover {
    background-color: #0056b3;
}

.edit-form button[type="button"] {
    background-color: #6c757d; /* Neutral gray for secondary buttons */
}

.edit-form button[type="button"]:hover {
    background-color: #5a6268;
}

/* Cancel Button */
.edit-form #cancelEdit {
    background-color: #dc3545; /* Red for cancel */
}

.edit-form #cancelEdit:hover {
    background-color: #c82333;
}

#history {
    border-radius: 8px 0px 0px 8px;
    background: var(--main-white, #FFF);
}

/* Chat */

.historyMessageContainer {
	width: 100%;
	margin-bottom: 12px;
}

.historyMessageContainer:first-of-type {
	margin-top: 50px;
}

.historyMessageContainer.userMessageContainer {
	display: flex;
	flex-direction: row-reverse;
}

.historyMessageContainer.aiMessageContainer {
	display: flex;
}

.historyMessage.userMessage, .historyMessage.aiMessage, #suggestedQuestionsAnswerContainer {
	border-radius: 8px;
    max-width: 75%;
    width: fit-content;
	padding: 12px 18px;
}

#historyContainer .historyMessage.userMessage, #historyContainer .historyMessage.aiMessage {
	border-radius: 8px;
    width: calc(100% - 48px);
    padding: 12px 18px;
    margin: 0 80px;
}

.historyMessage.userMessage {
    background: var(--secondary-light-blue, #DDE6F1);
}

#anthropicHistory .historyMessage.userMessage {
	border-radius: 8px;
	background: #7D94AB;
	
	color: var(--main-white, #FFF);

	/* Paragraph */
	font-family: Lato;
	font-size: 16px;
	font-style: normal;
	font-weight: 400;
	line-height: 27px; /* 150% */
}

.historyMessage.aiMessage {
	border: 1px solid var(--secondary-gray, #CDCDCD);
	background: var(--main-white, #FFF);
}

.historyMessage p {
	margin-bottom: 16px;
    font-size: large;
}

.historyMessage p span {
    font-weight: bold;
    margin-right: 8px;
}