/* ===================================
   AI FAQ Chatbot - Styles
   =================================== */

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

.chat-container {
    max-width: 900px;
    margin: 0 auto;
    height: calc(100vh - 56px);
    display: flex;
    flex-direction: column;
    background: white;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

/* Header */
.chat-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.chat-header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.chat-header .icon {
    font-size: 1.2em;
}

.chat-header .subtitle {
    font-size: 1.1em;
    opacity: 0.95;
    font-weight: 300;
}

/* Messages Container */
.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 30px;
    background: #f8f9fa;
}

.chat-messages::-webkit-scrollbar {
    width: 8px;
}

.chat-messages::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Welcome Message */
.welcome-message {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.welcome-card {
    background: white;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    max-width: 600px;
}

.welcome-card h2 {
    color: #667eea;
    margin-bottom: 20px;
    font-size: 2em;
}

.welcome-card p {
    color: #555;
    line-height: 1.6;
    margin-bottom: 15px;
}

.welcome-card ul {
    list-style: none;
    padding-left: 0;
    margin: 20px 0;
}

.welcome-card ul li {
    padding: 10px 0;
    color: #666;
    position: relative;
    padding-left: 25px;
}

.welcome-card ul li:before {
    content: "✓";
    color: #667eea;
    font-weight: bold;
    position: absolute;
    left: 0;
}

.welcome-card .tip {
    background: #f0f4ff;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #667eea;
    margin-top: 20px;
}

/* Start Chat Form */
.start-chat-form {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.start-chat-form .form-intro {
    font-weight: 600;
    color: #333;
    margin-bottom: 16px;
}

.form-field {
    margin-bottom: 14px;
}

.form-field label {
    display: block;
    font-weight: 600;
    color: #555;
    margin-bottom: 6px;
    font-size: 0.9em;
}

.form-input {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 0.95em;
    font-family: inherit;
    transition: border-color 0.2s;
}

.form-input:focus {
    outline: none;
    border-color: #667eea;
}

.form-error {
    color: #c62828;
    font-size: 0.85em;
    margin-bottom: 10px;
}

.btn-start-chat {
    width: 100%;
    padding: 14px 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    margin-top: 8px;
}

.btn-start-chat:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(102, 126, 234, 0.4);
}

.btn-start-chat:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Suggested Follow-Up Questions */
.suggested-questions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #eee;
}

.suggestion-btn {
    background: #f0f4ff;
    color: #667eea;
    border: 1px solid #c8d6ff;
    border-radius: 18px;
    padding: 8px 16px;
    font-size: 0.85em;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    text-align: left;
    line-height: 1.4;
}

.suggestion-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: #667eea;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

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

/* Message Styles */
.message {
    margin-bottom: 20px;
    animation: fadeIn 0.3s ease-in;
}

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

