
@-moz-document url-prefix(){
    * {
        scrollbar-width: thin;
        scrollbar-color: #ffffff60 transparent;
    }
}

::-webkit-scrollbar {
  width: 3px;
  height: 3px;
}

::-webkit-scrollbar-track {
  background: #1a1a1a;
  border-radius: 5px;
}

::-webkit-scrollbar-thumb {
  background: #8a8a8a;
  border-radius: 5px;
  
}

@supports not selector(::-webkit-scrollbar) {
  body {
    scrollbar-color: #8a8a8a
                     #1a1a1a;
  }
}

/* Stylized login form */
.zn-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.1rem;
  margin: 0 auto;
  max-width: 350px;
}

.zn-form label {
    align-self: flex-start;
    font-size: 1.08rem;
    color: #e6e6ff;
    margin-bottom: 0.2rem;
    margin-top: 1rem;
    line-height: 0;
}

.zn-form input[type="text"],
.zn-form input[type="password"] {
    width: calc(100% - 2rem);
    padding: 0.7rem 1rem;
    border-radius: 6px;
    border: 1px solid #444;
    background: #00000029;
    color: #fff;
    font-size: 1.08rem;
    margin-bottom: 0.5rem;
    transition: border 0.2s;
}

.zn-form input[type="text"]:focus,
.zn-form input[type="password"]:focus {
  border: 1.5px solid #7ac8ff;
  outline: none;
}

.zn-form button[type="submit"] {
    width: 100%;
    background: linear-gradient(48deg, #0062ff4f 0%, #9900ff4f 80%);
    background-size: 180% 100%;
    background-position: 0% 50%;
    border: none;
    border-radius: 0.5rem 8px;
    color: #ffffff;
    cursor: pointer;
    font-weight: 100;
    font-size: 1.0rem;
    letter-spacing: 1px;
    padding: 1rem;
    transition: background 0.5s ease-in-out;
}

.zn-form button[type="submit"]:hover {
  background-position: 100% 50%;
}

#login-message {
  text-align: center;
  margin-top: 1rem;
  font-size: 1.08rem;
}
body {
  margin: 0;
  padding: 0;
  font-family: 'Rajdhani', sans-serif;
  color: #ddd;
  background: #000;
  overflow-x: hidden;
}

a {
    color: #a8bfff;
}

a:hover{
    color: #ffef62;
}

.video-background {
    position: fixed;
    top: 0;
    left: 0;
    min-width: 100%;
    min-height: 100%;
    object-fit: cover;
    z-index: -1;
    opacity: 0.4;
}

.container {
  max-width: 900px;
  margin: 6rem auto 4rem;
  background: linear-gradient(45deg, rgb(63 62 62 / 80%) 25%, rgb(42 42 42 / 80%) 75%);
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(6px);
  transition: height 0.5s ease;
}

#page-content{
    padding: 60px 1rem 0 1rem;
    opacity: 1;
    transition: opacity 0.5s ease;
    height: calc(100% - 120px);
    display: flex;
    flex-direction: column;
}

.logo {
  text-align: center;
}

.logo img {
  width: 300px;
  opacity: 0.9;
}

.logo h1 {
  margin: 0.5rem 0 0;
  font-size: 2.4rem;
  letter-spacing: 2px;
  color: #f5f5f5;
  text-shadow: 0 0 10px rgba(200, 200, 255, 0.2);
}

.subtitle {
  font-size: 1rem;
  color: #aaa;
  margin-top: 0.5rem;
}

.info-block {
    padding-bottom: 1.5rem;
    margin-bottom: 60px;
    border-bottom: 1px dotted rgba(255, 255, 255, 0.15);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.info-block h2 {
  font-size: 1.6rem;
  margin-bottom: 1rem;
  color: #e6e6ff;
  text-transform: uppercase;
  letter-spacing: 1px;
}

ul {
  list-style: none;
  padding-left: 1rem;
}

ul li::before {
  content: "— ";
  color: #7ac8ff;
}

ul ul {
  margin-top: 0.5rem;
  padding-left: 1.5rem;
}

ul ul li::before {
  content: "• ";
  color: #888;
}

.sub-section {
  margin-top: 1.5rem;
}

.sub-section h3 {
  font-size: 1.3rem;
  color: #a8bfff;
  margin-bottom: 0.4rem;
}

.ideal {
  font-size: 0.9rem;
  color: #aaa;
  margin-top: 0.2rem;
}

footer {
    text-align: center;
    font-size: 0.9rem;
    color: #888;
    position: absolute;
    bottom: 0px;
    width: 100%;
    height: 60px;
    border-top: 1px solid rgba(255, 255, 255, 0.00);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border 0.5s ease;
}

footer a {
  color: #7ac8ff;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

#breadcrumbs {
    text-align: center;
    font-size: 0.9rem;
    color: #888;
    position: absolute;
    top: 0px;
    width: 100%;
    height: 60px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.00);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border 0.5s ease;
}

