/* Responsive Styling */

/* Add these mobile-specific styles to your existing styles.css */

/* Mobile Login/Signup Optimizations */
@media (max-width: 768px) {
  .signup-full {
    max-width: 95%;
    margin: 20px auto;
    padding: 15px;
    box-shadow: none;
    border-radius: 0;
  }

  .form-field {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
  }

  .form-field label {
    flex: none;
    text-align: left;
    font-size: 0.9rem;
    margin-bottom: 4px;
  }

  .input-wrapper {
    width: 100%;
  }

  .input-wrapper input {
    width: 100%;
    padding: 12px 16px;
    font-size: 16px; /* Prevents zoom on iOS */
    border-radius: 8px;
    box-sizing: border-box;
  }

  /* Hide tooltips on mobile to save space */
  .tooltip {
    display: none !important;
  }

  /* Error messages adjustment */
  .error-messages {
    margin-left: 0;
    margin-top: 8px;
  }

  .error {
    font-size: 14px;
  }

  /* Button container improvements */
  .login-signup-container {
    flex-direction: column-reverse;
    gap: 15px;
    margin-top: 20px;
    align-items: stretch;
  }

  .login-button {
    width: 100%;
    padding: 14px 24px;
    font-size: 16px;
    border-radius: 8px;
    margin: 0;
  }

  .login-page-signup {
    text-align: center;
    padding: 12px;
    font-size: 16px;
  }

  /* Form group spacing */
  .form-group {
    margin-bottom: 20px;
  }

  /* Focus improvements for mobile */
  .input-wrapper input:focus {
    border-color: #000000;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
    transform: scale(1.02);
    transition: all 0.2s ease;
  }
}

/* Extra small mobile devices */
@media (max-width: 480px) {
  .signup-full {
    max-width: 100%;
    margin: 10px auto;
    padding: 12px;
    border-radius: 0;
  }

  .input-wrapper input {
    padding: 14px 18px;
    font-size: 16px;
  }

  .login-button {
    padding: 16px 24px;
    font-size: 18px;
  }

  .form-field label {
    font-size: 16px;
    font-weight: 600;
  }
}

/* Landscape mobile optimization */
@media (max-width: 768px) and (orientation: landscape) {
  .signup-full {
    max-width: 90%;
    margin: 10px auto;
  }

  .form-group {
    margin-bottom: 15px;
  }

  .input-wrapper input {
    padding: 10px 14px;
  }

  .login-button {
    padding: 12px 20px;
  }
}

/* Touch-friendly improvements */
@media (hover: none) and (pointer: coarse) {
  .input-wrapper input {
    min-height: 48px; /* Minimum touch target size */
  }

  .login-button {
    min-height: 48px;
    touch-action: manipulation; /* Prevents double-tap zoom */
  }

  .login-page-signup {
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    touch-action: manipulation;
  }
}

/* Accessibility improvements for mobile */
@media (max-width: 768px) {
  /* Increase contrast for better readability */
  .form-field label {
    color: #222;
    font-weight: 600;
  }

  /* Better spacing for readability */
  .signup-full h1, .signup-full h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
  }

  /* Focus states more prominent on mobile */
  .input-wrapper input:focus {
    outline: 3px solid #000000;
    outline-offset: 2px;
  }

  .login-button:focus {
    outline: 3px solid #ffffff;
    outline-offset: 2px;
  }
}

/* Prevent horizontal scrolling */
@media (max-width: 768px) {
  body {
    overflow-x: hidden;
  }

  .signup-full * {
    max-width: 100%;
    box-sizing: border-box;
  }
}

/* Dark mode support for mobile (if user prefers) */
@media (max-width: 768px) and (prefers-color-scheme: dark) {
  .signup-full {
    background: #1a1a1a;
    color: #ffffff;
  }

  .input-wrapper input {
    background: #2a2a2a;
    border-color: #404040;
    color: #ffffff;
  }

  .input-wrapper input:focus {
    border-color: #ffffff;
    background: #333333;
  }

  .form-field label {
    color: #ffffff;
  }

  .error {
    color: #ff6b6b;
  }
}

/* Loading state improvements for mobile */
@media (max-width: 768px) {
  .login-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
  }

  .login-button.loading {
    position: relative;
    color: transparent;
  }

  .login-button.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid #ffffff;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
  }

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

/* Safe area support for notched devices */
@media (max-width: 768px) {
  .signup-full {
    padding-left: max(15px, env(safe-area-inset-left));
    padding-right: max(15px, env(safe-area-inset-right));
    padding-top: max(20px, env(safe-area-inset-top));
    padding-bottom: max(20px, env(safe-area-inset-bottom));
  }
}

/* sidebar header style */

.col-sm-2 {
  background-color: #f6f6f6;
}
.warning-space {
  padding: 3px 0px !important;
  border-radius: 0px !important;
  border: #39c30f, 2px, solid;
}
.warning-space:hover {
  background-color: #39c30f!important;
}

.sidebar-head {
  margin-top: 0.5;
  margin-left: 12px;
  width: 100%;
  display: inline-flex;
  justify-content: space-around;
}
.dropdown {
  display: inline-block;
  position: relative;
  border-radius: 30px;
  align-items: flex-end;
}
.dropdown-content {
  display: none;
  position: absolute;
  width: 5rem;
  overflow: initial;
  box-shadow: 0px 10px 10px 0px rgba(0,0,0,0.4);
  z-index: 1201;
  color: #ffffff;
}
.account-dropdown {
  margin-left: auto;
  margin-right: 5px!important;
}
.Header-move {
  right: -100%;
  top: 60%;
  width: max-content!important;
}
.list-hover-move {
  right: 10%;
  top: 60%;
  width: max-content!important;
}
.dropdown:hover .dropdown-content {
  display: block;
  width: inherit;
  background-color: #000000;
  z-index: 1201;
}
.dropdown-content a {
  display: block;
  color: #ffffff;
  padding: 10px;
  text-decoration: none;
  background-color: #000000;
}
.dropdown-content button {
  display: block;
  color: #ffffff;
  padding: 10px;
  text-decoration: none;
  background-color: #000000;
  border: 1px solid #555555;
  border-right: none;
  border-left: none;
}
.dropdown-content a:hover {
  background-color: #3f484a;
}
.dropdown-content button:hover {
  background-color: #3f484a;
  width: 100%;
  text-align: left;
}
.download-save-dropdown {
  display: inline-flex; 
  align-items: center;
  padding: 5px;
}
.download-save-dropdown:hover {
  background-color: #4f4f4f;
  border: 1px solid #f4f4f4;
}
.account-icon {
  border-style: none;
  border-radius: 50%;
  background-color: #f6f6f6;
  aspect-ratio: 1 / 1;
  padding: revert-layer;
  margin-top: 11%;
}
.actual-account-icon {
  align-items: center;
  vertical-align: bottom;
  height: 20px;
  width: 20px;
}

/* sidebar menu styling*/

.sidebar-nav {
    margin-top: 20px;
    padding: 0;
    list-style: none;
}
.p-10 {
  padding: 10px;
}
.nav-links {
  display: inline-flex;
  width: 100%;
  margin: 2px;
  border-radius: 30px;
  vertical-align: middle;
  font-size: 13px;
}
.nav-links:hover {
  background-color: #d9d9d9;
  text-decoration: none;
  color: #000000;
}
.nav-holder {
  width: 100%;
  margin: 2px;
  padding: 8px 10px;
  border-radius: 30px;
  vertical-align: middle;
}
.top-nav {
  margin-top: 0px!important;
}
.nav-holder:hover {
  background-color: #d9d9d9;
  text-decoration: none;
  color: #000000;
}
.nav-description {
  text-decoration: none;
  font-size: 10px;
  color: #909090;
  margin: 0px;
  margin-left: 20px;
}
.nav-description:hover {
  text-decoration: none;
  color: #909090;
}
.nav-icon {
  height: 20px;
  width: 20px;
  margin-right: 5px;
  color: #000000;
}
.sidebar-icon {
  height: 16px!important;
  width: 16px!important;
}
.larger-story-icon {
  height: 14px!important;
  width: 14px!important;
}
.larger-icon {
  height: 13px!important;
  width: 13px!important;
}
.sidebar-links {
  text-decoration: none;
  color: #000000;
}
.sidebar-links:hover {
  text-decoration: none;
  color: #000000;
}
.selected-sidebar {
  background-color: #d9d9d9;
}
.nav-links .nav-stats {
  align-items: flex-end;
}

/* Modern Sidebar */
.sidebar-modern {
  background: #f8f9fb;
  min-height: 100vh;
  padding: 0;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  left: 0;
  z-index: 100;
  max-height: 100vh;
  overflow-y: auto;
  padding-left: 10px;
}
.sticky-sidebar {
  position: sticky;
  top: 0;
  align-self: flex-start;
  max-height: 100vh;
  overflow-y: auto;
}
.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0px;
  background: #f8f9fb;
}
.sidebar-logo {
  font-size: 1rem;
  font-weight: 400;
  color: #222;
  letter-spacing: -1px;
}
.sidebar-logo-bold {
  font-weight: 600;
  color: #aaa;
}
.sidebar-menu-btn {
  background: none;
  border: none;
  font-size: 0.8rem;
  color: #888;
  cursor: default;
  display: flex;
  align-items: center;
  padding: 0px!important;
}
.sidebar-avatar-link {
  display: flex;
  align-items: center;
}
.sidebar-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  background: #e5e5e5;
  border: 2px solid #e5e5e5;
}
.sidebar-nav-modern {
  flex: 1 1 auto;
  padding: 0 4px 0 4px;
}
.sidebar-nav-modern ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.sidebar-link {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 10px 8px 10px;
  border-radius: 10px;
  color: #222;
  text-decoration: none;
  transition: background 0.13s;
  font-size: 0.8rem;
  min-height: 36px;
}
.sidebar-link.active,
.sidebar-link:focus,
.sidebar-link:hover {
  background: #e7eaf1;
  color: #111;
  text-decoration: none;
}
.sidebar-icon {
  width: 20px !important;
  height: 20px !important;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
  flex-shrink: 0;
}
.sidebar-link-title {
  font-weight: 500;
  font-size: 0.8rem;
  color: #222;
  display: block;
  margin-bottom: 0;
}
.sidebar-link-desc {
  font-size: 0.7rem;
  color: #7a7a7a;
  margin-top: 2px;
  display: block;
}
.sidebar-divider {
  border: none;
  border-top: 1px solid #e5e5e5;
  margin: 12px 0 12px 0;
}
.sidebar-warning {
  background: #fffbe6 !important;
  color: #b37d00 !important;
}
@media (max-width: 900px) {
  .sidebar-modern {
    width: 100vw;
    min-width: 0;
    max-width: 100vw;
    border-right: none;
    border-bottom: 1px solid #ececec;
    flex-direction: row;
    min-height: 0;
    max-height: none;
    position: static;
    overflow-x: auto;
    overflow-y: hidden;
  }
  .sidebar-header {
    padding: 10px 6px 10px 8px;
  }
  .sidebar-nav-modern {
    padding: 0 2px 0 2px;
  }
}

.ht-20 {
  height: 20px!important;
}

.sidebar-avatar-dropdown .dropdown-menu {
  left: auto !important;
  right: 0 !important;
  min-width: 180px;
  font-size: 0.97rem;
  margin-top: 8px;
}
.sidebar-avatar-link.dropdown-toggle::after {
  display: none;
}

/* header styling */

.page-header {
    padding: 1rem;
    margin-bottom: 2rem;
    margin-top: 2rem;
    text-align: center;
    background: #f6f6f6;
    color: white;
    font-size: 18px;
}
.flex-wrapper {
  min-height: 100vh; 
  display: flex; 
  flex-direction: column;
  font-family: "Roboto", sans-serif;
  font-weight: 400;
  font-style: normal;
}
.flex-wrapper-dark {
  min-height: 100vh; 
  display: flex; 
  flex-direction: column;
  background-color: #f6f6f6;
  font-family: "Roboto", sans-serif;
  font-weight: 400;
  font-style: normal;
}
.container {
  height: 1000px;
  width: 100%;
  padding: 3rem;
  margin: 0;
  position: relative;
  box-sizing: border-box;
}
.home-row-20 {
  width: 20%;
  padding: 0px 0px 0px 0px;
}
.home-row-80 {
  width: 80%;
}
/* Footer Styling*/
.flex-hold {
  flex-grow: 1;
  background-color: #f6f6f6;
}
.Footer {
  margin: auto;
  padding-top: 3rem;
  padding-bottom: 1rem;
  width: 100%;
  text-align: center;
  flex-grow: 1;
  background-color: #f6f6f6;
  font-size: 14px;
}
.Footer-Link {
  color: #000000;
  text-decoration: none;
}
.Footer-Link:hover {
  text-decoration: none;
  color: #555555;
}

/* Content Styling*/

.topbar-search {
  width: 100%;
  padding: 10px 16px;
  border-bottom: 1px solid #e5e5e5;
}

