:root {
  --pp-bg: #0f1724;
  --pp-card: #0b1220;
  --pp-muted: #94a3b8;
  --pp-accent: #60a5fa;
  --pp-glass: rgba(255, 255, 255, 0.04);
  --pp-success: #34d399;
  --pp-danger: #fb7185;
  --pp-radius: 12px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0
}

html,
body {
  height: 100%;
  background: linear-gradient(180deg, #071026 0%, #071422 100%);
  color: #e6eef8
}

.pp-container {
  max-width: 1200px;
  margin: 28px auto;
  padding: 20px;
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 20px;
}

.pp-sidebar {
  background: linear-gradient(180deg, var(--pp-card), rgba(11, 18, 32, 0.9));
  padding: 18px;
  border-radius: var(--pp-radius);
  box-shadow: 0 6px 30px rgba(2, 6, 23, 0.6);
}

.pp-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px
}

.pp-logo {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--pp-accent), #7dd3fc);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #052331;
}

.pp-brand-title {
  font-size: 16px
}

.pp-brand-subtitle {
  color: var(--pp-muted);
  font-size: 13px
}

.pp-search-wrap {
  margin: 12px 0
}

.pp-search-input {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.03);
  background: var(--pp-glass);
  color: inherit;
}

.pp-list {
  margin-top: 10px;
  max-height: 60vh;
  overflow: auto;
  padding-right: 6px
}

.pp-list-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: 10px;
  margin-bottom: 8px;
  cursor: pointer;
  border: 1px solid transparent;
}

.pp-list-item:hover {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.01), rgba(255, 255, 255, 0.006));
  border-color: rgba(255, 255, 255, 0.02);
}

.pp-list-item-active {
  outline: 2px solid rgba(96, 165, 250, 0.12);
  background: linear-gradient(90deg, rgba(96, 165, 250, 0.03), transparent);
}

.pp-avatar {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: #072034;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--pp-accent);
  font-weight: 700;
}

.pp-meta {
  flex: 1
}

.pp-meta-name {
  font-weight: 600
}

.pp-meta-sub {
  font-size: 12px;
  color: var(--pp-muted)
}

.pp-actions {
  display: flex;
  gap: 8px;
  margin-top: 10px
}
.pp-field {
  position: relative;
  max-width: 340px;
}
.pp-toggle {
  position: absolute;
  right: 8px;
  top: 70%;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  padding: 6px;
  margin: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
}

.pp-toggle:focus {
  outline: 2px solid #2680eb;
  border-radius: 4px;
}
.pp-toggle svg { opacity: 0.9; }
.pp-btn {
  padding: 8px 12px;
  border-radius: 10px;
  border: none;
  background: transparent;
  color: var(--pp-accent);
  cursor: pointer;
}

.pp-btn-ghost {
  background: transparent;
  border: 1px dashed rgba(255, 255, 255, 0.03)
}

.pp-btn-primary {
  background: linear-gradient(90deg, var(--pp-accent), #7dd3fc);
  color: #052331
}

.pp-main {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent);
  padding: 20px;
  border-radius: var(--pp-radius);
  box-shadow: 0 10px 40px rgba(2, 6, 23, 0.6);
}

.pp-title {
  margin-top: 0;
  margin-bottom: 20px
}

.pp-section {
  margin-bottom: 18px
}

.pp-label {
  display: block;
  font-size: 13px;
  margin-bottom: 6px
}

.pp-input,
.pp-select,
.pp-textarea {
  width: 100%;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.03);
  background: rgba(255, 255, 255, 0.02);
  color: inherit;
}
.pp-select option{
  background: #000;
}
.pp-textarea {
  min-height: 90px;
  resize: vertical
}

.pp-row {
  display: flex;
  gap: 12px
}

.pp-row>* {
  flex: 1
}

.pp-note {
  font-size: 12px;
  color: var(--pp-muted);
  margin-top: 6px
}

.pp-switch-wrap {
  display: inline-flex;
  align-items: center;
  gap: 8px
}

.pp-switch {
  width: 44px;
  height: 26px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  padding: 3px;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
}

.pp-switch-knob {
  width: 20px;
  height: 20px;
  background: white;
  border-radius: 999px;
  box-shadow: 0 4px 10px rgba(2, 6, 23, 0.4);
  transition: transform .22s;
}
.pp-container-center {
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}
.pp-container-center  .pp-main-center {
    max-width: 600px;
    margin: auto;
    width: 100%;
}
.pp-container-center .pp-field {
    max-width: 100%;
}