.copyright {
  margin-top: 0.5rem;
  color: #555;
}


/* DASHBOARD STYLE */
#dashboard-layout {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* ===== Top Bar ===== */

#top-bar {
    height: 3.5rem;
    display: flex;
    align-items: center;
    padding: 0 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    backdrop-filter: blur(6px);
}

#page-title {
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: 0.04em;
}

/* ===== Body Layout ===== */

#layout-body {
    flex: 1;
    display: flex;
    overflow: hidden;
}

/* ===== Sidebar ===== */

#side-bar {
    width: 150px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 1rem 1rem 1rem 0;
    border-right: 1px solid rgba(255,255,255,0.08);
}

/* Menu Buttons */

.menu {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.menu-item {
    background: none;
    border: none;
    color: rgba(255,255,255,0.85);
    text-align: left;
    padding: 0.55rem 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.menu-item:hover {
    background: rgba(255,255,255,0.06);
}

.menu-item.active {
    background: rgba(255,255,255,0.12);
    color: white;
}

/* Logout */

.sidebar-footer {
    padding-top: 1rem;
    border-top: 1px solid rgba(255,255,255,0.08);
}

#logout-btn {
    width: 100%;
    background: rgba(255,0,0,0.12);
    border: none;
    padding: 0.6rem;
    border-radius: 0.5rem;
    color: #ffb3b3;
    cursor: pointer;
    transition: background 0.15s ease;
}

#logout-btn:hover {
    background: rgba(255,0,0,0.22);
}

#portal-content {
    flex: 1;
    padding: 1.5rem;
    overflow-y: auto;
    opacity: 1;
    transition: opacity 0.3s ease;
}

/* ===== PAGES ===== */
/* ===== Grid Layout ===== */

.dash-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: min-content;
    gap: 1.25rem;
}

/* ===== Top Cards ===== */

