/* Import Google Font */
@import url('https://fonts.googleapis.com/css2?family=Nunito+Sans:wght@300;400;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Monoton&display=swap');

form {
    margin-block-end: 0;
}

.error-message {
    color: red;
    font-size: 14px;
    margin-bottom: 20px;
    text-align: center;
}

/* Wrapper to contain the logo text and center box */
.logo-center-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
    padding: 20px;
    box-sizing: border-box;
    background-color: #E3FAFF;

}

/* Style for the logotext above the center-box */
.logo-text {
    font-family: 'Monoton', cursive;
    font-size: 64px;
    color: #0D78AA;
    text-align: center;
    margin-bottom: 20px;
}

/* Center the form box in the middle of the page */
.center-box {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 20px;
    width: 100%;
}

/* Style the form box */
.form-container {
    background-color: white;
    padding: 20px;
    border-radius: 4px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    max-width: 500px;
    width: 100%;
    box-sizing: border-box;
    text-align: center;
}

/* Global Styles */
body {
    font-family: 'Nunito Sans', sans-serif;
    background-color: #EFF2EC;
    color: #333;
    margin: 0;
    padding: 20px;
}

/* Ensure the body and html take up the full height of the viewport */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    overflow-y: auto;
}

h1, h2, h3, h4, h5, h6 {
    color: #142D31;
}

/* Table Styling */
table {
    width: 100%;
    border-collapse: separate; /* Use "separate" to allow rounded corners */
    border-spacing: 0 4px; /* Add vertical space between rows */
    margin-bottom: 20px;
}

th {
    padding: 4px 8px;
    font-size: 16px;
    text-align: left;
}

td {
    padding: 12px 8px;
    font-size: 14px;
    text-align: left;
}

thead {
    /* background-color: orange; */
}

th {
    color: #333;
    font-weight: bold;
    border-bottom: 2px solid #142D31;
}

td {
    background-color: #fff;
    color: #333;
}

tbody tr {
    background-color: white;
    border-radius: 2px; /* Add rounded corners */
    /*box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1); /* Optional: add subtle shadow for depth */
}

tbody tr td:first-child {
    border-top-left-radius: 4px;
    border-bottom-left-radius: 4px;
}

tbody tr td:last-child {
    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px;
}

tbody tr {
    border: none;
    border-bottom: 1px solid #ddd; /* Optional: subtle separator line */
    margin-bottom: 10px; /* Increase the margin between rows */
}

table,
th, td {
    border: 0; /* Remove borders */
}

/* Table Rows */
tr {
    border-bottom: 1px solid #ddd;
}

/* Status Flags inside Table Rows */
.table .status-flag {
    padding: 2px 6px;
    font-size: 13px;
    border-radius: 2px;
}


td:nth-child(2) {
    max-width: 1000px; /* Restrict width of the "message" column */
    word-wrap: break-word;
}

