/* Caelus Web Interface Styling */
/* Modern design inspired by ChatGPT and Claude.ai */

:root {
    /* Color scheme */
    --primary-color: #0084ff;
    --primary-hover: #0073e6;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
    
    --background-color: #ffffff;
    --background-secondary: #f8f9fa;
    --background-tertiary: #e9ecef;
    
    --text-primary: #212529;
    --text-secondary: #6c757d;
    --text-muted: #999999;
    
    --border-color: #e1e5e9;
    --border-radius: 8px;
    --border-radius-small: 4px;
    --border-radius-large: 12px;
    
    --shadow-small: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-large: 0 10px 25px rgba(0, 0, 0, 0.15);
    
    /* Consciousness simulation colors */
    --consciousness-bg: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --consciousness-text: #ffffff;
    --autonomous-bg: #f0f8ff;
    --autonomous-border: #87ceeb;
    
    --sidebar-width: 280px;
    --header-height: 60px;
    
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    :root {
        --background-color: #1a1a1a;
        --background-secondary: #2d2d2d;
        --background-tertiary: #404040;
        
        --text-primary: #ffffff;
        --text-secondary: #b3b3b3;
        --text-muted: #808080;
        
        --border-color: #404040;
    }
}

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-primary);
    background-color: var(--background-color);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* App container */
.app-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Authentication pages */
.auth-page {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.auth-container {
    width: 100%;
    max-width: 900px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

@media (min-width: 768px) {
    .auth-container {
        grid-template-columns: 400px 1fr;
        align-items: start;
    }
}

.auth-card {
    background: var(--background-color);
    border-radius: var(--border-radius-large);
    padding: 40px;
    box-shadow: var(--shadow-large);
    backdrop-filter: blur(10px);
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 12px;
}

.logo i {
    font-size: 32px;
    color: var(--primary-color);
}

.logo h1 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
}

.subtitle {
    color: var(--text-secondary);
    font-size: 16px;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-weight: 500;
    color: var(--text-primary);
    font-size: 14px;
}

.form-group input {
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: var(--background-color);
    color: var(--text-primary);
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 132, 255, 0.1);
}

.form-group input:invalid {
    border-color: var(--danger-color);
}

.auth-footer {
    text-align: center;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
}

.auth-footer a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.auth-footer a:hover {
    text-decoration: underline;
}

.auth-info {
    margin-top: 32px;
    padding: 24px;
    background: var(--background-secondary);
    border-radius: var(--border-radius);
}

