/*texteditor with dropdown suggestion*/
.texteditorplus {	
	border: 1px solid #ccc;
	padding: 10px;
}
.texteditor-dropdown {
	position: absolute;
    z-index: 1000;
    background: white;
    border: 1px solid #ccc;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}
.texteditor-dropdown div {
	padding: 5px;
	cursor: pointer;
}
.texteditor-dropdown div:hover,
.texteditor-dropdown .selected {
	background-color: #f0f0f0;
}

/*Stepper - A stepper than can help a form with multiple pages */
.Stepper-container {
  width: 100%;
  max-width: 600px;
  padding: 20px;
}

.Stepper-container .Stepper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

.Stepper-container .Stepper::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 5%;
  right: 5%;
  height: 4px;
  background-color: #dcdcdc;
  z-index: 0;
}

.Stepper-container .Step {
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 1;
}

.Stepper-container .Stepper .Step .circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #dcdcdc;
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 18px;
  margin-bottom: 10px;
}

.Stepper-container .Stepper .Step .label {
  font-size: 14px;
  color: #666;
}

.Stepper-container .Stepper .Step.Active .circle {
  background-color: #4caf50;
}

.Stepper-container .Step.Active .label {
  color: #4caf50;
}

/*SmartListViewer*/
.smartlistviewer-container {
    display: flex;
    height: 100vh;
}

.smartlistviewer-worklist {
    width: 25%;
    background: #075e54;
    color: white;
    padding: 10px;
    overflow-y: auto;
}

.smartlistviewer-search-bar {
    width: 100%;
    padding: 10px;
    margin-bottom: 5px;
    border: none;
    border-radius: 5px;
    outline: none;
}

.smartlistviewer-item {
    padding: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
	background:#075e54;
}

.smartlistviewer-item.active, .smartlistviewer-item:hover {
    background: #128c7e;
}

.smartlistviewer-box {
    width: 70%;
    display: flex;
    flex-direction: column;
    background: #ffffff;
}

.smartlistviewer-topbar {
    background: #075e54;
    color: white;    
    font-weight: bold;
	height:55px;	
}

.smartlistviewer-contentarea {
    flex-grow: 1;
    padding: 20px;
    overflow-y: auto;
}

.two-column-container {
  display: grid;
  grid-template-columns: 1fr 1fr; /* two equal columns */
  gap: 16px; /* space between columns */
  width: 100%;
  max-width: 800px;
  margin: auto;
  box-sizing: border-box;
}

.two-column-container .item {
  padding: 8px;
  box-sizing: border-box;
}


/*Line Loader*/
#line-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(270deg, #00f, #0ff, #0f0, #ff0, #f00, #00f);
    background-size: 600% 600%;
    animation: gradientShift 2s linear infinite;
    z-index: 9999;
    display: none; /* Hide initially */
  }

  @keyframes gradientShift {
    0% {
      background-position: 0% 50%;
    }
    100% {
      background-position: 100% 50%;
    }
  }
  
 /*custom dialog*/
 .custom-dialog-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
  }

  .custom-dialog {
    background: #fff;
    padding: 20px;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    border-radius: 8px;
    position: relative;
  }

  .custom-dialog textarea {
    width: 100%;
    height: 200px;
    box-sizing: border-box;
  }

  .custom-dialog button {
    margin-top: 10px;
    float: right;
  }
  
  /*Navview pane*/
.navview-pane {
  --topbar-height: 40px;
  font-family: "Segoe UI", sans-serif;
  height: 100vh;
}

/* Topbar */
.navview-pane-topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--topbar-height);
  background: #0078d7;
  color: white;
  padding: 10px 15px;
  display: flex;
  align-items: center;
  gap: 15px;
  z-index: 1000;
}
.navview-pane-topbar a {
  color: white;
  text-decoration: none;
  font-weight: 500;
}

/* Hamburger (always visible) */
.navview-pane .hamburger {
  font-size: 26px;
  cursor: pointer;
  margin-right: 15px;
  color: white;
  user-select: none;
}

/* Hide the checkbox */
.navview-pane .nav-toggle {
  display: none;
}

/* Sidemenu */
.navview-pane-sidemenu {
  position: fixed;
  top: calc(var(--topbar-height) + 10px) ; /* 👈 start below the topbar */
  left: -220px;
  width: 200px;
  height: calc(95% - var(--topbar-height)); /* 👈 adjust height */
  background: #f3f3f3;
  box-shadow: 2px 0 5px rgba(0,0,0,0.1);
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: left 0.3s ease;
  z-index: 999; /* under topbar is OK now */
  overflow-y:auto;
  scrollbar-width: thin; /* Makes the scrollbar thinner */  
}
.navview-pane-sidemenu::-webkit-scrollbar {
  width: 6px; /* WebKit */
  height: 6px;
}

