:root {
    --primary-color: #2563eb;
    --text-color: #1f2937;
    --background-color: #ffffff;
    --accent-color: #dbeafe;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
    padding-top: 20px;
    height: 100vh;
    overflow: hidden;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

header {
    text-align: center;
    margin-bottom: 3rem;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-color);
    line-height: 1.2;
}

.subtitle {
    font-size: 1.2rem;
    color: #4b5563;
    max-width: 600px;
    margin: 0 auto;
}

.waitlist-section {
    background-color: var(--accent-color);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
}

.signup-form {
    max-width: 400px;
    margin: 2rem auto;
}

.form-group {
    margin-bottom: 1rem;
}

input {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e5e7eb;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.cta-button {
    background-color: var(--primary-color);
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
    width: 100%;
}

.cta-button:hover {
    background-color: #1d4ed8;
}

.hidden {
    display: none;
}

#confirmationMessage {
    background-color: #10b981;
    color: white;
    padding: 1rem;
    border-radius: 6px;
    margin-top: 1rem;
}

footer {
    text-align: center;
    color: #6b7280;
    margin-top: 3rem;
}

/* Animations */
.fade-in {
    animation: fadeIn 0.8s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }
    
    .container {
        padding: 1rem;
    }
    
    .waitlist-section {
        padding: 1.5rem;
    }
}

.auth-buttons {
    margin: 2rem auto;
    max-width: 400px;
}

input[type="password"] {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e5e7eb;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

input[type="password"]:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* Chat application styles */
.sidebar {
    height: 100vh;
    border-right: 1px solid #dee2e6;
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.chat-container {
    height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 0;
}

.chat-messages {
    flex-grow: 1;
    overflow-y: auto;
    padding: 1.5rem;
    margin-bottom: 80px; /* Add space for the input box */
}

.message {
    margin-bottom: 1rem;
    padding: 1rem;
    border-radius: 0.5rem;
    max-width: 80%;
}

.user-message {
    background-color: #007bff;
    color: white;
    margin-left: auto;
    border-bottom-right-radius: 4px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.ai-message {
    background-color: #f8f9fa;
    color: #212529;
    border-bottom-left-radius: 4px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.chat-input {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    max-width: 800px;
    padding: 15px 20px;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 100;
}

.nav-link.active {
    background-color: #f8f9fa;
}

/* Code block styling */
pre {
    background-color: #f6f8fa;
    border-radius: 6px;
    padding: 16px;
    overflow: auto;
}

code {
    font-family: SFMono-Regular, Consolas, Liberation Mono, Menlo, monospace;
    font-size: 85%;
}

/* Typing indicator */
.typing-indicator {
    display: flex;
    padding: 0.5rem 1rem;
}

.typing-indicator span {
    height: 8px;
    width: 8px;
    background-color: #6c757d;
    border-radius: 50%;
    display: inline-block;
    margin: 0 2px;
    opacity: 0.6;
    animation: typing 1s infinite;
}

.typing-indicator span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-indicator span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

/* Conversation list */
.chat-history {
    max-height: calc(100vh - 100px);
    overflow-y: auto;
}

.list-group-item-action {
    border-radius: 8px !important;
    margin-bottom: 8px;
    border: 1px solid rgba(0,0,0,.125);
}

.list-group-item-action.active {
    background-color: #f8f9fa;
    color: #212529;
    border-color: #dee2e6;
    border-left: 3px solid #007bff;
}

.list-group-item-action:hover {
    background-color: #e9ecef;
}

/* New chat button */
#newChatBtn {
    border-radius: 6px;
    padding: 4px 10px;
    font-size: 0.85rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .sidebar {
        height: auto;
        border-right: none;
        border-bottom: 1px solid #dee2e6;
    }
    
    .chat-container {
        height: calc(100vh - 200px);
    }
    
    .message {
        max-width: 90%;
    }
}

/* Header styling */
.chat-header {
    background-color: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.chat-header .nav-link {
    color: #495057;
    font-weight: 500;
    transition: color 0.2s;
}

.chat-header .nav-link:hover {
    color: #007bff;
}

/* User dropdown styling */
.dropdown-menu {
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border: 1px solid #eaeaea;
    padding: 8px 0;
}

.dropdown-item {
    color: #495057;
    transition: background-color 0.2s;
}

.dropdown-item:hover {
    background-color: #f8f9fa;
}

.dropdown-item i {
    color: #6c757d;
    width: 20px;
    text-align: center;
}

#logoutBtn {
    color: #dc3545;
}

#logoutBtn i {
    color: #dc3545;
} 