/* ==========================================================================
   Theme (Tailwind / SaaS Inspired) - Lobibox
   ========================================================================== */

/* Assuming 'Inter' or a similar modern sans-serif font is loaded globally */
.lobibox, .lobibox-notify {
  font-family: 'Inter', Arial, Helvetica, sans-serif;
}

/* Global box-sizing */
.lobibox * {
  box-sizing: border-box;
}

/* Animation durations */
.animated-super-fast {
  animation-duration: .3s;
  animation-fill-mode: both;
}

.animated, .animated-fast {
  animation-fill-mode: both;
}

.animated-fast {
  animation-duration: .5s;
}

.animated {
  animation-duration: 1s;
}

.animated-slow {
  animation-duration: 1.3s;
}

/* Keyframe animations - removed vendor prefixes */
@keyframes bounce {
  0%, 100%, 20%, 50%, 80% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-30px);
  }
  60% {
    transform: translateY(-15px);
  }
}

@keyframes jumpUp {
  0% {
    transform: translate3d(0, calc(230%), 0) scale3d(0, 1, 1);
    animation-timing-function: ease-in;
  }
  40% {
    transform: translate3d(0, 0, 0) scale3d(.02, 1.1, 1);
    animation-timing-function: ease-out;
  }
  70% {
    transform: translate3d(0, -40px, 0) scale3d(.8, 1.1, 1);
  }
  100% {
    transform: translate3d(0, 0, 0) scale3d(1, 1, 1);
  }
}