.topbar-modern {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f4f5f7;
  padding: 5px 32px 5px 24px;
  position: sticky;
  z-index: 100;
  border-radius: 30px;
}
.topbar-search-form {
  display: flex;
  align-items: center;
  width: 80%;
}
.topbar-search-container {
  display: flex;
  align-items: center;
  width: 90%;
}
.topbar-search-icon {
  display: flex;
  align-items: center;
  margin-right: 8px;
}
.topbar-search-icon-svg {
  width: 22px;
  height: 22px;
}
.topbar-search-input {
  border: none;
  background: transparent;
  font-size: 0.9rem;
  width: 100%;
  outline: none;
}
.topbar-dropdowns {
  display: flex;
  align-items: center;
  gap: 12px;
}
.dropdown-label {
  display: flex;
  align-items: center;
  font-weight: 500;
  margin: 0px;
  border-radius: 15px;
  padding: 5px;
}
.sort-filter-display {
  font-size: 0.95rem;
  font-weight: 500;
  padding: 6px 0.3rem;
  appearance: none;
  cursor: pointer;
  background-image: none;
  border: 1px solid #ececec;
  border-radius: 8px;
  background: #fff;
}
.filter-holder {
  margin: 0px;
  width: max-content;
}
.generate-filter-btn {
  background: none;
  border: none;
  font-size: 0.85rem;
  cursor: pointer;
  text-decoration: none;
  color: #000000;
}
.generate-filter-btn:hover {
  text-decoration: none;
  color: #000000;
}
.bulk-actions-bar {
  display: flex;
  align-items: center;
  background: #f4f8ff;
  border-bottom: 1px solid #dbeafe;
  padding: 6px 32px;
  gap: 18px;
  font-size: 0.8rem;
  position: sticky;
  top: 56px;
  z-index: 101;
  color: #2563eb;
}
.bulk-action-btn {
  background: none;
  border: none;
  color: #2563eb;
  font-weight: 500;
  margin-right: 12px;
  cursor: pointer;
  padding: 6px 12px;
  border-radius: 6px;
  transition: background 0.13s;
  font-size: 0.8rem;
}
.bulk-action-btn:hover {
  background: #e0e7ff;
}
.bulk-actions-item {
  color: #2563eb!important;
}
.list-dropdown {
  border: 1px solid #d1d5db;
  padding: 6px!important;
}
.fab-container {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}
.fab-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #111;
  color: #fff;
  font-size: 2.2rem;
  border: none;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.13s;
}
.fab-btn:hover {
  background: #222!important;
  text-decoration: none;
  color: #ffffff;
}
.fab-btn.open .fab-plus {
  transform: rotate(90deg);
}
.fab-plus {
  font-size: 2.2rem;
  line-height: 1;
  transition: transform 0.2s;
}
.fab-plus:hover {
  color: #fff;
  text-decoration: none;
}
.fab-dropdown {
  display: none;
  flex-direction: column;
  background: #444;
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
  margin-bottom: 12px;
  min-width: 220px;
  padding: 16px 0 8px 0;
  position: absolute;
  bottom: 70px;
  right: 0;
}
.fab-dropdown.open {
  display: flex;
}
.fab-dropdown-item {
  color: #fff;
  text-decoration: none;
  display: flex;
  align-items: center;
  padding: 10px 24px;
  font-size: 0.8rem;
  border: none;
  background: none;
  cursor: pointer;
  transition: background 0.13s;
}
.fab-dropdown-item:hover, .fab-dropdown-item:focus {
  background: #555;
  color: #fff;
  text-decoration: none;
}
.fab-dropdown-icon {
  width: 15px;
  height: 15px;
  margin-right: 14px;
}
.fab-dropdown-divider {
  border-top: 1px solid #666;
  margin: 8px 0;
}
.fab-dropdown-ai {
  color: #ffe58f;
  font-weight: 500;
}
@media (max-width: 900px) {
  .topbar-modern {
    flex-direction: column;
    height: auto;
    padding: 8px;
  }
  .topbar-search-form {
    width: 100%;
  }
  .fab-container {
    right: 12px;
    bottom: 12px;
  }
  .bulk-actions-bar {
    padding: 10px 8px;
    font-size: 1rem;
  }
}

.content-toolbar-row {
  display: flex;
  align-items: center;
  position: sticky;
  z-index: 99;
  justify-content: space-between;
  padding: 10px 16px;
  margin-bottom: -1px;
  border-bottom: 1px solid #e5e5e5;
}
.content-tab {
  background: #fff;
  border: none;
  font-weight: 600;
  font-size: 1rem;
  color: #222;
  border-radius: 18px;
  padding: 6px 18px;
  margin-right: 10px;
  cursor: pointer;
  transition: background 0.13s;
}
.content-tab.active {
  background: #e0e7ff;
  color: #2563eb;
}
.content-count {
  color: #888;
  font-size: 0.8rem;
  margin-right: 18px;
}
#check-all {
  margin-right: 10px;
}

/* Custom Dropdown Styles */
.custom-dropdown {
  position: relative;
  display: inline-block;
  margin-right: 18px;
}
.custom-dropdown-btn {
  background: #f6f7fa;
  border: none;
  border-radius: 14px;
  padding: 5px 10px 5px 10px;
  font-size: 1.08rem;
  font-weight: 600;
  color: #222;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: none;
  cursor: pointer;
  transition: background 0.13s, border 0.13s;
  border: 1.5px solid #ececec;
}
.custom-dropdown-btn:focus,
.custom-dropdown-btn:hover {
  background: #ececec;
  outline: none;
}
.custom-dropdown-label {
  font-size: 0.8rem;
  font-weight: 500;
  color: #222;
}
.custom-dropdown-chevron {
  font-size: 1.1em;
  margin-left: 8px;
  color: #888;
}
.custom-dropdown-menu {
  display: none;
  position: absolute;
  top: 110%;
  left: 0;
  min-width: 160px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.10);
  z-index: 100;
  padding: 8px 0;
  border: 1.5px solid #ececec;
}
.custom-dropdown.open .custom-dropdown-menu {
  display: block;
}
.custom-dropdown-item {
  display: block;
  padding: 10px 22px;
  color: #222;
  font-size: .8rem;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.13s;
}
.custom-dropdown-item:hover,
.custom-dropdown-item.selected {
  background: #f6f7fa;
  color: #111;
}

.hidden {
  visibility: hidden;
  display: none;
}

.display-none {
  display: none;
}

.col-sm-10 {
  display: flex;
  align-items: flex-start;
  vertical-align: middle;
  padding: 0px;
  background-color: #f6f6f6;
}
.bg-w {
  background-color: #ffffff;
}

h1 {
  font-weight: bold;
  font-family: 'Roboto', 'Times New Roman', Times, serif;
  color: #000000;
  font-size: 32px;
}

h2 {
  font-weight: bold;
  color: #000000;
  font-size: 24px;
}

body {
  margin: 0;
  font-family: 'Roboto', 'Times New Roman', Times, sans-serif;
  background: #ffffff;
}

.center {
  margin: auto;
  width: 100%;
  text-align: center;
}

centering {
  margin: auto;
}

.home-container {
  width: max-content;
  align-items: center;
}
.heading {
  color:#555555;
}
.sub-heading {
  margin-bottom: 1rem;
  color:#000000;
}
.search-icon {
  height: 20px!important;
  width: 20px!important;
  margin-right: 0px!important;
}
.button {
  width: 25rem;
  background-color: #000000;
  opacity: 1;
  border: none;
  margin: 2rem;
  color: #ffffff;
  padding: 15px 32px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 16px;
  border-radius: 5px;
  transition-duration: 0.4s;
}
.button-inverse {
  width: 25rem;
  background-color: #eeeeee;
  opacity: 1;
  border: 2px solid #000000;
  margin: 2rem;
  color: #000000;
  padding: 13px 30px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 16px;
  border-radius: 5px;
  transition-duration: 0.4s;
}
.button:hover {
  opacity: 0.6;
  color: #ffffff;
}
.button-inverse:hover {
  opacity: 1;
  background-color: #ffffff;
}
.disabled-button {
  background-color: #747474!important;
}
.bulk-apply-button {
  padding: 5px 15px;
  width: auto;
  height: auto;
  border-radius: 10px;
  background-color: #000000;
  color: #ffffff;
}
.add-button {
  border-radius: 30px;
  background-color: #000000;
  color: #ffffff;
  border: 0px;
  display: flex;
  flex-wrap: wrap;
  align-content: center;
  justify-content: flex-start;
  padding: 15px;
}
.new-story:hover {
  text-decoration: none!important;
}
.smaller {
  width: 66%!important;
}
.button-smaller {
  width: 20%!important;
}
.dashboard-stats {
  display: flex;
  justify-content: space-evenly;
}
.stat-display {
  width: 25%;
  height: 300px;
  background-color: #f6f6f6;
  border: 0px;
  border-style: solid;
  border-radius: 20px;
  border-color: #000000;
  box-shadow: 3px 3px 3px 0px rgb(142, 142, 142);
  justify-content: center;
}
.stat-header {
  font-size: 24px;
  font-weight: 600;
  margin-top: 15px;
}
.teamkeys {
  color: #909090;
}

/*.editor {
  display: flex;
  width: 100vw;
  height: 100vh;
}

.toolbar {
  width: 250px;
  background: #eeeeee;
}*/

.toolbar-item {
  padding: 15px;
}

.tool-label {
  display: block;
  margin-bottom: 5px;
  font-size: 14px;
  font-weight: bold;
}

.tool-input {
  width: 100%;
  color: #000000;
}

.image-area {
  flex-grow: 1;
  padding: 20px;
  background: #555555;
}

.tui-image-editor {
  height: 700px!important;
}

.tui-image-editor-container {

}



@media only screen and (max-width: 600px) {
}


.btn {
  background: none!important;
  border: none;
  color: black;
  font-size: 16px;
  text-decoration: none;
  cursor: pointer;
}

.btn:hover {
  text-decoration: none;
  color: black;
}

/* Green */
.success {
  color: green;
}

/* Content Styling */

.content-list {
  width: 100%;
}

.content-link {
  text-decoration: none;
  color: #000000;
  display: inline-flex;
  width: 85%;
}
.content-link:hover {
  text-decoration: none;
  color: #000000;
}

.content-stats-sort-menu {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.check-all-box {
  margin-right: 5px;
}

.sort-filter {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
}

.sort-filter-display {
  border: none;
  margin-right: 15px;
  background-color: inherit;
}

.menu-option {
  
}

.menu-option:hover {
  background-color: #3f484a!important;
  color: #eeeeee!important;
}

.individual-content {
  display: inline-flex;
  width: 100%;
  vertical-align: middle;
  padding: 1rem;
  border-top: 1px;
  border-right: 0px;
  border-left: 0px;
  border-bottom: 0px;
  border-style: solid;
  border-color: #e5e5e5;
}
.stats-bulk {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin-left: 10px;
}
.bulk-checkbox {
  margin: 0px 10px;
}
.bulk-title {
  margin:0px;
  padding:0px;
  margin-left: 15px;
  font-weight: 500;
}
.content-name-desc-date {
  margin-left: 20px;
  font-size: 0.8rem;
  color: #3f484a;
  width: 70%;
}
.individual-content:hover {
  background-color: #f4f4f4;
}
.content-list-title {
  font-size: 1rem;
  text-decoration: none;
  color: #000000;
  margin-bottom: -1px;
  padding: 1rem;
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid #e5e5e5;
}
.content-title {
  font-size: 1rem;
  text-decoration: none;
  color: #000000;
  margin-bottom: 2px;
  width: 80%;
}
.content-title:hover {
  text-decoration: none;
}
.desc-date-filename {
  margin-bottom: 2px;
  -webkit-line-clamp: 1;
}
.header-icons {
  display: flex;
  flex-wrap: wrap; 
  align-items: center; 
  width: 25%;
  justify-content: flex-end;
}
.content-icon {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-content: center;
  width: 12%;
  aspect-ratio : 1 / 1;
  background-color: #f6f6f6;
  min-height: 100px;
  min-width: 100px;
}
.larger-content-icon {
  width: 25%!important;
}
.content-type {
  pointer-events: none;
  height: 25px;
}
.Content-More {
  margin-left: auto;
  margin-bottom: auto;
  margin-right: 20px;
  margin-top: auto;
}
.delete-edit {
  font-weight: 1000;
  font-size: 2rem;
  align-items: center;
}
.add-content {
  justify-content: flex-end;
  margin-left: 80%;
}

.dropdown-upload {
  margin-left: 0.5rem;
  padding-left: 0.5rem;
  padding-right: 0.5rem;
  background-color: #000000;
  display: inline-block;
  position: fixed;
  border-radius: 20px;
  align-items: flex-end;
  top: 75%;
  box-shadow: 0px 10px 10px 0px rgba(0,0,0,0.4);
}
.dropdown-upload:hover .dropdown-content {
  display: block;
  width: inherit;
}
.upload-icon {
  pointer-events: none;
  height: 15px;
  margin-right: 1rem;
}
.story-upload-icon {
  pointer-events: none;
  height: 15px;
  margin-right: 1rem;
  margin-top: auto;
  margin-bottom: auto;
}
.mr-05 {
  margin-right: 0.5rem;
}
.story-upload-text {
  margin-top: auto;
  margin-bottom: auto;
}
.story-upload-text:hover {
  text-decoration: none!important;
}
.add-icon {
  height: 25px!important;
  margin-right: 0.5rem!important;
}
.content-rounded {
  border-radius: 30px;
  background-color: #000000;
  color: #ffffff;
  height: 4.5rem;
  width: 6.5rem;
  border: 0px;
}
.content-add-menu {
  width: fit-content;
}

.relevance-green {
  color: #2ecc40;
  font-weight: bold;
}
.relevance-yellow {
  color: #ffcc00;
  font-weight: bold;
}
.relevance-red {
  color: #ff4136;
  font-weight: bold;
}

/*Content Detail Style*/

.content-detail-full{
  display: block;
  padding: 0rem;
  width: 100%;
}
.detail-page {
  padding: 2rem!important;
}
.content-header {
  display: flex;
  width: 100%;
  margin-bottom: 5px;
  justify-content: space-between;
  align-content: center;
  flex-wrap: wrap;
}
.content-header-objects {
  align-self: center;
}
.icon-large {
  height: 25px!important;
  margin: 0px!important;
}
.content-return {
  margin: 5px;
}
.content-return-button {
  border-radius: 20px;
  padding: 10px;
  text-decoration: none;
  background-color: #000000;
  color: #ffffff;
  border-style: none;
}
.content-return-button:hover {
  background-color: #3f484a;
  border-style: none;
}
.content-detail-name {
  margin: 5px;
  font-weight: 400;
  border: 0px;
  font-size: 1.6rem;
  color: #000000;
  width: 88%;
  text-overflow: ellipsis;
  -webkit-line-clamp: 1;
  font-family: "Roboto", sans-serif;
}
.editable-name {
  background-color: #f8f8f8;
  border-bottom: 1px solid #000000;
}
.content-edit-name {
  display: block;
  background-color: #efefef;
  padding-top: 5px;
  padding-bottom: 5px;
  border-bottom: 2px;
  border-top: 0px;
  border-left: 0px;
  border-right: 0px;
  border-style: solid;
  padding-left: 20px;
  padding-right: 10px;
  margin-bottom: 10px;
}
.edit-name-title {
  display: block;
  font-size: 0.8rem;
  margin-bottom: 0px;;
}
.light {
  background-color: #f8f8f8!important;
}
.name-input {
  display: block;
  background-color: #efefef;
  border: 0px;
  font-size: 1rem;
  width: 100%;
  color: #000000;
}
.name-input:focus {
  outline:none!important;
}
.content-locations {
  display: flex;
  margin-bottom: 10px;
}
.location_captured_block {
  display: block;
  width: 45%;
  background-color: #efefef;
  padding-top: 5px;
  padding-bottom: 5px;
  border-bottom: 2px;
  border-top: 0px;
  border-left: 0px;
  border-right: 0px;
  border-style: solid;
  padding-left: 20px;
  padding-right: 10px;
  margin-bottom: 5px;
}
.location_captured_block_white {
  display: block;
  width: 45%;
  background-color: #ffffff;
  padding-top: 5px;
  padding-bottom: 5px;
  border-bottom: 2px;
  border-top: 0px;
  border-left: 0px;
  border-right: 0px;
  border-style: solid;
  padding-left: 20px;
  padding-right: 10px;
  margin-bottom: 5px;
}
.name-input-white {
  display: block;
  background-color: #ffffff;
  border: 0px;
  font-size: 1rem;
  width: 100%;
  color: #000000;
}
.holding-block-10 {
  width: 10%
}
.update-content {
  border: none;
  background-color: transparent;
}
.update-input-button:hover {
  background-color: #000000;
  color: #fff;
}
.content-save-button {
  border-radius: 15px;
  border: 0px;
  padding: 5px;
  background-color: #000000;
  color: #ffffff;
}
.content-save-button:hover {
  background-color: #3f484a;
}
.image-editor {
  display: flex;
  flex-direction: row-reverse;
  justify-content: space-between;
  width: 100%;
}
.image-view {
}
.image-edit-tools {
  width: 40%;
  display: flex;
  justify-content: center;
}
.detail-icon {
  height: 20px;
  width: 20px;
  margin-bottom: -3px;
}
.return-icon {
  height: 25px;
  align-items: center;
  pointer-events: none;
  display: inline-block;
  align-self: end;
  margin-top: 10px;
  margin-right: 10px;
}
.view-comment {
  width: 100%;
}
.view-chat-button {
  border: 1px solid #000000;
  border-radius: 15px;
  padding: 5px 15px;
  background-color: #ffffff;
  color: #000000;
  margin: 20px 0px;
}
.view-chat-button:hover {
  text-decoration: none;
  color: #000000;
}

.ai-generate {
  background-color: #f0f0f0;
  border: none;
  border-radius: 20px;
  padding: 8px 16px;
  margin-left: 10px;
  font-size: 14px;
  color: #333;
  cursor: pointer;
  display: flex;
  align-items: center;
  transition: all 0.2s ease;
}

.embed-generate {
  background-color: #f0f0f0;
  border: none;
  border-radius: 20px;
  padding: 8px 16px;
  margin-left: 10px;
  font-size: 14px;
  color: #333;
  cursor: pointer;
  display: flex;
  align-items: center;
  transition: all 0.2s ease;
}

.ai-tags-spacing {
  margin-left: 30px
}

.ai-generate:hover {
  background-color: #e0e0e0;
  transform: translateY(-1px);
}

.ai-generate:active {
  transform: translateY(0px);
}

.ai-options-popup {
  display: none;
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: rgba(0,0,0,0.4);
  z-index: 10000;
}
.ai-options-content {
  background: #fff;
  border-radius: 8px;
  max-width: 500px;
  margin: 60px auto;
  padding: 24px;
  position: relative;
}
.ai-options-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.close-button {
  background: none;
  border: none;
  font-size: 1.5em;
  cursor: pointer;
}

#ai-content-length-slider {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  background: #e0e0e0;
  border-radius: 3px;
  outline: none;
  margin-bottom: 16px;
  transition: background 0.2s;
}
#ai-content-length-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #6366f1;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  transition: background 0.2s;
}
#ai-content-length-slider::-webkit-slider-thumb:hover {
  background: #4f46e5;
}
#ai-content-length-slider::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #6366f1;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  transition: background 0.2s;
}
#ai-content-length-slider::-ms-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #6366f1;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  transition: background 0.2s;
}
#ai-content-length-slider:focus {
  background: #d1d5db;
}

