/* --- RESET --- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body {
  background-color: #ffffff;
  color: #333333;
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.hidden {
  display: none !important;
}

/* --- APP LAYOUT --- */
.app-container {
  display: flex;
  flex-direction: column;
  height: 100vh;
  max-width: 1000px;
  margin: 0 auto;
  width: 100%;
}

/* --- HEADER --- */
.app-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  border-bottom: 1px solid #eaeaea;
  background: #ffffff;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tulki-logo {
  color: #ff9900;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.ai-badge {
  background: #f0f0f0;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  color: #666;
}

/* --- HAMBURGER MENU & DROPDOWN --- */
.menu-container {
  position: relative;
}

.hamburger-btn {
  background: none;
  border: 1px solid #eaeaea;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #555;
  transition: 0.2s;
}

.hamburger-btn:hover {
  background: #f9f9f9;
}

.dropdown {
  position: absolute;
  top: 50px;
  right: 0;
  width: 260px;
  background: #fff;
  border: 1px solid #eaeaea;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  border-radius: 12px;
  padding: 20px;
  z-index: 100;
}

.dropdown h3 {
  font-size: 16px;
  margin-bottom: 15px;
}

.dropdown input {
  width: 100%;
  padding: 10px;
  margin-bottom: 10px;
  border: 1px solid #ddd;
  border-radius: 6px;
  outline: none;
}

.dropdown input:focus {
  border-color: #0066ff;
}

.btn-login, .btn-logout {
  width: 100%;
  padding: 10px;
  border: none;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
}

.btn-login {
  background: #0066ff;
  color: white;
}

.btn-logout {
  background: #ffeeee;
  color: #cc0000;
  margin-top: 10px;
}

.error {
  color: red;
  font-size: 12px;
  margin-bottom: 10px;
}

.label {
  font-size: 12px;
  color: #888;
}

.email-text {
  font-size: 14px;
  font-weight: 600;
  margin-top: 5px;
  word-break: break-all;
}

/* --- CHAT AREA --- */
.chat-container {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.message {
  display: flex;
  gap: 15px;
  max-width: 80%;
}

.message.ai {
  align-self: flex-start;
}

.message.user {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.avatar {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: white;
  flex-shrink: 0;
}

.message.ai .avatar {
  background: #ff9900;
}

.message.user .avatar {
  background: #0066ff;
}

.text {
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 15px;
  line-height: 1.5;
  white-space: pre-wrap;
}

.message.ai .text {
  background: #f7f7f8;
  border: 1px solid #eaeaea;
}

.message.user .text {
  background: #e6f0ff;
  color: #003399;
}

/* --- INPUT AREA --- */
.input-container {
  padding: 20px;
  background: #ffffff;
}

.chat-form {
  display: flex;
  gap: 10px;
  border: 1px solid #ddd;
  border-radius: 30px;
  padding: 5px 5px 5px 20px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.chat-form:focus-within {
  border-color: #0066ff;
}

.chat-form input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 15px;
  background: transparent;
}

.chat-form button {
  background: #0066ff;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 25px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.2s;
}

.chat-form button:disabled {
  background: #cccccc;
  cursor: not-allowed;
}
