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

body {
  font-family: Arial, Helvetica, sans-serif;
  background: #08090d;
  color: #fff;
  min-height: 100vh;
}

button,
textarea,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.app {
  display: flex;
  min-height: 100vh;
}


/* =========================================
   SIDEBAR
========================================= */

.sidebar {
  width: 250px;
  background: #0d0f16;
  border-right: 1px solid #242633;
  padding: 24px 16px;
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  overflow-y: auto;
}


/* =========================================
   COZAY AI STUDIO LOGO
========================================= */

.brand {
  width: 100%;
  height: 145px;
  margin-bottom: 22px;
  padding: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.logo-full {
  display: block;
  width: 100%;
  max-width: 205px;
  max-height: 135px;
  height: auto;
  object-fit: contain;
  object-position: center;
}

.logo-icon {
  display: none;
}


/* =========================================
   SIDEBAR NAVIGATION
========================================= */

.nav-btn {
  width: 100%;
  border: 0;
  background: transparent;
  color: #c8cad4;
  padding: 13px 12px;
  border-radius: 10px;
  text-align: left;
  margin-bottom: 5px;
  transition: .2s;
}

.nav-btn:hover,
.nav-btn.active {
  background: #191626;
  color: #fff;
}


/* =========================================
   CREDITS
========================================= */

.credits {
  margin-top: 30px;
  background: #171925;
  border: 1px solid #292c3b;
  padding: 16px;
  border-radius: 14px;
}

.credits small {
  color: #9296a8;
}

.credits strong {
  display: block;
  color: #a78bfa;
  font-size: 25px;
  margin-top: 5px;
}


/* =========================================
   MAIN
========================================= */

.main {
  margin-left: 250px;
  width: calc(100% - 250px);
  min-height: 100vh;
}

.topbar {
  height: 70px;
  border-bottom: 1px solid #242633;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 30px;
  background: #0a0b10;
}

.topbar h2 {
  font-size: 18px;
}

.user {
  color: #aaaebc;
  font-size: 14px;
}

.content {
  padding: 35px;
  max-width: 1400px;
  margin: auto;
}


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

.hero {
  background: linear-gradient(135deg, #1a1730, #11131d);
  border: 1px solid #30294a;
  border-radius: 22px;
  padding: 45px;
  margin-bottom: 28px;
}

.hero h1 {
  font-size: clamp(32px, 5vw, 55px);
  margin-bottom: 14px;
}

.hero h1 span {
  color: #9b6cff;
}

.hero p {
  color: #aeb2c0;
  max-width: 750px;
  font-size: 17px;
  line-height: 1.6;
}


/* =========================================
   CARDS
========================================= */

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.card {
  background: #11131b;
  border: 1px solid #282b38;
  border-radius: 18px;
  padding: 25px;
  min-height: 190px;
  transition: .2s;
}

.card:hover {
  transform: translateY(-3px);
  border-color: #7653d8;
}

.icon {
  font-size: 30px;
  margin-bottom: 18px;
}

.card h3 {
  margin-bottom: 9px;
  font-size: 20px;
}

.card p {
  color: #9296a6;
  line-height: 1.5;
  font-size: 14px;
}

.card button {
  margin-top: 18px;
}


/* =========================================
   PAGES
========================================= */

.page {
  display: none;
}

.page.active {
  display: block;
}

.back {
  background: #1a1d27;
  border: 1px solid #303342;
  color: #fff;
  padding: 10px 16px;
  border-radius: 9px;
  margin-bottom: 22px;
}


/* =========================================
   PANELS
========================================= */

.panel {
  background: #11131b;
  border: 1px solid #292c38;
  border-radius: 20px;
  padding: 30px;
  max-width: 900px;
}

.panel h1 {
  margin-bottom: 10px;
}

.panel > p {
  color: #9599a8;
  margin-bottom: 25px;
}


/* =========================================
   FORMS
========================================= */

label {
  display: block;
  color: #d8dae2;
  font-weight: 600;
  margin-bottom: 9px;
}

textarea,
input,
select {
  width: 100%;
  background: #090b10;
  color: #fff;
  border: 1px solid #303342;
  border-radius: 11px;
  padding: 14px;
  outline: none;
  margin-bottom: 20px;
}

textarea {
  min-height: 150px;
  resize: vertical;
}

textarea:focus,
input:focus,
select:focus {
  border-color: #8b5cf6;
}

.row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}


/* =========================================
   PRIMARY BUTTON
========================================= */

.primary {
  background: linear-gradient(135deg, #8b5cf6, #6d45d7);
  border: 0;
  color: white;
  padding: 14px 22px;
  border-radius: 11px;
  font-weight: 700;
  width: 100%;
}

.primary:hover {
  filter: brightness(1.12);
}


/* =========================================
   RESULTS
========================================= */

.result {
  margin-top: 25px;
  background: #0b0d13;
  border: 1px dashed #3a3d4d;
  border-radius: 14px;
  padding: 22px;
  color: #b7bac7;
  min-height: 100px;
}

.result h3 {
  color: #fff;
  margin-bottom: 10px;
}


/* =========================================
   TABLET
========================================= */

@media (max-width: 1000px) {

  .grid {
    grid-template-columns: repeat(2, 1fr);
  }

}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 700px) {

  .sidebar {
    width: 75px;
    padding: 20px 8px;
  }

  .brand {
    width: 100%;
    height: 65px;
    padding: 2px;
    margin-bottom: 20px;
  }

  .logo-full {
    display: block;
    width: 58px;
    max-width: 58px;
    max-height: 58px;
    height: auto;
    object-fit: contain;
  }

  .logo-icon {
    display: none;
  }

  .nav-btn {
    font-size: 0;
    text-align: center;
  }

  .nav-btn:first-letter {
    font-size: 20px;
  }

  .credits {
    display: none;
  }

  .main {
    margin-left: 75px;
    width: calc(100% - 75px);
  }

  .topbar {
    padding: 0 15px;
  }

  .topbar h2 {
    font-size: 16px;
  }

  .user {
    font-size: 11px;
  }

  .content {
    padding: 20px;
  }

  .hero {
    padding: 28px;
  }

  .grid {
    grid-template-columns: 1fr;
  }

  .row {
    grid-template-columns: 1fr;
  }

}