/* Partner App Specific Helpers & Animations */

/* Toast Container */
#toast-container {
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  z-index: 1090;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 380px;
  width: 100%;
}

.toast-konekt {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-left: 4px solid var(--konekt-orange);
  border-radius: 8px;
  padding: 1rem 1.25rem;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  animation: slideInRight 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  color: var(--text-main);
}

.toast-konekt.success { border-left-color: var(--konekt-success); }
.toast-konekt.warning { border-left-color: var(--konekt-warning); }
.toast-konekt.error { border-left-color: var(--konekt-error); }
.toast-konekt.info { border-left-color: var(--konekt-info); }

.toast-icon {
  font-size: 1.25rem;
  line-height: 1;
}
.toast-konekt.success .toast-icon { color: var(--konekt-success); }
.toast-konekt.warning .toast-icon { color: var(--konekt-warning); }
.toast-konekt.error .toast-icon { color: var(--konekt-error); }
.toast-konekt.info .toast-icon { color: var(--konekt-info); }

.toast-title {
  font-weight: 700;
  font-size: 0.875rem;
  margin-bottom: 0.2rem;
}
.toast-message {
  font-size: 0.825rem;
  color: var(--text-muted);
}
.toast-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1rem;
  cursor: pointer;
  padding: 0;
  line-height: 1;
}

@keyframes slideInRight {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* UI States (Loading, Empty, Error, Permission Denied) */
.state-box {
  padding: 3.5rem 1.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.state-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: var(--text-muted);
}
.state-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.state-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  max-width: 450px;
  margin-bottom: 1.25rem;
}

/* Permission Matrix Grid */
.permission-category {
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background-color: var(--bg-app);
  margin-bottom: 1rem;
  overflow: hidden;
}
.permission-category-header {
  padding: 0.75rem 1rem;
  background-color: rgba(0, 0, 0, 0.03);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 700;
  font-size: 0.875rem;
}
.permission-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.75rem;
  padding: 1rem;
  background-color: var(--bg-card);
}
.permission-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
}

/* Pagination Bar */
.pagination-konekt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
}
.page-btn {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}
.page-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.page-btn:hover:not(:disabled) {
  border-color: var(--konekt-orange);
  color: var(--konekt-orange);
}

/* Filters bar */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 1.25rem;
}

/* Header & Sidebar Brand Clean Borderless Styling */
.topbar {
  border-bottom: none !important;
}

.sidebar-brand {
  border-bottom: none !important;
}

/* Thicker Konekt Orange border on the left of the sidebar menu */
.sidebar {
  border-right: none !important;
  border-left: 8px solid var(--konekt-orange) !important;
}

/* Sidebar Bottom Footer Clean Borderless Styling */
.sidebar-footer {
  border-top: none !important;
}

/* Dashboard First Large Card (Balances Banner) Borderless Styling */
#dashboard-balances-card {
  border: none !important;
}

#dashboard-balances-card .card-header {
  border-bottom: none !important;
}

/* Centered ISP Brand Logo Container after last menu */
.sidebar-isp-container {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin-top: auto;
  padding: 1rem 1.25rem;
}

#sidebar-isp-logo {
  display: inline-block;
  max-height: 48px;
  max-width: 170px;
  object-fit: contain;
  transition: opacity 0.2s ease;
}