/* Style all input fields, including those on login, reset password, new password, and other forms */
input,
textarea,
select,
button,
input[type="submit"] {
    font-family: 'Nunito Sans', Arial, sans-serif;
    font-size: 16px;
    color: #333;
    width: 100%;
    padding: 12px;
    margin: 8px 0;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

/* Style for the placeholder text within inputs */
input::placeholder,
textarea::placeholder {
    font-family: 'Nunito Sans', Arial, sans-serif;
    font-size: 14px;
    color: #aaa;
}

/* Remove placeholder color on focus */
input:focus::placeholder,
textarea:focus::placeholder {
    color: transparent;
}

/* Enhance focus styles for inputs */
input:focus,
textarea:focus,
select:focus {
    border-color: #0D78AA;
    box-shadow: 0 0 5px rgba(20, 45, 49, 0.3);
    outline: 1px solid #0D78AA;
    outline-offset: 0px;
}

/* Style buttons */
button,
input[type="submit"] {
    background-color: #0D78AA;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button:hover,
input[type="submit"]:hover {
    opacity: 0.8;
}

/* Style links */
a {
    color: #142D32;
    text-decoration: underline;
    font-weight: 600;
}

a:hover {
    color: #0F2326;
}

/* Style for the navigation bar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #0D78AA;
    padding: 15px 20px;
    position: relative;
}

.logo-text-nav a {
    font-family: 'Monoton', cursive;
    font-size: 44px;
    color: #C9FAFE;
    text-decoration: none;
    font-weight: 300;
}

.logo-text-nav a:hover {
    color: white;
}

/* Menu links on the right */
.menu-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 20px;
}

.menu-links li {
    display: inline;
}

.menu-links a {
    color: white;
    text-decoration: none;
    font-size: 16px;
    padding: 10px 15px;
    transition: color 0.1s ease, border-bottom 0.1s ease;
}

.menu-links a:hover {
    color: #C9FAFE;
    border-bottom: 1px solid #C9FAFE;
}

.menu-links a.active {
    color: #C9FAFE;
    font-weight: bold;
}

/* Logo styling */
.logo {
    max-width: 150px;
    margin-bottom: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* Center the Add Pool button */
.center-button {
    text-align: center;
    margin-top: 20px;
}

.button {
    display: inline-block;
    background-color: #142D31;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
}

.button:hover {
    background-color: #0F2326;
}

/* Style for the content wrapper */
.content-wrapper {
    padding-left: 20px;
    padding-right: 20px;
    margin-top: 20px;
    box-sizing: border-box;
}

/* Center the "Please vote now!" message */
.vote-message {
    text-align: center;
    font-size: 26px;
    font-weight: bold;
    margin-top: 20px;
    color: #0D78AA !important;
}

/* Style for the time remaining message */
.time-remaining {
    text-align: center;
    font-size: 16px;
    color: #888;
    margin-bottom: 30px;
}

/* Style for the proposal box */
.proposal-box {
    background-color: white;
    padding: 20px;
    border-radius: 4px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
}

/* Style for the proposal info */
.proposal-info {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
}

/* Style for the proposal title */
.proposal-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 15px;
}

/* Style for the proposal description */
.proposal-description {
    font-size: 16px;
    color: #333;
}

/* Style for voting buttons */
.voting-buttons {
    text-align: center;
    margin: 20px 0;
}

.vote-btn {
    display: inline-block;
    padding: 12px 20px;
    margin: 0 10px;
    text-decoration: none;
    color: white;
    font-size: 16px;
    border-radius: 4px;
    cursor: pointer;
}

.vote-yes {
    background-color: green;
}

.vote-no {
    background-color: red;
}

.vote-btn:hover {
    opacity: 0.8;
}

.voting-info {
    margin-top: 20px;
    text-align: center;
}

/* Style for the voting results */
.voting-results {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 10px;
}

.voting-results p {
    margin: 0;
    font-size: 16px;
    color: #333;
}

.voted-yes {
    color: green;
    font-weight: bold;
}

.voted-no {
    color: red;
    font-weight: bold;
}

/* Style for invalid participation message */
.invalid-participation {
    color: #FF4500;
    font-style: italic;
    margin-top: 10px;
}

/* Flexbox container for list headers */
.list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.list-header h2 {
    font-size: 24px;
    color: #142D31;
    text-align: center;
}

/* Styling for the Create Button */
.btn-create {
    background-color: #EFF2EC;
    color: #0D78AA;
    border: 2px solid #0D78AA;
    padding: 8px 12px;
    font-size: 14px;
    border-radius: 2px;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.quick-actions .btn-create {
    background-color: white;
    width: 200px;
    text-align: center;
}

.btn-create:hover {
    background-color: #0D78AA;
    color: white;
}

.btn-vote {
  padding: 5px 10px;
  border-radius: 4px;
  background-color: orange;
  display: inline-block;
  min-width: 66px;
  text-align: center;
  font-weight: 600;
  color: white;
  border: 2px solid orange;
}

/* Status flag styles */
.status-flag {
    padding: 5px 10px;
    border-radius: 4px;
    background-color: white;
    display: inline-block;
    min-width: 66px;
    text-align: center;
}

.status-yes {
    color: green;
    border: 1px solid green;
}

.status-on {
    color: green;
}

.status-link-green {
  color: green;
  padding: 0px;
}

.status-off {
    color: grey;
}

.status-link {
    color: grey;
    padding: 0px;
}

.status-link-red {
  color: red;
  padding: 0px;
}

.status-off-red {
  color: red;
}

.status-no {
    color: red;
    border: 1px solid red;
}

.status-pending {
    color: orange;
    border: 1px solid orange;
}

.status-active {
    color: green;
    border: 1px solid green;
}

.status-inactive {
    color: red;
    border: 1px solid red;
}

.status-archived, .status-novote {
    color: grey;
    border: 1px solid grey;
}

.status-sent {
    color: green;
    border: 1px solid green;
}

.status-unsent {
    color: orange;
    border: 1px solid orange;
}

.status-notsent {
    color: red;
    border: 1px solid red;
}

.status-error {
    color: #e74c3c;
    border: 1px solid #e74c3c;
}

.status-system {
    color: #95a5a6;
    border: 1px solid #95a5a6;
}

.status-warning {
    color: #ffb122;
    border: 1px solid #ffb122;
}

/* Centering title adjustments */
.centered-title {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    margin-bottom: 20px;
}

.centered-title h2 {
    margin: 20px 0px;
}

/* Form container for logged-in forms with max-width */
.form-container-logged-in {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 800px;
    box-sizing: border-box;
    text-align: left;
    margin: 0 auto;
    margin-bottom: 20px;
}

/* Adjust form elements inside the new form container */
.form-container-logged-in input, .form-container-logged-in textarea, .form-container-logged-in select {
    font-family: 'Nunito Sans', sans-serif;
    font-size: 14px;
    width: 100%;
    padding: 12px;
    margin: 0px 0;
    box-sizing: border-box;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.form-container-logged-in button, .form-container-logged-in input[type="submit"] {
    font-family: 'Nunito Sans', sans-serif;
    font-size: 16px;
    padding: 10px;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    background-color: #0D78AA;
    color: white;
    border: 2px solid #0D78AA;
}

.form-container-logged-in button:hover, .form-container-logged-in input[type="submit"]:hover {
    background-color: white;
    color: #0D78AA;
}

.form-container-logged-in textarea {
    resize: vertical;
    min-height: 100px;
}

/* Dashboard Grid styling */
.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 20px;
    margin-top: 20px;
}

/* Dashboard block styling */
.dashboard-block {
    background-color: white;
    padding: 20px;
    border-radius: 4px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    height: auto;
    margin: 0;
}

/* Block title styling */
.block-title {
    text-align: center;
    margin-bottom: 10px;
    font-size: 18px;
    color: #142D31;
}

/* Quick Actions Buttons Container */
.quick-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

/* Dashboard Tables styling */
.dashboard-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    border-spacing: 0;
}

.dashboard-table th {
    background-color: white;
    color: black;
    padding: 8px;
    text-align: left;
    border-bottom: 2px solid #ddd !important;
}

.dashboard-table td {
    padding: 8px;
    text-align: left;
    border-bottom: 1px solid #ddd !important;
}

.dashboard-table,
.dashboard-table th,
.dashboard-table td {
    border: 0;
}

/* Smaller status flags for the dashboard */
.dashboard-table .status-flag {
    padding: 2px 6px;
    font-size: 12px;
    border-radius: 4px;
}

.filter-row {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.filter-option {
    padding: 5px 10px;
    background-color: #d3d3d3;
    border-radius: 4px;
    cursor: pointer;
}

.filter-option a {
    text-decoration: none;
    color: #333;
}

.filter-option.active {
    background-color: #a9a9a9;
}

.voting-notification {
    background-color: red;
    color: white;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 10px;
    vertical-align: top;
    margin-left: 5px;
    position: relative;
    top: -3px; /* Adjust this value to move the bubble higher */
    left: -6px;
}

/* Style for the code input wrapper (container for all inputs) */
.code-input-wrapper {
    display: flex;
    justify-content: center;     /* Center the inputs horizontally */
    gap: 10px;                   /* Spacing between each input field */
    margin-bottom: 20px;         /* Spacing below the inputs */
}

/* Style for each input field */
.code-input {
    width: 50px;                 /* Fixed width for each input */
    height: 50px;                /* Fixed height for uniform design */
    font-size: 24px;             /* Large font size for better readability */
    text-align: center;          /* Center the input text */
    border: 2px solid #ccc;      /* Light border around inputs */
    border-radius: 5px;          /* Rounded corners */
    outline: none;               /* Remove default focus outline */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Slight shadow for depth */
}

/* Placeholder styling for code input (if used) */
.code-input::placeholder {
    text-align: center;
}

/* Button styling */
.verify-btn {
    font-size: 18px;             /* Font size for button */
    padding: 12px 60px;          /* Button padding */
    background-color: #0D78AA;   /* Button background color */
    color: white;                /* Button text color */
    border: none;                /* No border */
    border-radius: 4px;          /* Rounded button corners */
    cursor: pointer;             /* Pointer cursor on hover */
    width: auto;                 /* Dynamic width based on text */
    transition: background-color 0.3s ease; /* Smooth hover transition */
    display: block;
    margin: 0 auto;              /* Center the button */
    border: 2px solid #0D78AA;
}

/* Button hover effect */
.verify-btn:hover {
    background-color: #EFF2EC;   /* Darker blue on hover */
    color: #0D78AA;
}

.error-message {
    color: red;
    font-size: 14px;
    text-align: center;
    display: none; /* Hidden by default, shown when there's an error */
    margin-top: 10px;
}

/* Disabled button state */
.verify-btn.disabled {
    background-color: #cccccc;
    cursor: not-allowed;
    pointer-events: none;
}

/* Loading button state */
.verify-btn.loading {
    background-color: #cccccc;
    cursor: not-allowed;
    pointer-events: none;
}

.no-data-message {
    color: grey;
    font-style: italic;
    text-align: center;
}