/* Add sparkle icon to match other AI elements */
.ai-generate::before {
  content: "✨";
  margin-right: 6px;
  font-size: 16px;
}

.ai-options-popup {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
}

.ai-options-content {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: white;
  padding: 20px;
  border-radius: 8px;
  max-width: 600px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
}

.ai-options-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid #eee;
}

.ai-options-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ai-option {
  padding: 15px;
  background: #f5f5f5;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.ai-option:hover {
  background: #e0e0e0;
}

.no-button {
  background-color: transparent;
  border: none;
}

.tone-selector-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  padding: 15px;
}

.tone-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
  background: #f5f5f5;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.tone-option:hover {
  background: #e0e0e0;
  transform: translateY(-2px);
}

.tone-option i {
  font-size: 24px;
  margin-bottom: 10px;
  color: #6366f1;
}

.tone-option span {
  font-size: 14px;
  font-weight: 500;
}

.ai-warning {
  color: #cccccc;
  font-size: 10px;
  margin-top: 10px;
}

.ai-warning-container {
  display: flex;
  align-items: center;
  justify-content: center;
}

.generate-description-spacing {
  margin-left: -25px;
}

.ai-content-title {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: #000000;
}

.ai-content-description {
  font-size: 1rem;
  margin-bottom: 10px;
  color: #000000;
}

.image-generate {
  margin-left: auto;
  margin-bottom: 5px;
}

/* Content Detail Video Style */

.video-container {
  display: grid;
  justify-content: center;
}

.mark-Time {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 5px;
}

.margin-0 {
  margin: 0;
}

.black-White-bg {
  background-color: #000000;
  color: #ffffff;
}

.trim-Controls {
  display: grid;
  justify-content: center;
}

.mg-5 {
  margin: 5px;
}

/* Content Detail Audio Style */

.audio-display {
  width: 75%;
}

/*Story Style*/

.story-list {
  width: 100%;
}
.story-list-title {
  font-size: 1rem;
  text-decoration: none;
  color: #000000;
  margin-bottom: 2px;
  margin: 2rem;
}

.inline-block {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  width: 80%;
}

.story-title {
  font-size: 1rem;
  text-decoration: none;
  color: #000000;
  margin-bottom: 2px;
}

.content-date {
  margin: 5px;
}

.distribute-icon {
  margin-right: 5px;
}

.hover-describer {
  display: none;
}

.publish-label:hover .hover-describer {
  display: block;
  position: fixed;
  color: #000000;
  background-color: #ccc;
  padding: 2px;
  top: 11%;
  right: 5%;
}

.story-iframe {
  width: 100%;
  height: 100vh;
  padding: 30px;
  background-color: #f4f4f4;
  box-shadow: 5px 5px 5px 0px #747474;
}

.popup-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1201;
}

.popup-modal {
  background: #fff;
  border-radius: 16px;
  padding: 32px 28px 24px 28px;
  max-width: 380px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
  text-align: center;
}

.popup-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.popup {
  font-family: Arial, sans-serif;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
  width: 50vw;
}

.popup-content {
  text-align: center;
}

.popup .close {
  cursor: pointer;
  color: #000000;
}

.share-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1201;
}

.share {
  font-family: Arial, sans-serif;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
  z-index: 100000;
}

.share-content {
  text-align: center;
}

.invert-button {
  border: 1px solid #000000;
  align-content: space-around;
  background-color: white;
  font-size: 14px;
  height: inherit;
  margin-right: 35px;
  color: #000000;
}

.distribute-title {
  align-items: center;
  display: flex;
  justify-content: center;
  justify-items: center;
}

.thin-title {
  font-weight: 400;
  font-size: 24px;
  margin-top: 10px;
}

.top-item {
  border: 0px!important;
}

.circle-label {
  border-radius: 50%;
  background-color: #c6c6c6;
  color: #000000;
  padding: 5px;
  width: 40px;
  height: 40px;
  text-align: center;
  margin: 0px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: 600;
}

.popup #emailInput {
  width: 80%;
  padding: 10px;
  margin: 10px 0;
  border: 1px solid #ddd;
  border-radius: 4px;
}

.published-icon {
  height: 20px;
  margin-left: 10px;
}

.hgt-30 {
  height: 30px!important;
}

.story-search {
  width: 70%;
  border-radius: inherit;
  border-top-left-radius: 0px;
  border-bottom-left-radius: 0px;
  background-color: #f6f6f6;
  margin-right: 0px;
  height: 45px;
}
.search-function {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 20px;
  justify-content: space-between;
}
.search-bar {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 700px;
  margin: 0;
  border-radius: 30px;
  background-color: #f6f6f6;
}
.search-button-container {
  flex: 0 0 40px;
  margin-left: 20px;
}
.search-button-symbol {
  background-color: transparent;
  border: none;
  height: 45px;
  width: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
input:focus {
  outline: none;
}
input:focus-visible {
  outline: none;
}
.search-input {
  display: block;
  background-color: #f6f6f6;
  border: 0px;
  font-size: 1rem;
  width: 100%;
  color: #000000;
  padding: 10px;
  padding-left: 25px;
}
.search-input:focus-visible {
  border: none !important;
}
.search-clear {
  margin: 0px;
  padding: 10px;
  background-color: #f6f6f6;
  border-radius: 40px;
  border-top-left-radius: 0px;
  border-bottom-left-radius: 0px;
  height: 45px;
  display: flex;
  flex-wrap: wrap;
  align-content: center;
  justify-content: center;
}
.search-clear-icon {
  border: 0px;
  background-color: #f6f6f6;
}
.story-rounded {
  border-radius: 30px;
  background-color: #000000;
  color: #ffffff;
  height: 2.5rem;
  border: 0px;
  position: absolute;
  top: 80%;
}

.publish-label {
  display: flex;
  align-items: center;
}

.story-placeholder {
  display: block;
}

.story-placeholder:focus {
  display: none;
}

.tox-tinymce {
  height: 100vh!important;
  /*position: sticky!important;*/
}

.tox-pop {
  display: none!important;
}

.story-placeholder::after {
  display: none;
}

.wd-45 {
  width: 45%;
}

.m-b2 {
  margin-bottom: 10px;
}

.m-b3 {
  margin-bottom: 20px;
}

.hint-text {
  font-size: 13px;
  color: #888888;
}

.toggleHints:hover {
  cursor: pointer;
}

.generate-content-section {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
  gap: 15px;
}

.text-green {
  color: #2ecc40;
}
/*Published Story Style*/

.iframe-story {
  width: 100%;
  height: 500px;
}

span .span-parent-child {
  display: none!important;
}

/*Login Style*/

.login-full {
  margin-left: 30%;
}
.login-signup {
  display: inline-block;
  width: 100%;
}
.login-signup-link {
  margin-right: auto;
  float: left;
  vertical-align: middle;
}
.login-page-signup {
  text-decoration: none;
  color: #000000;
}
.login-page-signup:hover {
  text-decoration: none;
  color: #000000;
}
.login-button-select {
  margin-left: auto;
  float: right;
}
.login-button{
  border-radius: 25px;
  background-color: #000000;
  color: #ffffff;
  padding: 10px;
  margin-left: auto;
}
.login-button-join {
  border-radius: 25px;
  background-color: #000000;
  color: #ffffff;
  padding: 10px;
  margin-bottom: 5px;
}
.reset-password-link {
  color: #22223b;
  text-decoration: underline;
  font-size: 1rem;
  opacity: 0.8;
  transition: color 0.2s;
}
.reset-password-link:hover {
  color: #39c30f;
  opacity: 1;
  text-decoration: underline;
}

/*Signup Styling*/
.w-100 {
  width: 100%;
}

.signup-full {
  max-width: 30%;
  margin: 40px auto;
  padding: 20px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(27, 27, 27, 0.1);
}

.form-group {
  margin-bottom: 20px;
}

.form-field {
  display: flex;
  align-items: center;
  gap: 12px;
}

.form-field label {
  flex: 0 0 100px;
  text-align: left;
  font-weight: 500;
  color: #333;
}

.input-wrapper {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
}

.input-wrapper input {
  width: 100%;
  padding: 8px 12px;
  border: 1.5px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  transition: border-color 0.2s;
}

.input-wrapper input:focus {
  border-color: #000000;
  outline: none;
  box-shadow: 0 0 0 2px rgba(57, 195, 15, 0.1);
}

/* Tooltip Styles - appear to the right of the input */
.tooltip {
  visibility: hidden;
  position: absolute;
  left: 105%;
  top: 50%;
  transform: translateY(-50%);
  min-width: 180px;
  max-width: 260px;
  padding: 8px;
  background: #333;
  color: white;
  font-size: 12px;
  border-radius: 4px;
  z-index: 100;
  opacity: 0;
  transition: opacity 0.2s;
  white-space: normal;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

.tooltip::before {
  content: '';
  position: absolute;
  left: -8px;
  top: 50%;
  transform: translateY(-50%);
  border-width: 6px;
  border-style: solid;
  border-color: transparent #333 transparent transparent;
}

.input-wrapper:hover .tooltip,
.input-wrapper:focus-within .tooltip {
  visibility: visible;
  opacity: 1;
}

/* Error Messages */
.error-messages {
  margin-left: 112px;
  margin-top: 4px;
}

.error {
  color: #dc3545;
  font-size: 12px;
  display: block;
}

/* Button Styles */
.login-signup {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 30px;
  margin-left: 112px;
}

.login-signup-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
}

.login-button {
  background: #000000;
  color: white;
  border: none;
  padding: 8px 24px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 500;
  transition: background-color 0.2s;
}

.login-button:hover {
  background: #2e2e2e;
}

.login-page-signup {
  color: #000000;
  text-decoration: none;
  font-weight: 500;
}

.login-page-signup:hover {
  text-decoration: underline;
}

/* dd container */
.menu-dropdown {
  display: flex;
  flex-wrap: wrap;
  align-content: center;
  justify-content: center;
  position: fixed;
  top: 86%;
  left: 86%;
  outline: none;
  align-self: flex-end;
  background-color: #000000;
  margin: 10px 5px;
  border-radius: 20px;
  box-shadow: 0px 10px 10px 0px rgba(0,0,0,0.4);
  height: 4.5rem;
  width: fit-content;
}

/* button */
.dropbtn {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  padding: 12px 16px;
  color: white;
  cursor: pointer;
  background-color: #000000;
  transition: 0.35s ease-out;
  border-radius: 20px;
}
.dropbtn:hover, .dropbtn.c:hover, .dropbtn.r:hover {
  background-color: #000000;
  text-decoration: none!important;
  color: #ffffff;
}

/* dd content */
.menu-dropdown .menu-dropdown-content {
  position: absolute;
  top: -300%;
  right: 10%;
  visibility: hidden;
  opacity: 0;
  z-index: 100000;
  background-color: #000000;
  min-width: 150%;
  font-size: 16px;
  box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2);
  transition: 0.35s ease-out;
  min-height: 100%;
}

.distribute-Menu {
  top: -500%!important;
}

.upload-option {
  color: #ffffff!important;
  text-decoration: none;
}
.upload-option:hover {
  text-decoration: none!important;
  color: #ffffff!important;
}
.upload-display-options {
  display: flex;
  flex-wrap: wrap;
  align-content: center;
  justify-content: flex-start;
  padding: 15px;
  background-color: #555555;
  color: #ffffff;
}
.upload-display-options:hover {
  background-color: #ffffff;
  color: #000000;
}
.upload-content-icon {
  pointer-events: none;
  height: 15px;
  margin-right: 10px;
  margin-top: auto;
  margin-bottom: auto;
}
.upload-content-text {
  margin-top: auto;
  margin-bottom: auto;
}

