/* Basic reset */
html, body {
    height: 100%;
    width: 100%;
    margin: 0;
    padding: 2;
    overflow-x: hidden; /* Prevent horizontal scrolling */
    font-family: 'Arial', sans-serif; /* Sets a clean, modern typeface */
    background: #1c1c1c; /* Light grey background for a subtle look */
    justify-content: center;
    align-items: center;        /* Center-align items horizontally */

}

/* Center content and restrict its width for readability */
main {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    text-align: center;
}

h1 {
    color: #e8e8e8; /* Dark grey for text */
    margin: 2px 0;
    text-align: center;
    font-size: 30px;
}

h2 {
    color: #e8e8e8; /* Dark grey for text */
    margin: 10px 0;
    text-align: center;
    font-size: 12px; /* Increased font size for better visibility */

}

p {
    color: #808080; /* Grey text for less emphasis */
    text-align: center;
}

/* Button Styles */
.button {
    padding: 5px 5px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin: 5px;
    transition: background-color 0.3s;
    font-size: 16px; /* Increased font size for better visibility */
}

.button-green {
    background-color: #228B22; /* Forest green background */
    color: white;
    font-size: 16px; /* Increased font size for better visibility */

}

.button-gray {
    background-color: #808080; /* Gray background */
    color: white; /* White text for contrast */
    font-size: 16px; /* Increased font size for better visibility */
}

.button:hover {
    background-color: #1e7a1e; /* Slightly darker green on hover */
}

.button:disabled {
    background-color: #cccccc; /* Light grey to indicate disabled */
    color: #666666; /* Darker grey text to maintain contrast but show it's disabled */
    cursor: not-allowed; /* Cursor shows the element is not interactable */
    opacity: 0.5; /* Partial transparency to visually show the button is disabled */
}





#scoreTypeSelect {
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin: 5px;
    transition: background-color 0.3s;
    font-size: 16px;
    background-color: #228B22;
    color: white !important;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    padding: 5px 25px 5px 5px;
    background-image: url("data:image/svg+xml;utf8,<svg fill='white' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>");
    background-position: right 5px center;
    background-repeat: no-repeat;
}

#scoreTypeSelect:hover {
    background-color: #1e7a1e;
}

#scoreTypeSelect:focus {
    background-color: #228B22;
    color: white !important;
}

#scoreTypeSelect option {
    background-color: white;
    color: black;
}






#searchInput {
    padding: 5px 5px;
    border: 2px solid #228B22;
    border-radius: 5px;
    font-size: 16px;
}

.search-input {
    padding: 5px 5px;
    border: 2px solid #228B22;
    border-radius: 5px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.search-input:focus {
    outline: none;
    border-color: #1e7a1e;
    box-shadow: 0 0 0 2px rgba(34, 139, 34, 0.1);
}

/* Link Styles */
a {
    color: #228B22; /* Forest green links for consistency */
    text-decoration: none;
    font-weight: bold;
    padding: 5px;
}

a:hover {
    text-decoration: underline;
}

/* Form Styles */
form {
    margin-top: 20px;
}

/* Input and Textarea Styles */
input[type="text"], input[type="date"], input[type="email"], input[type="password"], textarea {
    width: 80%;
    max-width: 400px;
    padding: 5px;
    border: 1px solid #ccc; /* Subtle border */
    border-radius: 5px;
    background-color: #fff; /* White background to maintain cleanliness */
    color: #333; /* Dark grey text color for readability */
    font-size: 16px;
    margin-bottom: 2px;
}

input[type="submit"] {
    background-color: #228B22; /* Forest green background */
    color: white; /* White text for contrast */
    font-size: 16px;
    width: auto; /* Auto width based on content */
}

input[type="text"]:focus, input[type="date"]:focus, textarea:focus {
    border-color: #228B22; /* Highlight focus with theme green color */
    outline: none; /* Remove default focus outline to use custom border color */
}

/* Table Styles */
table {
    width: 90%; /* Responsive width, centered in view */
    margin: 0px; /* Center table horizontally and add spacing */
    border-collapse: collapse; /* Collapse borders */
}

th, td {
    border: 1px solid #ccc; /* Light grey border for clarity */
    padding: 4px; /* Padding for table cells */
    text-align: left; /* Align text to the left */
    color: #e8e8e8; /* Light text color for readability */
}

th {
    background-color: #333; /* Dark background for headers */
}

tr:nth-child(even) {
    background-color: #2c2c2c; /* Zebra striping for rows */
}

tr:hover {
    background-color: #3e3e3e; /* Darker grey background on row hover */
}

label {
    display: block;
    margin-bottom: 2px;
    margin-top: 2px;
    color: #e8e8e8; /* Dark grey for text */

}

/* Centered Box Styles */
.centered-box {
    display: flex;
    flex-direction: column; /* Align children horizontally */
    align-items: center; /* Center children vertically in the container */
    justify-content: center; /* Center children horizontally in the container */
    padding: 2px;
}


body {
    font-family: system-ui, "Noto Sans CJK SC", "Source Han Sans CN", sans-serif;
    width: 90%;
    max-width: 800px;
    margin: 0 auto;
    padding: 1rem;
    background-color: #1a1a1a;
    color: #e0e0e0;
}
h1 { color: #ffffff; text-align: center; margin-bottom: 1.5rem; }
.container { display: flex; gap: 1rem; }
.chat-section { flex: 1; }
#chat {
    border: 1px solid #404040;
    height: 400px;
    overflow-y: auto;
    padding: 1rem;
    margin-bottom: 1rem;
    background: #2a2a2a;
    border-radius: 8px;
}
.user {
    text-align: right;
    color: #66b3ff;
    margin: 0.5rem 0;
    background: #1e3a5f;
    padding: 0.5rem;
    border-radius: 8px 8px 4px 8px;
    max-width: 80%;
    margin-left: auto;
}
.ai {
    text-align: left;
    color: #66ff66;
    margin: 0.5rem 0;
    background: #1e4d1e;
    padding: 0.5rem;
    border-radius: 8px 8px 8px 4px;
    max-width: 80%;
}
.typing { color: #999; font-style: italic; }
#input {
    width: 60%;
    padding: 0.5rem;
    background-color: #2a2a2a;
    border: 1px solid #404040;
    color: #e0e0e0;
    border-radius: 4px;
}
#input:focus { outline: none; border-color: #66b3ff; }
button {
    padding: 0.5rem 1rem;
    margin-left: 0.5rem;
    background-color: #404040;
    color: #e0e0e0;
    border: 1px solid #555;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s;
}
button:hover { background-color: #505050; }
button:active { background-color: #353535; }

.user, .ai { cursor: pointer; }

#ttsProfileBar {
    margin-top: 6px;
    padding: 4px 6px;
    background: transparent;
    border: none;
    font-size: 0.8rem;
    color: #777;
    text-align: center;
    opacity: 0.7;
}
#ttsProfileBar code { color: #aaa; background: none; padding: 0; border-radius: 0; }



