/* css/styles.css */
body, html {
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
  background: #f5f7fa;
  height: 100%;
}
.app-container {
  display: flex;
  height: 100vh;
}
.sidebar {
  width: 250px;
  background-color: #202123;
  color: white;
  padding: 10px;
}
.logo {
  width: 100%;
  margin-bottom: 20px;
}
.chat-history li {
  list-style: none;
  margin: 10px 0;
}
.chat-area {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.chat-header {
  background: #fff;
  padding: 10px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.chat-box {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  background: #e5eaf2;
}
.input-area {
  display: flex;
  padding: 10px;
  background: #fff;
  border-top: 1px solid #ccc;
}
.input-area input {
  flex: 1;
  padding: 10px;
  font-size: 16px;
}
.input-area button {
  padding: 10px 20px;
}

.user-msg, .ai-msg {
  margin: 8px 0;
  padding: 10px;
  border-radius: 6px;
}

.user-msg {
  background-color: #d0eaff;
  text-align: left;
}

.ai-msg {
  background-color: #f0f0f0;
  text-align: left;
}

.popup {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: rgba(0,0,0,0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 999;
}

.popup-inner {
  background: #fff;
  padding: 30px;
  border-radius: 12px;
  width: 400px;
  max-width: 90%;
  box-shadow: 0 0 15px rgba(0,0,0,0.2);
}

.close-btn {
  float: right;
  border: none;
  background: transparent;
  font-size: 24px;
  cursor: pointer;
}

.popup {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: rgba(0,0,0,0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 999;
}

.popup-inner {
  background: #fff;
  padding: 30px;
  border-radius: 12px;
  width: 400px;
  max-width: 90%;
  box-shadow: 0 0 15px rgba(0,0,0,0.2);
}

.close-btn {
  float: right;
  border: none;
  background: transparent;
  font-size: 24px;
  cursor: pointer;
}

.popup-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0,0,0,0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 999;
}

.popup {
  background: #fff;
  padding: 30px;
  border-radius: 12px;
  width: 500px;
  max-width: 90%;
  box-shadow: 0 0 20px rgba(0,0,0,0.3);
  animation: fadeIn 0.4s ease;
}

.popup-inner {
  position: relative;
}

.fade-in {
  opacity: 0;
  animation: fadeIn 0.4s forwards;
}

@keyframes fadeIn {
  to { opacity: 1; }
}

.close-btn {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 22px;
  background: none;
  border: none;
  cursor: pointer;
}

.primary-btn {
  background-color: #d0eaff;
  color: black;
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
}

.pricing-table {
  width: 100%;
  margin: 20px 0;
  border-collapse: collapse;
  background: #fff;
}

.pricing-table th,
.pricing-table td {
  padding: 12px 16px;
  border: 1px solid #ccc;
  text-align: center;
}

.pricing-table th {
  background-color: #000;
  color: #fff;
}

.user-plan-banner.styled {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #d0eaff;
  color: #000;
  padding: 12px 20px;
  font-size: 16px;
  font-weight: 500;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  border-bottom: 2px solid #ccc;
}

.user-plan-banner .plan-action button {
  font-size: 14px;
  padding: 8px 16px;
  border-radius: 8px;
  border: none;
  background: #000;
  color: #fff;
  cursor: pointer;
}

.user-plan-banner .plan-action button:hover {
  background: #333;
}