.navview-pane-sidemenu a {
  padding: 10px;
  border-radius: 4px;
  color: #333;
  text-decoration: none;
}
.navview-pane-sidemenu a:hover {
  background: #0078d7;
  color: white;
}

/* Content */
.navview-pane-content {	
  padding-top: var(--topbar-height);
  padding-left:20px;
  padding-right:20px;
  padding-botton:20px;
  transition: margin-left 0.3s ease;
}

/* Toggle logic */
.navview-pane .nav-toggle:checked ~ .navview-pane-sidemenu {
  left: 0;
}
.navview-pane .nav-toggle:checked ~ .navview-pane-content {
  margin-left: 200px;
}

/* Layout without sidemenu */
.navview-pane.no-sidemenu .navview-pane-sidemenu {
  display: none;
}

.navview-pane.no-sidemenu .hamburger {
  display: none;
}

.navview-pane.no-sidemenu .navview-pane-content {
  margin-left: 0!important;
  padding-left: 20px;
}

/*Panel*/
.panel {
      width: 100%;
      background-color: #0078D7;
      color: white;
      border-radius: 6px;
      box-shadow: 0 4px 8px rgba(0,0,0,0.2);
      overflow: hidden;
      transition: all 0.3s ease;
    }

    .panel-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 16px;
      cursor: pointer;
      font-size: 18px;
      font-weight: bold;
      background-color: #005A9E;
    }

    .pannel .panel-arrow {
      transition: transform 0.3s ease;
    }

    .panel-content {
      padding: 16px;
      background-color: #ffffff;
      color: #333;
      display: none;
    }

    .expanded .panel-content {
      display: block;
    }

    .expanded .panel-arrow {
      transform: rotate(90deg);
    }
	
/*Toast*/
/* Toast container */
  #toast-container {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    z-index: 9999;
  }

  /* Toast base style */
  .toast {
    min-width: 220px;
    max-width: 400px;
    padding: 4px 12px;
    border-radius: 8px;
    color: #fff;
	font-family:Ubuntu-Regular;
    font-size: 0.95rem;    
    text-align: center;    
    opacity: 0;
    transform: translateY(30px);
    animation: slideUp 0.4s forwards;
  }

  /* Variants */
  .toast.success {
    background: linear-gradient(135deg, #16a34a, #22c55e);
  }
  .toast.alert {
    background: linear-gradient(135deg, #ef4444, #f87171);
  }
  .toast.info {
    background: linear-gradient(135deg, #3b82f6, #6366f1);
  }

  /* Animations */
  @keyframes slideUp {
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  @keyframes fadeOut {
    to {
      opacity: 0;
      transform: translateY(30px);
    }
  }
  
 /*Dialog*/
 .dialog-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
  }

  /* Dialog box */
  .dialog-box {
    background: #fff;
    border-radius: 10px;
    width: 360px;
    max-width: 90%;
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
    overflow: hidden;
    font-family: system-ui, sans-serif;
    animation: fadeIn 0.3s ease;
  }

  /* Header */
  .dialog-header {
    padding: 12px 16px;
    color: #fff;
    font-weight: 600;
    font-size: 1.1rem;
  }

  .dialog-header.info { background: #3b82f6; }
  .dialog-header.success { background: #16a34a; }
  .dialog-header.warning { background: #f59e0b; }
  .dialog-header.alert { background: #ef4444; }

  /* Body */
  .dialog-body {
    padding: 16px;
    font-size: 0.95rem;
    color: #333;
  }

  /* Footer buttons */
  .dialog-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 12px 16px;
    background: #f9fafb;
  }
  .dialog-footer button {
    padding: 6px 14px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
  }
  .dialog-footer .ok-btn { background: #3b82f6; color: #fff; }
  .dialog-footer .cancel-btn { background: #e5e7eb; }

  @keyframes fadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
  }
  
  /* Notification container (bottom-right) */
  #notification-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    flex-direction: column-reverse; /* newest stays at bottom */
    gap: 10px;
    z-index: 9999;
  }

  /* Notification box */
  .notification {
    min-width: 240px;
    max-width: 320px;
    background: #fff;
    border-radius: 8px;
    padding: 12px 18px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    font-family: system-ui, sans-serif;
    font-size: 0.95rem;
    color: #333;
    opacity: 0;
    transform: translateY(30px) translateX(120%);
    animation: slideIn 0.5s forwards;
  }

  /* Variants */
  .notification.success { border-left: 5px solid #16a34a; }
  .notification.alert   { border-left: 5px solid #ef4444; }
  .notification.info    { border-left: 5px solid #3b82f6; }
  .notification.warning { border-left: 5px solid #f59e0b; }

  /* Animations */
  @keyframes slideIn {
    to {
      opacity: 1;
      transform: translateY(0) translateX(0);
    }
  }
  @keyframes slideOut {
    to {
      opacity: 0;
      transform: translateY(30px) translateX(120%);
    }
  }