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

html {
    scroll-behavior: smooth; /* Smooth scrolling */
}

/* html, body {
  height: 100%;
} */

#app {
  flex: 1;
}

#highlight{
  color: #6DF7C2;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    background: #0f172a;
    color: #f1f5f9;
    line-height: 1.6;
    overflow-x: hidden;
    display: flex;
  flex-direction: column;
}

/* ================= HEADER ================= */

header {
    padding: 18px 6%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
}

.logo img {
    height: 52px;
    width: 168px;
}

/* NAVIGATION */

nav {
    display: flex;
    align-items: center;
}

nav a {
    margin-left: 24px;
    text-decoration: none;
    color: #cbd5e1;
    font-size: 14px;
    transition: 0.3s ease;
}

nav a:hover {
    color: #6DF7C2;
}

/* Mobile Menu Button */

.menu-toggle {
    display: none;
    font-size: 26px;
    cursor: pointer;
}

/* Desktop - nav visible normally */

/* ================= LAUNCH BADGE ================= */

.launch-badge {
    display: inline-block;
    background: #f59e0b;
    color: #0f172a;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 20px;
}

/* ================= ENQUIRY FORM ================= */

.enquiry-section {
    padding: 6%;
    background: #111827;
    text-align: center;
}

.enquiry-section h2 {
    margin-bottom: 40px;
}

