/* Existing styles */
* body {
  margin: 0!important;
}
body {
  font-family: 'Source Sans Pro', Arial, sans-serif;
  color: #000;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.header-container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
}
header h1 {
  margin: 0;
  font-family: 'Source Sans Pro', Arial, sans-serif;
}

nav a {
  margin-left: 10px;
  text-decoration: none;
  color: #333;
  font-weight: bold;
  font-family: 'Source Sans Pro', Arial, sans-serif;
}

.search-bar {
  display: flex;
  align-items: center;
  background-color: #fff;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 26px;
  padding: 8px 20px 9px 20px;
  margin-bottom: 15px;
  width: 100%;
  max-width: 600px;
  margin: 0 auto 15px auto;
  font-weight: 500;
  font-size: 14px;
  line-height: 164%;
  opacity: 0.6;
}

.search-bar input {
  border: none;
  outline: none;
  font-size: 16px;
  margin-right: 10px;
  font-family: 'Source Sans Pro', Arial, sans-serif;
  flex: 1; /* Allow input to take available space */
}

.search-bar i {
  font-size: 16px;
  color: #333;
}

/* Minimalistic header styles */
header {
  background-color: #fff; /* White background for minimalistic design */
  padding: 15px 20px; /* Some padding for spacing */
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-container {
  display: flex;
  align-items: center;
}

.logo {
  height: 23px; /* Adjust logo height as needed */
  margin-right: 20px;
}
header a { 
  text-decoration: none;
}
header a h1 {
  margin: 0;
  color: #1d1e1e; /* Dark color for contrast */
  margin-left: 20px;
  font-family: 'Source Sans Pro', Arial, sans-serif;
  font-size: 16px;
  font-weight: 600; /* Slightly bolder font */
  text-decoration: none; /* Remove underline */
}
.logo-container span {
  color: #000;
  opacity: 0.1;
  font-size: 23px;
}
.header-actions {
  display: flex;
  align-items: center;
}

.header-actions a {
  color: #000; /* Color for links */
  font-family: 'Source Sans Pro', Arial, sans-serif;
  text-decoration: none; /* Remove underline */
  font-size: 16px;
  transition: color 0.3s ease;
}

.header-actions a:hover {
  color: #96E269; /* Darker blue on hover */
}

.profile-image {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid #ddd; /* Subtle border */
  margin-left: 10px; /* Some space between log out link and profile image */
}


main.centered {
  display: flex;
  flex-direction: column;
  align-items: center;
}

section.content {
  width: 100%;
  max-width: 1230px;
  margin-bottom: 20px;
}

.signature-preview {
  background-color: #F4F9F8;
  padding: 20px;
  border-radius: 20px;
  background-image: url('../assets/bg-image-home.png');
  background-size: cover;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

#signature-editor-container {
  width: 100%;
  max-width: 600px;
  margin-bottom: 20px;
  background-color: #fff;
  border-radius: 0px 0px 10px 10px;
}

#signature-editor {
  display: none; /* Since Trumbowyg initializes on a textarea */
}


#update-signature {
  background: #96E269;
  color: #000;
  text-decoration: none;
  display: inline-block;
  cursor: pointer;
  border: none;
  font-family: 'Source Sans Pro', Arial, sans-serif;
  border-radius: 100px;
  padding: 10px 25px;
  font-weight: 600;
  font-size: 16px;
}

/* #update-signature:hover {
  background: linear-gradient(90deg, #35cbcc, #fee85c, #96e26a);
} */

.actions {
  display: flex;
  gap: 10px;
}

.actions button {
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-family: 'Source Sans Pro', Arial, sans-serif;
}

.actions button:first-child {
  background-color: #28a745;
  color: white;
}

.actions button:last-child {
  background-color: #6c757d;
  color: white;
}

.user-list-section {
  width: 100%;
  max-width: 1230px;
  padding: 20px;
  border-radius: 5px;
}

.user-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
  /* height: 400px;
  overflow-y: auto; */
}

.user-list-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 10px;
}

.user-list-table th,
.user-list-table td {
  padding: 10px 10px 10px 20px;
  white-space: nowrap;
}
td:first-child {
  border-top-left-radius: 20px; 
  border-bottom-left-radius: 20px;
}
td:last-child {
  border-bottom-right-radius: 20px; 
  border-top-right-radius: 20px; 
}
.user-list-table th {
  font-weight: 600;
  font-size: 14px;
  text-align: left;
  text-transform: capitalize;
}
.user-list-table tr {
  border-radius: 20px !important;
  background-color: #f4f9f8;
}
.user-list-table tr:first-child {
  background-color: transparent;
}

.user-list-table td {
  font-weight: 400;
  font-size: 14px;
}

.user-card {
  display: flex;
  align-items: center;
  background-color: #f4f9f8;
  border-radius: 20px;
  padding: 10px 20px;
  cursor: pointer;
  font-family: 'Source Sans Pro', Arial, sans-serif;
}

.user-card.selected {
  border: 2px solid #007bff;
  background-color: #e0e0ff;
}

.user-icon {
  font-size: 36px;
  color: #d0e5e1;
  border-radius: 50%;
}