/* center & right position menu relative to the button */
.menu-dropdown .menu-dropdown-content.c  {
  left: 50%;
  margin-left: calc(-60% - 10px);
}
.menu-dropdown .menu-dropdown-content.r  {
  right: 0;
}

/* style link menu item */
.menu-dropdown-content .mi {
  display: block;
  color: black;
  padding: 8px 0;
  text-decoration: none;
  position: relative;
}
.menu-dropdown-content .mi::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background:
  linear-gradient(
  90deg,
  rgba(240, 242, 244, 0) 0%,
  rgba(223, 223, 223, 1) 30%,
  rgba(240, 242, 244, 0) 100%
  );
  opacity: 0;
  z-index: -1;
  transition: 0.4s ease-out;
}
.menu-dropdown-content .mi:hover::before {
    opacity: 1;
}

/* style text link */
.menu-dropdown-content .tl {
  text-decoration: none;
}
.menu-dropdown-content .tl:hover {
  border-bottom: 1px dotted transparent;
  text-decoration: none;
}

/* show dd content */
.menu-dropdown:focus .menu-dropdown-content {
  outline: none;
  visibility: visible;
  opacity: 1;
  transform: translateY(20px);
}

/* mask to close menu by clicking on the button */
.menu-dropdown .db2 {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  opacity: 0;
  cursor: pointer;
  z-index: 10;
  display: none;
}
.menu-dropdown:focus .db2 {
  display: inline-block;
}
.menu-dropdown .db2:focus .menu-dropdown-content, .menu-dropdown-content .db3:focus .menu-dropdown-content {
  outline: none;
  visibility: hidden;
  opacity: 0;
}

/* sub menu container */
.sub-dropdown {
  position: relative;
}
.sub-dropdown-content {
  position: absolute;
  visibility: hidden;
  opacity: 0;
  background-color: #f7f7f7;
  left: 100%;
  top: -10px;
  padding: 10px 5px;
  box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
  z-index: 1;
  transition: 0.35s ease-out;
}
.sub-dropdown-content a {
  color: black;
  padding: 5px 12px;
  text-decoration: none;
  display: block;
  position: relative;
  white-space: nowrap;
}

/* sub menu item */
.si {
  cursor: default;
}
.si::after {
  content: "\25B8";
  margin-left: 5px;
  vertical-align: -1px;
  margin-right: 10px;
  float: right;
}
.sub-dropdown:hover .sub-dropdown-content {
  visibility: visible;
  opacity: 1;
  transform: translateY(10px);
  text-decoration: none;
}
.sub-dropdown-content a::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background:
  linear-gradient(
  90deg,
  rgba(240, 242, 244, 0) 0%,
  rgba(223, 223, 223, 1) 50%,
  rgba(240, 242, 244, 0) 100%
  );
  opacity: 0;
  z-index: -1;
  transition: 0.4s ease-out;
}
.sub-dropdown-content a:hover::before {
    opacity: 1;
    text-decoration: none;
}

/* media queries */
@media (max-width:560px) {
.menu-dropdown .menu-dropdown-content.r,
.menu-dropdown .menu-dropdown-content.c {
  left: 0;
  margin-left: 0;
  }
.dropbtn.c::before, .dropbtn.r::before {

  }
}
.jtags {
  display: flex;
  flex-wrap: wrap;
  -ms-flex-direction: row;
  -webkit-flex-direction: row;
  flex-direction: row;
  -ms-flex-pack: flex-start;
  -webkit-justify-content: space-between;
  justify-content: flex-start;
  padding: 10px;
  width: 100%;
  position: relative;
  margin-right: 10px;
  background-color: #efefef;
  align-content: center;
} 
.jtags_label {
  border-style: solid;
  border-color: #000000;
  border-width: 1px;
  border-radius: 20px;
  margin-right: 10px;
  padding: 10px;
  color: #000000;
}

.jtags.jtags-empty:not(.jtags-focus)::before {
  position: absolute;
  margin: 3px;
  color: #ccc;
  content: attr(data-placeholder);
  top: 0px;
  margin-left: 6px;
}

.jtags > div {
  padding: 5px;
  padding-left: 15px;
  padding-right: 5px;
  border-radius: 20px;
  margin: 2px;
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  align-content: space-between;
  outline: none;
}

.jtags > div:empty:before {
  content: " ";
  white-space: pre;
}

.jtags > div::after {
  content: 'x';
  margin-left: 15px;
  cursor: pointer;
  font-size: 18px;
  display: none;
}

.jtags_label {
  background-color: #efefef !important;
}

.jtags_label::after {
  display: grid !important;
}

.jtags_error::after {
  color: #fff  !important;
}

.jtags_error {
  background-color: #d93025 !important;
  color: #fff;
}
.tag_holder {
  background-color: #efefef;
  width: 100%;
  border-bottom: 2px solid #000000;
  margin-bottom: 10px;
}
.tag_title {
  font-size: 0.8rem;
  margin-bottom: 0px;
  padding-top: 5px;
  padding-left: 10px;
}

/*Distribute Page Styling*/

.published-Body {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding: 20px;
}

.popup-icon {
  margin-top: 0px!important;
  margin-bottom: 8px!important;
}

.published-holder {
  display: grid;
  justify-content: center;
  align-items: end;
  width: 75%;
}

.coming-soon {
  font-size: 9px;
  color: #d93025;
  padding-left: 2px;
}

.story-Detail {
  width: inherit;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
}

.story-Detail-Link {
  font-size: 18px;
  text-decoration: none;
  color: #000000;
}

.story-Detail-Link:hover {
  text-decoration: none;
  border: none;
  color: #3f484a;
}

.example-icon {
  display: flex;
  justify-content: baseline;
  align-content: baseline;
}

.distribute-List {
  padding: 0px;
}

.distribute-List-Option {
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #d9d9d9;
  padding: 5px;
}

.distribute-List-Option:hover {
  background-color: #d9d9d9;
}

.checkbox-title {
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-start;
  align-items: center;
}

.release-Title {
  margin-bottom: 0px;
}

.release-Button {
  border-radius: 10px;
  padding: 5px;
  font-size: .8rem;
  height: auto;
  width: auto;
  box-shadow: 2px 2px 2px 0px #7e7e7e;
}

.grey-Button {
  background-color: #efefef;
  color: #000000;
  border: none;
}

.released {
  box-shadow: 0px!important;
  background-color: #3f484a;
}

.release-Item {
  margin-left: 5px;
}

.release-selected {
  display: flex;
  justify-content: space-between;
  margin: 5px;
  padding: 5px;
}

.release-Link {
  text-decoration: none;
  color: #000000;
  font-weight: 600;
}

.release-Link:hover {
  text-decoration: none;
  color: #000000;
  cursor: pointer;
  font-weight: 500;
}

.divider {
  margin-bottom: -1px;
  width: 100%;
  border-bottom: 1px solid #d9d9d9;
}

.release-mr-5 {
  margin-right: 5px;
}

.ml-5 {
  margin-left: 5px;
}

.release-Button-Wide {
  border-radius: 40px;
  padding: 10px 20px;
  font-size: .8rem;
  height: auto;
  width: auto;
  box-shadow: 2px 2px 2px 0px #7e7e7e;
}

.release-Button-Wide:hover {
  color: #ffffff;
  text-decoration: none;
  background-color: #3f484a;
}

.menu-item {
  padding: 10px 10px 0px 10px;
  border-top-left-radius: 15px;
  border-top-right-radius: 15px;
  border-bottom: none;
  border-top: solid 1px #000000;
  border-left: solid 1px #000000;
  border-right: solid 1px #000000;
}

.link-style {
  color: #000000;
  text-decoration: none;
}

.link-style:hover {
  color: #000000;
  text-decoration: none;
}

.selected {
  background-color: #eeeeee;
}

.nav-menu {
  display: flex;
  align-items: center;
}

.distribution-date {
  margin: 0px 10px;
}

.scroll-space {
  height: 60vh;
  overflow-y: scroll;
}

.promote-return:hover {
  background-color: #ffffff!important;
}

.substack-link-input {
  margin: 10px;
  width: 50%;
}

.download-copy {
  margin-right: 5px!important;
}

.message-generator {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  z-index: 1000;
  width: 90%;
  max-width: 600px;
  max-height: 80vh;
}

.message-generator-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid #eee;
}

.message-generator-body {
  overflow-y: auto;
  max-height: calc(80vh - 100px);
}

.generated-message {
  padding: 15px;
  margin: 10px 0;
  background: #f8f9fa;
  border-radius: 6px;
  border: 1px solid #eee;
  position: relative;
}

.message-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 10px;
}

.copy-button {
  background: #f0f0f0;
  border: none;
  padding: 5px 10px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
}

.copy-button:hover {
  background: #e0e0e0;
}

.message-container {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  justify-content: space-around;
  margin: 10px 0;
  padding: 10px;
  background: #f5f5f5;
  border-radius: 6px;
}

.mt-10 {
  margin-top: 10px;
}

.message-text {
  margin: 0;
  padding: 10px;
  color: #333;
  font-size: 14px;
  line-height: 1.4;
  word-wrap: break-word;
  border-left: 3px solid #6366f1;
  background: white;
}

.promotion-actions {
  display: flex;
  gap: 8px;
}

.promotion-actions button {
  padding: 6px 12px;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.promotion-actions button i {
  font-size: 12px;
}

.cb {
  color: #000000;
}

/* Add to your existing CSS */
.message-container {
  margin: 10px 0;
  padding: 10px;
  background: #f5f5f5;
  border-radius: 6px;
}

.message-text {
  margin: 0;
  padding: 10px;
  color: #333;
  font-size: 14px;
  line-height: 1.4;
  word-wrap: break-word;
  background: white;
  border-left: 3px solid #6366f1;
}

#default-message {
  border-left: 3px solid #4CAF50;
}

/*Profile Page Style*/

.profile-split {
  justify-content: space-between;
}

.w-100 {
  width: 100%!important;
}

.fs-18 {
  font-size: 18px;
  font-weight: 300;
}

.white-background {
  background-color: #ffffff!important;
}

.verify-email-link {
  color: #39c30f;
}

.verify-email-link:hover {
  color: #39c30f;
}

.bio-iframe {
  width: 100%;
  height: auto;
  background-color: #efefef;
}

.bio-Button {
  border-radius: 10px;
  padding: 10px;
  height: auto;
  width: fit-content;
  box-shadow: 2px 2px 2px 0px #7e7e7e;
  margin: 20px 0px;
  background-color: #000000;
  color: #eeeeee;
  text-decoration: none;
}

.bio-Button:hover {
  background-color: #3f484a;
  color: #eeeeee;
  text-decoration: none;
}

.distribution-Button {
  border-radius: 10px;
  padding: 10px;
  height: auto;
  width: fit-content;
  box-shadow: 2px 2px 2px 0px #7e7e7e;
  margin: 40px 20px;
  background-color: #000000;
  color: #eeeeee;
  text-decoration: none;
}

.distribution-Button:hover {
  background-color: #3f484a;
  color: #eeeeee;
  text-decoration: none;
}

.profile-bio-story {
  display: grid;
  background-color: #efefef;
  padding-top: 5px;
  padding-bottom: 5px;
  border-bottom: 2px;
  border-top: 0px;
  border-left: 0px;
  border-right: 0px;
  border-style: solid;
  padding-left: 20px;
  padding-right: 10px;
  margin-bottom: 10px;
}

.email-verification-block {
  display: flex;
  align-items: center;
}

.verified-display {
  width: 20%;
}

.verify-email {
  color: #000000;
  text-decoration: none;
  padding: 10px;
  border-radius: 30px;
  border: 1px solid #000000;
  margin: 20px 0px;
  width: fit-content;
  background-color: white;
}

.verify-email:hover {
  color: #000000;
  text-decoration: none;
  background-color: #909090;
}

.permissions-title {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 0px;
}

.permissions-allow-to {
  font-size: 16px;
  font-weight: 400;
}

.team-permissions {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.permissions-select {
  display: flex;
  flex-direction: column;
  border: 0px;
  align-items: center;
}

.dividing-line {
  border-top: #909090 1px solid;
}

.mt-30 {
  margin-top: 30px;
}

/* Profile Header Bar */
.profile-header-bar {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 24px 0 16px 0;
  border-bottom: 1px solid #ececec;
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 10;
}
.profile-back-btn {
  display: flex;
  align-items: center;
  margin-right: 8px;
  border-radius: 50%;
  transition: background 0.15s;
  width: 38px;
  height: 38px;
  justify-content: center;
}
.profile-back-btn:hover {
  background: #f5f5f5;
}
.profile-header-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #222;
}
.profile-header-subtitle {
  font-size: 1rem;
  color: #888;
  margin-top: 2px;
}

/* Main Container */
.profile-main-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px 0 48px 0;
}

/* Profile Card */
.profile-card {
  display: flex;
  align-items: center;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 1px 8px rgba(0,0,0,0.04);
  padding: 24px 32px;
  margin-bottom: 28px;
  gap: 24px;
}
.profile-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  background: #f3f3f3;
}
.profile-card-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.profile-card-name {
  font-size: 1.3rem;
  font-weight: 600;
  color: #222;
}
.profile-card-handle {
  font-size: 1rem;
  color: #888;
}
.profile-card-meta {
  font-size: 0.98rem;
  color: #888;
  margin-top: 2px;
}

/* Section Cards */
.profile-section {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 1px 8px rgba(0,0,0,0.03);
  padding: 28px 32px 24px 32px;
  margin-bottom: 28px;
}
.profile-section-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 2px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.profile-section-icon {
  font-size: 1.2em;
}
.profile-section-desc {
  color: #888;
  font-size: 1rem;
  margin-bottom: 18px;
}

/* Personal Info Grid */
.profile-fields-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 24px;
}
.profile-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.profile-field label {
  font-weight: 500;
  font-size: 0.98rem;
  margin-bottom: 2px;
}
.profile-field input {
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid #e5e5e5;
  background: #f5f5f7;
  font-size: 1rem;
  color: #222;
}
.profile-field-hint {
  font-size: 0.85rem;
  color: #aaa;
  margin-top: 2px;
}