@keyframes expandOpen {
  0% {
    transform: scale(1.8);
  }
  50% {
    transform: scale(.95);
  }
  80% {
    transform: scale(1.05);
  }
  90% {
    transform: scale(.98);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes fadeInScale {
  0% {
    transform: scale(0);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes zoomIn {
  0% {
    opacity: 0;
    transform: scale(.3);
  }
  50% {
    opacity: 1;
  }
}

@keyframes zoomOut {
  0% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0;
    transform: scale(.3);
  }
  100% {
    opacity: 0;
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translate3d(0, -100%, 0);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.fadeInDown {
  animation-name: fadeInDown;
}

.zoomIn {
  animation-name: zoomIn;
}

.zoomOut {
  animation-name: zoomOut;
}

.bounce {
  animation-name: bounce;
}

.jumpUp {
  animation-name: jumpUp;
}

.expandOpen {
  animation-name: expandOpen;
}

.fadeInScale {
  animation-name: fadeInScale;
}

body.lobibox-open {
  overflow: hidden;
}

.lobibox {
  position: fixed;
  z-index: 4001;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2); /* Softer shadow */
  border-radius: 8px; /* Consistent border-radius */
}

.lobibox .lobibox-header {
  font-size: 18px;
  padding: 12px 16px;
  color: #ffffff; /* White text for headers */
  background-color: #374151; /* Tailwind gray-700 */
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
}

.lobibox .lobibox-header .btn-close {
  float: right;
  background-color: transparent;
  cursor: pointer;
  border: none;
  outline: none;
  transition: all .2s ease-in-out;
  color: #ffffff;
  font-size: 20px;
  line-height: 1;
}

.lobibox .lobibox-header .btn-close:hover {
  opacity: 0.7;
}

.lobibox .lobibox-body {
  overflow: hidden;
  display: flex; /* Use flexbox for layout */
  align-items: center;
  position: relative;
  width: 100%;
  padding: 20px;
  background-color: #ffffff;
  font-size: 15px;
  color: #374151;
}

.lobibox .lobibox-body .lobibox-icon-wrapper {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  font-size: 48px; /* Adjusted icon size */
  margin-right: 15px;
}

.lobibox .lobibox-body .lobibox-icon-wrapper .lobibox-icon {
  display: flex;
  align-items: center;
}

.lobibox .lobibox-body .lobibox-body-text-wrapper {
  flex-grow: 1;
  padding-left: 0; /* Removed padding-left as flex handles spacing */
}

.lobibox .lobibox-footer {
  text-align: right; /* Default to right-aligned buttons */
  padding: 12px 16px;
  background-color: #f9fafb; /* Tailwind gray-50 */
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
}

.lobibox .lobibox-footer > * {
  margin-left: 10px; /* Spacing between buttons */
  margin-right: 0;
}

.lobibox .lobibox-footer.text-center {
  text-align: center;
}

.lobibox .lobibox-footer.text-left {
  text-align: left;
}

.lobibox.lobibox-confirm {
  border: none;
}

.lobibox.lobibox-confirm .lobibox-header {
  background-color: #374151; /* Tailwind gray-700 */
}

.lobibox.lobibox-confirm .lobibox-body .lobibox-icon {
  color: #374151;
}

.lobibox.lobibox-confirm .lobibox-footer {
  background-color: #f9fafb;
}

.lobibox.lobibox-success {
  border: 1px solid #10b981; /* Tailwind green-500 */
}

.lobibox.lobibox-success .lobibox-header {
  background-color: #10b981;
}

.lobibox.lobibox-success .lobibox-body .lobibox-icon {
  color: #10b981;
}

.lobibox.lobibox-success .lobibox-footer {
  background-color: #d1fae5; /* Tailwind green-100 */
}

.lobibox.lobibox-error {
  border: 1px solid #ef4444; /* Tailwind red-500 */
}

.lobibox.lobibox-error .lobibox-header {
  background-color: #ef4444;
}

.lobibox.lobibox-error .lobibox-body .lobibox-icon {
  color: #ef4444;
}

.lobibox.lobibox-error .lobibox-footer {
  background-color: #fee2e2; /* Tailwind red-100 */
}

.lobibox.lobibox-info {
  border: 1px solid #3b82f6; /* Tailwind blue-500 */
}

.lobibox.lobibox-info .lobibox-header {
  background-color: #3b82f6;
}

.lobibox.lobibox-info .lobibox-body .lobibox-icon {
  color: #3b82f6;
}

.lobibox.lobibox-info .lobibox-footer {
  background-color: #dbeafe; /* Tailwind blue-100 */
}

.lobibox.lobibox-warning {
  border: 1px solid #f59e0b; /* Tailwind amber-500 */
}

.lobibox.lobibox-warning .lobibox-header {
  background-color: #f59e0b;
}

.lobibox.lobibox-warning .lobibox-body .lobibox-icon {
  color: #f59e0b;
}

.lobibox.lobibox-warning .lobibox-footer {
  background-color: #fffbeb; /* Tailwind amber-100 */
}

.lobibox.lobibox-prompt {
  border: none;
}

.lobibox.lobibox-prompt .lobibox-header {
  background-color: #374151;
}

.lobibox.lobibox-prompt .lobibox-body {
  padding: 20px;
}

.lobibox.lobibox-prompt .lobibox-body .lobibox-input {
  min-height: 40px;
  border: 1px solid #d1d5db; /* Tailwind gray-300 */
  width: 100%;
  padding: 8px 12px;
  font-size: 16px;
  outline: none;
  border-radius: 6px;
  transition: all 0.2s ease-in-out;
}

.lobibox.lobibox-prompt .lobibox-body .lobibox-input:focus {
  border-color: #3b82f6; /* Tailwind blue-500 */
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25);
  background-color: #ffffff;
}

.lobibox.lobibox-prompt .lobibox-body .lobibox-input.invalid {
  border-color: #ef4444; /* Tailwind red-500 */
}

.lobibox.lobibox-prompt .lobibox-body .lobibox-input-error-message {
  margin-top: 8px;
  margin-bottom: 0;
  font-size: 13px;
  color: #ef4444;
}

.lobibox.lobibox-prompt .lobibox-footer {
  background-color: #f9fafb;
}

.lobibox.lobibox-progress .lobibox-header {
  background-color: #4b5563; /* Tailwind gray-600 */
}

.lobibox.lobibox-progress .lobibox-body {
  padding: 20px;
  font-size: 15px;
}

.lobibox.lobibox-progress .lobibox-body .lobibox-progress-bar-wrapper {
  position: relative;
  height: 24px;
  border: 1px solid #d1d5db;
  border-radius: 9999px; /* Full rounded */
  background-color: #e5e7eb; /* Tailwind gray-200 */
  overflow: hidden;
}

.lobibox.lobibox-progress .lobibox-body .lobibox-progress-bar-wrapper .lobibox-progress-bar {
  width: 0;
  border-radius: 9999px;
  background-color: #2563eb; /* Tailwind blue-600 */
  height: 100%;
  text-align: center;
  transition: width 0.3s ease-out;
}

.lobibox.lobibox-progress .lobibox-body .lobibox-progress-bar-wrapper .lobibox-progress-text {
  position: absolute;
  text-align: center;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  color: #1f2937; /* Tailwind gray-800 */
  font-weight: 500;
  font-size: 14px;
}

.lobibox.lobibox-progress .lobibox-body .lobibox-progress-outer {
  margin-bottom: 0;
}

.lobibox.lobibox-progress .lobibox-body .lobibox-progress-outer .progress-bar {
  transition: none;
}

.lobibox.lobibox-progress .lobibox-body .lobibox-progress-outer [data-role=progress-text] {
  font-weight: 600;
  color: #1f2937;
}

.lobibox.lobibox-window {
  border: 1px solid #3b82f6; /* Tailwind blue-500 */
  border-radius: 8px;
}

.lobibox.lobibox-window .lobibox-header {
  background-color: #3b82f6;
  color: #ffffff;
  font-size: 18px;
}

.lobibox.lobibox-window .lobibox-body {
  overflow: auto;
  display: block;
  font-size: 14px;
  padding: 15px;
  background-color: #f9fafb; /* Tailwind gray-50 */
  color: #374151;
}

.lobibox.lobibox-window .lobibox-footer {
  background-color: #e0f2fe; /* Tailwind blue-50 */
}

.lobibox.lobibox-window :last-child {
  border-bottom-right-radius: 8px;
  border-bottom-left-radius: 8px;
}

.lobibox.draggable .lobibox-header {
  cursor: grab;
}

.lobibox .lobibox-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  font-size: 14px;
  cursor: pointer;
  border: 1px solid transparent;
  border-radius: 6px;
  line-height: 1.5;
  transition: all 0.2s ease-in-out;
  font-weight: 500;
}

.lobibox .lobibox-btn.lobibox-btn-cancel {
  color: #ffffff;
  background-color: #ef4444; /* Tailwind red-500 */
  border-color: #ef4444;
}

.lobibox .lobibox-btn.lobibox-btn-cancel:hover {
  background-color: #dc2626; /* Tailwind red-600 */
  border-color: #dc2626;
}

.lobibox .lobibox-btn.lobibox-btn-yes {
  color: #ffffff;
  background-color: #10b981; /* Tailwind green-500 */
  border-color: #10b981;
}

.lobibox .lobibox-btn.lobibox-btn-yes:hover {
  background-color: #059669; /* Tailwind green-600 */
  border-color: #059669;
}

.lobibox .lobibox-btn.lobibox-btn-no {
  color: #ffffff;
  background-color: #3b82f6; /* Tailwind blue-500 */
  border-color: #3b82f6;
}

.lobibox .lobibox-btn.lobibox-btn-no:hover {
  background-color: #2563eb; /* Tailwind blue-600 */
  border-color: #2563eb;
}

.lobibox .lobibox-btn.lobibox-btn-ok {
  color: #ffffff;
  background-color: #3b82f6; /* Tailwind blue-500 */
  border-color: #3b82f6;
}

.lobibox .lobibox-btn.lobibox-btn-ok:hover {
  background-color: #2563eb; /* Tailwind blue-600 */
  border-color: #2563eb;
}

.lobibox .lobibox-btn.lobibox-btn-default {
  color: #374151; /* Tailwind gray-700 */
  background-color: #e5e7eb; /* Tailwind gray-200 */
  border-color: #e5e7eb;
}

.lobibox .lobibox-btn.lobibox-btn-default:hover {
  background-color: #d1d5db; /* Tailwind gray-300 */
  border-color: #d1d5db;
}

.lobibox .lobibox-btn[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
  box-shadow: none;
}

.lobibox-backdrop {
  position: fixed;
  z-index: 4000;
  inset: 0;
  background-color: rgba(0, 0, 0, .5);
}

.lobibox-notify-wrapper, .lobibox-notify-wrapper-large {
  z-index: 5000;
  position: fixed;
}

.lobibox-notify-wrapper.top {
  top: 0;
}

.lobibox-notify-wrapper.bottom {
  bottom: 0;
}

.lobibox-notify-wrapper.left {
  left: 0;
  margin-right: 0;
}

.lobibox-notify-wrapper.right {
  right: 0;
  margin-left: 0;
}

.lobibox-notify-wrapper.right .lobibox-notify {
  margin-left: auto;
}

.lobibox-notify-wrapper.center {
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lobibox-notify-wrapper-large.top {
  top: 0;
}

.lobibox-notify-wrapper-large.bottom {
  bottom: 0;
}

.lobibox-notify-wrapper-large.left {
  left: 0;
}

.lobibox-notify-wrapper-large.left .lb-notify-tabs > li {
  float: left;
  margin-left: 0;
  margin-right: 2px;
}

.lobibox-notify-wrapper-large.right {
  right: 0;
}

.lobibox-notify-wrapper-large .lb-notify-tabs {
  list-style: none;
  padding: 0;
  margin: 0 0 -5px;
}

.lobibox-notify-wrapper-large .lb-notify-tabs > li {
  float: right;
  margin-left: 2px;
}

.lobibox-notify-wrapper-large .lb-notify-tabs > li > a {
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 16px; /* Adjusted font size */
  height: 36px; /* Adjusted height */
  color: #ffffff;
  width: 32px; /* Adjusted width */
  opacity: .7;
  border-radius: 4px 4px 0 0; /* Rounded top corners */
  transition: opacity 0.2s ease-in-out;
}

.lobibox-notify-wrapper-large .lb-notify-tabs > li > a:hover {
  opacity: 1;
}

.lobibox-notify-wrapper-large .lb-notify-tabs > li > a .tab-control-icon {
  display: block;
}

.lobibox-notify-wrapper-large .lb-notify-tabs > li.lobibox-notify-default > a {
  background-color: rgba(55, 65, 81, 0.9); /* Tailwind gray-700 with opacity */
}

.lobibox-notify-wrapper-large .lb-notify-tabs > li.lobibox-notify-default > a:hover {
  background-color: #374151;
}

.lobibox-notify-wrapper-large .lb-notify-tabs > li.lobibox-notify-error > a {
  background-color: rgba(239, 68, 68, 0.9); /* Tailwind red-500 with opacity */
}

.lobibox-notify-wrapper-large .lb-notify-tabs > li.lobibox-notify-error > a:hover {
  background-color: #ef4444;
}

.lobibox-notify-wrapper-large .lb-notify-tabs > li.lobibox-notify-success > a {
  background-color: rgba(16, 185, 129, 0.9); /* Tailwind green-500 with opacity */
}

.lobibox-notify-wrapper-large .lb-notify-tabs > li.lobibox-notify-success > a:hover {
  background-color: #10b981;
}

.lobibox-notify-wrapper-large .lb-notify-tabs > li.lobibox-notify-warning > a {
  background-color: rgba(245, 158, 11, 0.9); /* Tailwind amber-500 with opacity */
}

.lobibox-notify-wrapper-large .lb-notify-tabs > li.lobibox-notify-warning > a:hover {
  background-color: #f59e0b;
}

.lobibox-notify-wrapper-large .lb-notify-tabs > li.lobibox-notify-info > a {
  background-color: rgba(59, 130, 246, 0.9); /* Tailwind blue-500 with opacity */
}

.lobibox-notify-wrapper-large .lb-notify-tabs > li.lobibox-notify-info > a:hover {
  background-color: #3b82f6;
}

.lobibox-notify-wrapper-large .lb-notify-tabs > li.active > a {
  opacity: 1;
}

.lobibox-notify-wrapper-large .lb-notify-tabs:after {
  content: "";
  display: block;
  clear: both;
}

.lobibox-notify-wrapper-large .lb-notify-wrapper {
  background-color: transparent;
  padding: 0;
  border: none;
}

.lobibox-notify-wrapper-large .lb-notify-wrapper .lb-tab-pane {
  display: none;
}

.lobibox-notify-wrapper-large .lb-notify-wrapper .lb-tab-pane.active {
  display: block;
}

.lobibox-notify-wrapper-large .lb-notify-wrapper .lobibox-notify {
  min-height: 150px;
}

.lobibox-notify-wrapper-large .lb-notify-wrapper .lobibox-notify .lobibox-notify-icon-wrapper {
  width: 100px;
}

.lobibox-notify-wrapper-large .lb-notify-wrapper .lobibox-notify .lobibox-notify-icon > div .icon-el {
  font-size: 78px;
}

.lobibox-notify-wrapper-large .lb-notify-wrapper .lobibox-notify .lobibox-notify-body {
  margin: 13px 20px 13px 130px;
}

.lobibox-notify {
  position: relative;
  min-height: 85px;
  font-size: 14px;
  margin: 7px 0;
  border-radius: 8px; /* Consistent border-radius */
  border: 1px solid #e5e7eb; /* Light gray border */
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); /* Soft shadow */
  transition: all .2s ease-in-out;
  background-color: #ffffff;
}

.lobibox-notify .lobibox-notify-icon-wrapper {
  position: absolute;
  left: 15px;
  width: 60px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lobibox-notify .lobibox-notify-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.lobibox-notify .lobibox-notify-icon > div {
  display: flex;
  align-items: center;
  justify-content: center;
}

.lobibox-notify .lobibox-notify-icon > div > img {
  width: 100%;
  max-width: 100%;
  margin-top: 0; /* Removed margin-top */
  border-radius: 4px;
}

.lobibox-notify .lobibox-notify-icon > div .icon-el {
  text-align: center;
  font-size: 48px; /* Adjusted icon size */
}

.lobibox-notify .lobibox-notify-body {
  margin-left: 90px; /* Adjusted margin for icon */
  padding: 15px;
  color: #374151;
}

.lobibox-notify.lobibox-notify-success {
  border-color: #10b981;
  background-color: #ecfdf5; /* Tailwind green-50 */
}

.lobibox-notify.lobibox-notify-success .lobibox-notify-icon-wrapper {
  color: #10b981;
}

.lobibox-notify.lobibox-notify-error {
  border-color: #ef4444;
  background-color: #fef2f2; /* Tailwind red-50 */
}

.lobibox-notify.lobibox-notify-error .lobibox-notify-icon-wrapper {
  color: #ef4444;
}

.lobibox-notify.lobibox-notify-warning {
  border-color: #f59e0b;
  background-color: #fffbeb; /* Tailwind amber-50 */
}

.lobibox-notify.lobibox-notify-warning .lobibox-notify-icon-wrapper {
  color: #f59e0b;
}

.lobibox-notify.lobibox-notify-info {
  border-color: #3b82f6;
  background-color: #eff6ff; /* Tailwind blue-50 */
}

.lobibox-notify.lobibox-notify-info .lobibox-notify-icon-wrapper {
  color: #3b82f6;
}

.lobibox-notify.lobibox-notify-default {
  border-color: #d1d5db;
  background-color: #f9fafb; /* Tailwind gray-50 */
}

.lobibox-notify.lobibox-notify-default .lobibox-notify-icon-wrapper {
  color: #6b7280;
}

.lobibox-notify .lobibox-close {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: transparent;
  border: none;
  outline: none;
  cursor: pointer;
  font-size: 20px;
  color: #9ca3af; /* Tailwind gray-400 */
  transition: color 0.2s ease-in-out;
}

.lobibox-notify .lobibox-close:hover {
  color: #4b5563; /* Tailwind gray-600 */
}

.lobibox-notify-mini {
  min-height: 0;
  padding: 10px 15px;
  font-size: 14px;
  border-radius: 6px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.lobibox-notify-mini .lobibox-notify-icon-wrapper {
  display: none;
}

.lobibox-notify-mini .lobibox-notify-body {
  margin-left: 0;
  padding: 0;
}

.lobibox-notify-mini .lobibox-close {
  top: 5px;
  right: 5px;
  font-size: 16px;
}

.lobibox-notify-with-image {
  min-height: 100px;
}

.lobibox-notify-with-image .lobibox-notify-icon-wrapper {
  width: 80px;
  left: 10px;
}

.lobibox-notify-with-image .lobibox-notify-body {
  margin-left: 100px;
}

.lobibox-notify-with-image .lobibox-notify-icon > div > img {
  border-radius: 50%; /* Circular images */
}

.lobibox-notify-with-image.lobibox-notify-mini .lobibox-notify-icon-wrapper {
  display: flex;
}

.lobibox-notify-with-image.lobibox-notify-mini .lobibox-notify-body {
  margin-left: 90px;
}

.lobibox-notify-with-image.lobibox-notify-mini .lobibox-close {
  top: 5px;
  right: 5px;
}

.lobibox-notify-slide-in-down {
  animation-name: slideInDown;
}

.lobibox-notify-slide-in-up {
  animation-name: slideInUp;
}

.lobibox-notify-slide-in-left {
  animation-name: slideInLeft;
}

.lobibox-notify-slide-in-right {
  animation-name: slideInRight;
}

.lobibox-notify-slide-out-down {
  animation-name: slideOutDown;
}

.lobibox-notify-slide-out-up {
  animation-name: slideOutUp;
}

.lobibox-notify-slide-out-left {
  animation-name: slideOutLeft;
}

.lobibox-notify-slide-out-right {
  animation-name: slideOutRight;
}

@keyframes slideInDown {
  from {
    transform: translate3d(0, -100%, 0);
    visibility: hidden;
  }
  to {
    transform: translate3d(0, 0, 0);
    visibility: visible;
  }
}

@keyframes slideInUp {
  from {
    transform: translate3d(0, 100%, 0);
    visibility: hidden;
  }
  to {
    transform: translate3d(0, 0, 0);
    visibility: visible;
  }
}

@keyframes slideInLeft {
  from {
    transform: translate3d(-100%, 0, 0);
    visibility: hidden;
  }
  to {
    transform: translate3d(0, 0, 0);
    visibility: visible;
  }
}

@keyframes slideInRight {
  from {
    transform: translate3d(100%, 0, 0);
    visibility: hidden;
  }
  to {
    transform: translate3d(0, 0, 0);
    visibility: visible;
  }
}

@keyframes slideOutDown {
  from {
    transform: translate3d(0, 0, 0);
    visibility: visible;
  }
  to {
    transform: translate3d(0, 100%, 0);
    visibility: hidden;
  }
}

@keyframes slideOutUp {
  from {
    transform: translate3d(0, 0, 0);
    visibility: visible;
  }
  to {
    transform: translate3d(0, -100%, 0);
    visibility: hidden;
  }
}

@keyframes slideOutLeft {
  from {
    transform: translate3d(0, 0, 0);
    visibility: visible;
  }
  to {
    transform: translate3d(-100%, 0, 0);
    visibility: hidden;
  }
}

@keyframes slideOutRight {
  from {
    transform: translate3d(0, 0, 0);
    visibility: visible;
  }
  to {
    transform: translate3d(100%, 0, 0);
    visibility: hidden;
  }
}