.enquiry-form {
    max-width: 500px;
    margin: auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.enquiry-form input,
.enquiry-form textarea {
    padding: 12px;
    border-radius: 6px;
    border: 1px solid #1e293b;
    background: #0f172a;
    color: #f1f5f9;
    font-size: 14px;
}


.enquiry-form textarea {
    resize: none;
    min-height: 100px;
}

.enquiry-form button {
    padding: 14px;
    border-radius: 6px;
    border: none;
    background: #6DF7C2;
    color: #0f172a;
    font-weight: 600;
    cursor: pointer;
}

.enquiry-form button:hover {
    background: #D5FCA4;
}

.form-message {
    margin-top: 10px;
    font-size: 14px;
}

/* ================= HERO ================= */

.hero {
    padding: 120px 6% 80px;
    text-align: center;
    background: #111827;
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
}

.hero p {
    font-size: 18px;
    color: #94a3b8;
    max-width: 700px;
    margin: 0 auto 40px;
}



.product-showcase {
    padding: 100px 8%;
    /* background: #ffffff; */
    text-align: center;
}

.product-showcase h2 {
    font-size: 32px;
    margin-bottom: 10px;
}

.section-subtext {
    color: #94a3b8;
    margin-bottom: 60px;
}

.showcase-block {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 80px;
    gap: 40px;
}

.showcase-block.reverse {
    flex-direction: row-reverse;
}

.showcase-block .text {
    flex: 1;
    text-align: left;
}

.showcase-block .text h3 {
    font-size: 22px;
    margin-bottom: 15px;
}

.showcase-block .text p {
    color: #94a3b8;
    line-height: 1.6;
}

.showcase-block .image {
    flex: 1;
}

.showcase-block img {
    width: 100%;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

@media (max-width: 900px) {
    .showcase-block {
        flex-direction: column !important;
        text-align: center;
    }

    .showcase-block .text {
        text-align: center;
    }
}



/* BUTTONS */

.btn-primary,
.btn-secondary {
    padding: 14px 32px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    margin: 8px;
    transition: 0.3s ease;
}

.btn-primary {
    background: #6DF7C2;
    color: #0f172a;
}

.btn-primary:hover {
    background: #D5FCA4;
}

.btn-secondary {
    border: 1px solid #6DF7C2;
    color: #6DF7C2;
}

.btn-secondary:hover {
    background: #6DF7C2;
    color: #0f172a;
}

/* ================= FEATURES ================= */

.features {
    padding: 100px 6%;
    background: #111827;
}

.features h2 {
    text-align: center;
    margin-bottom: 60px;
    font-size: 32px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 40px;
}

.feature {
    background: #1e293b;
    padding: 30px;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.feature:hover {
    transform: translateY(-6px);
}

.feature h3 {
    margin-bottom: 15px;
    color: #6DF7C2;
}

/* ================= HOW IT WORKS ================= */

.how-it-works {
    padding: 100px 6%;
    text-align: center;
}

.steps {
    margin-top: 60px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 40px;
}

.step {
    background: #1e293b;
    padding: 30px;
    border-radius: 10px;
}

/* ================= FOOTER ================= */

footer {
    padding: 40px 6%;
    text-align: center;
    color: #64748b;
    background: #0f172a;
    border-top: 1px solid #1e293b;
}

/* ================= RESPONSIVE ================= */

/* Tablet */
@media (max-width: 1024px) {
    .hero h1 {
        font-size: 38px;
    }

    .logo img {
        height: 38px;
        width: 123px;
    }
}

/* Mobile */
@media (max-width: 768px) {

    header {
        padding: 16px 5%;
    }

    .logo img {
        height: 38px;
        width: 123px;
    }

     nav {
        position: absolute;
        top: 70px;
        right: 0;
        background: #0f172a;
        flex-direction: column;
        width: 100%;
        padding: 20px 0;
        border-top: 1px solid #1e293b;

        /* 🔥 Smooth animation setup */
        display: flex;              /* always flex */
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transform: translateY(-10px);
        transition: max-height 0.4s ease, opacity 0.3s ease, transform 0.3s ease;
    }

    nav.active {
        max-height: 400px;  /* increase if needed */
        opacity: 1;
        transform: translateY(0);
    }

    nav a {
        margin: 12px 0;
        font-size: 16px;
    }

    .menu-toggle {
        display: block;
    }

    .hero {
        padding: 80px 5% 60px;
    }

    .hero h1 {
        font-size: 28px;
    }

    .hero p {
        font-size: 16px;
    }

    .btn-primary,
    .btn-secondary {
        max-width: 280px;
    }
}

/* ================= AUTH SECTION ================= */

.auth-section {
    /* min-height: 90vh; */
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 80px 6%;
    background: #0f172a;
}

.auth-card {
    background: #111827;
    padding: 40px;
    border-radius: 12px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
    border: 1px solid #1e293b;
    text-align: center;
}

.auth-card h1 {
    margin-bottom: 10px;
}

.auth-subtitle {
    font-size: 14px;
    color: #94a3b8;
    margin-bottom: 30px;
}

/* FORM */

.auth-form {
    display: flex;
    flex-direction: column;
    /* gap: 18px; */
}

.form-group {
    text-align: left;
}

.form-group label {
    display: block;
    font-size: 13px;
    margin-bottom: 6px;
    color: #cbd5e1;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border-radius: 6px;
    border: 1px solid #1e293b;
    background: #0f172a;
    color: #f1f5f9;
    font-size: 14px;
    transition: 0.3s ease;
}

.form-group input:focus {
    border-color: #6DF7C2;
    outline: none;
    box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.2);
}

/* Button Full Width */
.auth-btn {
    width: 100%;
    margin-top: 10px;
}

/* Footer */

.auth-footer {
    margin-top: 20px;
    font-size: 14px;
    color: #94a3b8;
}

.auth-footer a {
    color: #6DF7C2;
    text-decoration: none;
    font-weight: 500;
}

.auth-footer a:hover {
    color: #D5FCA4;
}

/* ================= RESPONSIVE ================= */

@media (max-width: 768px) {
    .auth-card {
        padding: 28px;
    }
}


.auth-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.auth-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}


/* ================= DASHBOARD ================= */

.dashboard-section {
    padding: 16px 1%;
    min-height: 50vh;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

/* Split Layout */

.dashboard-container {
  display: flex;
  gap: 24px;
}

.dashboard-subnav {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
}

.dash-tab {
  background: #111827;
  border: 1px solid #1e293b;
  padding: 8px 14px;
  border-radius: 8px;
  color: #cbd5e1;
  cursor: pointer;
}

.dash-tab.active {
  background: #6DF7C2;
  color: #0f172a;
}

.main-panel {
  flex: 1;
  background: #111827;
  border: 1px solid #1e293b;
  border-radius: 12px;
  padding: 20px;
  /* overflow-y: hidden;
  height: 70vh; */
}
.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.api-actions {
  margin-top: 12px;
  display: flex;
  gap: 10px;
}

.api-item {
  border: 1px solid #1e293b;
  border-radius: 8px;
  margin-bottom: 12px;
  overflow: hidden;
}

.api-summary {
  padding: 12px;
  cursor: pointer;
  display: flex;
  gap: 12px;
  align-items: center;
}

.api-summary:hover {
  background: #1e293b;
}

.api-details {
  display: none;
  padding: 14px;
  background: #0b1220;
}

.api-item.expanded .api-details {
  display: block;
}
.apis-vertical-layout {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.apis-container {
  display: flex;
  flex-direction: column;
  height: 100%;
  gap: 20px;
}

.apis-top {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: #0f172a;
  border: 1px solid #1e293b;
  border-radius: 12px;
  padding: 16px;
  overflow: hidden;
}

.api-list {
  flex: 1;
  overflow-y: auto;
  padding-right: 6px;
}
.apis-bottom {
  height: 260px;
  background: #0b1220;
  border: 1px solid #1e293b;
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
}

.apis-bottom h3 {
  margin-bottom: 12px;
}


.db-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 12px;
}

.db-table th,
.db-table td {
  border: 1px solid #1e293b;
  padding: 8px;
  font-size: 13px;
}

.published-layout {
  display: flex;
  gap: 20px;
}

.docs-panel {
  flex: 1;
}

.logs-panel {
  flex: 1;
}

.database-layout {
  display: flex;
  gap: 20px;
}

.db-tree {
  width: 260px;
  background: #0f172a;
  border: 1px solid #1e293b;
  border-radius: 8px;
  padding: 12px;
}

.db-name {
  font-weight: 600;
  margin-bottom: 8px;
  cursor: pointer;
}

.table-list {
  margin-left: 10px;
  margin-bottom: 12px;
}

.table-item {
  padding: 4px 0;
  cursor: pointer;
  color: #cbd5e1;
}

.table-item:hover {
  color: #6DF7C2;
}

.db-data {
  flex: 1;
}

.terminal {
  flex: 1;
  background: #020617;
  color: #22c55e;
  font-family: monospace;
  font-size: 12px;
  padding: 12px;
  border-radius: 8px;
  overflow-y: auto;
}


.api-list::-webkit-scrollbar,
.terminal::-webkit-scrollbar {
  width: 6px;
}

.api-list::-webkit-scrollbar-track,
.terminal::-webkit-scrollbar-track {
  background: #0f172a;
}

.api-list::-webkit-scrollbar-thumb,
.terminal::-webkit-scrollbar-thumb {
  background: #334155;
  border-radius: 10px;
}

.api-list::-webkit-scrollbar-thumb:hover,
.terminal::-webkit-scrollbar-thumb:hover {
  background: #475569;
}
/* ================= CHAT PANEL ================= */

.chat-panel {
  background: #111827;
  border: 1px solid #1e293b;
  border-radius: 12px;

  display: grid;
  flex-direction: column;

           /* fixed relative height */
     /* prevents too small on small screens */
  height: 75vh; 
  /* max-height: 800px;      */
  /*min-height: 400px;   */
  width: 30%;
}
.chat-header {
    padding: 16px;
    border-bottom: 1px solid #1e293b;
}

.chat-messages {
  flex: 1;
  padding: 16px;
  overflow-y: auto;
  height: 100%;
  scroll-behavior: smooth;
}

.chat-message {
    padding: 10px 14px;
    border-radius: 8px;
    margin-bottom: 12px;
    max-width: 75%;
    font-size: 14px;
}

.chat-message {
  white-space: pre-wrap;        /* preserve spaces + wrap */
  word-wrap: break-word;        /* break long words */
  overflow-wrap: break-word;    /* modern version */
  max-width: 100%;
}

.chat-message.bot {
    background: #1e293b;
    align-self: flex-start;
}

.chat-message.user {
    background: #6DF7C2;
    color: #0f172a;
    align-self: flex-end;
}

.chat-input-area {
  display: flex;
  gap: 10px;
  padding: 8px;
  border-top: 1px solid #1e293b;
  background: #111827;
}
.chat-input-area input {
    flex: 1;
    padding: 12px;
    border-radius: 6px;
    border: 1px solid #1e293b;
    background: #0f172a;
    color: #f1f5f9;
}


/* Chat Scrollbar */
.chat-messages::-webkit-scrollbar {
  width: 8px;
}

.chat-messages::-webkit-scrollbar-track {
  background: #0f172a;
  border-radius: 10px;
}

.chat-messages::-webkit-scrollbar-thumb {
  background: linear-gradient(
    180deg,
    #334155,
    #475569
  );
  border-radius: 10px;
  border: 2px solid #0f172a;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(
    180deg,
    #6DF7C2,
    #D5FCA4
  );
}

/* ================= API PANEL ================= */

.api-panel {
    background: #111827;
    border: 1px solid #1e293b;
    border-radius: 12px;
    padding: 20px;
    height: 70vh;
    overflow-y: auto;
}

.api-panel h3 {
    margin-bottom: 20px;
}

/* API Item */

.api-item {
    border: 1px solid #1e293b;
    border-radius: 8px;
    margin-bottom: 14px;
    overflow: hidden;
}

.api-summary {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    cursor: pointer;
    background: #0f172a;
}

.api-summary:hover {
    background: #1e293b;
}

.method {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
}

.method.get {
    background: #16a34a;
}

.method.post {
    background: #eafc60;
    color: #020617;
}

.method.delete {
  background: #dc2626;
}

.method.put{
  background: #7B7FED;
}

.method.patch{
  background: #D47BED;
}

.status {
    margin-left: auto;
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 12px;
}

.status.active {
    background: #55ee8d;
    color: #020617;
}


.status.draft {
    background: rgb(248, 238, 130);
    color: #020617;
}

.api-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.api-details.active {
    max-height: fit-content; /* adjust if needed */
    
}
.api-header{
    display: flex;
}

.header-item{
    padding: 8px;

}
.header-item a{
    color: white;
    font-weight: bold;
}
/* ================= RESPONSIVE ================= */

@media (max-width: 1024px) {
    .dashboard-container {
        grid-template-columns: 1fr;
    }

    .chat-panel,
    .api-panel {
        height: auto;
    }
}


/* ================= PAGE TRANSITION ================= */

.page-transition {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.page-transition.fade-out {
    opacity: 0;
    transform: translateY(10px);
}

.page-transition.fade-in {
    opacity: 1;
    transform: translateY(0);
}


/* PROJECT SECTIONS */


/* Section */
.projects-section {
  /* padding: 40px 5%; */
  max-width: 1400px;
  min-height: 70vh;
  margin: 0 auto;
}

/* Header */
/* .projects-header h1 {
  font-size: 28px;
  margin-bottom: 30px;
  font-weight: 600;
} */


.projects-header {
  display: flex;
  align-items: center;            /* vertical alignment */
}
.add-project-btn{
  font-weight: bolder;
  width: 100px;
  padding: 16px;
  border-radius: 16px;
  margin-left: 8px;
}
.add-project-btn:hover{
  background: #D5FCA4;
}

  /* flex-wrap: wrap;
  gap: 20px;
  justify-content: flex-start;   /* left align on big screens */
  /* padding-top: 10px; */


/* Light Modern Cards */
.project-card {

  width: 312px;
  height: 190px;
  padding: 22px;
  margin: 8px;
  border-radius: 16px;

  /* LIGHT CARD */
  background: #faf7ec;
  border: 1px solid #e2e8f0;

  color: #0f172a;   /* dark readable text */

  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
  box-sizing: border-box;
}

/* Smooth hover without clipping */
.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(0,0,0,0.08);
}

/* Title */
.project-card h3 {
  margin-bottom: 10px;
  font-size: 18px;
  font-weight: 600;
  color: #0f172a;
}

/* Description */
.project-card p {
  font-size: 14px;
  color: #475569;
  margin-bottom: 15px;
}

/* Action Buttons Spacing */
.project-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* Add Project Card */
.add-project-card {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;

  background: #343023;
  border: 1px dashed #3a3a50;
}

.add-project-card:hover {
  background: #2a2a40;
}

.add-project-content .plus-icon {
  font-size: 32px;
  display: block;
  margin-bottom: 5px;
}

/* Modal Overlay */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);

  display: flex;
  align-items: center;
  justify-content: center;

  opacity: 0;
  visibility: hidden;

  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 999;
}