.pp-switch-on {
  background: linear-gradient(90deg, var(--pp-accent), #34d399)
}

.pp-switch-on .pp-switch-knob {
  transform: translateX(18px)
}
.tags-container {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 10px;
  border-radius: 6px;
}

.tag {
 display: inline-block;
  vertical-align: middle;
  border-radius: 20px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 500;
  margin-right: 3.75px;
  margin-bottom: 3.75px;
  background-color: #005f75;
  border: 1px solid #004a5c;
  color: #fff;
  word-break: break-all;
  box-sizing: border-box;
}
.pp-api-box {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.01), rgba(255, 255, 255, 0.02));
  padding: 12px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.03);
}

.pp-api-flex {
  display: flex;
  justify-content: space-between;
  align-items: center
}

.pp-api-key {
  font-family: monospace;
  margin-top: 6px
}

.pp-api-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-left: 12px
}


.pp-preview {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 10px
}

.pp-preview-img {
  width: 56px;
  height: 56px;
  border-radius: 8px;
  object-fit: cover;
  background: #031018
}

.pp-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 12px
}

.pp-btn-danger {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.03);
  color: var(--pp-danger);
  padding: 8px 12px;
  border-radius: 10px;
  cursor: pointer;
}

.pp-json {
  font-family: monospace;
  font-size: 13px;
  background: rgba(2, 6, 23, 0.6);
  padding: 12px;
  border-radius: 8px;
  max-height: 180px;
  overflow: auto;
}

.pp-hidden {
  display: none
}

.choices__inner {
    width: 100%;
    padding: 10px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.03);
    background: rgba(255, 255, 255, 0.02);
    color: inherit;
}
.choices__list.choices__list--dropdown{
  background:#000;
    color: inherit;
}

.choices__list--dropdown .choices__item--selectable.is-highlighted, .choices__list[aria-expanded] .choices__item--selectable.is-highlighted{
  background: #0f1a2a;
  color: inherit;
}
.choices__input{
  background: rgba(255, 255, 255, 0.02);
  color: inherit;
}

.pp-list {
    scroll-behavior: smooth;
}


.pp-list::-webkit-scrollbar {
    width: 8px; 
}

.pp-list::-webkit-scrollbar-track {
    background: #0b1725; 
    border-radius: 4px;
}

.pp-list::-webkit-scrollbar-thumb {
    background-color: #005f75; 
    border-radius: 4px;
    border: 2px solid #005f75;
}

.pp-list::-webkit-scrollbar-thumb:hover {
    background-color: #005f75; 
}

@media (max-width:980px) {
  .pp-container {
    grid-template-columns: 1fr;
    padding: 12px
  }
}

/** loader css **/

.loader-dash {
  animation: rotatedash 1s infinite;
  height: 32px;
  width: 32px;
}

.loader-dash:before,
.loader-dash:after {
  border-radius: 50%;
  content: "";
  display: block;
  height: 13px;
  width: 13px;
}

.loader-dash:before {
  animation: ball1 1s infinite;
  background-color: #fff;
  box-shadow: 19px 0 0 #6cb8fa;
  margin-bottom: 6px;
}

.loader-dash:after {
  animation: ball2 1s infinite;
  background-color: #6cb8fa;
  box-shadow: 19px 0 0 #fff;
}

@keyframes rotatedash {
  0% { transform: rotate(0deg) scale(0.8) }
  50% { transform: rotate(360deg) scale(1.2) }
  100% { transform: rotate(720deg) scale(0.8) }
}

@keyframes ball1 {
  0% {
    box-shadow: 19px 0 0 #6cb8fa;
  }
  50% {
    box-shadow: 0 0 0 #6cb8fa;
    margin-bottom: 0;
    transform: translate(9.6px, 9.6px);
  }
  100% {
    box-shadow: 19px 0 0 #6cb8fa;
    margin-bottom: 6px;
  }
}

@keyframes ball2 {
  0% {
    box-shadow: 19px 0 0 #fff;
  }
  50% {
    box-shadow: 0 0 0 #fff;
    margin-top: -12.8px;
    transform: translate(9.6px, 9.6px);
  }
  100% {
    box-shadow: 19px 0 0 #fff;
    margin-top: 0;
  }
}


.pp-loading {
    width: 100%;
    min-height: 100px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}
.pp-loading-login {
    display: flex;
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
    left: 0;
    align-items: center;
    justify-content: center;
    background-color: #07122573;
    z-index: 1;
}

.alert {
    position: fixed;
    top: 20px;
    right: 20px;
    min-width: 250px;
    padding: 15px 20px;
    border-radius: 10px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    z-index: 9999;
    display: flex;
    justify-content: space-between;
    align-items: center;
    animation: slideIn 0.3s ease;
}

.alert.success {
    background: linear-gradient(135deg, #4ade80, #22c55e); /* green */
}

.alert.error {
    background: linear-gradient(135deg, #f87171, #ef4444); /* red */
}

.close-btn {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}
