* { box-sizing: border-box; }

html, body { height: 100%; margin: 0; }

body {
  font-family: system-ui, Arial;
  max-width: 900px;
  margin: 24px auto;
  padding: 0 12px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 20px;
}


/* Target the link container to ensure it doesn't shrink */
.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
}

#logo {
    /* Change 80px to 100px or 120px if you want it even LARGER */
    height: 50px !important; 
    width: auto !important;
    cursor: pointer;
    display: block;
}

#log {
    border: 1px solid #ddd;
    padding: 12px;
    overflow: auto;
    white-space: pre-wrap;
    flex: 1 1 auto;
    margin-top: 8px;
    width: 100%; /* Adjust this number to the size you prefer */
    height: auto;  /* This maintains the original proportions */
    cursor: pointer;
    vertical-align: middle; /* Aligns it nicely with the text */
}


textarea {
  width: 100%;
  height: 20vh;
  min-height: 140px;
  resize: none;
  margin-bottom: 70px;
}

#btnbar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fff;
  border-top: 1px solid #ddd;
  padding: 6px 8px;
}

#btnrow2 { display: flex; gap: 8px; }

#translate, #send {
  flex: 1;
  height: 34px;
  background: #2563eb;
  color: #fff;
  border: none;
}

.you { font-weight: bold; }
.ai { font-weight: normal; }

#voice-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.85); color: white;
    display: flex; align-items: center; justify-content: center;
    z-index: 9999; cursor: pointer; backdrop-filter: blur(5px);
}
.start-box { text-align: center; border: 2px solid #fff; padding: 40px; border-radius: 20px; }
.mode-active { background-color: #ff9800 !important; }



/* --- Voice Active Pulse Animation --- */
@keyframes pulse-green {
    0% {
        box-shadow: 0 0 0 0 rgba(46, 204, 113, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(46, 204, 113, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(46, 204, 113, 0);
    }
}

.listening-mode {
    background-color: #27ae60 !important; /* Force Green */
    color: white !important;
    animation: pulse-green 1.5s infinite;  /* The Blink Effect */
    border: 2px solid #2ecc71;
}
