/* Reset some basics */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: #e6f4f9;  
  color: #333333;  
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 40px 20px;
  font-size: 16px;
  line-height: 1.5;
}

.container {
  max-width: 900px;
  width: 100%;
  border-radius: 12px;
  padding: 30px 40px;
  background: #ffffff;  
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1); 
}

h1 {
  font-weight: 700;
  font-size: 2.8rem;
  color: #0077b6;  
  margin-bottom: 25px;
  text-align: center;
  letter-spacing: 0.05em;
}

label {
  display: block;
  font-weight: 600;
  margin-bottom: 10px;
  color: #005f87;  
}

textarea {
  width: 100%;
  min-height: 180px;
  border-radius: 8px;
  border: none;
  padding: 18px 20px;
  font-family: 'Courier New', Courier, monospace;
  font-size: 1rem;
  resize: vertical;
  transition: box-shadow 0.3s ease;
  background: #f0f8ff;  
  color: #222222;      
  box-shadow: inset 0 0 8px rgba(0, 119, 182, 0.2);
}

textarea:focus {
  outline: none;
   box-shadow: inset 0 0 14px rgba(0, 119, 182, 0.5);
}

button {
  display: block;
  width: 100%;
  margin-top: 15px;
  margin-bottom: 15px;
  border: none;
  border-radius: 8px;
  padding: 16px 0;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  background: linear-gradient(135deg, #00b4d8, #0077b6);
  color: #ffffff;
  box-shadow: 0 8px 20px rgba(0, 119, 182, 0.3);
  user-select: none;
}

button:hover {
  background: linear-gradient(135deg, #0077b6, #00b4d8);
  transform: translateY(-3px);
}

button:active {
  background: #f7fafc;  
  color: #003049;       
}

.output-container {
  margin-top: 10px;
  background: #121224;
  border-radius: 12px;
  padding: 25px 30px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.8);
  white-space: pre-wrap;
  font-family: 'Courier New', Courier, monospace;
  font-size: 1rem;
  color: #d0d7ff;
  max-height: 300px;
  overflow-y: auto;
  line-height: 1.4;
  user-select: text;
}

.output-container strong {
   color: #0077b6;
}

@media (max-width: 600px) {
  .container {
    padding: 20px 20px;
  }
  h1 {
    font-size: 2rem;
  }
  textarea {
    min-height: 140px;
  }
  button {
    padding: 14px 0;
    font-size: 1rem;
  }
  .output-container {
    max-height: 220px;
    font-size: 0.9rem;
  }
}

#codeInput {
  width: 100%;
  height: 350px;    /* increase height */
  font-family: Consolas, Monaco, 'Courier New', monospace;
  font-size: 16px;
  padding: 10px;
  border-radius: 6px;
  border: 1px solid #ccc;
  resize: vertical; /* allow vertical resizing */
  box-sizing: border-box;
}

#suggestion {
  padding: 15px;
  font-family: 'Courier New', Courier, monospace;
  font-size: 1.1em;
  border-radius: 6px;
  margin-bottom: 10px;
  white-space: pre-wrap;
}

#rating {
  padding: 15px;
  font-family: 'Courier New', Courier, monospace;
  font-size: 1.1em;
  border-radius: 6px;
  white-space: pre-wrap;
}

#suggestion,
#rating {
  background: #edf6f9;  /* Pale blue */
  border-left: 5px solid #00b4d8;
  color: #005f73;
  box-shadow: 0 2px 6px rgba(0, 180, 216, 0.2);
}