/* Channels */
.channels-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.channel-card {
  display: flex;
  align-items: center;
  background: #f6f6f8;
  border-radius: 10px;
  padding: 16px 18px;
  gap: 18px;
  margin-bottom: 0;
}
.channel-badge {
  font-size: 0.92rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  background: #222;
  color: #fff;
  margin-right: 10px;
}
.channel-badge.wordpress { background: #23282d; }
.channel-badge.medium { background: #00ab6c; }
.channel-badge.ghost { background: #15171a; }
.channel-info {
  flex: 1 1 auto;
}
.channel-title {
  font-weight: 500;
  font-size: 1.05rem;
}
.channel-meta {
  font-size: 0.92rem;
  color: #888;
}
.channel-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.channel-action-btn {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  padding: 5px 7px;
  cursor: pointer;
  transition: background 0.15s, border 0.15s;
}
.channel-action-btn:hover {
  background: #fbeaea;
  border-color: #d32f2f;
}
.channel-action-btn.danger svg path {
  stroke: #d32f2f;
}
.channel-add-row {
  display: flex;
  justify-content: center;
  margin-top: 8px;
}
.channel-add-btn {
  background: none;
  border: 1.5px dashed #bbb;
  color: #555;
  border-radius: 8px;
  padding: 7px 22px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.15s, border 0.15s;
}
.channel-add-btn:hover {
  background: #f5f5f5;
  border-color: #888;
}

/* Bio */
.profile-bio-textarea {
  width: 100%;
  min-height: 120px;
  border-radius: 10px;
  border: 1px solid #e5e5e5;
  background: #f5f5f7;
  font-size: 1rem;
  color: #222;
  padding: 14px;
  margin-bottom: 6px;
  resize: vertical;
}
.profile-bio-hint {
  font-size: 0.88rem;
  color: #888;
  margin-top: 2px;
}

/* Publishing Preferences */
.profile-pref-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.profile-pref-label {
  font-size: 1rem;
  color: #222;
}
.profile-currency-select {
  padding: 7px 14px;
  border-radius: 8px;
  border: 1px solid #e5e5e5;
  background: #f5f5f7;
  font-size: 1rem;
  color: #222;
}

/* Switch (toggle) */
.switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #ccc;
  border-radius: 24px;
  transition: .2s;
}
.switch input:checked + .slider {
  background-color: #222;
}
.slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: #fff;
  border-radius: 50%;
  transition: .2s;
}
.switch input:checked + .slider:before {
  transform: translateX(20px);
}

/* Team Permissions */
.profile-perm-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.profile-perm-label {
  font-size: 1rem;
  font-weight: 500;
  color: #222;
}
.profile-perm-desc {
  font-size: 0.95rem;
  color: #888;
}

/* Subscription Card */
.subscription-card {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 24px 28px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.03);
  margin-top: 10px;
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.subscription-plan-badge {
  background: #e0f7fa;
  color: #00bcd4;
  font-size: 0.92rem;
  font-weight: 600;
  border-radius: 6px;
  padding: 3px 12px;
  margin-bottom: 6px;
}
.subscription-plan-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 2px;
}
.subscription-plan-desc {
  font-size: 1rem;
  color: #555;
  margin-bottom: 10px;
}
.subscription-includes-title {
  font-size: 1rem;
  font-weight: 600;
  margin-top: 10px;
  margin-bottom: 4px;
}
.subscription-includes-list {
  margin: 0 0 10px 0;
  padding-left: 18px;
  color: #222;
  font-size: 0.98rem;
}
.subscription-plan-meta {
  font-size: 0.95rem;
  color: #888;
  margin-bottom: 10px;
}
.subscription-manage-btn {
  background: #fff;
  border: 1.5px solid #bbb;
  color: #222;
  border-radius: 8px;
  padding: 8px 0;
  font-size: 1rem;
  width: 100%;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, border 0.15s;
}
.subscription-manage-btn:hover {
  background: #f5f5f5;
  border-color: #888;
}

/* Danger Zone */
.danger-zone-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 1px 8px rgba(220,0,0,0.04);
  padding: 28px 32px 24px 32px;
  margin-bottom: 28px;
  border: 1.5px solid #f8d7da;
}
.danger-zone-title {
  color: #b71c1c;
  font-size: 1.1rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 2px;
}
.danger-zone-icon {
  font-size: 1.2em;
}
.danger-zone-desc {
  color: #757575;
  font-size: 1rem;
  margin-bottom: 18px;
}
.danger-zone-btn {
  background: #bd3846;
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 16px 0;
  font-size: 1.1rem;
  font-weight: 600;
  width: 100%;
  cursor: pointer;
  transition: background 0.15s;
}
.danger-zone-btn:hover {
  background: #a32a36;
}

/* Responsive */
@media (max-width: 900px) {
  .profile-main-container {
      padding: 12px 0 32px 0;
  }
  .profile-card, .profile-section, .danger-zone-card {
      padding: 18px 8px 16px 8px;
  }
  .profile-fields-grid {
      grid-template-columns: 1fr;
      gap: 14px 0;
  }
}

/*Blog Page Style*/

.blog-header {
  padding: 3rem;
  padding-bottom: 0px;
  text-align: center;
  background: #eeeeee;
  color: rgb(0, 0, 0);
  font-size: 18px;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
}

.blog-title {
  display: grid;
  justify-content: center;
  justify-items: center;
}

.feed-bio {
  width: 100%;
  height: auto;
  background-color: #ffffff;
}

.feed-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin-left: 10%;
  margin-right: auto;
  width: 30%;
}

.feed-lettsnews-headers {
  margin-top: -3%;
  align-items: flex-start;
  display: flex;
  flex-direction: column;
  width: 25%;
}

.w-50 {
  width: 50%;
}

.w-25 {
  width: 25%;
}

.margin-filter {
  margin-top: 30px;
  display: contents;
}

.filter-Name {
  font-size: 14px;
  margin-bottom: -3px;
  margin-top: 10px;
}

.filter-month {
  font-size: 12px;
}

.filter-year {
  font-size: 12px;
}

.year-month-select {
  display: flex;
  flex-wrap: wrap;
  align-content: center;
  justify-content: space-between;
  align-items: center;
}

.feed-dropdown {
  border: 0px;
  background-color: #eeeeee;
  box-shadow: 1px 1px 1px 0px #747474;
  border-radius: 5px;
  margin: 0px;
  padding: 0px;
  height: 15px;
}

.no-border {
  border: 0px;
}

.blog-stories {
  display: grid;
  justify-content: center;
  justify-items: center;
  margin: 30px;
}

.blog-iframe {
  width: 90vw;
  height: 60vh;
  padding: 30px;
  background-color: #f4f4f4;
  box-shadow: 5px 5px 5px 0px #747474;
}

.No-Decoration {
  text-decoration: none;
  color: #000000;
  border: none;
}

.No-Decoration:hover {
  text-decoration: none;
  border: none;
  color: #3f484a;
}

.font-small {
  font-size: 12px;
}

/* Teams Styling */

.teams-icon {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-content: center;
  aspect-ratio: 1 / 1;
  background-color: #d9d9d9;
  min-height: 75px;
  border-radius: 5px;
}

.delete-Link {
  background-color: transparent;
  color: #000000;
  border: 0;
}

.delete-Link:hover {
  border: 0;
  color: #3f484a;
}

.team-Editor {
  display: flex;
  margin-bottom: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.center-align {
  display: flex;
  flex-wrap: wrap;
  align-content: center;
}

.team-save-button {
  left: 88%;
  top: 86%;
  border-radius: 20px;
  width: 10rem;
  display: flex;
  flex-wrap: wrap;
  align-content: center; 
  justify-content: center; 
  position: fixed; 
  z-index: 2; 
  box-shadow: 0px 10px 10px 0px rgba(0,0,0,0.4); 
}

.team-detail-header {
  border-bottom: 1px solid #e5e5e5;
  font-size: 0.8rem;
  background: #fff;
  padding: 1rem 0px;
}

.team-detail-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  width: 100%;
  flex-wrap: wrap;
}

.back-btn {
  display: flex;
  align-items: center;
  text-decoration: none;
  transition: background 0.15s;
  border-radius: 50%;
  padding: 10px;
  justify-content: center;
}
.back-btn:hover {
  background: #e0e0e0;
}
.no-margin {
  margin: 0;
}
.team-detail-title {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 180px;
  flex: 1 1 300px;
}

.content-detail-name.editable-name {
  font-size: 1.1rem;
  min-width: 120px;
  width: 80%;
  box-sizing: border-box;
}

.mw-260 {
  max-width: 260px;
}