.user-details {
  display: flex;
  align-items: center;
  width: 100%;
}

.user-details p {
  margin: 0;
  padding: 0 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-family: 'Source Sans Pro', Arial, sans-serif;
}

.user-details .name,
.user-details .email {
  flex: 1;
  font-weight: 600;
  font-size: 14px;
  line-height: 120%;
}

.user-details .status {
  display: flex;
  align-items: center;
  font-size: 14px;
  font-weight: 400;
  color: #555;
}

.status-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-left: 5px;
  display: inline-block;
}

.status-indicator.active {
  background-color: #96E269;
}

.status-indicator.suspended {
  background-color: #000000;
}

footer {
  text-align: center;
  margin-top: 20px;
  font-family: 'Source Sans Pro', Arial, sans-serif;
}

.pagination {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  margin-top: 20px;
}

.pagination button {
  font-weight: 600;
  font-size: 16px;
  background-color: #96E269;
  color: #000000;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  flex-grow: 1;
  font-family: 'Source Sans Pro', Arial, sans-serif;
}

.pagination button:disabled {
  background-color: #f4f9f8;
  cursor: not-allowed;
  font-family: 'Source Sans Pro', Arial, sans-serif;
}

/* Add styles for the button group */
.user-list-header {
  display: flex;
  align-items: center;
  justify-content: center; /* Center the button group */
  margin-bottom: 10px;
}

.button-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

#upload-config-form {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn {
  background-color: #4285f4;
  color: white;
  font-weight: 600;
  font-size: 16px;
  padding: 10px 20px;
  text-decoration: none;
  border-radius: 100px;
  display: inline-block;
  transition: background-color 0.3s;
  cursor: pointer;
  border: none;
  font-family: 'Source Sans Pro', Arial, sans-serif;
}

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

#upload-config-form input[type="file"] {
  display: none;
}

.upload-btn {
  background-color: #000;
  position: relative;
}

/* .upload-btn:hover {
  background-color: #218838;
} */

.reset-btn {
  background-color: transparent;
  border: 1px solid rgba(0, 0, 0, 0.1);
  color: #000;
}

/* .reset-btn:hover {
  background-color: #e84141;
} */

/* Notification popup styles */
.notification {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #333;
  color: #fff;
  padding: 15px;
  border-radius: 5px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  opacity: 0;
  transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out; /* Smoother animation */
}

.notification.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.notification.hidden {
  opacity: 0;
  transform: translateX(-50%) translateY(-20px); /* Slide up when hidden */
}

#notification-close {
  background-color: #ff4757;
  color: white;
  border: none;
  padding: 5px 10px;
  border-radius: 5px;
  cursor: pointer;
}

#notification-close:hover {
  background-color: #e84141;
}

/* Loading notification styles */
#loading-notification {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #333;
  color: #fff;
  padding: 15px;
  border-radius: 5px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  opacity: 0;
  transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out; /* Smoother animation */
  max-height: 70vh;
  overflow-y: auto;
}

#loading-notification.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

#loading-notification.hidden {
  opacity: 0;
  transform: translateX(-50%) translateY(-20px); /* Slide up when hidden */
}

#loading-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

/* Loading Spinner Styles */
.loading-spinner {
  border: 4px solid #f3f3f3; /* Light grey */
  border-top: 4px solid #3498db; /* Blue */
  border-radius: 50%;
  width: 20px;
  height: 20px;
  animation: spin 2s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Success Indicator Styles */
.success-indicator {
  display: none;
  position: absolute;
  left: -8px;
  top: 8px;
  color: #000;
  background-color: #96E269;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  font-size: 12px;
  vertical-align: middle;
}
.success-indicator i {
  margin-top: 7px;
}

.success-indicator.visible {
  display: inline-block;
}

/* Hidden class */
.hidden {
  display: none;
}

/* Override default Trumbowyg toolbar styling */
.trumbowyg-box {
  border: 1px solid #ccc;
  border-radius: 0px 0px 10px 10px;
  font-family: 'Source Sans Pro', Arial, sans-serif;
}

.trumbowyg-button-pane {
  background-color: #f4f9f8; /* Match your app's signature preview background */
  border-bottom: 1px solid #ccc;
  padding: 8px 10px;
}

.trumbowyg-button {
  background-color: #fff;
  color: #333;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  margin-right: 5px;
  transition: all 0.3s ease;
}

.trumbowyg-button:hover {
  background-color: #96e269; /* Use your button hover color */
  color: #000;
}

.trumbowyg-editor {
  min-height: 250px;
  font-family: 'Source Sans Pro', Arial, sans-serif;
  font-size: 14px;
  padding: 10px;
  background-color: #fff;
  border: none;
  border-radius: 5px;
  color: #333;
}

/* Adjust button group alignment and spacing */
.trumbowyg-button-group {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

/* Add custom styling for the dropdown menu */
.trumbowyg-dropdown {
  background-color: #fff;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-family: 'Source Sans Pro', Arial, sans-serif;
}

.trumbowyg-dropdown button {
  font-size: 14px;
  padding: 5px 10px;
  color: #333;
}

.trumbowyg-dropdown button:hover {
  background-color: #96e269;
  color: #000;
}
