/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    background-color: #ffffff;
    color: #374151;
    line-height: 1.6;
    overflow-x: hidden;
}

.app-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header Styles */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    border-bottom: 1px solid #e5e7eb;
    background-color: #ffffff;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: 600;
    color: #111827;
}

.dropdown-icon {
    font-size: 0.875rem;
    color: #6b7280;
    cursor: pointer;
    transition: color 0.2s ease;
}

.dropdown-icon:hover {
    color: #374151;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Button Styles */
.btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-secondary {
    background-color: transparent;
    color: #374151;
    border: 1px solid #d1d5db;
}

.btn-secondary:hover {
    background-color: #f9fafb;
    border-color: #9ca3af;
}

.btn-primary {
    background-color: #111827;
    color: #ffffff;
}

.btn-primary:hover {
    background-color: #1f2937;
}

.btn-icon {
    width: 2.5rem;
    height: 2.5rem;
    padding: 0;
    border-radius: 50%;
    background-color: transparent;
    color: #6b7280;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-icon:hover {
    background-color: #f3f4f6;
    color: #374151;
}

/* Main Content */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    max-width: 48rem;
    margin: 0 auto;
    width: 100%;
    padding: 0 1rem;
}

.chat-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 140px);
}

/* Welcome Section */
.welcome-section {
    text-align: center;
    padding: 4rem 0 2rem;
}

.welcome-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.5rem;
}

.welcome-subtitle {
    font-size: 1.125rem;
    color: #6b7280;
    margin-bottom: 2rem;
}

/* Chat Messages */
.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1rem 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.message {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    border-radius: 0.5rem;
    animation: fadeIn 0.3s ease;
}

.message.user {
    background-color: #f3f4f6;
    margin-left: 2rem;
}

.message.assistant {
    background-color: #f9fafb;
    margin-right: 2rem;
}

.message-avatar {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 600;
    flex-shrink: 0;
}

.message.user .message-avatar {
    background-color: #3b82f6;
    color: white;
}

.message.assistant .message-avatar {
    background-color: #10b981;
    color: white;
}

.message-content {
    flex: 1;
    line-height: 1.6;
}

.message-text {
    margin-bottom: 0.5rem;
}

.message-time {
    font-size: 0.75rem;
    color: #9ca3af;
}

/* Input Section */
.input-section {
    padding: 1rem 0 2rem;
    position: sticky;
    bottom: 0;
    background-color: #ffffff;
}

.input-container {
    position: relative;
    background-color: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 0.75rem;
    padding: 0.75rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.input-container:focus-within {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.message-input {
    width: 100%;
    border: none;
    outline: none;
    resize: none;
    font-size: 1rem;
    line-height: 1.5;
    color: #374151;
    background-color: transparent;
    font-family: inherit;
    min-height: 1.5rem;
    max-height: 200px;
}

.message-input::placeholder {
    color: #9ca3af;
}

.input-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid #f3f4f6;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.5rem 0.75rem;
    border: none;
    background-color: transparent;
    color: #6b7280;
    font-size: 0.875rem;
    border-radius: 0.375rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.action-btn:hover {
    background-color: #f3f4f6;
    color: #374151;
}

.action-btn i {
    font-size: 0.875rem;
}

.send-btn {
    margin-left: auto;
    width: 2.5rem;
    height: 2.5rem;
    border: none;
    background-color: #3b82f6;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.send-btn:hover {
    background-color: #2563eb;
    transform: scale(1.05);
}

.send-btn:disabled {
    background-color: #9ca3af;
    cursor: not-allowed;
    transform: none;
}

/* Footer */
.footer {
    text-align: center;
    padding: 1rem 2rem;
    border-top: 1px solid #e5e7eb;
    background-color: #ffffff;
}

.footer-text {
    font-size: 0.75rem;
    color: #6b7280;
    line-height: 1.4;
}

.footer-link {
    color: #3b82f6;
    text-decoration: none;
}

.footer-link:hover {
    text-decoration: underline;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes typing {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.typing-indicator {
    display: flex;
    gap: 0.25rem;
    padding: 0.5rem;
}

.typing-dot {
    width: 0.5rem;
    height: 0.5rem;
    background-color: #9ca3af;
    border-radius: 50%;
    animation: typing 1.4s infinite ease-in-out;
}

.typing-dot:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dot:nth-child(2) {
    animation-delay: -0.16s;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header {
        padding: 1rem;
    }
    
    .header-right {
        gap: 0.5rem;
    }
    
    .btn {
        padding: 0.375rem 0.75rem;
        font-size: 0.8rem;
    }
    
    .welcome-title {
        font-size: 2rem;
    }
    
    .welcome-subtitle {
        font-size: 1rem;
    }
    
    .main-content {
        padding: 0 0.5rem;
    }
    
    .message {
        margin-left: 0.5rem;
        margin-right: 0.5rem;
    }
    
    .input-container {
        margin: 0 0.5rem;
    }
    
    .action-btn span {
        display: none;
    }
    
    .action-btn {
        padding: 0.5rem;
    }
}

@media (max-width: 480px) {
    .header-left .logo {
        font-size: 1.25rem;
    }
    
    .btn-primary {
        display: none;
    }
    
    .welcome-title {
        font-size: 1.75rem;
    }
    
    .input-actions {
        flex-wrap: wrap;
    }
}

/* Scrollbar Styling */
.chat-messages::-webkit-scrollbar {
    width: 6px;
}

.chat-messages::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
} 
.message {
  padding: 10px;
  margin: 10px;
  border-radius: 10px;
  max-width: 70%;
  word-wrap: break-word;
}

.user {
  background-color: #d1e7dd;
  align-self: flex-end;
  text-align: right;
}

.ai {
  background-color: rgba(14, 252, 172, 0.1);
  align-self: flex-start;
}