.message-content {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.message.user .message-content {
    flex-direction: row-reverse;
}

.message-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5em;
    flex-shrink: 0;
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.message-bubble {
    max-width: 70%;
    padding: 15px 20px;
    border-radius: 18px;
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.user-bubble {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-bottom-right-radius: 4px;
}

.assistant-bubble {
    background: white;
    color: #333;
    border-bottom-left-radius: 4px;
}

.message-bubble p {
    margin: 0;
    line-height: 1.6;
    word-wrap: break-word;
}

.timestamp {
    font-size: 0.75em;
    opacity: 0.7;
    display: block;
    margin-top: 8px;
}

/* Loading Indicator */
.typing-indicator {
    display: flex;
    gap: 4px;
    padding: 10px 0;
}

.typing-indicator span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #667eea;
    animation: typing 1.4s infinite;
}

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

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

@keyframes typing {
    0%, 60%, 100% {
        transform: translateY(0);
        opacity: 0.4;
    }
    30% {
        transform: translateY(-10px);
        opacity: 1;
    }
}

/* Input Container */
.chat-input-container {
    padding: 20px 30px;
    background: white;
    border-top: 1px solid #e0e0e0;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
}

.input-wrapper {
    display: flex;
    gap: 12px;
    align-items: flex-end;
}

.chat-input {
    flex: 1;
    padding: 15px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 24px;
    font-size: 1em;
    font-family: inherit;
    resize: none;
    max-height: 120px;
    transition: border-color 0.3s;
}

.chat-input:focus {
    outline: none;
    border-color: #667eea;
}

.chat-input:disabled {
    background: #f5f5f5;
    cursor: not-allowed;
}

.send-button {
    padding: 15px 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 24px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.send-button:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.send-button:active:not(:disabled) {
    transform: translateY(0);
}

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

.spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

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

.input-hint {
    font-size: 0.85em;
    color: #999;
    margin-top: 8px;
    text-align: center;
}

/* ===================================
   Top Navigation
   =================================== */
.app-layout {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.top-nav {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 0 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 56px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-brand a {
    color: white;
    text-decoration: none;
    font-size: 1.3em;
    font-weight: 700;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.9em;
    font-weight: 500;
    transition: background 0.2s, color 0.2s;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.15);
    color: white;
}

button.nav-logout {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.nav-user {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.85em;
    padding: 0 8px;
}

.app-layout > main {
    flex: 1;
}

/* ===================================
   FAQ Management Page
   =================================== */
.faq-management {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px;
}

.faq-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.faq-header h1 {
    font-size: 1.8em;
    color: #333;
}

/* Buttons */
.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 0.9em;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
}

.btn:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
}

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

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-secondary {
    background: #e0e0e0;
    color: #333;
}

.btn-edit {
    background: #4CAF50;
    color: white;
    padding: 6px 14px;
    font-size: 0.85em;
}

.btn-delete {
    background: #f44336;
    color: white;
    padding: 6px 14px;
    font-size: 0.85em;
}

.header-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.btn-upload {
    background: #2196f3;
    color: white;
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9em;
}

.btn-upload:hover {
    background: #1976d2;
}

.btn-template {
    background: #4caf50;
    color: white;
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9em;
    text-decoration: none;
    display: inline-block;
}

.btn-template:hover {
    background: #388e3c;
    color: white;
}

.upload-hint {
    font-size: 0.9em;
    color: #666;
    margin-bottom: 12px;
}

.upload-hint a {
    color: #4f46e5;
    text-decoration: underline;
}

.file-selected {
    font-size: 0.9em;
    color: #333;
    margin: 8px 0;
}

.upload-result {
    padding: 12px 16px;
    border-radius: 8px;
    margin-top: 12px;
}

.upload-success {
    background: #e8f5e9;
    border: 1px solid #4caf50;
    color: #2e7d32;
}

.upload-error {
    background: #ffebee;
    border: 1px solid #f44336;
    color: #c62828;
}

.error-list {
    margin-top: 8px;
    padding-left: 20px;
    font-size: 0.85em;
}

.error-list li {
    margin-bottom: 4px;
}

/* Alerts */
.alert {
    padding: 12px 20px;
    border-radius: 8px;
    margin-bottom: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    animation: fadeIn 0.3s ease-in;
}

.alert-error {
    background: #ffebee;
    color: #c62828;
    border-left: 4px solid #f44336;
}

.alert-success {
    background: #e8f5e9;
    color: #2e7d32;
    border-left: 4px solid #4CAF50;
}

.alert-dismiss {
    background: none;
    border: none;
    font-size: 1em;
    cursor: pointer;
    color: inherit;
    opacity: 0.7;
}

.alert-dismiss:hover {
    opacity: 1;
}

/* Loading */
.loading-container {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #e0e0e0;
    border-top-color: #667eea;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 16px;
}

/* Grid */
.faq-grid-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.faq-grid {
    width: 100%;
    border-collapse: collapse;
}

.faq-grid thead {
    background: #f8f9fa;
}

.faq-grid th {
    padding: 14px 16px;
    text-align: left;
    font-weight: 600;
    color: #555;
    font-size: 0.9em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #e0e0e0;
}

.faq-grid td {
    padding: 14px 16px;
    border-bottom: 1px solid #f0f0f0;
    color: #333;
    font-size: 0.9em;
    vertical-align: top;
}

.faq-grid tbody tr:hover {
    background: #f8f9ff;
}

.col-id {
    width: 60px;
    text-align: center;
}

.col-question {
    width: 35%;
}

.col-answer {
    width: 40%;
}

.col-actions {
    width: 140px;
    text-align: center;
}

.col-actions .btn {
    margin: 2px;
}

.no-data {
    text-align: center;
    padding: 40px 16px;
    color: #999;
    font-style: italic;
}

/* Pagination */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 16px;
    border-top: 1px solid #f0f0f0;
    flex-wrap: wrap;
}

.page-btn {
    padding: 8px 14px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    background: white;
    color: #555;
    font-size: 0.85em;
    cursor: pointer;
    transition: all 0.2s;
}

.page-btn:hover:not(:disabled):not(.active) {
    background: #f0f4ff;
    border-color: #667eea;
    color: #667eea;
}

.page-btn.active {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

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

.page-info {
    font-size: 0.85em;
    color: #999;
    margin-left: 12px;
}

/* ===================================
   Modal Dialogs
   =================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-in;
}

.modal-content {
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.modal-sm {
    max-width: 450px;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #f0f0f0;
}

.modal-header h2 {
    font-size: 1.3em;
    color: #333;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.2em;
    cursor: pointer;
    color: #999;
    padding: 4px 8px;
    border-radius: 4px;
}

.modal-close:hover {
    background: #f0f0f0;
    color: #333;
}

.modal-body {
    padding: 24px;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 16px 24px;
    border-top: 1px solid #f0f0f0;
}

/* Form */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: #555;
    margin-bottom: 6px;
    font-size: 0.9em;
}

.form-group textarea,
.form-group input[type="text"] {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 0.95em;
    font-family: inherit;
    transition: border-color 0.2s;
    resize: vertical;
}

.form-group textarea:focus,
.form-group input[type="text"]:focus {
    outline: none;
    border-color: #667eea;
}

.delete-preview {
    background: #fff3f3;
    padding: 12px;
    border-radius: 8px;
    margin-top: 12px;
    color: #555;
    font-size: 0.9em;
}

/* Responsive Design */
@media (max-width: 768px) {
    .chat-container {
        max-width: 100%;
    }

    .chat-header h1 {
        font-size: 1.8em;
    }

    .chat-messages {
        padding: 20px 15px;
    }

    .message-bubble {
        max-width: 85%;
    }

    .welcome-card {
        padding: 30px 20px;
    }

    .suggested-questions {
        flex-direction: column;
    }

    .suggestion-btn {
        width: 100%;
    }

    .chat-input-container {
        padding: 15px;
    }

    .top-nav {
        padding: 0 16px;
        height: auto;
        flex-wrap: wrap;
        padding: 10px 16px;
    }

    .nav-links {
        gap: 4px;
        flex-wrap: wrap;
    }

    .faq-management {
        padding: 16px;
    }

    .faq-header {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }

    .faq-grid-container {
        overflow-x: auto;
    }

    .faq-grid {
        min-width: 600px;
    }

    .modal-content {
        width: 95%;
        margin: 10px;
    }

    .dashboard-row {
        flex-direction: column;
    }

    .dashboard-half {
        min-width: 0;
    }

    .stats-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ===================================
   Chat History Page
   =================================== */
.chat-history-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px;
}

.page-header {
    margin-bottom: 24px;
}

.page-header h1 {
    font-size: 1.8em;
    color: #333;
}

.search-panel {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
    margin-bottom: 24px;
}

.search-fields {
    display: flex;
    gap: 16px;
    align-items: flex-end;
    flex-wrap: wrap;
}

.search-fields .form-group {
    flex: 1;
    min-width: 200px;
    margin-bottom: 0;
}

.search-fields .form-group input[type="text"] {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 0.95em;
    font-family: inherit;
    transition: border-color 0.2s;
}

.search-fields .form-group input[type="text"]:focus {
    outline: none;
    border-color: #667eea;
}

.search-actions {
    padding-bottom: 0;
}

.btn-sm {
    padding: 6px 14px;
    font-size: 0.85em;
}

.chat-id-cell {
    font-family: monospace;
    font-size: 0.8em;
    color: #666;
}

/* Modal large */
.modal-lg {
    max-width: 800px;
}

/* Q&A List in popup */
.qa-list {
    max-height: 60vh;
    overflow-y: auto;
}

.qa-item {
    padding: 16px;
    border-bottom: 1px solid #f0f0f0;
}

.qa-item:last-child {
    border-bottom: none;
}

.qa-question {
    margin-bottom: 8px;
    color: #333;
    font-weight: 500;
}

.qa-answer {
    color: #555;
    line-height: 1.6;
}

.qa-label {
    display: inline-block;
    font-weight: 700;
    min-width: 24px;
    color: #667eea;
}

.qa-answer .qa-label {
    color: #4CAF50;
}

.qa-timestamp {
    font-size: 0.75em;
    color: #999;
    margin-top: 8px;
    text-align: right;
}

/* ===================================
   Dashboard Page
   =================================== */
.dashboard-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px;
}

