/* General reset for consistency across browsers */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Roboto', sans-serif;
}

/* Style for the navigation bar */
nav {
    background-color: #333;
    padding: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed; /* Add this line */
    top: 0; /* Add this line */
    width: 100%; /* Add this line */
    z-index: 1000;
}

/* Style for the unordered list in the navigation bar */
nav ul {
    list-style-type: none;
    display: flex;
    width: 100%;
    justify-content: space-between;
    align-items: center;
}

/* Style for each list item in the navigation bar */
nav ul .links {
    display: flex;
    flex: 1;
}

nav ul .links li {
    margin-right: 20px;
}

/* Style for the links in the navigation bar */
nav ul .links li a {
    text-decoration: none;
    color: white;
    font-size: 16px;
    padding: 8px 12px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

/* Hover effect for the links */
nav ul .links li a:hover {
    background-color: #575757;
}

/* Active link style */
nav ul .links li a.active {
    background-color: #4CAF50;
}

/* Style for the right-aligned auth links */
.auth-links {
    display: flex;
    align-items: center;
}

.auth-links a {
    margin-left: 20px;
    text-decoration: none;
    color: white;
    font-size: 16px;
    padding: 8px 12px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.auth-links a:hover {
    background-color: #575757;
}

/* Style for the content below the navigation bar */
.content {
    padding: 20px;
}

/* Style for the login form container */
.login-container {
    max-width: 400px;
    margin: 50px auto;
    padding: 20px;
    border: 1px solid #ccc;
    border-radius: 8px;
    background-color: #f9f9f9;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Style for the login form heading */
.login-container h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #333;
}

/* Style for the form labels */
.login-container label {
    display: block;
    margin-bottom: 8px;
    color: #333;
}

/* Style for the form inputs */
.login-container input[type="text"],
.login-container input[type="password"],
.login-container input[type="email"] {
    width: 100%;
    padding: 15px 10px 10px 10px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: #fff;
}

/* Style for the login button */
.login-container button {
    width: 100%;
    padding: 10px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

/* Hover effect for the login button */
.login-container button:hover {
    background-color: #45a049;
}

/* Style for error messages */
.login-container .errorlist {
    color: red;
    margin-bottom: 20px;
}


.profile-container {
    max-width: 600px;
    margin: 50px auto;
    padding: 20px;
    border: 1px solid #ccc;
    border-radius: 8px;
    background-color: #f9f9f9;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.profile-container h2 {
    text-align: center;
    color: #333;
}

.profile-container h3 {
    margin-top: 20px;
    color: #333;
}

.profile-container form {
    margin-top: 20px;
}

.profile-container form button {
    width: 100%;
    padding: 10px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

.profile-container form button:hover {
    background-color: #45a049;
}

.profile-container p {
    margin-bottom: 10px;
    color: #333;
}


/* New lines to add to your styles.css */

/* Style for the messages */
.messages {
    margin-top: 20px;
}

.alert {
    padding: 10px;
    margin-bottom: 20px;
    border-radius: 4px;
    font-size: 14px;
}

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

.alert.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Style for the password change form */
.password-change-form {
    max-width: 400px;
    margin: 0 auto;
}

.password-change-form label {
    display: block;
    margin-bottom: 8px;
    color: #333;
}

.password-change-form input[type="password"] {
    width: 100%;
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: #fff;
}

.password-change-form .change-password-button {
    width: 100%;
    padding: 10px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

.password-change-form .change-password-button:hover {
    background-color: #45a049;
}

/* New lines to add to your styles.css */

/* Style for the users container */
.users-container {
    max-width: 800px;
    margin: 50px auto;
    padding: 20px;
    border: 1px solid #ccc;
    border-radius: 8px;
    background-color: #f9f9f9;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.users-container h2 {
    text-align: center;
    color: #333;
}

.users-container table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.users-container table th, .users-container table td {
    border: 1px solid #ccc;
    padding: 10px;
    text-align: left;
}

.users-container table th {
    background-color: #f2f2f2;
}

.users-container button {
    width: 100%;
    padding: 10px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
    margin-top: 20px;
    margin-left: 5px;
    margin-right: 5px;
}

.users-container button:hover {
    background-color: #45a049;
}

/* Style for the overlay */
.users-container {
    max-width: 800px;
    margin: 50px auto;
    padding: 20px;
    border: 1px solid #ccc;
    border-radius: 8px;
    background-color: #f9f9f9;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.users-container h2 {
    text-align: center;
    color: #333;
}

.users-container table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.users-container table th, .users-container table td {
    border: 1px solid #ccc;
    padding: 10px;
    text-align: left;
}

.users-container table th {
    background-color: #f2f2f2;
}

.users-container button {
    width: 100%;
    padding: 10px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
    margin-top: 20px;
}

/* Style for the overlay */
.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    justify-content: center;
    align-items: center;
}

.user-overlay-title {
    padding-bottom: 10px;
}

.overlay-content {
    background-color: #fff;
    padding: 40px;
    border-radius: 8px;
    width: 600px;
    max-width: 90%;
    text-align: left;
}

/* Style for the form elements */
.overlay-content form input[type="email"],
.overlay-content form select {
    width: calc(100% - 20px); /* Full width minus padding */
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
}

/* Style for the form buttons */
.overlay-content form .form-buttons {
    display: flex;
    justify-content: space-between;
}

.overlay-content form button {
    width: 48%;
    padding: 10px;
    font-size: 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.overlay-content form button[type="submit"] {
    background-color: #4CAF50;
    color: white;
}

.overlay-content form button[type="submit"]:hover {
    background-color: #45a049;
}

.overlay-content form button#close-invite-overlay  {
    background-color: #f44336;
    color: white;
}

.overlay-content form button#close-invite-overlay:hover {
    background-color: #d32f2f;
}

.overlay-content form button#close-reset-password-overlay  {
    background-color: #f44336;
    color: white;
}

.overlay-content form button#close-reset-password-overlay:hover {
    background-color: #d32f2f;
}

.overlay-content form button#close-deactivate-user-overlay  {
    background-color: #f44336;
    color: white;
}

