* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  color: var(--ink);
  background:
radial-gradient(circle at 0 0, #ffffff 0%, var(--bg) 52%),
linear-gradient(120deg, #f7fbff 0%, #edf3f9 100%);
}
.topbar {
  background:#d34615;
  color: #fff;
  padding: 10px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.navbar-header a{
font-size: 20px;
text-decoration: none;
color: #fff;
font-weight: bold;
}
.nav {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  font-weight: 700;
  font-size: 0.96rem;
}
.nav span { opacity: 0.95; }
.container {
  max-width: 1400px;
  margin: 18px auto 26px;
  padding: 0 16px;
}
h1 {
  margin: 8px 0 14px;
  font-size: 30px;
  line-height: 1.1;
  padding: 20px 0;
}
.layout {
  display: grid;
  grid-template-columns: 300px 1fr 280px;
  gap: 22px;
  align-items: start;
}
.box {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(20, 42, 64, 0.05);
  border: 1px solid #d34615;
}
.box span {
  margin: 0;
  padding: 14px 16px;
  background: #d34615;
  color: #fff;
  font-size: 1.3rem;
  width: 100%;
  display: block;
}
.menu {
  list-style: none;
  margin: 0;
  padding: 0;
}
.menu li {
  padding: 10px 16px;
  border-top: 1px solid #e8eff7;
  font-size: 15px;
  color: #d34615;
}
.menu a {
  text-decoration: none;
  color: #d34615;
}
.menu a:hover {
  text-decoration: underline;
}
.menu li:hover { background: #f4faff; }
.lead {
  font-size: 1.05rem;
  color: #2f4f69;
  margin: 0 0 18px;
  line-height: 1.5;
}
.mid h2 {
  margin: 14px 0 8px;
  font-size: 25px;
  line-height: 35px;
  font-weight: normal;
}

textarea {
  width: 100%;
  border: 1px solid #c6d5e3;
  border-radius: 8px;
  padding: 14px;
  font-size: 1.55rem;
  color: #1c3146;
  background: #fbfdff;
  resize: vertical;
  min-height: 130px;
}
.row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 14px 0 18px;
}
button {
  border: 0;
  border-radius: 8px;
  padding: 12px 18px;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  color: #fff;
  background: var(--brand);
}
button:hover { filter: brightness(1.05); }
#clearAll { background: var(--accent); }
#toKruti { background: #2966a3; }
#swap, #copyLeft, #copyRight, #whatsappBtn, #gmailBtn, #downloadWordBtn, #copyUnicodeBtn {
  background: #f7fbff;
  color: #17405f;
  border: 1px solid #b6cbdd;
}
#whatsappBtn { background: #27ae60; color: #fff; border: 0; }
#gmailBtn, #downloadWordBtn, #copyUnicodeBtn { background: #e85a1f; color: #fff; border: 0; }
.unicode-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 14px 0 0;
}
.unicode-actions .left-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.status {
  margin: 10px 0 0;
  color: #20506d;
  min-height: 20px;
  font-weight: 600;
}
.kdev-btns button{
    background-color: #e85a1f !important;
}
.left-actions {
  display: flex;
  gap: 10px;
  margin: 10px 0;
}

.nav {
  display: flex;
  gap: 18px;
  align-items: center;
  flex-wrap: wrap;
}

.menu-toggle {
  display: none;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 8px;
  padding: 8px 12px;
  font-weight: 700;
}

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 10px;
}

.nav-item {
  position: relative;
  padding-bottom: 2px;
}

.nav-link {
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 8px 10px;
  border-radius: 8px;
  display: inline-block;
}

.nav-item.has-submenu > .nav-link::after {
  content: " ▾";
  font-size: 0.85em;
  opacity: 0.95;
}

.nav-link:hover {
  background: rgba(255, 255, 255, 0.14);
}

.submenu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 240px;
  background: #fff;
  color: #12314a;
  border-radius: 10px;
  border: 1px solid #d4e1ee;
  box-shadow: 0 14px 34px rgba(16, 33, 56, 0.2);
  padding: 8px;
  display: none;
  z-index: 999;
}

.nav-item:last-child .submenu {
  left: auto;
  right: 0;
}

.submenu a {
  color: #12314a;
  text-decoration: none;
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 0.92rem;
}

.submenu a:hover {
  background: #eef6ff;
}

.nav-item:hover .submenu,
.nav-item:focus-within .submenu,
.nav-item.open .submenu {
  display: block;
}

.nav-item.open > .nav-link::after {
  content: " ▴";
}
.logo a {
  font-size: 20px;
  color: #fff;
  text-decoration: none;
  font-weight: bold;
}












@media (max-width: 1200px) {
  .layout {
grid-template-columns: 1fr;
  }
  .mid { order: 1; }
  .left { order: 2; }
  .right { order: 3; }
  .menu li { font-size: 1.1rem; }
}




@media (max-width: 980px) {

.logo {
  display: block;
  width: 100%;
  margin-bottom: 10px;
}

.topbar {
  display: block;
  grid-template-columns: 1fr 1fr;
  align-content: center;
  align-items: baseline;
    top: 0;
    z-index: 1000;
}

  .nav {
    width: 100%;display: block;
  }

  .menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.95rem;
    background: #fff;
    color: #12314a;
    border: 1px solid #d0deeb;
    border-radius: 10px;
    padding: 10px 14px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(18, 49, 74, 0.18);
  }

  .menu-toggle::before {
    content: "☰";
    font-size: 18px;
  }

  .nav.nav-open .menu-toggle::before {
    content: "✕";
  }

  .nav-list {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;

    max-height: 0;
    overflow: hidden;
    opacity: 0;

    transition: all 0.3s ease;

    margin-top: 0;
    padding: 0;

    background: #f8fcff;
    border-radius: 14px;
  }

  .nav.nav-open .nav-list {
    max-height: 1000px;
    opacity: 1;
    padding: 12px;
    margin-top: 12px;
    border: 1px solid #d2e2ef;
    box-shadow: 0 18px 34px rgba(18, 49, 74, 0.2);
  }

  .nav-item {
    width: 100%;
    border: 1px solid #d8e6f2;
    border-radius: 10px;
    background: #fff;
    overflow: hidden;
  }

  .nav-link {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 12px;
    color: #133856;
    font-weight: 700;
    text-decoration: none;
  }

  .submenu {
    position: static;
    display: block;

    max-height: 0;
    overflow: hidden;

    opacity: 0;

    transition: all 0.3s ease;

    background: #f4f9ff;
    border-radius: 0;
    border: 0;
    box-shadow: none;
    padding: 0;
    margin: 0;
  }

  .nav-item.open .submenu {
    max-height: 500px;
    opacity: 1;
    padding: 8px 0;
    border-top: 1px solid #dbe8f4;
  }

  .submenu a {
    display: block;
    padding: 12px;
    color: #12314a;
    text-decoration: none;
    border-bottom: 1px solid #e4eef7;
  }

  .submenu a:last-child {
    border-bottom: 0;
  }
h1 {
  margin: 0px 0 5px;
  line-height: 1.1;
  padding: 5px 0;
  font-size: 20px;
}
.lead {
  font-size: 13px;
}
textarea {
  min-height: 100px;
  font-size: 15px;
}
.row.kdev-btns button, .left-actions button {
  font-size: 12px;
  padding: 8px 7px;
  border-radius: 4px;
}
.mid h2 {
  margin: 14px 0 8px;
  font-size: 18px;
  line-height: 15px;
  font-weight: normal;
}
.unicode-actions {
  margin: 0;
}



}