/* Basic reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Helvetica Neue', Arial, sans-serif;
}

body {
    background-color: #f0f4f8;
    color: #333;
}

/* Header styling */
.dashboard-header {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #ffffff;
    padding: 10px 20px;
    border-bottom: 1px solid #ddd;
    position: relative;
}

.logo {
    flex: 0 1 150px;
    display: flex;
    align-items: start;
}

.logo img {
    max-width: 100%;
    height: auto;
}

.dashboard-nav {
    flex: 0;
    display: flex;
    justify-content: center;
}

.user-profile {
    position: absolute;
    right: 20px;
    display: flex;
    align-items: center;
    font-size: 14px;
}

/* Navigation styling */
.nav-list {
    list-style: none;
    display: flex;
    gap: 20px;
}

.dashboard-nav a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
    padding: 8px 16px;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.dashboard-nav a:hover {
    background-color: #007BFF;
    color: #fff;
}

.user-profile img {
    height: 40px;
    width: 40px;
    border-radius: 50%;
}

/* Hamburger button */
/* .hamburger {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
} */

/* Responsive styling */
@media (max-width: 768px) {
    .dashboard-header {
        flex-wrap: wrap;
    }   
    /* .hamburger {
        display: block;
    } */    
    .dashboard-nav {
        display: none;
        flex-direction: column;
        width: 100%;
    }   
    .dashboard-nav.active {
        display: flex;
        position: absolute;
        top: 60px;
        left: 0;
        background-color: #ffffff;
        width: 100%;
        border-top: 1px solid #ddd;
        z-index: 10;
    }   
    .nav-list {
        flex-direction: column;
        width: 100%;
        text-align: center;
    }   
    .nav-list li {
        margin: 10px 0;
    }
}

#results {
    width: 100%;
    margin: 20px auto;
    padding: 10px;
    background-color: #ffffff;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow-x: auto; /* Add horizontal scroll on smaller screens */
    max-height: 400px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: center;
}

table {
    width: 100%; /* Allow table to be wide enough for content */
    max-width: 100%; /* Prevent table from exceeding the container */
    border-collapse: collapse;
    margin-top: 20px;
}

th, td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}

.specific-table th,
.specific-table td {
border: 1px solid #ddd;
padding: 8px;
text-align: left;
}

th {
    background-color: #f2f2f2;
}

.results-container th,
.results-container td {
    white-space: nowrap;
}

.dashboard-main {
    padding: 20px;
}

.dashboard-overview {
    margin-bottom: 20px;
    text-align: center;
}

.dashboard-modules {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    padding: 20px;
}

.module-card {
    background-color: #ffffff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    text-decoration: none;
    color: #333;
    transition: transform 0.2s, box-shadow 0.2s;
    flex: 1 1 200px;
    margin: 10px;
    word-wrap: break-word;
}

.module-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.module-card h2 {
    margin-bottom: 10px;
    font-size: 1.2em;
}

.module-card p {
    font-size: 0.9em;
    margin-bottom: 10px;
}

.dashboard-footer {
    text-align: center;
    padding: 10px;
    background-color: #ffffff;
    border-top: 1px solid #ddd;
    position: fixed;
    width: 100%;
    bottom: 0;
}

.form-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 20px 0; /* Adds some vertical padding */
}

.styled-form {
    background: #ffffff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    max-width: 400px;
    width: 100%;
    text-align: center; /* Centers text and content within the form */
}

form input,
form textarea,
form select {
    width: calc(100% - 20px); /* Consistent width for all form elements */
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    display: block;
    box-sizing: border-box;
}


input[type="text"] {
    width: calc(100% - 20px);
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    display: block;
}

.radio-container {
    display: flex;
    flex-direction: column; /* Aligns each radio button group in its own row */
    align-items: center; /* Centers the container itself */
    gap: 15px; /* Adds space between each radio button row */
    margin: 15px 0; /* Adds margin around the container */
    width: 100%; /* Makes the container take full width */
}

.radio-group {
    margin: 10px 0; /* Margin around each radio option */
}

.radio-option {
    display: flex;
    align-items: center; /* Aligns items vertically */
    gap: 8px; /* Space between the radio button and text */
    padding: 10px; /* Adds padding around the radio button and text */
    border: 1px solid #007bff; /* Border to match button style */
    border-radius: 4px; /* Rounded corners */
    cursor: pointer; /* Changes cursor to pointer to indicate it's clickable */
    transition: background-color 0.3s, border-color 0.3s; /* Smooth transition for hover effect */
}

.radio-option:hover {
    background-color: #f0f4f8; /* Background color on hover */
    border-color: #0056b3; /* Darker border on hover */
}

.radio-option input[type="radio"] {
    margin-right: 10px; /* Adds space between the radio button and the text */
}


.radio-group:hover {
    background-color: #f0f4f8; /* Light background color on hover */
    border-color: #0056b3; /* Darker border color on hover */
}

input[type="radio"] {
    appearance: none; /* Removes default styling */
    width: 20px;
    height: 20px;
    border: 2px solid #007bff; /* Adds a border around the radio button */
    border-radius: 50%; /* Makes the button circular */
    outline: none; /* Removes default focus outline */
    margin-right: 10px; /* Adds space between the button and the label */
    cursor: pointer; /* Changes cursor to pointer on hover */
    position: relative; /* Enables pseudo-element positioning */
}

input[type="radio"]:checked::before {
    content: '';
    display: block;
    width: 10px;
    height: 10px;
    background-color: #007bff; /* Inner circle color when checked */
    border-radius: 50%;
    position: absolute;
    top: 4px; /* Centers inner circle */
    left: 4px; /* Centers inner circle */
}

input[type="radio"]:hover {
    border-color: #0056b3; /* Changes border color on hover */
}


button {
    width: 100%;
    padding: 12px;
    background-color: #007bff;
    border: none;
    color: white;
    font-size: 16px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-top: 10px;
}

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

#backButton {
    background-color: #6c757d;
}

#backButton:hover {
    background-color: #5a6268;
}