.overlay-content form button#close-deactivate-user-overlay:hover {
    background-color: #d32f2f;
}

.users-container button#deactivate-button {
    background-color: #f44336;
    color: white;
}

.users-container button#deactivate-button:hover {
    background-color: #d32f2f;
}


.set-password-container {
    max-width: 400px;
    margin: 50px auto;
    padding: 20px;
    border: 1px solid #ccc;
    border-radius: 8px;
    background-color: #f9f9f9;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.set-password-container h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #333;
}

.set-password-container form {
    display: flex;
    flex-direction: column;
}

.set-password-container form label {
    margin-bottom: 8px;
    color: #333;
}

.set-password-container form input[type="password"] {
    width: calc(100% - 20px);
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: #fff;
}

.set-password-container form button {
    width: 100%;
    padding: 10px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

.set-password-container form button:hover {
    background-color: #45a049;
}


.channels-container {
    max-width: 800px;
    margin: 50px auto;
    padding: 20px;
    border: 1px solid #ccc;
    border-radius: 8px;
    background-color: #f9f9f9;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.channels-container h2 {
    text-align: left;
    color: #333;
    margin-bottom: 20px;
}

.channels-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.channels-table th, .channels-table td {
    border: 1px solid #ccc;
    padding: 10px;
    text-align: left;
}

.channels-table th {
    background-color: #f2f2f2;
}

/* Style for clickable rows */
.clickable-row {
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.clickable-row:hover {
    background-color: #f1f1f1;
}


.channel-container {
    max-width: 800px;
    margin: 50px auto;
    padding: 20px;
    border: 1px solid #ccc;
    border-radius: 8px;
    background-color: #2c2f33;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    color: #f1f1f1;
}

.channel-title {
    text-align: center;
    margin-bottom: 10px;
}

.chat-box {
    flex-grow: 1;
    overflow-y: auto;
    max-height: 400px;
    border: 1px solid #ccc;
    padding: 10px;
    margin-bottom: 10px;
    background-color: #23272a;
}

.message {
    margin-bottom: 10px;
    display: flex;
    flex-direction: column;
    padding: 10px;
    background-color: #2c2f33;
    border-radius: 8px;
}



.avatar {
    width: 40px;
    height: 40px;
    background-color: #e3b504;
    border-radius: 50%;
    margin-right: 10px;
}

.message-info {
    display: flex;
    flex-direction: column;
}

.username {
    color: #ffffff;
    font-weight: bold;
}

.timestamp {
    font-size: 0.8em;
    color: #888;
}

.message-text {
    margin-top: 5px;
    color: #d1d1d1;
}

/* Style for the message form */
.message-form {
    display: flex;
    align-items: center;
    background-color: #40444b;
    border-radius: 8px;
    padding: 10px;
    margin-top: 10px;
}

.message-form input[type="text"] {
    flex-grow: 1;
    padding: 10px;
    border: none;
    border-radius: 20px;
    background-color: #2c2f33;
    color: #f1f1f1;
    font-size: 16px;
    margin-right: 10px;
}

.message-form input[type="text"]::placeholder {
    color: #b9bbbe;
}

.send-button {
    background-color: #40444b;
    border: none;
    padding: 10px;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #b9bbbe;
}

.send-button:hover {
    background-color: #5865f2;
    color: #fff;
}

.send-button svg {
    fill: currentColor;
}

/* New lines to add to your styles.css */

/* Style for the custom overlay */
.custom-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.custom-overlay .overlay-content {
    background-color: #fff;
    padding: 40px;
    border-radius: 8px;
    width: 800px;
    max-width: 90%;
    max-height: 80%;
    overflow-y: auto;
    z-index: 1001;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.user-list {
    display: flex;
    flex-direction: column;
}

.user-item {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.user-item label {
    margin-left: 10px;
}

.form-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

.add-user-button, .complete-button, .cancel-button {
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    padding: 10px;
    transition: background-color 0.3s ease;
}

.add-user-button:hover, .complete-button:hover, .cancel-button:hover {
    background-color: #45a049;
}


.add-legal-name-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.add-legal-name-overlay .overlay-content {
    background-color: #fff;
    padding: 40px;
    border-radius: 8px;
    width: 600px;
    max-width: 90%;
    max-height: 80%;
    overflow-y: auto;
    z-index: 1001;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.form-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

.add-legal-name-button, .edit-amcs-button, .complete-button, .cancel-button, .edit-channel-button {
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    padding: 10px;
    transition: background-color 0.3s ease;
}

.add-legal-name-button:hover, .complete-button:hover, .cancel-button:hover .edit-channel-button:hover, .edit-amcs-button:hover {
    background-color: #45a049;
}


.load-more-button {
    display: none; /* Initially hidden */
    margin-left: 20px;
    padding: 5px 10px;
    font-size: 14px;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

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

.channel-title {
    display: flex;
    align-items: center;
}

.channel-container {
    position: relative;
}


.qr-code-section {
    text-align: center;
    margin-top: 20px;
}

.qr-code-section h3 {
    color: #333;
    margin-bottom: 10px;
}

.qr-code-box {
    display: inline-block;
    padding: 20px;
    border: 1px solid #ccc;
    border-radius: 8px;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.qr-code-box img {
    width: 200px;
    height: 200px;
}

/* Style for the OTP input */
.set-password-container form .otp-token {
    width: calc(100% - 20px);
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: #fff;
}

.otp-token {
    width: calc(100% - 20px);
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: #fff;
}

/* General styles */
body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
}

.task-board {
    max-width: 1200px;
    margin: 50px auto;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.user-filter-form {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.user-filter-form .btn {
    margin-left: 10px;
}

.create-task-btn {
    display: inline-block;
    margin-bottom: 20px;
}

.columns {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.column {
    flex: 1;
    background-color: #ffffff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.column h2 {
    font-size: 1.5em;
    margin-bottom: 20px;
    color: #333;
    text-align: center;
    border-bottom: 2px solid #4CAF50;
    padding-bottom: 10px;
}

.card {
    background-color: #f9f9f9;
    padding: 15px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.card h3 {
    margin-top: 0;
    font-size: 1.2em;
    color: #4CAF50;
}

.card p {
    margin: 10px 0;
    color: #666;
}

.card form {
    margin-top: 10px;
}

.btn {
    display: inline-block;
    padding: 10px 15px;
    font-size: 14px;
    font-weight: 500;
    color: #fff;
    background-color: #4CAF50;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.btn-primary {
    background-color: #4CAF50;
}

.btn-secondary {
    background-color: #007bff;
}

.btn:hover {
    background-color: #45a049;
}

.btn-secondary:hover {
    background-color: #0056b3;
}

.create-task-container {
    max-width: 600px;
    margin: 50px auto;
    padding: 20px;
    border: 1px solid #ccc;
    border-radius: 8px;
    background-color: #f9f9f9;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.create-task-container h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #333;
}

.create-task-container form {
    display: flex;
    flex-direction: column;
}

.create-task-container form label {
    margin-bottom: 8px;
    color: #333;
}

.create-task-container form input[type="text"],
.create-task-container form input[type="date"],
.create-task-container form textarea,
.create-task-container form select {
    width: calc(100% - 20px);
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: #fff;
}

.create-task-container form button {
    width: 100%;
    padding: 10px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

.create-task-container form button:hover {
    background-color: #45a049;
}

.create-task-container .back-btn {
    display: block;
    margin-top: 20px;
    text-align: center;
    background-color: #007bff;
    color: white;
    padding: 10px;
    border-radius: 4px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.create-task-container .back-btn:hover {
    background-color: #0056b3;
}

/* Style for the OTP Token input field */
.otp-token-password-change {
    width: 100%; /* Full width of its container */
    padding: 10px; /* Comfortable padding */
    margin: 10px 0; /* Adequate spacing above and below */
    border: 1px solid #ccc; /* Subtle, standard border */
    border-radius: 4px; /* Rounded corners for modern look */
    background-color: #fff; /* White background for the input */
    font-size: 16px; /* Readable text size */
    color: #333; /* Darker text for better readability */
}

/* Adding focus style for better user interaction */
.otp-token-password-change:focus {
    border-color: #4CAF50; /* Highlight color when focused */
    box-shadow: 0 0 8px rgba(76, 175, 80, 0.2); /* Soft glow for emphasis */
    outline: none; /* Removing default focus outline */
}


.search-form {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.search-form input[type="text"] {
    width: calc(100% - 20px);
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
}

.search-form button {
    padding: 10px 15px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-left: 10px;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

.search-form button:hover {
    background-color: #45a049;
}


.message-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 5px;
}

.message-details{
    display: flex;
    align-items: center;
    margin-bottom: 5px;
}

.action-button {
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 5px 10px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

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


.btn-info {
    background-color: #17a2b8;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 10px 15px;
    margin-bottom: 10px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

.btn-info:hover {
    background-color: #138496;
}

.cancel-button {
    background-color: #f44336;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    padding: 10px;
    transition: background-color 0.3s ease;
}

.cancel-button:hover {
    background-color: #d32f2f;
}


.actions-header {
    display: flex;
}

.task-details {
    max-width: 600px;
    margin: 100px auto 20px auto; /* Adjust top margin to avoid navbar overlap */
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    background-color: #fff;
}

.task-details .card-header {
    background-color: #f7f7f7;
    border-bottom: 1px solid #e1e1e1;
    padding: 10px 20px;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

.task-details h2 {
    margin: 0;
    font-size: 24px;
    color: #333;
}

.task-details .card-body p {
    margin-bottom: 10px;
    font-size: 16px;
    color: #555;
}

.task-details .card-body a.btn,
.task-details .card-body button.btn {
    margin-top: 10px;
}

.task-details {
    max-width: 600px;
    margin: 100px auto 20px auto;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    background-color: #fff;
}

.task-details .card-header {
    background-color: #f7f7f7;
    border-bottom: 1px solid #e1e1e1;
    padding: 10px 20px;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

.task-details h2 {
    margin: 0;
    font-size: 24px;
    color: #333;
}

.task-details .card-body p {
    margin-bottom: 10px;
    font-size: 16px;
    color: #555;
}

.task-details .card-body a.btn,
.task-details .card-body button.btn {
    margin-top: 10px;
}
