/* General reset and font styling */
body, html {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    color: #333;
    background-color: #f4f4f9;
}

/* Dashboard layout */
.dashboard-container {
    display: flex;
    height: 100vh;
}
.loading-box{
    padding:20px 0;
}
/* Sidebar styling */
.sidebar {
    width: 220px;
    height: 300vh; /* Set height to three times the viewport height */
    background-color: #7e1bca;
    color: white;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

/* Group information at the top of the sidebar */
.group-info {
    margin-bottom: 20px;
    color: #ccc;
}
.info{
    color: hsla(180, 51.4%, 51.6%, 1);
    text-align : center;
}
.group-info p {
    margin: 5px 0;
    font-size: 14px;
}
.summarize-button{
    width: fit-content;
    margin-top: 0;
    margin-bottom: 14px;
    background: none;
    color: black;
    text-decoration: underline;
    font-size: 18px;
    cursor:pointer;
}
.summarize-button:hover{
    background:none;
}

/* Sidebar items */
.sidebar ul {
    list-style-type: none;
    padding: 0;
    margin-top: 20px;
}

.sidebar ul li {
    margin: 20px 0;
}

.sidebar ul li a {
    color: white;
    text-decoration: none;
    padding: 10px 15px;
    display: block;
}

.sidebar ul li a:hover {
    background-color: #9943dd;
}

/* Main content area */
.main-content {
    flex-grow: 1;
    padding: 20px;
    background-color: #f4f4f9;
}

/* Login page styling */
.login-container {
    width: 100%;
    max-width: 400px;
    padding: 30px;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    text-align: center;
    margin: auto;
}

/* Login page header */
.login-container h2 {
    color: #7e1bca;
    margin-bottom: 20px;
}

/* Error message styling */
.error {
    color: red;
    font-size: 14px;
    margin-bottom: 15px;
    text-align: center;
}

/* Form input fields */
label {
    display: block;
    margin-top: 15px;
    font-weight: bold;
    color: #555;
}

input, select {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 16px;
}

/* Form button styling */
button {
    width: 100%;
    padding: 12px;
    margin-top: 20px;
    background-color: #7e1bca;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #45a049;
}

/* Form container for other pages */
.form-container {
    width: 800px;
    margin: 50px auto;
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.form-container h2 {
    text-align: center;
    color: #333;
}

textarea {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 16px;
}

/* Success message styling */
.success {
    color: green;
    margin-top: 10px;
    padding: 10px;
    background-color: #e7f4e7;
    border: 1px solid #c3e6c3;
    border-radius: 4px;
    text-align: center;
}

/* Table styling (general, shared for dashboard and messages) */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background-color: #fff;
    border: 1px solid #ddd;
}

table th, table td {
    padding: 12px;
    border: 1px solid #ddd;
    text-align: left;
}

table th {
    background-color: #f4f4f9;
    color: #333;
    font-weight: bold;
}

table tr:hover {
    background-color: #f9f9f9;
}

/* Links inside table cells */
table td a {
    color: #7e1bca;
    text-decoration: none;
    cursor: pointer;
}

table td a:hover {
    text-decoration: underline;
}
/* Links inside table cells */
table td span {
    color: #7e1bca;
    text-decoration: none;
    cursor: pointer;
}

table td span:hover {
    text-decoration: underline;
}

/* Top bar for group information, left-aligned */
.top-bar {
    width: 100%;
    background-color: #9943dd;
    padding: 10px 20px;
    border-bottom: 0px solid #ddd;
    color: #ffffff;
    font-size: 14px;
    text-align: left;
}

.top-bar p {
    margin: 5px 0;
}

.badge {
    padding: 0.3em 0.6em;
    font-size: 0.75em;
    font-weight: bold;
    color: #fff;
    background-color: #7e1bca;
    border-radius: 10px;
    position: absolute;
}

/* Adding button styles for "Add Question" and "Back to Dashboard" links */

.button-link {
    display: inline-block;
    padding: 10px 15px;
    background-color: #7e1bca;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 22px;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-top: 15px;
}

.button-link:hover {
    background-color: #45a049;
}

/* Dashboard boxes */

.dashboard-stats {
    display: flex;
    gap: 20px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.stat-box {
    background-color: #ffffff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    width: calc(25% - 20px);
    min-width: 200px;
}

.stat-box h3 {
    color: #888;
    font-size: 18px;
    margin-bottom: 10px;
}

.stat-box p {
    font-size: 24px;
    color: #333;
    font-weight: bold;
    margin: 0;
}

.small-button {
    display: inline-block;
    padding: 5px 10px;
    font-size: 12px;
    border-radius: 5px;
    border: none;
    background-color: #007bff;
    color: white;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    min-width: 100px; /* Adjusted width to ensure they look the same */
}

.small-button:hover {
    background-color: #0056b3;
}

.gerar-laudo-button {
    display: inline-block;
    padding: 5px 10px;
    font-size: 12px;
    border-radius: 5px;
    border: none;
    background-color: #28a745; /* Green color for differentiation */
    color: white;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    min-width: 100px;
}

.gerar-laudo-button:hover {
    background-color: #218838;
}

.response-box {
    background-color: #f8f9fa;
    border-left: 5px solid #007bff;
    padding: 15px;
    margin-top: 15px;
    white-space: pre-wrap;
    word-wrap: break-word;
    font-family: "Courier New", monospace;
}