.edit-icon {
  width: 18px;
  height: 18px;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.edit-icon:hover {
  opacity: 1;
}

.team-detail-desc {
  font-size: 0.85em;
  color: #888;
  margin: 0 0 0 6px;
  text-align: left;
}

.edit-icon {
  width: 18px;
  height: 18px;
  margin-left: 4px;
  cursor: pointer;
  vertical-align: middle;
  opacity: 0.7;
  transition: opacity 0.2s;
}
.edit-icon:hover {
  opacity: 1;
}

/* Three-dot menu: circular hover */
.three-dot-menu {
  font-size: 1.3rem !important;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.15s;
  cursor: pointer;
  margin: 0;
}
.three-dot-menu:hover, .three-dot-menu:focus {
  background: #e0e0e0;
}

/* Smaller text for the whole header */
.team-detail-header,
.team-detail-header * {
  font-size: 0.8rem;
}

.add-member-section {
  margin-top: 2.5rem;
  margin-bottom: 2.5rem;
  max-width: 100%;
}

.add-member-title {
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.add-member-label {
  display: block;
  font-weight: 500;
  color: #22223b;
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

.add-member-input {
  width: 100%;
  padding: 14px 18px;
  border: none;
  border-radius: 10px;
  background: #f5f5f7;
  font-size: 1rem;
  margin-bottom: 1.5rem;
  color: #222;
  outline: none;
  transition: box-shadow 0.2s;
}

.add-member-input:focus {
  box-shadow: 0 0 0 2px #d1d5db;
}

.add-member-select {
  width: 180px;
  padding: 12px 18px;
  border: none;
  border-radius: 10px;
  background: #f5f5f7;
  font-size: 1rem;
  color: #222;
  margin-bottom: 2rem;
  appearance: none;
  outline: none;
}

.add-member-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #757575;
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 14px 28px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  margin-top: 0.5rem;
  transition: background 0.2s;
}

.add-member-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.add-member-btn:hover:enabled {
  background: #5a5a5a;
}

.add-member-warning {
  color: #b71c1c;
  background: #fbeaea;
  padding: 12px 18px;
  border-radius: 10px;
  margin-top: 1rem;
  font-size: 1rem;
}

.add-member-msg {
  color: #1976d2;
  margin-bottom: 1rem;
  font-size: 1rem;
}

@media (max-width: 700px) {
  .add-member-section {
    padding: 0 1rem;
  }
  .add-member-input, .add-member-select {
    width: 100%;
  }
}

.team-members-section {
  margin-top: 2rem;
}

.members-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.member-row {
  display: flex;
  align-items: center;
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  padding: 18px 24px;
  margin-bottom: 18px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.03);
  gap: 18px;
}

.member-avatar {
  width: 44px;
  height: 44px;
  background: #f4f4f6;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 1.1rem;
  color: #888;
  margin-right: 10px;
}

.member-info {
  flex: 1 1 180px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.member-name {
  font-weight: 500;
  font-size: 1rem;
  color: #222;
}

.member-email {
  font-size: 0.92rem;
  color: #888;
  margin-top: 2px;
}

.member-role-group {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 170px;
}

.member-role {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.98rem;
  color: #555;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 8px;
  background: #f7f7f7;
}

.owner-role {
  color: #f7b731;
  background: #fffbe6;
}

.role-dropdown {
  border: none;
  background: #f4f4f6;
  border-radius: 8px;
  padding: 6px 18px 6px 10px;
  font-size: 0.98rem;
  color: #555;
  min-width: 90px;
  pointer-events: none;
}

.member-remove-btn {
  background: none;
  border: none;
  color: #d93025;
  font-size: 1.4rem;
  border-radius: 5px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
  margin-left: 10px;
  cursor: pointer;
}

.member-remove-btn:hover {
  background: #fbeaea;
  color: #b71c1c;
}

/* Compact Add New Member section */
.add-member-section {
  margin-top: 1.2rem;
  margin-bottom: 1.2rem;
}

.add-member-title {
  font-size: 1.08rem;
  margin-bottom: 1rem;
}

.add-member-label {
  font-size: 0.95rem;
  margin-bottom: 0.2rem;
}

.add-member-input {
  padding: 8px 12px;
  font-size: 0.95rem;
  margin-bottom: 0.7rem;
  border-radius: 7px;
}

.add-member-select {
  padding: 7px 12px;
  font-size: 0.95rem;
  border-radius: 7px;
  margin-bottom: 1.1rem;
  width: 140px;
}

.add-member-btn {
  padding: 8px 16px;
  font-size: 0.98rem;
  border-radius: 8px;
  margin-top: 0.2rem;
  gap: 6px;
}

.add-member-warning,
.add-member-msg {
  font-size: 0.95rem;
  padding: 8px 12px;
  border-radius: 7px;
  margin-top: 0.7rem;
}

/* Compact Members List */
.team-members-section {
  margin-top: 1.2rem;
}

.members-title {
  font-size: 1.05rem;
  margin-bottom: 1rem;
}

.member-row {
  padding: 10px 14px;
  margin-bottom: 10px;
  border-radius: 8px;
  gap: 10px;
}

.member-avatar {
  width: 32px;
  height: 32px;
  font-size: 0.98rem;
  border-radius: 50%;
  margin-right: 7px;
}

.member-info {
  flex: 1 1 120px;
}

.member-name {
  font-size: 0.98rem;
}

.member-email {
  font-size: 0.85rem;
  margin-top: 1px;
}

.member-role-group {
  gap: 6px;
  min-width: 110px;
}

.member-role {
  font-size: 0.92rem;
  padding: 2px 7px;
  border-radius: 6px;
}

.owner-role {
  border-radius: 6px;
}

.role-dropdown {
  padding: 3px 10px 3px 7px;
  font-size: 0.92rem;
  border-radius: 6px;
  min-width: 70px;
}

.member-remove-btn {
  font-size: 1.1rem;
  width: 26px;
  height: 26px;
  border-radius: 4px;
  margin-left: 6px;
}

/* Responsive tweaks */
@media (max-width: 700px) {
  .add-member-section {
    padding: 0 0.5rem;
  }
  .add-member-input, .add-member-select {
    width: 100%;
  }
  .member-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding: 10px 7px;
  }
}
.sticky {
  position: sticky;
  top: 0;
  z-index: 10;
}
/* Credentials Styling */

.credentials-list {
  padding: 2rem;
}

.credentials-header {
  border-bottom: 3rem;
}

.credentials-table-column {
  padding: 1rem 2rem;
  align-content: center;
}

.bg-grey {
  background-color: #eeeeee;
}

.actions-content {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
}

.action-link {
  display: flex;
  flex-wrap: nowrap;
  align-content: center;
}

.actions-content a {
  color: #000000;
  padding: 10px;
  text-decoration: none;
}

.border-hover-none:hover {
  text-decoration: none;
}

.width-auto {
  width: auto;
}

.pd-5 {
  padding: 1rem 5rem;
}

.pd-2 {
  padding: 1rem 2rem;
}

.w-fc {
  width: fit-content;
}

.credential-edit-list {
  padding: 5rem;
  width: 100%;
}

.credential-edit-header {
  border-bottom: 3rem;
  border-top: 5rem;
}

.verify-credential {
  margin-left: 8px;
  width: 20px;
  height: 20px;
}

.bx-shadow-2 {
  box-shadow: 2px 2px 2px 0px #7e7e7e;
}

.float-right {
  margin-left: auto;
}

.black {
  color: #000000;
}

.publish-label-cedit {
  display: flex;
  align-items: center;
  position: relative;
}

.hover-describer-cedit {
  display: none;
}

.publish-label-cedit:hover .hover-describer-cedit {
  display: block;
  position: absolute;
  color: #000000;
  background-color: #ccc;
  padding: 2px;
  width: max-content;
  max-width: 300%;
  left: 100%;
  top: 10px;
}

.hint-icon {
  height: 18px;
  align-items: center;
  pointer-events: none;
  display: inline-block;
  align-self: end;
  margin-top: 0px;
  margin-right: 5px;
}

.d-flex {
  display: flex;
  align-items: center;
  position: relative;
}

.teams-topbar {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: space-between;
  font-size: 0.8rem;
}

.teams-search-number {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  white-space: nowrap;
}

.teams-search-bar {
  display: flex;
  align-items: center;
  background: #f6f6f6;
  border-radius: 30px;
  padding: 0 10px;
  height: 45px;
  min-width: 320px;
  max-width: 400px;
  flex: 1 1 320px;
}

.teams-search-bar .search-btn {
  background: none;
  border: none;
  outline: none;
  display: flex;
  align-items: center;
  padding: 0 8px 0 0;
  cursor: pointer;
}

.teams-search-bar .search-icon {
  height: 22px;
  width: 22px;
  pointer-events: none;
}

.teams-search-bar .search-input {
  border: none;
  background: transparent;
  font-size: 0.8rem;
  width: 100%;
  padding: 8px 0;
  outline: none;
}

.teams-search-bar .search-input:focus {
  outline: none;
}

.stats-bulk {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
  white-space: nowrap;
  color: #555;
}

.sort-filter {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.dropdown-label {
  display: flex;
  align-items: center;
  font-weight: 500;
  margin: 0px;
  border-radius: 15px;
  padding: 5px;
}
.dropdown-label:hover {
  background-color: #eeeeee;
}
.dropdown-arrow {
  font-size: 0.8em;
  line-height: 1;
  color: #555;
  display: flex;
  align-items: center;
  height: 1em;
}

.sort-filter-display {
  font-size: 0.8rem;
  font-weight: 500;
  padding: 6px 0.3rem;
  appearance: none;
  cursor: pointer;
  background-image: none;
}

@media (max-width: 900px) {
  .teams-topbar {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }
  .teams-search-bar {
    min-width: 0;
    max-width: 100%;
  }
}

/* Team List Improvements */
.individual-content {
  font-size: 0.8rem; /* smaller text */
  background: #fff;
}
.individual-content:hover {
  background-color: #f4f4f4;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.content-name-desc-date {
  font-size: 0.95em;
}

.team-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.95em;
  margin-top: 2px;
}

.status-icon {
  display: inline-block;
  width: 18px;
  height: 18px;
  vertical-align: middle;
}

/* Three-dot menu improvements */
.three-dot-menu {
  font-size: 1.3rem !important;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  transition: background 0.15s;
  cursor: pointer;
  margin-top: auto;
  margin-bottom: auto;
}
.three-dot-menu:hover {
  background: #bbbbbb;
}

/* Shrink dropdown menu for three dots */
.Content-More .dropdown-content {
  min-width: 110px;
  font-size: 0.95em;
  right: 0;
  left: auto;
}

/* Share to Team Styling */

.accordion {
  background-color: #eee;
  color: #444;
  cursor: pointer;
  padding: 5px;
  margin-bottom: 10px;
  width: 100%;
  text-align: center;
  border: none;
  outline: none;
  transition: 0.4s;
}
.active, .accordion:hover {
  background-color: #ccc;
  border: none;
  outline: none;
}
.panel {
  padding: 0 18px;
  background-color: white;
  display: none;
  overflow: hidden;
}
.enabled {
  background-color: #000000;
  display: none;
  margin-top: 10px;
}
.disabled { 
  background-color: #747474;
}

/* Mobile App Styling */

.sort-filter-mobile {
  margin-right: 0px;
}

.search-input-mobile {
  padding-left: 0px;
  width: 120%;
}

/* Subscription Plans Styling */

.subscribe-container {
  /*max-width: 800px;*/
  margin: 0px;
  padding: 20px;
  font-family: "Roboto", sans-serif;
  font-weight: 400;
  font-style: normal;
  width: 100%;
}  
.plan-descriptors {
  padding: 5px 20px;
  font-weight: 600;
  font-size: 20px;
  margin-bottom: -5px;
}
.subscription-plan-holder {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  min-width: 650px;
}
.subscription-plan-holder-left {
  justify-content: left!important;
}
.subscription-plan {
  border: 1px solid #C6C6C6;
  padding: 20px;
  margin-bottom: 20px;
  width: 32%;
}
.plan-name {
  display: flex;
  justify-content: space-between;
  align-content: center;
  margin-bottom: 5px;
}
.subscription-plan h3 {
  margin-top: 0;
  font-weight: 600;
  font-size: 18px;
  margin-bottom: 0px;
}
.price {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: -5px;
}
.price-span-currency {
  font-size: 28px;
  font-weight: 600;
}
.included-Features {
  display: flex;
  margin-bottom: 10px;
}
.features-icon {
  margin: 0px!important;
}
.features-p {
  margin-left: 10px;
  margin-bottom: 0px!important;
}
.subscription-plan label.select-plan {
  display: block;
  margin: 10px 0;
}
.pricing-monthly-annual {
  display: flex;
  justify-content: space-around;
}
.billing-cycle {
  margin: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}
.billing-cycle-selection {
  display: flex;
  align-items: center;
  justify-content: center;
}
.billing-cycle label {
  display: flex;
  font-weight: 600;
  align-items: center;
}
.monthly-annual-checkmark {
  height: 15px!important;
  width: 15px!important;
}
.billing-cycle-label-monthly {
  border-radius: 30px;
  border: solid 1px #747474;
  border-top-right-radius: 0px;
  border-bottom-right-radius: 0px;
  padding: 10px;
  margin: 0px;
  background-color: #c6c6c6;
  height: inherit;
}
.billing-cycle-label-annually {
  border-radius: 30px;
  border: solid 1px #747474;
  border-top-left-radius: 0px;
  border-bottom-left-radius: 0px;
  padding: 10px;
  margin: 0px;
  height: inherit;
}
.subscribe-button {
  display: block;
  padding: 10px 15px;
  background-color: #000000;
  color: white;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 300;
}
.subscribe-button:hover {
  background-color: #3f484a;
}
.deactivate {
  background-color: #c6c6c6;
  color: #000000;
}
.deactivate:hover {
  background-color: #c6c6c6;
}
.error {
  color: red;
  margin-bottom: 20px;
}
.warning {
  margin-left: 20px;
}
.most-common-background {
  background-color: #ffd70017;
}
.most-common-plan {
  color: #000000;
  font-size: 14px;  
}
.company-title {
  margin-top: 20px;
}

/* Checkout Style */

.checkout-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
}
.remove-payment-method {
  border: none;
  padding: 10px;
  aspect-ratio : 1 / 1;
}
.add-payment-method-title {
  margin: 2.5px 0px;
  color: #000000;
  font-size: 18px;
}
.discount-code {
  align-items: center;
}
.code-label {
  margin: 0px;
}
.checkout-button {
  display: block;
  width: 100%;
  padding: 10px;
  background-color: #000000;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
  margin-top: 20px;
}
.apply-button {
  display: block;
  padding: 10px;
  background-color: #000000;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
}
.apply-button:hover {
  background-color: #3f484a;
}
.checkout-button:hover {
  background-color: #3f484a;
}
#card-element {
  margin-bottom: 20px;
}
#card-errors {
  color: red;
}

.coming-soon-text {
  padding: 0px 20px;
  color: #ff0000;
}

/* Chat Style */ 

.chat-threads { 
  font-size: 14px;
}

.form-group {
  margin-bottom: 1em;
}

textarea {
  width: 100%;
  height: 100px;
  padding: 0.5em;
  font-size: 1em;
}

select {
}

button {
  padding: 0.5em 1em;
  font-size: 1em;
}
.chat-message {
  padding-top: 10px;
  margin-top: 10px;
}

.message-account-icon {
  margin-right: 5px;
  width: 20px;
}

.message-user {
  display: flex;
  align-items: center;
}

.item-message {
  margin-left: 25px;
}

.chat-message:last-child {
  border-top: 1px solid #ccc;
  padding-top: 10px;
  border-bottom: 1px solid #ccc;
  padding-bottom: 10px;
}

.write-comment {
  font-size: 16px;
}

.type-message {
  background-color: #efefef;
  border-bottom: solid 1px #000000;
  border-top: none;
  border-left: none;
  border-right: none;
}

.post-message {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.informed_users {
  accent-color: #000000;
  height: 20px;
  margin-right: 5px;
}

.post-button {
  background-color: #000000;
  color: #ffffff;
  border-radius: 15px;
  padding: 20px;
  border: none;
  display: flex;
  align-items: center;
}

/*Pagination Styling*/

.pagination {
  display: flex;
  align-items: center;  /* Align items vertically in the center */
  justify-content: center;  /* Add space between pagination controls and the dropdown */
  flex-wrap: wrap;  /* Ensure it wraps on smaller screens */
}

.step-links a {
  margin-right: 10px;  /* Add space between pagination links */
  color: #444;
  text-decoration: none;
}

.step-links:hover { 
  color: #444;
  text-decoration: none;
}

#items-per-page-form {
  margin-left: 20px;  /* Add some space between the pagination controls and the items-per-page dropdown */
}

/* Join Styling */

.signup-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 80%;
}

.signup-table {
  margin-bottom: 30px;
}

/* Content Picker Styles */

.picker-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin: 10px 0px;
  padding: 0 5px;
  align-items: center;
}

/* Delete Account Styles */

.subheading {
  font-size: 1.4rem;
  padding: 0px;
  margin-bottom: 5px;
}

.confirm-delete {
  display: flex;
  flex-wrap: wrap;
  margin: 10px 0px;
  padding: 0 5px;
  align-items: center;
  gap: 35px;
}

.color-red {
  color: #d93025;
}

.delete-description {
  align-items: center;
  display: flex;
  justify-content: center;
  justify-items: center;
}

.w-80 {
  width: 80%;
  text-align: center;
}

.centered {
  justify-self: center;
}

.confirm-delete-button {
  border-radius: 30px;
  background-color: #000000;
  color: #ffffff;
  padding: 10px 30px;
  border: 0px;
  width: max-content;
  display: flex;
  flex-wrap: wrap;
  align-content: center;
  justify-content: center;
}

.confirm-delete-button-red {
  border-radius: 30px;
  background-color: #d93025;
  color: #ffffff;
  padding: 10px 30px;
  border: 0px;
  width: max-content;
  display: flex;
  flex-wrap: wrap;
  align-content: center;
  justify-content: center;
}

.confirm-delete-button-red:hover {
  color: #ffffff;
  text-decoration: none;
}

/* Advanced Search Styles */

.advanced-search-container {
    margin: 20px;
    background: #fff;
    border-radius: 8px;
}

.advanced-search-toggle {
    padding: 10px;
    background: transparent;
    border: none;
    border-radius: 8px;
    text-align: left;
    font-size: 14px;
    cursor: pointer;
    margin-left: auto;
    margin-right: 20px;
}

.search-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.search-group {
    flex: 1;
}

