/* General Body Styles */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  margin: 0;
  padding: 20px;
  background-color: #f4f7f6;
  color: #333;
  line-height: 1.6;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: 100vh;
  box-sizing: border-box;
}

.container {
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  padding: 40px;
  max-width: 900px;
  width: 100%;
  margin-top: 20px;
  margin-bottom: 20px;
  box-sizing: border-box;
}

/* Header Styles */
header {
  text-align: center;
  margin-bottom: 40px;
  border-bottom: 1px solid #eee;
  padding-bottom: 30px;
}

header h1 {
  color: #2c3e50;
  font-size: 2.8em;
  margin-bottom: 10px;
  font-weight: 700;
}

header p {
  color: #7f8c8d;
  font-size: 1.1em;
  max-width: 600px;
  margin: 0 auto;
}

/* Section Styling */
section {
  background-color: #fdfdfd;
  border-radius: 8px;
  padding: 30px;
  margin-bottom: 30px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

section h2 {
  color: #34495e;
  font-size: 1.8em;
  margin-top: 0;
  margin-bottom: 25px;
  border-left: 5px solid #3498db;
  padding-left: 15px;
}

/* Input Grid Styling */
.input-grid {
  display: grid;
  grid-template-columns: 1fr 1fr; /* Two columns for larger screens */
  gap: 20px;
  margin-bottom: 20px;
}

.input-group {
  display: flex;
  flex-direction: column;
}

.input-group label {
  margin-bottom: 8px;
  font-weight: 600;
  color: #34495e;
  font-size: 1em;
}

/* Textarea, Input, and Select field styling */
textarea, input[type="text"], select {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1.05em;
  box-sizing: border-box;
  transition: border-color 0.3s ease;
}

textarea:focus, input[type="text"]:focus, select:focus {
  border-color: #3498db;
  outline: none;
  box-shadow: 0 0 8px rgba(52, 152, 219, 0.2);
}

textarea {
    resize: vertical;
    min-height: 100px; /* Adjust min-height for structured textareas */
}


/* Button Styling */
button {
  display: block;
  width: 100%;
  padding: 15px 20px;
  background-color: #3498db;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 1.2em;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
  letter-spacing: 0.5px;
}

button:hover {
  background-color: #2980b9;
  transform: translateY(-2px);
}

button:active {
  background-color: #2471a3;
  transform: translateY(0);
}

button:disabled {
  background-color: #cccccc; /* Lighter grey for disabled state */
  cursor: not-allowed;
  transform: none;
}

/* Analysis Results Section */
#analysisResults {
  background-color: #ecf0f1;
  border-radius: 8px;
  padding: 25px;
  min-height: 150px;
  color: #2c3e50;
  font-size: 1.05em;
  white-space: pre-wrap; /* Preserve whitespace and line breaks */
  word-wrap: break-word; /* Break long words */
}

.placeholder-text {
  color: #95a5a6;
  font-style: italic;
  text-align: center;
  padding: 20px;
}

.placeholder-text.error {
    color: #e74c3c;
    font-weight: bold;
}

/* Footer Styling */
footer {
  text-align: center;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid #eee;
  color: #7f8c8d;
  font-size: 0.9em;
}

/* Responsive Design */
@media (max-width: 768px) {
  .container {
    padding: 25px;
    margin: 10px;
  }

  header h1 {
    font-size: 2em;
  }

  section {
    padding: 20px;
  }

  section h2 {
    font-size: 1.5em;
  }

  .input-grid {
    grid-template-columns: 1fr; /* Single column for smaller screens */
  }

  textarea, input[type="text"], select {
    font-size: 1em;
  }

  button {
    font-size: 1.1em;
    padding: 12px 15px;
  }
}

@media (max-width: 480px) {
  body {
    padding: 10px;
  }

  header h1 {
    font-size: 1.6em;
  }

  header p {
    font-size: 0.9em;
  }

  section h2 {
    font-size: 1.3em;
  }

  button {
    font-size: 1em;
    padding: 10px;
  }
}

/* New Styles for enhanced features */
.privacy-notice {
  background-color: #ffeccf; /* Light orange background */
  border: 1px solid #ffd700; /* Gold border */
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 30px;
  color: #5a4b2a; /* Darker text for contrast */
  font-size: 0.95em;
  line-height: 1.5;
}

.privacy-notice strong {
  color: #cc8400; /* Stronger orange for emphasis */
}

.privacy-notice .security-mark {
  display: inline-block;
  background-color: #e0f2f1; /* Light teal for security mark */
  color: #00796b; /* Dark teal for checkmark */
  padding: 5px 12px;
  border-radius: 20px;
  font-weight: 600;
  margin-top: 15px;
}

.analysis-subsection {
  background-color: #f7f9fa; /* Lighter background for sub-sections */
  border: 1px solid #e0e6ea;
  border-radius: 8px;
  padding: 20px;
  margin-top: 20px;
}

.analysis-subsection h3 {
  color: #2c3e50;
  font-size: 1.4em;
  margin-top: 0;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px dashed #e0e6ea;
}

.analysis-subsection p {
  margin-bottom: 10px;
  color: #4a6572;
}

.analysis-subsection ul {
  list-style-type: disc;
  margin-left: 20px;
  padding-left: 0;
}

.analysis-subsection li {
  margin-bottom: 5px;
}

.analysis-subsection .small-text {
  font-size: 0.85em;
  color: #7f8c8d;
  font-style: italic;
  text-align: right;
  margin-top: 15px;
}