/* General body styling for all pages */
body {
    font-family: 'Roboto', sans-serif;
    background-color: #f4f4f4;
    margin: 0;
    padding: 0;
}

/* Center the login page only */
.login-container {
    height: 100vh; /* Full viewport height */
    display: flex;
    justify-content: center; /* Center horizontally */
    align-items: center; /* Center vertically */
}

/* Styling for the login form */
.login-form {
    background-color: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    width: 300px;
}

/* Login form headings */
h2 {
    text-align: center;
    margin-bottom: 20px;
}

form div {
    margin-bottom: 15px;
}

label {
    display: block;
    margin-bottom: 5px;
}

input[type="email"],
input[type="password"] {
    width: 100%;
    padding: 8px;
    box-sizing: border-box;
    margin-bottom: 20px;
}

button {
    width: 100%;
    padding: 10px;
    background-color: #4285F4;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

button:hover {
    background-color: #357ae8;
}

/* Dashboard Layout */
.dashboard {
    display: flex;
    width: 100%;
    height: 100vh;
}

/* Sidebar styling */
.sidebar {
    width: 200px;
    background-color: #333;
    color: white;
    height: 100vh;
    padding: 20px;
    position: fixed;
    top: 0;
    left: 0;
}

.sidebar ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.sidebar ul li {
    margin: 20px 0;
}

.sidebar ul li a {
    color: white;
    text-decoration: none;
}

.sidebar ul li a:hover {
    text-decoration: underline;
}


/* Adjust the main content to have enough margin on the left */
main {
    flex-grow: 1;
    padding: 20px;
    margin-left: 250px; /* This should be slightly more than the sidebar width */
    background-color: #f4f4f4; /* Ensure the content has a different background */
}

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

th {
    background-color: #333;
    color: white;
}

td {
    background-color: #f9f9f9;
}

tr:hover td {
    background-color: #f1f1f1;
}

/* Flash messages */
.flash-message {
    background-color: #f0f0f0;
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 5px;
    color: #333;
}

/* Error and success message styles */
.flash-error {
    background-color: #f8d7da;
    color: #721c24;
}

.flash-success {
    background-color: #d4edda;
    color: #155724;
}

/* Triangle next to the Users menu */
.has-submenu a {
    display: flex;
}

.triangle {
    margin-left: 10px;
    margin-right: 10px;
    font-size: 12px;
}

/* Submenu styling */
.submenu {
    list-style-type: none;
    margin-top: 10px;
}

.submenu li a {
    color: #ccc; /* Submenu items have a lighter color */
}

.submenu li a:hover {
    color: white;
}


form {
    max-width: none; /* Allow full width for form */
    margin: 0; /* Remove auto-centering margin */
    padding: 20px;
}

form div {
    margin-bottom: 20px; /* Add spacing between fields */
}

label {
    display: block;
    margin-bottom: 5px;
    font-size: 16px;
    font-weight: 500;
}

input[type="text"],
input[type="email"],
input[type="password"],
select {
    width: 100%; /* Ensure inputs take full width of the form */
    padding: 10px; /* Increase the padding to enlarge the input fields */
    font-size: 16px; /* Set a larger font size */
    border-radius: 5px;
    border: 1px solid #ccc;
    box-sizing: border-box; /* Ensure padding doesn't affect the total width */
}

button {
    width: auto;
    margin-top: 20px;
    padding: 15px;
    background-color: #4285F4;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
}

/* Custom width for the group name input field */
.auto-input {
    width: auto; /* Adjust the width as needed */
    padding: 8px; /* Adjust padding if needed */
    box-sizing: border-box; /* Include padding within the width */
}

button:hover {
    background-color: #357ae8;
}

/* Adjust width for smaller fields if necessary */
input[type="text"].short-field,
input[type="email"].short-field,
input[type="password"].short-field,
select.short-field {
    width: 80%; /* Adjust as needed */
}

.sidebar {
    background: url('{{ url_for('static', filename='images/nbt.jpg') }}') no-repeat center center;
    background-size: cover; /* Adjust the size of the background */
    color: white; /* Ensure the text color contrasts with the background */
}

/* Flash message styling */
.alert {
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid transparent;
    border-radius: 5px;
    font-size: 14px;
}

.alert-danger {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

.alert-success {
    color: #155724;
    background-color: #d4edda;
    border-color: #c3e6cb;
}

table {
    width: 100%;
    border-collapse: collapse;
}

td {
    padding: 10px;
    text-align: center;
    border: 1px solid #ccc;
}

.dashboard-stats {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

.stat-card {
    background: linear-gradient(135deg, #42a5f5, #478ed1);
    border-radius: 8px;
    padding: 20px;
    color: white;
    text-align: center;
    width: 200px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.stat-card h3 {
    font-size: 18px;
    margin-bottom: 10px;
    font-weight: bold;
}

.stat-value {
    font-size: 24px;
    font-weight: bold;
}

.stat-card:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}