.search-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.search-group input,
.search-group select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.search-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.search-button,
.reset-button {
    padding: 8px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.search-button {
    background: #007bff;
    color: white;
}

.reset-button {
    background: #6c757d;
    color: white;
}

.fa-chevron-down {
  transition: transform 0.3s ease;
}
.fa-chevron-down.rotated {
  transform: rotate(180deg);
}

.tags-input {
  width: 100%;
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background-color: #fff;
  height: 45px;
}

.tags-dropdown {
  width: 25%;
}

.advanced-search-input {
  width: 100%;
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background-color: #fff;
}

.f-2 {
  flex: 2!important;
}

.form-control {
  display: block;
  width: 100%;
  padding: 0.375rem 0.75rem;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  color: #212529;
  background-color: #fff;
  background-clip: padding-box;
  border: 1px solid #ced4da;
  border-radius: 0.25rem;
  transition: border-color .15s ease-in-out,box-shadow .15s ease-in-out;
}

.search-criteria-row {
  margin-bottom: 10px;
}

.add-search-btn {
  margin-top: 10px;
  padding: 5px 10px;
  background-color: #e9ecef;
  border: 1px solid #ced4da;
  border-radius: 4px;
  cursor: pointer;
}

.remove-search-btn {
  padding: 8px;
  margin-left: 5px;
  background-color: transparent;
  color: #000000;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.remove-search-btn:hover {
  background-color: #c82333;
}

.search-criteria {
  margin-bottom: 10px;
}

.search-logic {
  margin: 0 10px;
  padding: 8px;
  border: 1px solid #ced4da;
  border-radius: 4px;
}

.form-control.w-100[multiple] {
    appearance: none;
    background-color: white;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 8px;
    min-height: 42px;
    max-height: 150px;
    overflow-y: auto;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.form-control.w-100[multiple] option {
    padding: 8px 12px;
    margin: 2px 0;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.form-control.w-100[multiple] option:checked {
    background: #007bff linear-gradient(0deg, #007bff 0%, #007bff 100%);
    color: white;
}

.form-control.w-100[multiple] option:hover:not(:checked) {
    background-color: #f8f9fa;
}

.search-group {
    position: relative;
}

.search-group label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #495057;
    margin-bottom: 0.5rem;
    display: block;
}

select[multiple] option:first-child {
  display: none;
}

/* Custom scrollbar for multiple selects */
.form-control.w-100[multiple]::-webkit-scrollbar {
    width: 8px;
}

.form-control.w-100[multiple]::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.form-control.w-100[multiple]::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

.form-control.w-100[multiple]::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

.search-actions-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-top: 1px solid #eee;
    margin-top: 20px;
}

.search-results-preview {
    color: #666;
    font-size: 0.9rem;
}

.results-count {
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-management {
    display: flex;
    gap: 10px;
}

.filter-button {
    padding: 8px 12px;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}

.filter-button:hover {
    background-color: #e9ecef;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 20%;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    z-index: 1000;
    overflow: hidden;
}

.modal-content {
    position: relative;
    background-color: #fff;
    margin: 15% auto;
    padding: 20px;
    border-radius: 8px;
    width: 80%;
    max-width: 500px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

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

.close-modal {
    font-size: 24px;
    cursor: pointer;
    color: #666;
}

.saved-filters-list {
    max-height: 300px;
    overflow-y: auto;
}

.saved-filter-item {
    padding: 10px;
    border: 1px solid #eee;
    margin-bottom: 8px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.saved-filter-item:hover {
    background-color: #f8f9fa;
}

.advanced-search-popup {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  overflow-y: hidden;
}

.advanced-search-popup-content {
  position: relative;
  background-color: #fff;
  margin: 5vh auto;
  padding: 20px;
  width: 90%;
  max-width: 800px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  max-height: 90vh;
  overflow-y: auto;
}

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

.popup-warning-header {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 20px;
  gap: 10px;
}

.close-popup {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  padding: 0;
  color: #666;
}

.close-popup:hover {
  color: #333;
}

.popup-body {
  max-height: 70vh;
  overflow-y: auto;
}

.popup-warning-text {
  font-size: 0.85rem;
  text-align: center;
  margin-bottom: 20px;
}

.ai-assistant-button {
    position: relative;
    padding-bottom: 10px;
}

.ai-toggle {
    background: transparent;
    color: rgb(0, 0, 0);
    border: 1px solid #000000;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}

.ai-toggle:hover {
    background: #007bff;
}

.ai-dialog {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 500px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    z-index: 1001;
}

.ai-dialog-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
}

.close-ai-dialog {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
}

.ai-dialog-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.ai-messages {
    height: 300px;
    overflow-y: auto;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ai-message {
    padding: 10px 15px;
    background: #f8f9fa;
    border-radius: 8px;
    max-width: 80%;
}

.user-message {
    background: #007bff;
    color: white;
    align-self: flex-end;
}

.ai-input-container {
    display: flex;
    gap: 10px;
}

.ai-input-container input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
}

.ai-input-container button {
    padding: 10px 15px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

.rate-limit-info {
  font-size: 0.8em;
  color: #666;
  padding: 5px;
  text-align: right;
  border-bottom: 1px solid #eee;
}

.rate-limit-info.warning {
  color: #ff6b6b;
  font-weight: bold;
}

.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.5);
  overflow: hidden;
}

.modal-content {
  background-color: #fefefe;
  margin: 5% auto;
  padding: 20px;
  border: 1px solid #888;
  width: 80%;
  max-width: 800px;
  border-radius: 8px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 10px;
  border-bottom: 1px solid #ddd;
}

.modal-body {
  overflow-y: auto;
  padding: 20px 0;
}

.close-modal {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

.close-modal:hover,
.close-modal:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}

body.modal-open {
  overflow: hidden;
}

.filter-logic-toggle {
  display: flex;
  justify-content: space-around;
  align-items: center;
  margin: 15px 0;
  padding: 10px;
  background: #f5f5f5;
  border-radius: 4px;
}

.toggle-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    align-items: center;
}

.toggle-label{
  margin-bottom: 0px;
}

.toggle-label-left,
.toggle-label-right {
    font-size: 14px;
    font-weight: 500;
    color: #666;
}

.simple-toggle {
    position: relative;
    width: 50px;
    height: 24px;
    margin-top: auto;
    margin-bottom: auto;
}

.simple-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 24px;
    margin-bottom: 0px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .toggle-slider {
    background-color: #2196F3;
}

input:checked + .toggle-slider:before {
    transform: translateX(26px);
}

/* Optional: Add focus styles */
input:focus + .toggle-slider {
    box-shadow: 0 0 1px #2196F3;
}

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

.reset-group {
  background: none;
  border: none;
  color: #666;
  cursor: pointer;
  padding: 2px 5px;
  font-size: 12px;
}

.reset-group:hover {
  color: #ff4444;
}

.sparkle-icon {
  color: #39c30f;
  margin-right: px;
  font-size: 1.2em;
  display: inline-block;
  animation: sparkle-pulse 1.5s infinite;
}

/* --- Dashboard Modern Styles --- */
.dashboard-main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2.5rem 1rem 3rem 1rem;
  background: #fff;
  border-radius: 0;
  box-shadow: none;
}
.dashboard-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #22223b;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 16px;
}
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 columns */
  gap: 2rem;
  margin-bottom: 2.5rem;
}
@media (max-width: 900px) {
  .dashboard-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
}
@media (max-width: 600px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
    gap: 0.7rem;
  }
}
.dashboard-card {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  padding: 1.5rem 1.2rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 170px;
  transition: box-shadow 0.2s;
}
.dashboard-card:hover {
  box-shadow: 0 6px 24px rgba(0,0,0,0.10);
}
.card-header {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 1.2rem;
  color: #3a3a5a;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 0px;
  background-color: #ffffff;
  padding: 0rem 0.5rem;
}
.card-body {
  width: 100%;
}
.card-stat {
  font-size: 1.1rem;
  margin-bottom: 0.7rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.stat-label {
  color: #6c757d;
}
.stat-value {
  font-weight: 700;
  color: #22223b;
}
.published {
  color: #39c30f;
}
.unpublished {
  color: #d93025;
}
.badge {
  border-radius: 12px;
  padding: 2px 10px;
  font-size: 0.95em;
  margin-left: 10px;
  font-weight: 500;
  vertical-align: middle;
}
.badge-published {
  background: #eafbe7;
  color: #39c30f;
}
.badge-unpublished {
  background: #ffeaea;
  color: #d93025;
}
.dashboard-section {
  margin-top: 2.5rem;
}
.dashboard-section h2 {
  font-size: 1.3rem;
  color: #22223b;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 10px;
}
.dashboard-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.dashboard-list li {
  background: #fff;
  border-radius: 10px;
  margin-bottom: 0.7rem;
  padding: 0.8rem 1.2rem;
  box-shadow: 0 1px 4px rgba(0,0,0,0.03);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.05rem;
}
.type-label {
  font-weight: 500;
  color: #3a3a5a;
}
.type-count {
  margin-left: auto;
  font-weight: 700;
  color: #22223b;
}
.content-type {
  color: #6c757d;
  margin-left: 8px;
}
.distribution-arrow {
  color: #39c30f;
  font-size: 1.2em;
  margin: 0 8px;
}
.distribution-site {
  color: #3a3a5a;
  font-weight: 500;
}
.distribution-date {
  margin-left: auto;
  color: #909090;
  font-size: 0.95em;
}
@media (max-width: 900px) {
  .dashboard-main {
      padding: 1rem 0.2rem 2rem 0.2rem;
  }
  .dashboard-title {
      font-size: 2rem;
  }
  .dashboard-grid {
      gap: 1rem;
  }
  .dashboard-section h2 {
      font-size: 1.1rem;
  }
}
@media (max-width: 600px) {
  .dashboard-main {
      padding: 0.5rem 0.1rem 1rem 0.1rem;
  }
  .dashboard-title {
      font-size: 1.3rem;
      gap: 8px;
  }
  .dashboard-card {
      padding: 1rem 0.7rem;
      min-height: 120px;
  }
  .dashboard-section {
      margin-top: 1.2rem;
  }
  .dashboard-list li {
      font-size: 0.95rem;
      padding: 0.6rem 0.7rem;
  }
}

/* --- AI Usage Card Styles --- */
.card-ai-usage {
  background: #f7faff;
  border: 2px solid #39c30f;
  box-shadow: 0 2px 16px rgba(57,195,15,0.07);
}
.card-ai-usage .card-header {
  color: #39c30f;
}
.ai-usage-types {
  margin: 0.5rem 0 1rem 0;
}
.ai-usage-type {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 1rem;
  margin-bottom: 0.2rem;
}
.ai-type-label {
  color: #3a3a5a;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
}
.ai-type-count {
  font-weight: 700;
  color: #22223b;
}
.ai-generates-left {
  margin-top: 1rem;
  padding: 0.7rem 0.5rem 0.2rem 0.5rem;
  background: #eafbe7;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 1.1rem;
  font-weight: 600;
}
.ai-generates-label {
  color: #39c30f;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
}
.ai-generates-count {
  color: #22223b;
  font-size: 1.2em;
}
.ai-generates-total {
  color: #909090;
  font-size: 1em;
}
.ai-generates-bar {
  width: 100%;
  height: 10px;
  background: #d9f7c7;
  border-radius: 6px;
  margin-top: 6px;
  margin-left: 0;
  margin-right: 0;
  overflow: hidden;
  position: relative;
}
.ai-generates-bar-inner {
  height: 100%;
  background: linear-gradient(90deg, #39c30f 60%, #a8e063 100%);
  border-radius: 6px;
  transition: width 0.4s;
}

/* Make the whole card clickable and remove underline */
.dashboard-card-link {
  text-decoration: none !important;
  color: inherit !important;
  display: block;
  transition: transform 0.08s;
}
.dashboard-card-link:hover .dashboard-card {
  box-shadow: 0 6px 24px rgba(57,195,15,0.13), 0 2px 12px rgba(0,0,0,0.06);
  transform: translateY(-2px) scale(1.02);
  cursor: pointer;
}

/* Content Agent Styles */

.content-result-card {
    transition: box-shadow 0.2s, border-color 0.2s, transform 0.1s;
    border: 1.5px solid #e0e0e0;
    cursor: pointer;
    color: inherit;
    text-decoration: none;
}
.content-result-card:hover, .content-result-card:focus {
    box-shadow: 0 8px 32px rgba(57,195,15,0.13), 0 2px 12px rgba(0,0,0,0.06);
    border-color: #39c30f;
    transform: translateY(-2px) scale(1.02);
    background: #f7faff;
    text-decoration: none;
}
.content-result-card .card-header {
    background: #f8f9fa;
    border-bottom: none;
}
.content-result-card .badge {
    font-size: 0.9em;
}
.content-preview {
    font-size: 0.95em;
    color: #555;
    background: #f6f6f6;
    border-radius: 6px;
    padding: 0.5em 0.7em;
    margin-bottom: 0.5em;
    max-height: 5.5em;
    overflow: hidden;
}

/* Results grid stays within bounds */
.results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
}

/* Card improvements */
.content-result-card {
  transition: box-shadow 0.2s, border-color 0.2s, transform 0.1s;
  border: 1.5px solid #e0e0e0;
  cursor: pointer;
  color: inherit;
  text-decoration: none;
  max-width: 100%;
  min-width: 0;
  background: #fff;
  border-radius: 12px;
}
.content-result-card:hover, .content-result-card:focus {
  box-shadow: 0 8px 32px rgba(57,195,15,0.13), 0 2px 12px rgba(0,0,0,0.06);
  border-color: #39c30f;
  transform: translateY(-2px) scale(1.02);
  background: #f7faff;
  text-decoration: none;
}
.content-result-card .card-header {
  background: #f8f9fa;
  border-bottom: none;
  border-radius: 12px 12px 0 0;
}
.content-result-card .badge {
  font-size: 0.9em;
}
.content-preview {
  font-size: 0.95em;
  color: #555;
  background: #f6f6f6;
  border-radius: 6px;
  padding: 0.5em 0.7em;
  margin-bottom: 0.5em;
  max-height: 5.5em;
  overflow: hidden;
}

/* Uniform dropdowns */
.form-select-agent {
  border-radius: 8px !important;
  border: 1.5px solid #e0e0e0 !important;
  background: #fafbfc !important;
  font-size: 1rem !important;
  padding: 0.5rem 1.2rem 0.5rem 0.7rem !important;
  min-width: 120px;
  max-width: 100%;
  margin-bottom: 0.5rem;
  transition: border-color 0.2s;
}
.form-select-agent:focus {
  border-color: #39c30f !important;
  outline: none !important;
  background: #f7faff !important;
}
label.form-label {
  font-weight: 500;
  margin-bottom: 0.2rem;
}

/* Generate Content Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.4);
}

.modal-content {
  background-color: #fefefe;
  margin: 5% auto;
  padding: 20px;
  border: 1px solid #888;
  width: 80%;
  max-width: 600px;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

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

.close-modal {
  color: #aaa;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

.close-modal:hover {
  color: black;
}

.form-group {
  margin-bottom: 15px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
}

/* Modal and Button Styles */
.button-group {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.generate-btn {
  background-color: #39c30f;
  color: #fff;
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.generate-btn:hover {
  background-color: #2ea00c;
}

.cancel-btn {
  background-color: #6c757d;
  color: #fff;
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.cancel-btn:hover {
  background-color: #5a6268;
}

/* Form Control Styles */
.form-control {
  width: 100%;
  padding: 8px 12px;
  border: 1.5px solid #ddd;
  border-radius: 4px;
  margin-top: 4px;
  font-size: 14px;
}

.form-control:focus {
  border-color: #39c30f;
  outline: none;
  box-shadow: 0 0 0 2px rgba(57, 195, 15, 0.1);
}

textarea.form-control {
  resize: vertical;
  min-height: 100px;
}

/* Responsive modal content for agent */
.modal-agent-content {
  max-width: 480px;
  width: 95vw;
  margin: 10% auto;
  background: #fff;
  border-radius: 10px;
  padding: 24px 18px 18px 18px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.15);
}

@media (max-width: 600px) {
  .modal-agent-content {
    padding: 14px 4vw 10px 4vw;
    max-width: 98vw;
  }
}

.modal-title {
  font-size: 1.4rem;
  font-weight: 600;
  text-align: center;
}

#generateContentResultView {
  min-height: 180px;
}

#generateContentResult .card {
  margin-bottom: 0;
}

/* Modal footer actions: space between buttons */
.modal-footer-actions {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0;
}

.color-b {
  color: #000000;
}

/* Prevent buttons from turning white on hover */
.btn-primary.generate-btn {
  background-color: #39c30f;
  border-color: #39c30f;
  color: #fff;
  transition: background 0.2s, border 0.2s;
}
.btn-primary.generate-btn:hover,
.btn-primary.generate-btn:focus {
  background-color: #2ea00c;
  border-color: #2ea00c;
  color: #fff;
}

.btn-secondary.cancel-btn {
  background-color: #6c757d;
  border-color: #6c757d;
  color: #fff;
  transition: background 0.2s, border 0.2s;
}
.btn-secondary.cancel-btn:hover,
.btn-secondary.cancel-btn:focus {
  background-color: #565e64;
  border-color: #565e64;
  color: #fff;
}

/* Mobile Login/Signup Optimizations - Move these to the END of your styles.css file */

/* Mobile-first approach with higher specificity */
@media screen and (max-width: 768px) {
  /* Signup container mobile styles */
  .signup-full {
    max-width: 100% !important;
    margin: 10px !important;
    padding: 20px 15px !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1) !important;
    border-radius: 12px !important;
  }

  /* Form field mobile layout */
  .form-field {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 8px !important;
    margin-bottom: 20px !important;
  }

  .form-field label {
    flex: none !important;
    text-align: left !important;
    font-size: 1rem !important;
    margin-bottom: 6px !important;
    font-weight: 600 !important;
    color: #333 !important;
  }

  /* Input wrapper mobile styles */
  .input-wrapper {
    width: 100% !important;
    position: relative !important;
  }

  .input-wrapper input {
    width: 100% !important;
    padding: 14px 16px !important;
    font-size: 16px !important; /* Prevents zoom on iOS */
    border-radius: 8px !important;
    box-sizing: border-box !important;
    border: 2px solid #ddd !important;
    background: #fff !important;
    transition: border-color 0.2s ease !important;
  }

  /* Focus states for mobile */
  .input-wrapper input:focus {
    border-color: #000000 !important;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1) !important;
    outline: none !important;
  }

  /* Hide tooltips on mobile */
  .tooltip {
    display: none !important;
    visibility: hidden !important;
  }

  /* Error messages mobile adjustment */
  .error-messages {
    margin-left: 0 !important;
    margin-top: 8px !important;
  }

  .error {
    font-size: 14px !important;
    display: block !important;
    color: #dc3545 !important;
  }

  /* Button container mobile improvements */
  .login-signup-container,
  .login-signup {
    flex-direction: row !important;
    gap: 15px !important;
    margin-top: 25px !important;
    margin-left: 0 !important;
    align-items: stretch !important;
    width: 100% !important;
  }

  .login-button {
    width: 100% !important;
    padding: 16px 24px !important;
    font-size: 16px !important;
    border-radius: 8px !important;
    margin: 0 !important;
    background: #000000 !important;
    color: #ffffff !important;
    border: none !important;
    cursor: pointer !important;
    transition: background-color 0.2s ease !important;
  }

  .login-button:hover,
  .login-button:focus {
    background: #333333 !important;
    color: #ffffff !important;
  }

  .login-page-signup {
    text-align: center !important;
    padding: 15px !important;
    font-size: 16px !important;
    color: #000000 !important;
    text-decoration: none !important;
    display: block !important;
    border: 1px solid #ddd !important;
    border-radius: 8px !important;
    background: #f8f9fa !important;
    transition: background-color 0.2s ease !important;
  }

  .login-page-signup:hover,
  .login-page-signup:focus {
    background: #e9ecef !important;
    text-decoration: none !important;
    color: #000000 !important;
  }

  /* Form group spacing */
  .form-group {
    margin-bottom: 25px !important;
  }

  /* Page titles mobile */
  .signup-full h1, 
  .signup-full h2 {
    font-size: 1.75rem !important;
    margin-bottom: 1.5rem !important;
    text-align: center !important;
    font-weight: 700 !important;
  }
}

