:root {
  /* Brand Palette */
  --revo-navy: #242042;
  --revo-neon: #74f9fb;
  --revo-yellow: #f8db6c;
  --revo-bg: #f7f5f3; /* Your new linen background */
  --revo-white: #ffffff; /* Used for content cards to pop against the bg */
  --revo-text: #242042;
  --revo-blue: #0074ff;
  --revo-border: #ededed;
  --revo-accent: var(--revo-blue);
}

/* Update these in your theme-dark block */
.theme-dark {
  /* 1. Main Workspace Background */
  --revo-navy: #18162C;
  --bg-workspace: #0d1117;
  --revo-bg: #0d1117;

  /* 2. Container Backgrounds (Cards, Filter Bar, Table Body) */
  --bg-container: #161b22;

  /* 3. Borders */
  --revo-border: #30363d;

  /* 4. Text */
  --revo-text: #e6edf3;
  --text-muted: #8b949e;

  --revo-card-bg: #161b22;
  --revo-accent: var(--revo-neon);

  --revo-white: var(--bg-container);
}

/* Applying the variables to your Right-Side design */
.theme-dark body {
  background-color: var(--bg-workspace);
}

.has-revo-text {
  color: var(--revo-text) !important;
}

.has-revo-accent {
  color: var(--revo-accent) !important;
}

.has-revo-bg {
  background-color: var(--revo-card-bg) !important;
}

.has-revo-border {
  border-color: var(--revo-border) !important;
}

.has-navy-bg {
  background-color: var(--revo-navy) !important;
}

.has-yellow-bg {
  background-color: var(--revo-yellow) !important;
}

.is-revo-hero {
  background-color: var(--revo-navy) !important;
  color: var(--revo-neon) !important;
}

button.is-revo-hero:hover {
  background-color: var(--revo-yellow) !important;
  color: var(--revo-navy) !important;
  text-decoration: none;
}

.button.is-revo-hero:hover {
  background-color: var(--revo-yellow) !important;
  color: var(--revo-navy) !important;
  text-decoration: none;
}

.theme-dark .is-revo-hero {
  background-color: var(--revo-neon) !important;
  color: var(--revo-navy) !important;
}

.theme-dark button.is-revo-hero:hover {
  background-color: var(--revo-navy) !important;
  color: var(--revo-neon) !important;
  border-color: var(--revo-neon) !important;
}

.theme-dark .button.is-revo-hero:hover {
  background-color: var(--revo-navy) !important;
  color: var(--revo-neon) !important;
  border-color: var(--revo-neon) !important;
}

.theme-dark .box,
.theme-dark .revo-table-container,
.theme-dark .navbar.is-white {
  /* Your Filter Bar */
  background-color: var(--bg-container) !important;
  border: 1px solid var(--revo-border) !important;
  color: var(--text-main);
}

.theme-dark .table {
  background-color: transparent;
  color: var(--text-main);
}

.theme-dark .table td {
  border-color: var(--border-subtle);
}

/* Keep the Hover state visible but dark */
.theme-dark .table.is-hoverable tbody tr:hover {
  background-color: rgba(255, 255, 255, 0.03) !important;
}

.has_accent_color {
  color: var(--revo-accent) !important;
}

body {
  background-color: var(--revo-bg) !important;
  font-family: "Roboto", sans-serif !important;
  color: var(--revo-text);
}

.input:focus,
.textarea:focus,
.select select:focus {
    border-color: var(--revo-accent) !important;
    box-shadow: 0 0 0 0 color-mix(in srgb, var(--revo-accent), transparent 75%) !important;
}

.control.has-icons-left .input:focus ~ .icon {
    color: var(--revo-accent) !important;
}

.select:after {
  border-color: var(--revo-accent) !important;
}

tr {
    border-top-color: var(--revo-border) !important;
}

/* Ensure headings also use Roboto */
h1,
h2,
h3,
h4,
h5,
h6,
.title,
.subtitle {
  font-family: "Roboto", sans-serif !important;
  font-weight: 700;
}

.sidebar {
  width: 280px;
  background-color: var(--revo-navy) !important;
  background: linear-gradient(45deg, black, transparent);
  height: 100vh;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--revo-border);
}

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

.sidebar li {
  padding: 10px;
  cursor: pointer;
  font-weight: 600;
  color: #1f2a44;
  font-size: 14px;
}

.sidebar li.active {
  background: #00d2d3;
}

.sidebar li a {
  color: inherit;
  text-decoration: none;
  display: block;
  width: 100%;
  height: 100%;
}

.menu-label {
  color: rgba(255, 255, 255, 0.4) !important;
  padding-left: 1.5rem;
  font-weight: 500;
  background: linear-gradient(45deg, var(--revo-neon), transparent);
  background-clip: text;
}

.menu-list a {
  background-color: transparent !important;
  color: white !important;
  padding: 0.75rem 1.5rem;
  transition: all 0.2s ease;
}

.menu-list a:hover {
  background-color: rgba(116, 249, 251, 0.1) !important;
  color: var(--revo-neon) !important;
}