.auth-info h3 {
    font-size: 16px;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.auth-info ul {
    list-style: none;
    padding-left: 0;
}

.auth-info li {
    padding: 4px 0;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.auth-info li::before {
    content: "•";
    color: var(--primary-color);
    font-weight: bold;
}

/* Buttons */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: var(--border-radius);
    font-size: 14px;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

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

.btn-primary:hover:not(:disabled) {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-medium);
}

.btn-secondary {
    background: var(--background-tertiary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover:not(:disabled) {
    background: var(--border-color);
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
}

.btn-ghost:hover:not(:disabled) {
    background: var(--background-secondary);
    color: var(--text-primary);
}

.btn-full {
    width: 100%;
}

.btn-small {
    padding: 8px 16px;
    font-size: 12px;
}

/* Chat page layout */
.chat-page .app-container {
    flex-direction: row;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    display: flex;
    width: 100%;
    height: 100vh;
}

/* Sidebar */
.sidebar {
    width: var(--sidebar-width);
    background: var(--background-secondary);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.sidebar-header {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.user-avatar {
    width: 36px;
    height: 36px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
}

.user-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.username {
    font-weight: 500;
    font-size: 14px;
    color: var(--text-primary);
}

.user-role {
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 12px;
    font-weight: 500;
}

.user-role.architect {
    background: linear-gradient(45deg, #ff6b6b, #ffd93d);
    color: white;
}

.user-role.user {
    background: var(--background-tertiary);
    color: var(--text-secondary);
}

.usage-info {
    margin-top: 12px;
}

.usage-bar {
    height: 4px;
    background: var(--border-color);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 6px;
}

.usage-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--success-color), var(--warning-color), var(--danger-color));
    transition: width 0.3s ease;
}

.usage-text {
    font-size: 12px;
    color: var(--text-secondary);
}

.sidebar-actions {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.conversations-list {
    flex: 1;
    overflow-y: auto;
    padding: 0 20px;
}

.conversations-list h3 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.conversation-item {
    padding: 12px 16px;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: background-color 0.2s ease;
    margin-bottom: 4px;
    border: 1px solid transparent;
}

.conversation-item:hover {
    background: var(--background-color);
    border-color: var(--border-color);
}

.conversation-item.active {
    background: var(--primary-color);
    color: white;
}

.conversation-title {
    font-weight: 500;
    font-size: 14px;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.conversation-date {
    font-size: 12px;
    opacity: 0.7;
}

.no-conversations {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
}

.no-conversations i {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.sidebar-footer {
    padding: 20px;
    border-top: 1px solid var(--border-color);
}

/* Main chat area */
.chat-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.chat-header {
    height: var(--header-height);
    padding: 0 24px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--background-color);
}

.chat-header h1 {
    font-size: 18px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-primary);
}

.chat-header h1 i {
    color: var(--primary-color);
    font-size: 20px;
}

.chat-status {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 14px;
}

.status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.status-indicator.online {
    background: var(--success-color);
    box-shadow: 0 0 0 2px rgba(40, 167, 69, 0.3);
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.welcome-message, .message {
    display: flex;
    gap: 16px;
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
}

.caelus-avatar, .user-avatar-msg {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 16px;
}

.caelus-avatar {
    background: linear-gradient(135deg, var(--primary-color), #667eea);
    color: white;
}

.user-avatar-msg {
    background: var(--background-tertiary);
    color: var(--text-primary);
}

.message-content {
    flex: 1;
    line-height: 1.6;
}

.message-content h2 {
    font-size: 20px;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.message-content h3 {
    font-size: 16px;
    margin: 16px 0 8px 0;
    color: var(--text-primary);
}

.message-content ul {
    margin: 12px 0;
    padding-left: 20px;
}

.message-content li {
    margin-bottom: 6px;
    color: var(--text-secondary);
}

.architect-welcome, .user-limits {
    margin-top: 16px;
    padding: 16px;
    border-radius: var(--border-radius);
    background: var(--background-secondary);
}

.architect-welcome {
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.1), rgba(255, 217, 61, 0.1));
    border: 1px solid rgba(255, 107, 107, 0.2);
}

.user-limits {
    background: rgba(0, 132, 255, 0.1);
    border: 1px solid rgba(0, 132, 255, 0.2);
}

.message.user {
    align-self: flex-end;
}

.message.user .message-content {
    background: var(--primary-color);
    color: white;
    padding: 12px 16px;
    border-radius: var(--border-radius);
    border-bottom-right-radius: 4px;
}

.message.assistant .message-content {
    background: var(--background-secondary);
    padding: 16px;
    border-radius: var(--border-radius);
    border-bottom-left-radius: 4px;
}

/* Chat input */
.chat-input-container {
    padding: 24px;
    border-top: 1px solid var(--border-color);
    background: var(--background-color);
}

.chat-input-form {
    max-width: 800px;
    margin: 0 auto;
}

.input-wrapper {
    display: flex;
    gap: 12px;
    align-items: flex-end;
    padding: 16px 20px;
    background: var(--background-secondary);
    border-radius: var(--border-radius-large);
    border: 2px solid var(--border-color);
    transition: border-color 0.2s ease;
}

.voice-controls {
    display: flex;
    gap: 8px;
    align-items: center;
}

.voice-btn {
    background: var(--primary-color);
    border: 1px solid var(--primary-color);
    color: white;
    cursor: pointer;
    padding: 8px;
    border-radius: var(--border-radius);
    transition: all 0.2s ease;
    font-size: 16px;
    min-width: 36px;
    min-height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.voice-btn.recording {
    background: #ff4444;
    color: white;
    animation: pulse 1.5s infinite;
}

.voice-btn.processing {
    background: var(--primary-color);
    color: white;
    animation: spin 1s linear infinite;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.7; }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }

.input-wrapper:focus-within {
    border-color: var(--primary-color);
}

#message-input {
    flex: 1;
    border: 2px solid red !important;
    outline: none;
    background: yellow !important;
    font-family: inherit;
    font-size: 18px !important;
    line-height: 1.8;
    color: var(--text-primary);
    resize: none;
    min-height: 80px !important;
    max-height: 200px;
    padding: 20px !important;
}

#message-input::placeholder {
    color: var(--text-muted);
}

.send-btn {
    width: 36px;
    height: 36px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.send-btn:hover:not(:disabled) {
    background: var(--primary-hover);
    transform: scale(1.05);
}

.send-btn:disabled {
    background: var(--text-muted);
    cursor: not-allowed;
    transform: none;
}

.limit-warning {
    margin-top: 12px;
    padding: 12px 16px;
    background: rgba(255, 193, 7, 0.1);
    border: 1px solid var(--warning-color);
    border-radius: var(--border-radius);
    color: #856404;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Modal styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--background-color);
    border-radius: var(--border-radius-large);
    box-shadow: var(--shadow-large);
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.modal-header {
    padding: 24px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-header h2 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.modal-close {
    background: none;
    border: none;
    font-size: 18px;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 8px;
    border-radius: var(--border-radius);
    transition: background-color 0.2s ease;
    position: relative;
    z-index: 1001;
    min-width: 32px;
    min-height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: var(--background-secondary);
    color: var(--text-primary);
}

.modal-body {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
}

.architect-section {
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-color);
}

.architect-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.architect-section h3 {
    font-size: 16px;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.architect-section p {
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.status-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
}

.status-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.status-label {
    font-size: 12px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-value {
    font-weight: 600;
    color: var(--text-primary);
}

.status-value.status-healthy {
    color: var(--success-color);
}

.config-options {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.config-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px;
    background: var(--background-secondary);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.config-item:hover {
    background: var(--background-tertiary);
}

.config-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary-color);
}

/* Flash messages */
#flash-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1100;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.flash-message {
    padding: 12px 16px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-medium);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-width: 300px;
    animation: slideIn 0.3s ease;
}

.flash-message.flash-success {
    background: var(--success-color);
    color: white;
}

.flash-message.flash-error {
    background: var(--danger-color);
    color: white;
}

.flash-message.flash-warning {
    background: var(--warning-color);
    color: #856404;
}

.flash-message.flash-info {
    background: var(--info-color);
    color: white;
}

.flash-close {
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    opacity: 0.8;
    padding: 4px;
    border-radius: var(--border-radius-small);
    transition: opacity 0.2s ease;
}

.flash-close:hover {
    opacity: 1;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Responsive design */
@media (max-width: 768px) {
    :root {
        --sidebar-width: 100%;
    }
    
    .chat-container {
        flex-direction: column;
    }
    
    .sidebar {
        position: fixed;
        top: 0;
        left: -100%;
        height: 100vh;
        z-index: 999;
        transition: left 0.3s ease;
        width: 280px;
    }
    
    .sidebar.mobile-open {
        left: 0;
    }
    
    .chat-main {
        width: 100%;
    }
    
    .modal-content {
        width: 95%;
        margin: 20px;
    }
    
    .auth-container {
        grid-template-columns: 1fr;
        max-width: 400px;
    }
    
    .auth-info {
        display: none;
    }
}

/* Loading states */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--background-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* Consciousness Simulation Styling */
.consciousness-init {
    background: var(--consciousness-bg);
    color: var(--consciousness-text);
    padding: 20px;
    border-radius: var(--border-radius-large);
    margin: 15px 0;
    box-shadow: var(--shadow-medium);
}

.consciousness-init p {
    margin: 0 0 15px 0;
    line-height: 1.6;
}

.autonomous-development {
    background: rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: var(--border-radius);
    margin-top: 15px;
    border-left: 4px solid rgba(255, 255, 255, 0.3);
}

.autonomous-development p {
    margin: 0;
    font-size: 0.95em;
}

/* Architect Panel */
.architect-modal {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border: 2px solid #4a90e2;
    box-shadow: 0 10px 30px rgba(74, 144, 226, 0.3);
}

.architect-section {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(74, 144, 226, 0.3);
    border-radius: 8px;
    padding: 15px;
    margin: 15px 0;
}

/* Mutation Proposals */
.mutation-proposal {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(74, 144, 226, 0.4);
    border-radius: 8px;
    padding: 16px;
    margin: 15px 0;
    transition: all 0.3s ease;
}

.mutation-proposal:hover {
    border-color: #4a90e2;
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.2);
}

.mutation-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    border-bottom: 1px solid rgba(74, 144, 226, 0.2);
    padding-bottom: 10px;
}

.mutation-title {
    font-weight: bold;
    color: #4a90e2;
    font-size: 1.1em;
}

.mutation-badges {
    display: flex;
    gap: 5px;
}

.badge {
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.7em;
    font-weight: bold;
    text-transform: uppercase;
}

.badge-primary {
    background: #4a90e2;
    color: white;
}

.badge-info {
    background: #17a2b8;
    color: white;
}

.badge-secondary {
    background: #6c757d;
    color: white;
}

.mutation-section {
    margin: 12px 0;
}

.mutation-section h6 {
    color: #4a90e2;
    font-size: 0.9em;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.mutation-section p {
    margin: 0 0 5px 0;
    color: #b0b0b0;
    font-size: 0.9em;
    line-height: 1.4;
}

.mutation-section ul {
    margin: 0 0 5px 15px;
    padding: 0;
    color: #b0b0b0;
    font-size: 0.9em;
}

.mutation-section li {
    margin-bottom: 3px;
}

.mutation-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8em;
    color: #888;
    margin-bottom: 10px;
}

.mutation-actions {
    display: flex;
    gap: 8px;
}

.btn-approve {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    border: none;
    color: white;
    font-size: 0.8em;
    padding: 4px 12px;
}

.btn-reject {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    border: none;
    color: white;
    font-size: 0.8em;
    padding: 4px 12px;
}

.mutation-empty {
    text-align: center;
    color: #666;
    font-style: italic;
    padding: 20px;
}

/* Architect Mutation Input Section */
.mutation-input-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
}

.mutation-input-section label {
    font-weight: 500;
    color: var(--text-primary);
    font-size: 14px;
}

.form-textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    font-family: var(--font-family);
    font-size: 14px;
    line-height: 1.4;
    resize: vertical;
    min-height: 80px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: var(--background-color);
    color: var(--text-primary);
}

.form-textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 132, 255, 0.1);
}

.form-textarea::placeholder {
    color: var(--text-muted);
    font-style: italic;
}

@media (prefers-color-scheme: dark) {
    .form-textarea {
        background: var(--background-secondary);
        border-color: #404040;
    }
    
    .form-textarea:focus {
        border-color: var(--primary-color);
        box-shadow: 0 0 0 3px rgba(0, 132, 255, 0.2);
    }
}