/* Extra small mobile devices */
@media screen and (max-width: 480px) {
  .signup-full {
    max-width: 100% !important;
    margin: 10px !important;
    padding: 16px 12px !important;
    border-radius: 8px !important;
  }

  .input-wrapper input {
    padding: 16px 18px !important;
    font-size: 16px !important;
  }

  .login-button {
    padding: 18px 24px !important;
    font-size: 18px !important;
  }

  .form-field label {
    font-size: 16px !important;
    font-weight: 600 !important;
  }

  .signup-full h1, 
  .signup-full h2 {
    font-size: 1.5rem !important;
  }
}

/* Landscape mobile optimization */
@media screen and (max-width: 768px) and (orientation: landscape) {
  .signup-full {
    max-width: 90% !important;
    margin: 10px !important;
    padding: 15px !important;
  }

  .form-group {
    margin-bottom: 18px !important;
  }

  .input-wrapper input {
    padding: 12px 16px !important;
  }

  .login-button {
    padding: 14px 20px !important;
  }
}

/* Touch-friendly improvements */
@media (hover: none) and (pointer: coarse) {
  .input-wrapper input {
    min-height: 48px !important; /* Minimum touch target size */
  }

  .login-button {
    min-height: 48px !important;
    touch-action: manipulation !important; /* Prevents double-tap zoom */
  }

  .login-page-signup {
    min-height: 48px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    touch-action: manipulation !important;
  }
}

/* Prevent horizontal scrolling on mobile */
@media screen and (max-width: 768px) {
  body {
    overflow-x: hidden !important;
  }

  .signup-full,
  .signup-full * {
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Reset password link mobile */
  .reset-password-link {
    font-size: 16px !important;
    padding: 10px !important;
    text-align: center !important;
    display: block !important;
  }
}

/* Loading state improvements for mobile */
@media screen and (max-width: 768px) {
  .login-button:disabled {
    opacity: 0.6 !important;
    cursor: not-allowed !important;
  }

  .login-button.loading {
    position: relative !important;
    color: transparent !important;
  }

  .login-button.loading::after {
    content: '' !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: 20px !important;
    height: 20px !important;
    border: 2px solid #ffffff !important;
    border-top: 2px solid transparent !important;
    border-radius: 50% !important;
    animation: spin 1s linear infinite !important;
  }

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

/* Safe area support for notched devices */
@media screen and (max-width: 768px) {
  .signup-full {
    padding-left: max(15px, env(safe-area-inset-left)) !important;
    padding-right: max(15px, env(safe-area-inset-right)) !important;
    padding-top: max(20px, env(safe-area-inset-top)) !important;
    padding-bottom: max(20px, env(safe-area-inset-bottom)) !important;
  }
}

/* Dark mode support for mobile */
@media screen and (max-width: 768px) and (prefers-color-scheme: dark) {
  .signup-full {
    background: #1a1a1a !important;
    color: #ffffff !important;
  }

  .input-wrapper input {
    background: #2a2a2a !important;
    border-color: #404040 !important;
    color: #ffffff !important;
  }

  .input-wrapper input:focus {
    border-color: #ffffff !important;
    background: #333333 !important;
  }

  .form-field label {
    color: #ffffff !important;
  }

  .error {
    color: #ff6b6b !important;
  }
}

/* Chat Thread Mobile Optimizations - Add to the END of your styles.css file */

/* Mobile Chat Thread Styles */
@media screen and (max-width: 768px) {
  /* Chat container mobile layout */
  .chat-threads {
    padding: 10px !important;
    margin: 0 !important;
  }

  /* Chat thread header mobile */
  .content-header {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 10px !important;
    margin-bottom: 15px !important;
  }

  .content-header > div {
    flex-wrap: wrap !important;
    width: 100% !important;
  }

  .content-detail-name {
    font-size: 1.2rem !important;
    margin: 5px 0 !important;
    line-height: 1.3 !important;
  }

  .content-header-objects {
    margin-bottom: 5px !important;
  }

  .return-icon {
    height: 20px !important;
    margin: 0 8px 0 0 !important;
  }

  /* Main comment form mobile */
  .main-comment-form {
    background: #f8f9fa !important;
    border-radius: 12px !important;
    padding: 15px !important;
    margin-bottom: 20px !important;
  }

  .write-comment {
    font-size: 1rem !important;
    margin-bottom: 10px !important;
  }

  .type-message {
    width: 100% !important;
    min-height: 80px !important;
    padding: 12px !important;
    font-size: 16px !important; /* Prevents zoom on iOS */
    border-radius: 8px !important;
    border: 1px solid #ddd !important;
    resize: vertical !important;
    box-sizing: border-box !important;
  }

  .type-message:focus {
    border-color: #000000 !important;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1) !important;
    outline: none !important;
  }

  /* Informed users mobile layout */
  .post-message {
    margin-top: 15px !important;
    align-items: center!important;
    flex-direction: column!important;
  }

  .post-message .form-group {
    margin-bottom: 15px !important;
  }

  .post-message label {
    font-size: 1rem !important;
    font-weight: 600 !important;
    margin-bottom: 8px !important;
    display: block !important;
  }

  .informed_users {
    margin-right: 8px !important;
    transform: scale(1.2) !important;
  }

  .post-message div {
    margin-bottom: 8px !important;
    padding: 8px !important;
    background: #fff !important;
    border-radius: 6px !important;
  }

  .post-message div label {
    margin-bottom: 0 !important;
    font-size: 0.9rem !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
  }

  /* Post button mobile */
  .post-button {
    width: 100% !important;
    padding: 14px 20px !important;
    font-size: 1rem !important;
    background: #000000 !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    min-height: 48px !important;
  }

  .post-button:hover {
    background: #333333 !important;
  }

  /* Chat filter mobile */
  .chat-filter {
    width: 100% !important;
    padding: 12px !important;
    font-size: 16px !important;
    border-radius: 8px !important;
    margin-bottom: 15px !important;
    background: #fff !important;
    border: 1px solid #ddd !important;
  }

  /* Chat messages mobile */
  .chat-messages {
    margin-top: 20px !important;
  }

  .chat-message {
    background: #fff !important;
    border-radius: 12px !important;
    padding: 15px !important;
    margin-bottom: 15px !important;
    border: 1px solid #e5e5e5 !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1) !important;
  }

  .chat-message[style*="margin-left"] {
    margin-left: 10px !important; /* Reduce reply indentation on mobile */
  }

  .message-user {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 5px !important;
    margin-bottom: 10px !important;
  }

  .message-user p {
    font-size: 0.9rem !important;
    margin: 0 !important;
  }

  .message-account-icon {
    width: 18px !important;
    height: 18px !important;
  }

  .item-message {
    font-size: 1rem !important;
    line-height: 1.4 !important;
    margin: 10px 0 !important;
    word-wrap: break-word !important;
  }

  /* Reply link mobile */
  .reply-link {
    display: inline-block !important;
    padding: 8px 12px !important;
    background: #f8f9fa !important;
    color: #000000 !important;
    text-decoration: none !important;
    border-radius: 6px !important;
    font-size: 0.9rem !important;
    border: 1px solid #ddd !important;
    min-height: 36px !important;
    line-height: 1.2 !important;
  }

  .reply-link:hover {
    background: #e9ecef !important;
    text-decoration: none !important;
  }

  /* Reply form mobile */
  .reply-form {
    background: #f8f9fa !important;
    border-radius: 12px !important;
    padding: 15px !important;
    margin-top: 15px !important;
    border: 1px solid #e5e5e5 !important;
  }

  .reply-form .type-message {
    min-height: 60px !important;
  }

  .reply-form .post-message div {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 6px !important;
  }

  .cancel-reply-btn {
    width: 100% !important;
    padding: 12px 20px !important;
    font-size: 1rem !important;
    background: #6c757d !important;
    color: #fff !important;
    border: none !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    margin-top: 10px !important;
    min-height: 44px !important;
  }

  /* History items mobile */
  .history-item {
    background: #fff !important;
    border-radius: 8px !important;
    padding: 12px !important;
    margin: 10px 0 !important;
    border: 1px solid #e5e5e5 !important;
    font-size: 0.9rem !important;
  }
}

/* Base Layout Mobile Optimizations */
@media screen and (max-width: 768px) {
  /* Hide sidebar on mobile */
  .col-sm-2 {
    display: none !important;
  }

  .col-sm-10 {
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  /* Main content container mobile */
  .container-fluid {
    padding: 0 !important;
  }

  .row {
    margin: 0 !important;
  }

  /* Detail page mobile padding */
  .detail-page {
    padding: 15px !important;
  }

  .content-detail-full {
    padding: 0 !important;
  }

  /* Footer mobile */
  .Footer {
    padding: 20px 15px !important;
    font-size: 0.9rem !important;
  }

  /* Page header mobile (for logged out users) */
  .page-header {
    padding: 15px !important;
    margin-bottom: 15px !important;
    margin-top: 15px !important;
    font-size: 16px !important;
  }

  .page-header img {
    max-height: 40px !important;
  }

  /* Flex wrapper mobile */
  .flex-wrapper,
  .flex-wrapper-dark {
    min-height: 100vh !important;
  }

  .flex-hold {
    display: none !important; /* Hide spacer on mobile */
  }
}

/* Extra small mobile devices for chat */
@media screen and (max-width: 480px) {
  .chat-threads {
    padding: 5px !important;
  }

  .main-comment-form {
    padding: 12px !important;
  }

  .chat-message {
    padding: 12px !important;
  }

  .reply-form {
    padding: 12px !important;
  }

  .content-detail-name {
    font-size: 1.1rem !important;
  }

  .type-message {
    min-height: 70px !important;
    font-size: 16px !important;
  }

  .post-button,
  .cancel-reply-btn {
    padding: 16px 20px !important;
    font-size: 1.1rem !important;
  }
}

/* Touch-friendly improvements for chat */
@media (hover: none) and (pointer: coarse) {
  .type-message,
  .chat-filter,
  .post-button,
  .reply-link,
  .cancel-reply-btn {
    min-height: 44px !important; /* Minimum touch target size */
    touch-action: manipulation !important;
  }

  .informed_users {
    min-width: 20px !important;
    min-height: 20px !important;
  }
}

/* Landscape mobile optimization for chat */
@media screen and (max-width: 768px) and (orientation: landscape) {
  .main-comment-form {
    padding: 10px !important;
  }

  .chat-message {
    padding: 10px !important;
  }

  .type-message {
    min-height: 50px !important;
  }

  .post-button,
  .cancel-reply-btn {
    padding: 10px 16px !important;
  }
}

/* Prevent horizontal scrolling on mobile for chat */
@media screen and (max-width: 768px) {
  .chat-threads,
  .chat-threads * {
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .chat-message {
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
  }

  .item-message {
    word-break: break-word !important;
  }
}

/* Dark mode support for mobile chat */
@media screen and (max-width: 768px) and (prefers-color-scheme: dark) {
  .main-comment-form,
  .reply-form {
    background: #2a2a2a !important;
    border-color: #404040 !important;
  }

  .chat-message {
    background: #1a1a1a !important;
    border-color: #404040 !important;
    color: #ffffff !important;
  }

  .type-message {
    background: #333333 !important;
    border-color: #555555 !important;
    color: #ffffff !important;
  }

  .type-message:focus {
    border-color: #ffffff !important;
  }

  .post-button {
    background: #ffffff !important;
    color: #000000 !important;
  }

  .reply-link {
    background: #404040 !important;
    color: #ffffff !important;
    border-color: #555555 !important;
  }
}

/* Mobile Navigation Enhancement (if needed for future mobile menu) */
@media screen and (max-width: 768px) {
  /* Placeholder for future mobile menu button */
  .mobile-menu-btn {
    display: block !important;
    position: fixed !important;
    top: 15px !important;
    left: 15px !important;
    z-index: 1000 !important;
    background: #000000 !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 6px !important;
    padding: 8px 12px !important;
    font-size: 0.9rem !important;
  }

  /* Hide on desktop */
  @media (min-width: 769px) {
    .mobile-menu-btn {
      display: none !important;
    }
  }
}