.menu-list a.is-active {
  background-color: rgba(116, 249, 251, 0.15) !important;
  color: var(--revo-neon) !important;
  border-right: 4px solid var(--revo-neon);
  font-weight: 500;
}

/* 4. Logo Container Style */
.logo-container {
  height: 80px;
  background: var(--revo-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
}
.logo-container img {
  height: 65px;
}

/* Main Header */
.site-header {
  background: var(--revo-bg);
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 1px 4px rgba(0, 21, 41, 0.08);
  z-index: 1;
  height: 80px;
  border-bottom: 1px solid var(--revo-border);
  position: sticky; /* or fixed */
  top: 0;
  z-index: 1000 !important;
  overflow: visible !important;
}

.app-container {
  min-height: 100vh;
  display: flex;
}

.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.header-container {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between; /* Pushes items to the ends */
}

/* --- Left: Title --- */
.header-left {
  display: flex;
  align-items: center;
}

.header-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--revo-text);
  margin: 0; /* Remove default h2 margin */
}

/* --- Center: Search --- */
.header-center {
  flex: 1;
  display: flex;
  justify-content: center;
  max-width: 400px; /* Limits search bar width */
  margin: 0 2rem;
}

.search-wrapper {
  position: relative;
  width: 100%;
}

.search-wrapper i {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted, #aaa);
}

.search-wrapper input {
  width: 100%;
  padding: 8px 12px 8px 36px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  background: var(--revo-bg); 
  color: var(--revo-text);
  transition: all 0.2s;
}

.search-wrapper input:focus {
  outline: none;
  border-color: var(--revo-accent);
  background: var(--revo-card-bg);
}

/* --- Right: Actions & Profile --- */
.header-right {
  display: flex;
  align-items: center;
  gap: 1.5rem; /* Space between action group and user profile */
}

.action-group {
  display: flex;
  align-items: center;
  gap: 0.75rem; /* Space between the two icons */
}

/* Help Button Hover */
.help-btn:hover {
  background-color: var(--brand-yellow) !important;
  border-color: #f0cf5a !important; /* Slightly darker yellow border */
  color: var(--brand-navy) !important;
  transform: translateY(-2px); /* Subtle lift effect */
}

/* Notification Button Hover */
.icon-btn:not(.help-btn):hover {
  background-color: rgba(0, 255, 255, 0.05) !important; 
  border-color: var(--brand-accent) !important;
  color: var(--revo-accent) !important;
  transform: translateY(-2px);
}

/* Pulse Animation for the Notification Dot */
.pulse-dot {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 10px; /* Slightly larger to account for the border */
  height: 10px;
  background-color: #ff4d4f; /* Notification Red */
  border-radius: 50%;
  /* CRUCIAL: Border must match the button background variable */
  border: 2px solid var(--revo-card-bg); 
  transition: all 0.2s ease;
}

/* Optional: Make the dot pulse to draw attention */
.icon-btn:hover .pulse-dot {
  transform: scale(1.2);
  transition: transform 0.2s ease;
}

.icon-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--revo-border);
  background: var(--revo-card-bg);
  border-radius: 8px;
  cursor: pointer;
  color: var(--text-muted, #666);
  position: relative;
  /* Base Transition for all icon buttons */
  transition: all 0.2s ease-in-out;
  border: 1px solid #eee;
}

.user-profile-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 4px 4px 12px;
  border: 1px solid var(--revo-border);
  border-radius: 10px;
  background: var(--revo-card-bg);
}

.user-meta {
  display: flex;
  flex-direction: column;
  text-align: right;
}

.user-meta .name {
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.2;
}

.user-meta .role {
  font-size: 0.7rem;
  color: #999;
}

.avatar {
  width: 30px;
  height: 30px;
  background: var(--revo-navy);
  color: var(--revo-neon);
  font-weight: 700;
  font-size: 0.7rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
}

/* Avatar image: match the same size and rounding as the text avatar */
.avatar-img {
  width: 30px;
  height: 30px;
  border-radius: 6px;
  object-fit: cover;
  display: inline-block;
  vertical-align: middle;
}

.content-wrapper {
  margin: 24px 24px 0;
  flex: 1;
}

/* a:hover {
  text-decoration: underline;
  text-decoration-style: dotted;
  color: var(--revo-accent) !important;
} */

