
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #dbeafe 0%, #e0e7ff 100%);
    min-height: 100vh;
}

/* Navigation */
.navbar {
    background: #2563eb;
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1rem;
}

.nav-brand {
    font-size: 1.25rem;
    font-weight: bold;
}

.nav-buttons {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-btn {
    background: transparent;
    border: 2px solid white;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    cursor: pointer;
    font-size: 0.875rem;
    transition: all 0.2s;
}

.nav-btn:hover {
    background: white;
    color: #2563eb;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

/* Welcome Page */
.welcome-content {
    text-align: center;
    padding: 4rem 0;
}

.welcome-content h1 {
    font-size: 2rem;
    color: #1f2937;
    margin-bottom: 1rem;
}

.welcome-content > p {
    color: #6b7280;
    margin-bottom: 2rem;
    font-size: 1.125rem;
}

.admin-info {
    background: white;
    border-radius: 0.5rem;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    max-width: 400px;
    margin: 0 auto;
}

.admin-info h3 {
    font-size: 1.125rem;
    margin-bottom: 1rem;
    color: #1f2937;
}

.admin-info p {
    font-size: 0.875rem;
    color: #6b7280;
}

/* Chatbot */
.chatbot-container {
    display: flex;
    height: 80vh;
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    overflow: hidden;
}

/* Sidebar */
.sidebar {
    width: 250px;
    background: #f8fafc;
    border-right: 1px solid #e5e7eb;
    padding: 1rem;
}

.sidebar h2 {
    font-size: 1rem;
    color: #1f2937;
    margin-bottom: 1rem;
}

.command {
    background: #f1f5f9;
    padding: 0.5rem;
    border-radius: 0.375rem;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    color: #64748b;
    cursor: pointer;
    transition: background-color 0.2s;
}

.command:hover {
    background: #e2e8f0;
}

/* Chat Area */
.chat-area {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.chat-header {
    padding: 1rem;
    border-bottom: 1px solid #e5e7eb;
    background: white;
}

.chat-header h1 {
    font-size: 1.25rem;
    color: #1f2937;
    margin-bottom: 0.25rem;
}

.status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #6b7280;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
}

/* Messages */
.messages {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
    background: #f9fafb;
}

.message {
    margin-bottom: 1rem;
    max-width: 70%;
}

.user-message {
    margin-left: auto;
}

.message-content {
    padding: 0.75rem;
    border-radius: 0.5rem;
    white-space: pre-wrap;
}

.user-message .message-content {
    background: #2563eb;
    color: white;
}

.bot-message .message-content {
    background: white;
    border: 1px solid #e5e7eb;
    color: #1f2937;
}

.message-time {
    font-size: 0.75rem;
    color: #9ca3af;
    margin-top: 0.25rem;
    text-align: right;
}

.user-message .message-time {
    color: #dbeafe;
}

/* Input Area */
.input-area {
    padding: 1rem;
    background: white;
    border-top: 1px solid #e5e7eb;
}

.notification {
    background: #ecfdf5;
    border: 1px solid #d1fae5;
    color: #065f46;
    padding: 0.5rem;
    border-radius: 0.375rem;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.chat-form {
    display: flex;
    gap: 0.5rem;
}

.chat-form input {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    font-size: 1rem;
}

.chat-form button {
    background: #2563eb;
    color: white;
    border: none;
    padding: 0.75rem 1rem;
    border-radius: 0.375rem;
    cursor: pointer;
    font-size: 1rem;
}

.chat-form button:hover {
    background: #1d4ed8;
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal {
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 20px 25px rgba(0,0,0,0.15);
    width: 100%;
    max-width: 400px;
    margin: 1rem;
}

.modal-header {
    padding: 1.5rem 1.5rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    font-size: 1.5rem;
    color: #1f2937;
}

.close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #9ca3af;
    cursor: pointer;
    padding: 0;
}

.close-btn:hover {
    color: #374151;
}

.modal-content {
    padding: 1.5rem;
}

.modal-content p {
    color: #6b7280;
    margin-bottom: 1rem;
    text-align: center;
}

.modal-content form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.modal-content input {
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    font-size: 1rem;
}

.modal-content button {
    background: #2563eb;
    color: white;
    border: none;
    padding: 0.75rem;
    border-radius: 0.375rem;
    cursor: pointer;
    font-size: 1rem;
}

.modal-content button:hover {
    background: #1d4ed8;
}

.switch-form {
    text-align: center;
    margin-top: 1rem;
    font-size: 0.875rem;
    color: #6b7280;
}

.switch-form a {
    color: #2563eb;
    text-decoration: underline;
}

.switch-form a:hover {
    color: #1d4ed8;
}

.error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
    padding: 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    text-align: center;
}

/* Responsive */
@media (max-width: 768px) {
    .chatbot-container {
        flex-direction: column;
        height: auto;
    }
    
    .sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #e5e7eb;
    }
    
    .messages {
        height: 400px;
    }
}