.app-container {
  display: flex;
  height: 100vh;
  width: 100vw;
  overflow: hidden;
}

/* Sol Panel - Tek Sütunlu Sidebar (Ajanlar ve Geçmiş Sohbetler) */
.sidebar-left {
  width: 280px;
  min-width: 280px;
  background-color: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-right: 1px solid var(--panel-border);
  display: flex;
  flex-direction: column;
  padding: 12px 14px;
  height: 100%;
  overflow-y: auto;
  transition: width 0.45s cubic-bezier(0.25, 1, 0.5, 1),
              min-width 0.45s cubic-bezier(0.25, 1, 0.5, 1),
              padding 0.45s cubic-bezier(0.25, 1, 0.5, 1),
              opacity 0.4s cubic-bezier(0.25, 1, 0.5, 1),
              border-right-color 0.4s ease;
}

.sidebar-left.collapsed {
  width: 0 !important;
  min-width: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  opacity: 0;
  border-right-color: transparent !important;
  overflow: hidden;
}

/* Sağ Panel - Ajan Detayları (Açılır Panel, Sol Panel ile Chat Alanı Arasında) */
.sidebar-right {
  width: 290px;
  min-width: 290px;
  background-color: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-left: 1px solid var(--panel-border);
  display: flex;
  flex-direction: column;
  padding: 20px 16px;
  overflow-y: auto;
  transition: width 0.45s cubic-bezier(0.25, 1, 0.5, 1),
              min-width 0.45s cubic-bezier(0.25, 1, 0.5, 1),
              padding 0.45s cubic-bezier(0.25, 1, 0.5, 1),
              opacity 0.4s cubic-bezier(0.25, 1, 0.5, 1),
              border-right-color 0.4s ease;
  position: relative;
}

.sidebar-right.collapsed {
  width: 0 !important;
  min-width: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  opacity: 0;
  border-right-color: transparent !important;
  overflow: hidden;
}

.right-sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.right-sidebar-header h2 {
  font-size: 15px;
  font-weight: 700;
  margin: 0;
}

/* Sağ Panel - Chat Alanı */
.chat-area {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  background-color: var(--bg);
  height: 100%;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  position: relative;
}

/* Onboarding Container Styles */
.onboarding-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  max-width: 660px;
  width: 100%;
  margin: auto auto;
  padding: 10px 0;
}

.onboarding-welcome {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.onboarding-logo {
  margin-bottom: 4px;
}

.onboarding-logo.finrix-logo,
.onboarding-logo .finrix-logo {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  filter: drop-shadow(0 4px 14px rgba(0, 0, 0, 0.35)) drop-shadow(0 0 10px rgba(255, 255, 255, 0.12));
}

.onboarding-logo.finrix-logo img,
.onboarding-logo .finrix-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.onboarding-welcome h1 {
  font-size: 23px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
  letter-spacing: -0.3px;
}

.onboarding-welcome p {
  font-size: 13px;
  color: var(--text-secondary);
  margin: 0;
  max-width: 480px;
  line-height: 1.45;
}

.onboarding-section {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.onboarding-section-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: -0.1px;
}

.profile-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  width: 100%;
}

.profile-card {
  background: rgba(13, 20, 32, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 24px 14px 20px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-align: center;
  box-shadow: 0 8px 24px rgba(0, 4, 15, 0.35);
  box-sizing: border-box;
}

.profile-card:hover {
  transform: translateY(-2px);
  border-color: rgba(56, 189, 248, 0.25);
  background: rgba(16, 25, 40, 0.85);
  box-shadow: 0 10px 28px rgba(0, 8, 25, 0.45);
}

.profile-card.active {
  border: 1.5px solid #2563eb;
  background: rgba(14, 24, 42, 0.9);
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.25);
}

.profile-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2px;
}

.profile-card-icon svg {
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.3));
  opacity: 0.95;
}

.profile-card-name {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.2px;
  margin-bottom: 2px;
}

.profile-card-desc {
  font-size: 11.5px;
  color: var(--text-secondary);
  line-height: 1.4;
  text-align: center;
}

/* Light Theme Overrides for Profile Cards */
:root[data-theme="light"] .profile-card {
  background: #ffffff;
  border-color: #e2e8f0;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

:root[data-theme="light"] .profile-card:hover {
  background: #f8fafc;
  border-color: #0284c7;
  box-shadow: 0 8px 24px rgba(2, 132, 199, 0.1);
}

:root[data-theme="light"] .profile-card.active {
  background: #f0f9ff;
  border-color: #0284c7;
  box-shadow: 0 0 16px rgba(2, 132, 199, 0.15);
}

:root[data-theme="light"] .profile-card-icon svg {
  filter: none !important;
  opacity: 1;
}

/* Typing Animation System - Compact Slim Card */
.typing-prompt-wrapper {
  width: 100%;
  max-width: 530px;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 4px;
}

.typing-prompt-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 8px 14px;
  background: rgba(13, 20, 32, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 4, 15, 0.35);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
  position: relative;
}

.typing-prompt-card:hover {
  border-color: rgba(56, 189, 248, 0.3);
  background: rgba(16, 25, 40, 0.95);
  box-shadow: 0 6px 20px rgba(0, 6, 20, 0.45);
}

.typing-prompt-content {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
}

.typing-agent-icon {
  width: 22px;
  height: 22px;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.typing-agent-icon svg {
  width: 19px;
  height: 19px;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.3));
  opacity: 0.95;
  transition: all 0.25s ease;
}

.typing-text-block {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: left;
  min-width: 0;
}

.typing-fixed-prefix {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 600;
  color: #38bdf8;
  letter-spacing: -0.1px;
}

.typing-prefix-spark {
  display: inline-block;
  color: #38bdf8;
  font-size: 11px;
  line-height: 1;
}

.typing-dynamic-line {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.35;
  white-space: normal;
  display: inline;
  letter-spacing: -0.1px;
}

.typing-cursor {
  display: inline-block;
  width: 2px;
  height: 13px;
  background-color: var(--brand, #38bdf8);
  margin-left: 2px;
  vertical-align: -2px;
  animation: typingCursorBlink 0.8s infinite;
}

@keyframes typingCursorBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* Light Theme Overrides */
:root[data-theme="light"] .typing-prompt-card {
  background: #ffffff;
  border-color: #e2e8f0;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

:root[data-theme="light"] .typing-prompt-card:hover {
  background: #f8fafc;
  border-color: #0284c7;
  box-shadow: 0 6px 20px rgba(2, 132, 199, 0.1);
}

:root[data-theme="light"] .typing-agent-icon {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

:root[data-theme="light"] .typing-agent-icon svg {
  filter: none !important;
}

:root[data-theme="light"] .typing-fixed-prefix {
  color: #0284c7;
}

:root[data-theme="light"] .typing-prefix-spark {
  color: #0284c7;
  text-shadow: none;
}

:root[data-theme="light"] .onboarding-logo.finrix-logo,
:root[data-theme="light"] .onboarding-logo .finrix-logo {
  filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.12));
}

@media (max-width: 600px) {
  .profile-cards {
    grid-template-columns: 1fr;
  }
  .typing-prompt-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 16px;
  }
  .typing-ask-btn {
    align-self: flex-end;
  }
}