/* When active */
.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Modal Box */
.modal {
  background: #1f1f2e;
  padding: 25px;
  border-radius: 14px;
  width: 90%;
  max-width: 400px;

  transform: translateY(30px) scale(0.95);
  opacity: 0;

  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Animate when open */
.modal-overlay.active .modal {
  transform: translateY(0) scale(1);
  opacity: 1;
}
.modal h3 {
  margin-bottom: 20px;
}

.form-group {
  margin-bottom: 15px;
}

.form-group input {
  width: 100%;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid #333;
  background: #2b2b3c;
  color: white;
}

.form-group textarea {
    width: 100%;
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid #333;
    background: #2b2b3c;
    color: white;
    resize: none;
    min-height: 100px;
}



.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}



.add-project-card {
  align-items: center;
  justify-content: center;
  text-align: center;

  background: #f8fafc;
  border: 2px dashed #cbd5e1;
  color: #64748b;
}

.add-project-card:hover {
  background: #f1f5f9;
}

.add-project-content .plus-icon {
  font-size: 32px;
  display: block;
  margin-bottom: 6px;
}

.projects-container{
  display: flex;
    flex-wrap: wrap;
    gap: 10px;
    width: 100%;
    /* justify-content: center; */
}

.project-actions .btn-secondary, .modal-actions .btn-secondary{
  color: #020617;
}

