* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  height: 100%;
  width: 100%;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  margin: 0;
  padding: 0;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 20px;
  display: flex;
  flex-direction: column;
  gap: 0;
  min-height: calc(100vh - 40px);
}

/* Header Styles */
.header {
  background: white;
  border-radius: 16px 16px 0 0;
  padding: 24px 32px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.branding {
  display: flex;
  align-items: center;
  gap: 16px;
}

.logo {
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-text h1 {
  font-size: 24px;
  font-weight: 700;
  color: #1a202c;
  margin-bottom: 2px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.brand-text p {
  font-size: 13px;
  color: #718096;
  font-weight: 500;
}

.agent-selector {
  display: flex;
  align-items: center;
  gap: 12px;
}

.agent-selector label {
  font-weight: 600;
  color: #4a5568;
  font-size: 14px;
  white-space: nowrap;
}

.agent-selector select {
  padding: 10px 16px;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  background: white;
  font-size: 14px;
  font-weight: 500;
  color: #2d3748;
  cursor: pointer;
  transition: all 0.2s ease;
  min-width: 160px;
  font-family: 'Inter', sans-serif;
}

.agent-selector select:hover {
  border-color: #667eea;
  background: #f7fafc;
}

.agent-selector select:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Chat Wrapper */
.chat-wrapper {
  background: white;
  padding: 32px;
  flex: 1;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  min-height: 500px;
}

#customgpt_chat {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Footer */
.footer {
  background: white;
  border-radius: 0 0 16px 16px;
  padding: 16px 32px;
  text-align: center;
  box-shadow: 0 -2px 6px rgba(0, 0, 0, 0.05);
}

.footer p {
  font-size: 13px;
  color: #718096;
  margin: 0;
}

.footer a {
  color: #667eea;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

.footer a:hover {
  color: #764ba2;
}

/* CustomGPT iframe styling */
#cgptcb-chat-box-iframe {
  border-radius: 12px !important;
  box-shadow: none !important;
  border: none !important;
}

/* Responsive Design */
@media (max-width: 768px) {
  body {
    background: white;
  }
  
  .container {
    margin: 0;
    min-height: 100vh;
    border-radius: 0;
  }
  
  .header {
    border-radius: 0;
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
  }
  
  .agent-selector {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }
  
  .agent-selector label {
    font-size: 13px;
  }
  
  .agent-selector select {
    width: 100%;
  }
  
  .chat-wrapper {
    padding: 20px;
    border-radius: 0;
  }
  
  .footer {
    border-radius: 0;
  }
  
  .brand-text h1 {
    font-size: 20px;
  }
  
  .brand-text p {
    font-size: 12px;
  }
}