/* Custom CSS variables */
:root {
    --primary: #31a5a7cc;  
    --success: #10b981;
    --primary-dark: #30a0a18f;
    --danger: #ef4444;
    --warning: #f59e0b;
    --gray: #6b7280;
}

/* Base styles */
b/* Chat specific styles */
.chat-container {
    display: flex;
    flex-direction: column;
    height: auto;
    min-height: 32vh;
}

.chat-messages {
    flex-grow: 1;
    overflow-y: auto;
    border: 1px solid #e5e7eb;
    border-radius: 0.375rem;
    padding: 0.75rem;
    background-color: #f9fafb;
    margin-bottom: 0.75rem;
    height: 28vh;
}y: 'Montserrat', sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    margin: 0;
}

main {
    flex: 1;
}

/* Color utilities */
.bg-primary {
    background-color: var(--primary);
}

.text-primary {
    color: var(--primary);
}

.border-primary {
    border-color: var(--primary);
}

.hover\:bg-primary-dark:hover {
    background-color: var(--primary-dark);
}

.hover\:text-primary:hover {
    color: var(--primary);
}

/* Feature card styles */
.feature-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1rem auto;
}

.feature-card {
    transition: transform 0.3s ease-in-out;
}

.feature-card:hover {
    transform: translateY(-5px);
}

/* Status badges */
.status-badge {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    display: inline-flex;
    font-size: 0.75rem;
    line-height: 1.25rem;
    font-weight: 600;
    border-radius: 9999px;
}

.status-badge-active {
    background-color: #dcfce7;
    color: #166534;
}

.status-badge-inactive {
    background-color: #fee2e2;
    color: #991b1b;
}

.status-badge-admin {
    background-color: #dbeafe;
    color: #1e40af;
}

.status-badge-user {
    background-color: #f3f4f6;
    color: #1f2937;
}

/* Transitions */
.transition-standard {
    transition-property: background-color, border-color, color, fill, stroke, opacity, box-shadow, transform;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 300ms;
}

/* Button styles */
.btn-primary {
    padding: 0.5rem 1rem;
    background-color: var(--primary);
    color: white;
    border-radius: 0.375rem;
    transition-property: background-color, border-color, color, fill, stroke;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 300ms;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
}

.btn-outline {
    padding: 0.5rem 1rem;
    border: 1px solid var(--primary);
    color: var(--primary);
    border-radius: 0.375rem;
    transition-property: background-color, border-color, color, fill, stroke;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 300ms;
}

.btn-outline:hover {
    background-color: #f9fafb;
}

.btn-danger {
    padding: 0.5rem 1rem;
    background-color: #dc2626;
    color: white;
    border-radius: 0.375rem;
    transition-property: background-color, border-color, color, fill, stroke;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 300ms;
}

.btn-danger:hover {
    background-color: #b91c1c;
}

/* Markdown content styles */
.markdown-content pre {
    background-color: #f7f7f7;
    border: 1px solid #e1e1e8;
    border-radius: 3px;
    padding: 10px;
    margin: 10px 0;
    overflow-x: auto;
}

.markdown-content code {
    font-family: Consolas, Monaco, 'Andale Mono', monospace;
    font-size: 0.9em;
    background-color: rgba(0, 0, 0, 0.04);
    border-radius: 3px;
    padding: 2px 4px;
}

.markdown-content p {
    margin-bottom: 10px;
}

.markdown-content ul, 
.markdown-content ol {
    margin-left: 20px;
    margin-bottom: 10px;
}

.markdown-content h1, 
.markdown-content h2, 
.markdown-content h3, 
.markdown-content h4, 
.markdown-content h5, 
.markdown-content h6 {
    margin-top: 16px;
    margin-bottom: 8px;
    font-weight: 600;
}

.markdown-content table {
    border-collapse: collapse;
    margin: 15px 0;
    width: 100%;
}

.markdown-content table th,
.markdown-content table td {
    border: 1px solid #ddd;
    padding: 8px;
}

.markdown-content table th {
    background-color: #f2f2f2;
    text-align: left;
}

.markdown-content blockquote {
    border-left: 4px solid #ddd;
    padding-left: 16px;
    color: #666;
    margin: 16px 0;
}

.markdown-content a {
    color: #0066cc;
    text-decoration: underline;
}

/* Chat specific styles */
.chat-container {
    display: flex;
    flex-direction: column;
    height: auto;
    min-height: 32vh;
}

.chat-messages {
    flex-grow: 1;
    overflow-y: auto;
    border: 1px solid #e5e7eb;
    border-radius: 0.375rem;
    padding: 0.75rem;
    background-color: #f9fafb;
    margin-bottom: 0.75rem;
    height: 28vh;
}

.chat-input-container {
    display: flex;
    align-items: stretch; /* Make items stretch to the same height */
    margin-top: 0.75rem;
    width: 100%;
    position: relative;
}

.chat-input { /* Textarea */
    flex-grow: 1;
    flex-basis: 0;
    min-width: 0;
    width: 100%;
    border: 1px solid #d1d5db;
    border-right: none; /* Remove right border to merge with button */
    border-radius: 0.375rem 0 0 0.375rem; /* Rounded left, flat right */
    padding: 0.75rem;
    font-size: 1rem;
    line-height: 1.5rem;
    min-height: calc(1.5rem * 2 + 0.75rem * 2 + 2px); /* Approx 2 lines + padding + border */
    resize: vertical;
    max-height: 200px; /* Max height before scrolling */
    overflow-y: auto;
}

.chat-send-button {
    border: 1px solid #d1d5db; /* Add border to match textarea */
    border-left: none; /* Remove left border to merge with textarea */
    padding: 0.75rem 1rem;
    border-radius: 0 0.375rem 0.375rem 0; /* Rounded right, flat left */
    display: flex;
    align-items: center;
    justify-content: center;
    /* Tailwind classes in HTML will handle bg, text color, hover */
}