body {
  font-family: Arial;
  background: #667ee5;
  padding: 10px; /* Reduced page padding */
}

.container {
  background: white;
  padding: 15px; /* Reduced internal content padding */
  border-radius: 5px;
  max-width: 600px;
  margin: 0 auto;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* H1 and H2 now share the dark blue/green color for brand unity */
h1 {
  text-align: center;
  color: #155724; 
  margin-bottom: 5px;
}

h2 {
    text-align: center;
    color: #155724; 
    font-size: 1.3em;
    margin-top: 0;
    margin-bottom: 20px;
}

/* INPUT & BUTTON STYLES */
input[type="password"],
input[type="text"] {
  padding: 10px;
  margin: 5px 0 10px 0;
  border: 1px solid #ccc;
  border-radius: 5px;
  width: calc(100% - 20px);
  box-sizing: border-box;
}

/* UNLOCK & ASK AI BUTTONS (Vibrant Green) */
#unlock-btn, #send-btn {
    display: block;
    width: 100%;
    padding: 12px; 
    margin-top: 15px;
    background-color: #4CAF50; 
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1.1em;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease;
}

#unlock-btn:hover, #send-btn:hover {
    background-color: #43A047;
}

/* CHAT BOX STYLES */
/* Since #echat was removed, we style the chatArea container for any messages */
#chat-area {
    margin: 15px 0;
}

.chat-response {
    margin-bottom: 10px;
    padding: 8px; /* Reduced welcome box padding */
    background-color: #e6e9f0;
    border-radius: 5px;
}

.user-input {
    text-align: right;
    margin-bottom: 10px;
    color: #555;
}

/* --- Blockquote Style --- */
blockquote {
  font-family: Georgia, serif;
  font-size: 1.1em;
  line-height: 1.5;
  color: #333;
  background: #f8f8f8;
  border-left: 5px solid #d333;
  padding: 15px 20px;
  margin: 20px 0;
  border-radius: 0 5px 5px 0;
}

/* --- A.C.T. Framework Style --- */
.act-framework {
  padding: 15px;
  margin-top: 20px;
  background-color: #f0f0f0; 
  border-radius: 5px;
}

/* --- Model Sources and Warning --- */
.model-sources {
    margin: 20px 0;
    padding: 10px 0;
}

.warning-note {
    background-color: #fff3cd; 
    border: 1px solid #ffe0a3;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 5px;
    color: #856404;
    font-weight: 500;
}

.book-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 10px;
    text-align: center;
}

.book-source {
    width: 22%;
    min-width: 100px;
    margin-bottom: 15px;
}

/* Book Cover Styling for images */
.book-cover {
    width: 100%;
    height: 140px; 
    background-color: #cccccc;
    border: 1px solid #999999;
    border-radius: 3px;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden; 
}

.book-cover img {
    width: 100%;
    height: 100%;
    object-fit: contain; 
    object-position: center; 
    display: block;
}

/* --- Principles List Style --- */
.principles-list {
    margin-top: 20px;
    padding: 10px;
    background-color: #f7f7f7;
    border-radius: 5px;
}

/* (Other styles for h3, .principle, etc., remain unchanged) */