@media (max-width: 768px) {
  .projects-container {
    justify-content: center;  /* center only on small screens */
  }

  .project-card {
    max-width: 100%;
  }
}


/* ================= GLOBAL PAGE TRANSITION ================= */

#app {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

#app.fade-out {
  opacity: 0;
  transform: translateY(15px);
}

#app.fade-in {
  opacity: 1;
  transform: translateY(0);
}

#app {
  will-change: opacity, transform;
}


.profile-container {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

.profile-card {
  flex: 1 1 400px;
  background: #1e293b;
  border-radius: 12px;
  padding: 28px;
  border: 1px solid #334155;
  color: #f1f5f9;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.profile-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.2);
}

.profile-card h3 {
  margin-bottom: 16px;
  color: #6DF7C2;
  font-size: 20px;
}

.profile-card p {
  margin-bottom: 12px;
  font-size: 14px;
  color: #cbd5e1;
}

/* Subscription Plan Indicator */
.plan-indicator {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 6px;
}

.project-url{
    color: #ffffff;
    /* text-decoration: none; */
    font-size: 14px;
}

.project-url:hover {
    color: #eefd69;
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
  .profile-card {
    max-width: 100%;
  }
}


.json-block {
  background: #1e1e1e;
  border-radius: 8px;
  margin-top: 10px;
  overflow: hidden;
}

.json-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #2d2d2d;
  padding: 8px 12px;
  font-size: 14px;
}