.dash-cards {
    grid-column: span 12;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.dash-card {
    background: rgba(255,255,255,0.04);
    border-radius: 0.75rem;
    padding: 1rem 1.2rem;
    border: 1px solid rgba(255,255,255,0.08);
}

.dash-label {
    font-size: 0.75rem;
    opacity: 0.6;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.dash-value {
    font-size: 1.35rem;
    font-weight: 600;
    margin-top: 0.25rem;
}

.status-active { color: #6bffb0; }
.status-pending { color: #ffd36b; }
.status-suspended { color: #ff6b6b; }

/* ===== Panels ===== */

.dash-panel {
    background: rgba(255,255,255,0.035);
    border-radius: 0.9rem;
    padding: 1.1rem 1.25rem;
    border: 1px solid rgba(255,255,255,0.08);
    grid-column: span 6;
}

.dash-panel h3 {
    margin: 0 0 0.75rem 0;
    font-size: 1rem;
    font-weight: 500;
    opacity: 0.85;
}

/* ===== API Status ===== */

.api-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
}

.status-dot {
    width: 0.6rem;
    height: 0.6rem;
    border-radius: 50%;
}

.status-green { background: #6bffb0; }
.status-yellow { background: #ffd36b; }
.status-red { background: #ff6b6b; }

.api-meta {
    margin-top: 0.5rem;
    font-size: 0.85rem;
    opacity: 0.75;
    display: flex;
    justify-content: space-between;
}

/* ===== Usage Bar ===== */

.usage-bar {
    width: 100%;
    height: 0.65rem;
    background: rgba(255,255,255,0.08);
    border-radius: 999px;
    overflow: hidden;
}

.usage-fill {
    height: 100%;
    background: linear-gradient(90deg, #5cc6ff, #7cffc6);
    transition: width 0.4s ease;
}

.usage-meta {
    margin-top: 0.45rem;
    font-size: 0.85rem;
    opacity: 0.75;
}

/* ===== API Keys ===== */

.key-list {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.key-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255,255,255,0.04);
    padding: 0.45rem 0.6rem;
    border-radius: 0.45rem;
    font-size: 0.9rem;
}

.key-name {
    opacity: 0.9;
}

.key-value {
    font-family: monospace;
    opacity: 0.75;
}

.copy-btn {
    background: rgba(255,255,255,0.08);
    border: none;
    padding: 0.25rem 0.5rem;
    border-radius: 0.4rem;
    color: white;
    cursor: pointer;
}

.copy-btn:hover {
    background: rgba(255,255,255,0.16);
}

/* ===== Notices ===== */

.notice-list {
    margin: 0;
    padding-left: 1.1rem;
    font-size: 0.9rem;
    opacity: 0.85;
}

.notice-item {
    margin-bottom: 0.35rem;
}

.min-message{
    font-size: 14px;
    opacity: 0.5;
}

.form-panel {
    grid-column: span 8;
    padding: 1.5rem 1.75rem;
}

.form-panel h2 {
    margin: 0 0 0.5rem 0;
    font-size: 1.3rem;
    font-weight: 500;
}

.form-description {
    font-size: 0.95rem;
    opacity: 0.75;
    margin-bottom: 1.25rem;
}

.zn-form .alt {
    display: block;
    margin-top: 0.8rem;
    margin-bottom: 0.3rem;
    font-size: 0.85rem;
    opacity: 0.8;
}

.zn-form input,
.zn-form textarea,
.zn-form select {
    width: 100%;
    background: #00000029;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 0.5rem;
    padding: 0.5rem 0.6rem;
    color: white;
}

.zn-form select option{
    background: #222;
    color: white;
}

.zn-form textarea {
    resize: vertical;
    width: calc(100% - 1.2rem) !important;
}

.agreement-box {
    margin-top: 1.2rem;
    padding: 0.75rem 0.85rem;
    background: #00000029;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 0.6rem;
}

.checkbox-label {
    display: flex;
    gap: 0.6rem;
    font-size: 0.85rem !important;
    opacity: 0.85;
    line-height: 1.35 !important;
    margin-top: 0.3rem !important;
}

.primary-btn {
    margin-top: 1.2rem;
    padding: 0.55rem 1.4rem;
    border-radius: 0.6rem;
    border: none;
    background: linear-gradient(135deg, #5cc6ff, #7cffc6);
    color: black;
    font-weight: 600;
    cursor: pointer;
}

.primary-btn:hover {
    filter: brightness(1.05);
}

.form-status {
    margin-top: 0.9rem;
    font-size: 0.9rem;
    text-align: center;
}


.pending-panel {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.pending-card {
    padding: 3rem 3.5rem;
    max-width: 560px;
    text-align: center;
}

.pending-icon {
    font-size: 3.2rem;
    color: #7aa2ff;
    margin-bottom: 1.2rem;
}

.pending-card h1 {
    font-size: 1.9rem;
    margin-bottom: 1rem;
}

.pending-card p {
    color: #cfcfcf;
    margin-bottom: 0.8rem;
    line-height: 1.5;
}

.pending-subtext {
    color: #9aa0a6;
    font-size: 0.95rem;
    margin-top: 1rem;
}

.pending-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.8rem;
}

.btn-primary,
.btn-secondary {
    padding: 0.6rem 1.4rem;
    border-radius: 10px;
    text-decoration: none;
    font-size: 0.95rem;
    transition: background 0.2s ease, transform 0.15s ease;
}

.btn-primary {
    background: #4a7cff;
    color: #fff;
}

.btn-primary:hover {
    background: #5b89ff;
    transform: translateY(-1px);
}

.btn-secondary {
    background: rgba(255,255,255,0.06);
    color: #ddd;
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.1);
}

.api-key-page {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.api-key-icon {
    font-size: 4rem;
    color: #6ad1ff;
    margin-bottom: 1rem;
}

.api-key-icon.warn {
    color: #ff6a6a;
}

.api-key-sub {
    color: #aaa;
    margin-bottom: 1.2rem;
}

.api-key-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.api-key-table {
    margin-top: 1rem;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.05);
}

.api-key-row {
    display: grid;
    grid-template-columns: 2fr 1.4fr 1.6fr 1.6fr 0.5fr;
    padding: 0.7rem 1rem;
    background: rgba(255,255,255,0.02);
}

.api-key-row.header {
    background: rgba(255,255,255,0.05);
    font-weight: 600;
}

.api-key-row:not(.header):hover {
    background: rgba(255,255,255,0.04);
}

.api-key-row ion-icon {
    opacity: 0.7;
    transition: opacity 0.15s ease;
}

.api-key-row div{
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: nowrap;
}

.key-button-container{
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.api-key-page hr{
    width: 100%;
    margin: 4rem 0 2rem 0;
    border-style: solid;
    border-width: 0.5px;
    opacity: 0.2;
}

.api-docs {
    max-width: 1200px;
    margin: 0 auto;
    color: #e6e6e6;
}

.api-header {
    margin-bottom: 2rem;
}

.api-header h1 {
    font-size: 2.2rem;
    margin-bottom: 0.3rem;
}

.api-header p {
    opacity: 0.7;
}

.api-section {
    margin-bottom: 3rem;
}

.api-section h2 {
    font-size: 1.6rem;
    margin-bottom: 1rem;
}

.endpoint-card {
    background: rgba(255, 255, 255, 0.035);
    border-radius: 0.9rem;
    padding: 1.3rem 1.5rem;
    margin-bottom: 1.6rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.endpoint-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.8rem;
    flex-wrap: wrap;
}

.method {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.6rem;
    border-radius: 6px;
    letter-spacing: 0.04em;
}

.method.get {
    background: rgba(0,190,255,0.15);
    color: #6ddcff;
}

.endpoint-card p {
    margin-bottom: 0.9rem;
}

.endpoint-card h4 {
    margin-top: 0.8rem;
    margin-bottom: 0.4rem;
    opacity: 0.8;
}

.endpoint-card table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1rem;
}

.endpoint-card th,
.endpoint-card td {
    text-align: left;
    padding: 0.5rem 0.6rem;
}

.endpoint-card th {
    background: rgba(255,255,255,0.04);
}

.endpoint-card tr {
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.rate-limit {
    margin: 0.6rem 0 1rem;
    font-weight: 600;
    color: #ffaa44;
}

.terminal {
    background: #0a0a0a6e;
    border-radius: 10px;
    padding: 0.9rem 1.1rem;
    font-family: "JetBrains Mono", monospace;
    font-size: 0.9rem;
    overflow-x: auto;
    border: 1px solid rgba(255,255,255,0.06);
}

.api-docs hr{
    border: 0px;
    border-top: solid #ccc 0.5px;
    opacity: 0.2;
}

.usage-header {
    margin-bottom: 2rem;
}

.usage-header h1 {
    font-size: 2rem;
    margin-bottom: 0.3rem;
}

.usage-header p {
    opacity: 0.7;
}

.usage-summary {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
    flex-direction: column;
}

.usage-card {
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 1.4rem;
}

.usage-card h3 {
    font-size: 0.95rem;
    opacity: 0.75;
    margin-bottom: 0.6rem;
}

.usage-number {
    font-size: 1.9rem;
    font-weight: 700;
}

.usage-subtext {
    opacity: 0.6;
    font-size: 0.85rem;
}

.usage-bar {
    margin-top: 0.8rem;
    margin-bottom: 2rem;
    height: 10px;
    border-radius: 10px;
    background: rgba(255,255,255,0.06);
    overflow: hidden;
}

.usage-fill {
    height: 100%;
    background: linear-gradient(90deg, #42c3ff, #9cff6d);
    border-radius: 10px;
}

.usage-section {
    margin-bottom: 2.5rem;
}

.usage-section h2 {
    margin-bottom: 1rem;
}

.endpoint-usage-table,
.activity-table {
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 1.2rem;
}

.endpoint-usage-table table,
.activity-table table {
    width: 100%;
    border-collapse: collapse;
}

.endpoint-usage-table th,
.endpoint-usage-table td,
.activity-table th,
.activity-table td {
    text-align: left;
    padding: 0.55rem 0.6rem;
}

.endpoint-usage-table th,
.activity-table th {
    opacity: 0.7;
}

.endpoint-usage-table tr,
.activity-table tr {
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.endpoint-usage-table tr:last-child,
.activity-table tr:last-child {
    border-bottom: none;
}

.status-ok {
    color: #79ff9c;
    font-weight: 600;
}

.status-warn {
    color: #ffb84d;
    font-weight: 600;
}

.status-error {
    color: #ff6a6a;
    font-weight: 600;
}

.usage-graph-card {
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 1.4rem;
}

@keyframes infiniteFlow{
  0%   { background-position:   0% 50%; }
  100% { background-position: 100% 50%; }
}

@keyframes infinitePulse{
  0%   { box-shadow: 0 0 11px 0px #fdffc26b; }
  20%   { box-shadow: 0 0 11px 0px #fdffc26b; }
  50%   { box-shadow: 0 0 11px 0px #fdffc2; }
  80%   { box-shadow: 0 0 11px 0px #fdffc26b; }
  100% { box-shadow: 0 0 11px 0px #fdffc26b; }
}