/* MigratePages.module.css - Styles for migrate-to-feature pages */

.page {
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    height: calc(100vh - 4rem);
    display: flex;
    flex-direction: column;
}

.header {
    margin-bottom: 1.5rem;
}

.header h1 {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--color-text-primary, #1a1a2e);
    margin: 0 0 0.5rem 0;
}

.subtitle {
    color: var(--color-text-secondary, #6b7280);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.migrateTag {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    background: var(--color-warning-bg, #fef3c7);
    color: var(--color-warning, #d97706);
    font-size: 0.65rem;
    font-weight: 700;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Placeholder for migrate pages */
.placeholder {
    text-align: center;
    padding: 3rem;
    background: var(--color-surface, #ffffff);
    border: 2px dashed var(--color-border, #e5e7eb);
    border-radius: 12px;
    max-width: 500px;
}

.placeholderIcon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.placeholder h2 {
    margin: 0 0 1rem 0;
    color: var(--color-text-primary, #1a1a2e);
}

.placeholder p {
    color: var(--color-text-secondary, #6b7280);
    margin: 0 0 0.5rem 0;
}

.hint {
    font-size: 0.875rem;
    color: var(--color-text-tertiary, #9ca3af);
    margin-top: 1rem !important;
}

/* Chat container for ChatbotPage */
.chatContainer {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: var(--color-surface, #ffffff);
    border: 1px solid var(--color-border, #e5e7eb);
    border-radius: 8px;
    overflow: hidden;
}

.messagesArea {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.emptyChat {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-secondary, #6b7280);
}

.message {
    max-width: 70%;
    padding: 0.75rem 1rem;
    border-radius: 12px;
}

.message.user {
    align-self: flex-end;
    background: var(--color-primary, #4f46e5);
    color: white;
    border-bottom-right-radius: 4px;
}

.message.assistant {
    align-self: flex-start;
    background: var(--color-surface-secondary, #f3f4f6);
    color: var(--color-text-primary, #1a1a2e);
    border-bottom-left-radius: 4px;
}

.message.system {
    align-self: center;
    background: var(--color-warning-bg, #fef3c7);
    color: var(--color-warning, #d97706);
    font-size: 0.875rem;
}

.messageContent {
    word-wrap: break-word;
}

.messageTime {
    font-size: 0.7rem;
    opacity: 0.7;
    margin-top: 0.25rem;
}

/* Typing indicator */
.typing {
    display: flex;
    gap: 4px;
    padding: 0.5rem 0;
}

.typing span {
    width: 8px;
    height: 8px;
    background: var(--color-text-secondary, #6b7280);
    border-radius: 50%;
    animation: typing 1s infinite;
}

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

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

@keyframes typing {
    0%, 100% {
        opacity: 0.3;
        transform: scale(0.8);
    }
    50% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Input area */
.inputArea {
    display: flex;
    gap: 0.5rem;
    padding: 1rem;
    border-top: 1px solid var(--color-border, #e5e7eb);
    background: var(--color-surface-secondary, #f9fafb);
}

.chatInput {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1px solid var(--color-border, #e5e7eb);
    border-radius: 24px;
    font-size: 0.875rem;
    background: var(--color-surface, #ffffff);
}

.chatInput:focus {
    outline: none;
    border-color: var(--color-primary, #4f46e5);
    box-shadow: 0 0 0 3px var(--color-primary-light, rgba(79, 70, 229, 0.1));
}

.sendButton {
    padding: 0.75rem 1.5rem;
    background: var(--color-primary, #4f46e5);
    color: white;
    border: none;
    border-radius: 24px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}

.sendButton:hover:not(:disabled) {
    background: var(--color-primary-dark, #4338ca);
}

.sendButton:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
