* {
  box-sizing: border-box;
  font-family: 'Open Sans', Helvetica, sans-serif, Arial, sans-serif;
}

body {
  background: var(--background2);
  color: var(--text1);
}

/* Layout */
.dashboard_base_dashboard-layout {
  display: flex;
  gap: 20px;
}

/* Sidebar */
.dashboard_base_sidebar {
  width: 250px;
  background-color: var(--background3);
  color: var(--heading2);
  margin: 20px;
  padding: 10px;
  display: flex;
  flex-shrink: 0;
  flex-direction: column;
  justify-content: space-between;
  height: calc(100vh - 140px - 40px);
  border-radius: 8px;
}

.dashboard_base_nav {
  display: flex;
  flex-direction: column;
}

.dashboard_base_nav-link {
  margin: 5px 0;
  padding: 10px;
  border: none;
  color: var(--heading2);
  cursor: pointer;
  border-radius: 5px;
  text-align: left;
  text-decoration: none;
}

.dashboard_base_nav-btn.active {
  background: var(--nav_link_hover);
  color: black;
}

.dashboard_base_logout {
  border: none;
  color: var(--heading2);
  padding: 10px;
  border-radius: 5px;
  cursor: pointer;
  margin-top: auto;
  text-decoration: none;
}

.dashboard_base_delete {
  border: none;
  color: red;
  padding: 10px;
  border-radius: 5px;
  cursor: pointer;
  margin-top: auto;
  text-decoration: underline;
}

/* Content */
.dashboard_base_content {
  width: 100%;
  overflow: hidden;
  background-color: var(--background3);
  color: var(--heading2);
  margin: 20px;
  padding: 20px;
  border-radius: 8px;
}

/* inside nav bar mobile version  */

.dashboard_base_seperator {
  display: none;
  border-bottom: 1px solid rgb(24, 24, 24);
  margin: 10px 0px;
}

.dashboard_base_mobile_links{
  display: none;
}

/* toast start  */

#toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
  max-width: 280px;
}

.toast {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-width: 250px;
    margin-top: 10px;
    padding: 12px 20px;
    border-radius: 6px;
    color: white;
    /* font-family: 'Roboto', sans-serif; */
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    opacity: 0;
    transform: translateX(100%);
    animation: slide-in 0.5s forwards;
}

.toast.success { background-color: #4CAF50; }
.toast.error { background-color: #f44336; }

.toast .close-btn {
    margin-left: 10px;
    cursor: pointer;
    font-weight: bold;
    font-size: 18px;
}

.toast .progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: rgba(255,255,255,0.7);
    width: 100%;
    animation: progress 4s linear forwards;
}

@keyframes slide-in {
    to { opacity: 1; transform: translateX(0); }
}

@keyframes progress {
    from { width: 100%; }
    to { width: 0; }
}

/* toast end  */


@media (max-width: 1050px) {
  .dashboard_base_sidebar {
    display: none;
  }

  .dashboard_base_seperator {
    display: block;
  }

  .dashboard_base_mobile_links{
    display: block;
  }
}
/* Modal base */
.modal {
  display: none;
  position: fixed;
  /* font-family: "Open Sans", sans-serif, Arial, Helvetica, sans-serif; */
  z-index: 1000;
  inset: 0;
  background-color: rgba(0,0,0,0.6);
  backdrop-filter: blur(2px);
  padding: 20px;
}

.title {
  text-align: center;
  font-size: 1.8rem;
  color: var(--text1);
  margin-bottom: 20px;
}

/* Modal content */
.modal-content {
  background: var(--background3);
  color: var(--text1);
  margin: 10% auto;
  padding: 30px;
  border-radius: 16px;
  max-width: 400px;
  width: 100%;
  box-shadow: 0 8px 25px rgba(0,0,0,0.4);
  position: relative;
  animation: fadeInUp 0.3s ease-out;
}

/* Close button */
.close-btn {
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 22px;
  cursor: pointer;
  color: var(--text1);
}

/* Input inside modal */
#deleteModal input[type="text"] {
  padding: 10px;
  border: 1px solid #555;
  border-radius: 8px;
  background: var(--background2);
  color: var(--text1);
  font-size: 0.9rem;
  width: 100%;
}

/* Button container (already from form style) */
.btn-container {
  display: flex;
  gap: 16px;
  justify-content: center;
}

.saveBtn {
  /* font-family: inherit; */
  font-size: 20px;
  color: var(--text1);
  padding: 0.5em 1.5em;
  display: flex;
  align-items: center;
  cursor: pointer;
  border: none;
  border-radius: 16px;
}

.saveBtn:hover {
  opacity: 0.9;
}

/* Animation */
@keyframes fadeInUp {
  from {
    transform: translateY(30px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
.badge {
    display: inline-block;
    padding: 0.3em 0.7em;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    color: white;
    background-color: #6c5ce7; /* default color */
    margin: 0.2em;
}

/* Variants */
.badge-success { background-color: #00b894; }
.badge-warning { background-color: #fdcb6e; }
.badge-danger  { background-color: #e17055; }

/* Sizes */
.badge-small { font-size: 0.7rem; padding: 0.2em 0.5em; }
.badge-large { font-size: 1rem; padding: 0.4em 1em; }


