body {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    background: #f5f5f5;
    color: #333;
}

header.kamusi-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(90deg, #2196F3, #9C27B0);
    padding: 15px 20px;
    color: white;
}

header .logo {
    font-weight: 700;
    font-size: 22px;
}

header nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

header nav ul li {
    display: inline-block;
}

header nav ul li button {
    background: transparent;
    border: none;
    color: white;
    font-weight: 600;
    cursor: pointer;
    font-size: 16px;
}

main {
    padding: 20px;
}

.translator-section {
    max-width: 700px;
    margin: 20px auto;
    text-align: center;
}

.translator-section h1 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #2196F3;
}

.translator-section p {
    font-size: 16px;
    margin-bottom: 20px;
}

.translator-box {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.translator-box input {
    flex: 1;
    padding: 12px 15px;
    font-size: 16px;
    border-radius: 12px;
    border: 1px solid #ccc;
}

.translator-box button {
    background: #4CAF50;
    border: none;
    padding: 12px 20px;
    font-size: 16px;
    font-weight: 600;
    color: white;
    border-radius: 12px;
    cursor: pointer;
}

.result-card {
    background: white;
    border-radius: 20px;
    padding: 25px;
    margin-top: 20px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.result-card .eng {
    font-size: 18px;
    font-weight: 600;
    color: #555;
}

.result-card .swa {
    font-size: 28px;
    font-weight: 700;
    color: #4CAF50;
    margin-top: 10px;
}

.loading {
    display: none;
    margin-top: 20px;
    font-weight: bold;
    color: #2196F3;
}

.history-section {
    max-width: 700px;
    margin: 40px auto;
}

.history-section h2 {
    font-size: 22px;
    font-weight: 700;
    color: #2196F3;
    margin-bottom: 15px;
}

.history-section ul {
    list-style: none;
    padding: 0;
}

.history-section li {
    background: white;
    margin-bottom: 8px;
    padding: 10px 15px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

.drawer {
    position: fixed;
    top: 0;
    left: -320px;
    width: 300px;
    height: 100%;
    background: white;
    box-shadow: 4px 0 15px rgba(0,0,0,0.2);
    padding: 20px;
    transition: left 0.3s ease;
    z-index: 1000;
    overflow-y: auto;
}

.drawer.open {
    left: 0;
}

.close-drawer {
    background: none;
    border: none;
    font-size: 18px;
    font-weight: bold;
    color: red;
    cursor: pointer;
}

.drawer-menu {
    list-style: none;
    padding: 0;
    margin-top: 20px;
}

.drawer-menu li {
    margin-bottom: 12px;
}

.drawer-menu button {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    font-size: 26px;
    font-weight: 600;
    color: #2196F3;
    cursor: pointer;
}

.drawer-msg {
    margin-top: 20px;
    font-size: 14px;
    line-height: 1.5;
    color: #555;
}

footer {
    text-align: center;
    padding: 20px;
    background: #f1f1f1;
    margin-top: 40px;
    font-size: 14px;
}




/* TO HOME BUTTON IN DRAWER */

.drawer-home-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  padding: 12px 16px;
  background: linear-gradient(135deg, #1a237e, #3f51b5);
  color: white;
  text-decoration: none;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.95rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.drawer-home-btn img {
  width: 26px;
  height: 26px;
  object-fit: contain;
}

.drawer-home-btn span {
  white-space: nowrap;
}

.drawer-home-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.25);
  background: linear-gradient(135deg, #0d47a1, #5c6bc0);
}



.history-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f5f7fa;
  padding: 8px 12px;
  margin-bottom: 6px;
  border-radius: 8px;
  font-size: 0.9rem;
}

.history-item span {
  flex: 1;
  margin-right: 8px;
}

.delete-history {
  background: transparent;
  border: none;
  color: #e53935;
  font-size: 1rem;
  cursor: pointer;
  font-weight: bold;
  transition: transform 0.15s ease, color 0.15s ease;
}

.delete-history:hover {
  color: #b71c1c;
  transform: scale(1.2);
}




.app-info-section {
  max-width: 900px;
  margin: 60px auto;
  padding: 40px 25px;
  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  line-height: 1.7;
}

.app-info-section h2 {
  font-size: 1.8rem;
  color: #1a237e;
  margin-bottom: 15px;
  text-align: center;
}

.app-info-section h3 {
  font-size: 1.2rem;
  margin-top: 25px;
  margin-bottom: 8px;
  color: #333;
}

.app-info-section p {
  font-size: 0.95rem;
  color: #444;
  margin-bottom: 12px;
  text-align: justify;
}

.app-info-section ul {
  margin: 10px 0 20px 20px;
  padding-left: 10px;
}

.app-info-section li {
  margin-bottom: 8px;
  font-size: 0.95rem;
  color: #444;
}

@media (max-width: 600px) {
  .app-info-section {
    padding: 25px 18px;
  }

  .app-info-section h2 {
    font-size: 1.5rem;
  }
}