.stats-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin-bottom: 32px;
}

.stat-card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
    transition: transform 0.15s;
}

.stat-card:hover {
    transform: translateY(-2px);
}

.stat-card-accent {
    border-top: 4px solid #764ba2;
}

.stat-value {
    font-size: 2.2em;
    font-weight: 700;
    color: #667eea;
    line-height: 1.2;
}

.stat-card-accent .stat-value {
    color: #764ba2;
}

.stat-label {
    font-size: 0.9em;
    color: #777;
    margin-top: 8px;
    font-weight: 500;
}

.dashboard-section {
    margin-bottom: 32px;
}

.dashboard-section h2 {
    font-size: 1.3em;
    color: #333;
    margin-bottom: 16px;
}

.chart-container {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
}

.dashboard-row {
    display: flex;
    gap: 24px;
    margin-bottom: 32px;
}

.dashboard-half {
    flex: 1;
    min-width: 0;
}

.badge {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.85em;
    font-weight: 600;
}

/* ===================================
   Tenant Selector (FAQ Management)
   =================================== */
.tenant-selector {
    display: flex;
    align-items: center;
    gap: 10px;
}

.tenant-selector label {
    font-weight: 600;
    color: #555;
    font-size: 0.9em;
    white-space: nowrap;
}

.tenant-selector select {
    padding: 8px 14px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 0.95em;
    font-family: inherit;
    transition: border-color 0.2s;
    background: white;
    min-width: 200px;
    cursor: pointer;
}