.copy-btn {
  background: #4f46e5;
  color: white;
  border: none;
  padding: 4px 10px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
}

.copy-btn:hover {
  background: #4338ca;
}


.copy-curl-btn {
  background: #4f46e5;
  color: white;
  border: none;
  padding: 4px 10px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
}

.copy-curl-btn:hover {
  background: #4338ca;
}


.json-content {
  padding: 12px;
  margin: 0;
  overflow-x: auto;
  font-size: 13px;
  font-family: monospace;
  line-height: 1.4;
}

/* JSON Colors */
.key { color: #9cdcfe; }
.string { color: #ce9178; }
.number { color: #b5cea8; }
.boolean { color: #569cd6; }
.null { color: #808080; }



.curl-block {
  background: #1e1e1e; 
  border-radius: 8px;
  margin-top: 12px;
  overflow: hidden;
}

.curl-content {
  padding: 12px;
  margin: 0;
  overflow-x: auto;
  font-size: 13px;
  font-family: monospace;
  line-height: 1.5;
  color: #e6edf3;
}


.code-block {
  background: #1e1e1e;
  color: #e2e8f0;
  padding: 16px;
  border-radius: 8px;
  font-family: "Fira Code", monospace;
  font-size: 13px;
  overflow-x: auto;
  white-space: pre;
  line-height: 1.5;
  cursor: pointer;
  position: relative;
  transition: all 0.2s ease;
}

.code-block:hover {
  background: #1e293b;
}

.code-block::after {
  content: "Click to copy";
  position: absolute;
  top: 8px;
  right: 12px;
  font-size: 11px;
  color: #94a3b8;
}

.code-block.copied::after {
  content: "Copied ✓";
  color: #22c55e;
}


/* Code block container */
.api-block {
  /* background: #0f172a; */
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 20px;
  border: 1px solid #1e293b;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
}

/* Header */
.json-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #111827;
  padding: 12px 16px;
  font-size: 14px;
  color: #cbd5e1;
  border-bottom: 1px solid #1f2937;
}

/* Code content */
.code-content {
  padding: 20px;
  font-family: "Fira Code", "JetBrains Mono", monospace;
  font-size: 14px;
  line-height: 1.7;
  color: #e5e7eb;
  overflow-x: auto;
  white-space: pre;
  tab-size: 2;
  background: #0b1220;
}

/* Scrollbar styling */
.code-content::-webkit-scrollbar {
  height: 8px;
}

.code-content::-webkit-scrollbar-thumb {
  background: #334155;
  border-radius: 4px;
}

/* Copy button */
.copy-curl-btn, .copy-code-btn {
  background: #6366f1;
  border: none;
  color: white;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 12px;
  cursor: pointer;
  transition: 0.2s ease;
}

.copy-curl-btn:hover, .copy-code-btn:hover {
  background: #4f46e5;
}

pre[class*="language-"] {
    background: #1e1e1e;
}

@media (max-width: 1600px) {
     /* .chat-messages {
  height: 70%;
} */
}


@media (max-width: 1200px) {

  .dashboard-container {
    flex-direction: column;
  }



.chat-panel {
    width: 100%;
    height: 60vh;
  }
  .main-panel {
    height: auto;
    min-height: 60vh;
  }

  .published-layout,
  .database-layout {
    flex-direction: column;
  }

  .db-tree {
    width: 100%;
  }

  .docs-panel,
  .logs-panel {
    width: 100%;
  }
}


@media (max-width: 1024px) {

  .dashboard-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .dashboard-subnav {
    flex-wrap: wrap;
  }

  .dash-tab {
    font-size: 13px;
    padding: 6px 10px;
  }

  .main-panel {
    padding: 16px;
  }

  .apis-bottom {
    height: 220px;
  }

  .chat-panel {
    height: 55vh;
  }

  .api-summary {
    flex-wrap: wrap;
  }

  .status {
    margin-left: 0;
  }
}

@media (max-width: 768px) {

  .dashboard-section {
    padding: 12px;
  }

  .dashboard-container {
    flex-direction: column;
    gap: 16px;
  }

  .main-panel {
    height: auto;
    min-height: 50vh;
    padding: 14px;
  }

  .chat-panel {
    height: 55vh;
    min-height: 350px;
  }

  .apis-bottom {
    height: 180px;
  }

  .api-actions {
    flex-direction: column;
  }

  .api-summary {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .method {
    font-size: 11px;
  }

  .status {
    font-size: 11px;
  }

  .database-layout {
    flex-direction: column;
  }

  .db-tree {
    width: 100%;
    margin-bottom: 12px;
  }

  .db-table th,
  .db-table td {
    font-size: 11px;
    padding: 6px;
  }

  .terminal {
    font-size: 11px;
  }
}


@media (max-width: 480px) {

  .dashboard-header h1 {
    font-size: 18px;
  }

  .project-card {
    padding: 16px;
  }

  .chat-message {
    font-size: 12px;
  }

  .chat-input-area input {
    font-size: 13px;
  }

  .code-content {
    font-size: 12px;
  }

  .json-content,
  .curl-content {
    font-size: 12px;
  }

  .modal {
    padding: 18px;
  }

    .chat-panel {
    height: 50vh;
  }
}


/* .main-panel,
.chat-panel,
.api-panel {
  height: auto;
  min-height: 60vh;
} */




.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  text-align: center;
  animation: fadeIn 0.4s ease-in-out;
}

.empty-icon {
  font-size: 50px;
  margin-bottom: 15px;
}

.empty-title {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 10px;
}

.empty-subtitle {
  font-size: 15px;
  color: #666;
  margin-bottom: 25px;
  max-width: 400px;
}

.empty-steps {
  width: 100%;
  max-width: 420px;
  margin-bottom: 25px;
}

.step {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  padding: 10px 14px;
  margin-bottom: 10px;
  border-radius: 8px;
  font-size: 14px;
}

.step-number {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #6DF7C2;
  color: black;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: bold;
}

.empty-tip {
  font-size: 13px;
  color: #888;
  font-style: italic;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}