/* Login Page Wrapper */
.page-wrapper {
  min-height: 100vh;
  background: url("https://revosuite.com/wp-content/uploads/2021/10/Footer-BG-seamless-.png");
  background-size: repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

/* The Main Split Card */
.split-card {
  display: flex;
  background: transparent;
  width: 100%;
  max-width: 1100px;
  min-height: 650px;
  overflow: hidden;
}

/* --- Left Side: Login Form --- */
.login-side {
  background: var(--revo-navy);
  flex: 1;
  padding: 3.5rem;
  border-radius: 30px 0 0 30px; /* Rounded corners on the left */
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.logo-header {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 2rem;
}

.logo-header img {
  width: 150px;
}

.brand-title {
  color: var(--revo-neon);
  font-size: 1.5rem;
  font-weight: 300;
  white-space: nowrap;
  padding-top: 3px;
}

/* --- Right Side: Artwork & Marketing --- */
.marketing-side {
  background: var(--revo-bg);
  flex: 1.2;
  padding: 3.5rem;
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-radius: 0 30px 30px 0;
  position: relative;
}

.artwork {
  max-width: 80%;
  margin: 0 auto 2rem auto;
  display: block;
}

.marketing-title {
  font-size: 2.2rem;
  font-weight: 300;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  color: var(--revo-navy);
}

.marketing-text {
  font-size: 1.1rem;
  line-height: 1.6;
  opacity: 0.9;
  font-weight: 600;
  color: var(--revo-navy);
}

.marketing-text a {
  color: var(--revo-blue);
  font-weight: 400;
}

/* Form Elements */
.login-button {
  background-color: var(--revo-neon);
  color: var(--revo-navy);
  font-weight: 700;
  border: none;
  height: 3.5rem;
  transition: all 0.3s;
}

.login-button:hover {
  background-color: var(--revo-yellow) !important;
  color: var(--revo-navy) !important;
  transform: translateY(-2px);
}

.legal-links a {
  color: #999;
  font-size: 0.8rem;
  margin: 0 10px;
}

.legal-links a:hover {
  color: var(--revo-yellow) !important;
  font-size: 0.8rem;
  margin: 0 10px;
}

/* Responsive Fix for Mobile */
@media screen and (max-width: 768px) {
  .split-card {
    flex-direction: column;
    border-radius: 30px;
  }
  .login-side {
    border-radius: 30px 30px 0 0;
    padding: 2rem;
  }
  .marketing-side {
    border-radius: 0 0 30px 30px;
    padding: 2rem;
  }
  .logo-header {
    flex-direction: column;
    text-align: center;
  }
}

/* Filter Navbar Container */
.filter-navbar {
    border-radius: 8px;
    border: 1px solid var(--revo-border);
    min-height: 3.5rem;
    margin-bottom: 20px;
    background-color: var(--bulma-scheme-main) !important;
}

/* Search Box Width */
.filter-navbar .search-container {
    min-width: 300px;
}

/* Specific Dropdown Widths */
.filter-navbar .custom-dropdown-width {
    min-width: 200px;
}


/* Style the buttons inside the navbar to match dark mode */
[data-theme="dark"] .filter-navbar .button.is-white {
    background-color: transparent;
    color: var(--bulma-text);
}

[data-theme="dark"] .filter-navbar .navbar-dropdown {
    background-color: #242424;
    border: 1px solid #363636;
}

/* Hover effects for filter buttons */
.filter-navbar .navbar-link:hover {
    background-color: var(--bulma-background) !important;
    border-radius: 6px;
}


/* Table Tag Styles */

.revo-table-container {
    border: 1px solid var(--revo-border) !important; 
    border-radius: 8px; 
    overflow: hidden;
}

.revo-table-container .has-background-white-bis {
    border-radius: 0 0 12px 12px;
}

.revo-table-header {
    background-color: var(--revo-navy) !important;
    border-bottom: 2px solid var(--revo-border) !important;
}

/* Ensure the header text is legible on yellow */
.revo-table-header th {
    color: var(--revo-neon) !important;
    border: none !important;
    padding-top: 1.25rem !important;
    padding-bottom: 1.25rem !important;
}


.revo-table-row {
    transition: background-color 0.2s ease;
    border-bottom: 1px solid #f0f2f5;
}

.revo-table-row:hover {
    background-color: var(--revo-bg) !important;
    
}

.revo-table-row:hover .approval-title {
    color: var(--revo-blue); /* Primary brand color on hover */
    transform: scale(1.05);
    transition: transform 0.2s ease;
}

.revo-table-row:last-child { border-bottom: none !important; }

/* Priority Left-Border Indicator */
.priority-high { border-left: 4px solid #ff3860; }
.priority-medium { border-left: 4px solid #ffdd57; }
.priority-low { border-left: 4px solid #3273dc; }

/* Pagination Buttons */
.pagination-link.is-current {
    background-color: var(--revo-navy) !important; /* Your Navy color */
    border-color: #001f3f !important;
    color: white !important;
}


.pagination-previous, .pagination-next, .pagination-link {
    background-color: white;
    border-color: #dbdbdb;
}

.scrollable-section {
    height: calc(100vh - 250px); /* Adjust '70px' to match your header height */
    overflow-y: auto;
    overflow-x: hidden;
    padding: 1.5rem;
    
    /* Optional: Custom scrollbar to match your Navy/Neon theme */
    scrollbar-width: thin;
    scrollbar-color: var(--brand-navy) transparent;
}

.set-container-height-without-nav {
  height: calc(100vh - 150px)!important; 
}

/* Custom scrollbar for Chrome/Safari */
.scrollable-section::-webkit-scrollbar {
    width: 6px;
}
.scrollable-section::-webkit-scrollbar-thumb {
    background-color: var(--brand-navy);
    border-radius: 10px;
}

.button.is-danger[disabled] {
    color: black !important;
    cursor: not-allowed;
}