.tenant-selector select:focus {
    outline: none;
    border-color: #667eea;
}

.tenant-name-display {
    font-weight: 600;
    color: #667eea;
    font-size: 0.95em;
}

/* ===================================
   Bootstrap Override - preserve custom styles
   =================================== */
.top-nav .nav-link {
    color: rgba(255, 255, 255, 0.85);
    padding: 8px 16px;
}

.top-nav .nav-link:hover {
    color: white;
    background: rgba(255, 255, 255, 0.15);
}

.faq-management .btn,
.modal-footer .btn,
.header-actions .btn {
    display: inline-block;
}

/* Ensure custom form inputs keep their styling over Bootstrap */
.form-group textarea,
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="url"],
.form-group input[type="number"],
.form-group input[type="tel"] {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 0.95em;
    font-family: inherit;
    transition: border-color 0.2s;
    resize: vertical;
}

.form-group textarea:focus,
.form-group input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.input-error {
    border-color: #e74c3c !important;
}

.field-error {
    color: #e74c3c;
    font-size: 0.82em;
    margin-top: 4px;
    display: block;
}

.field-hint {
    color: #999;
    font-size: 0.8em;
    margin-top: 3px;
    display: block;
}

.alert-info {
    background: #e3f2fd;
    color: #1565c0;
    border-left: 4px solid #2196f3;
    padding: 12px 20px;
    border-radius: 8px;
    margin-bottom: 16px;
}
