/* Base styles and variables */
:root {
    --primary-color: #4a6fa5;
    --secondary-color: #6c757d;
    --accent-color: #28a745;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --border-color: #dee2e6;
    --bot-message-bg: #e9f0f8;
    --user-message-bg: #f0f7ed;
    --shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    --border-radius: 12px;
    --font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

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

body {
    font-family: var(--font-family);
    background-color: #f5f7fa;
    color: var(--dark-color);
    line-height: 1.6;
}

/* App container */
.app-container {
    max-width: 1200px;
    margin: 0 auto;
    height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: white;
    box-shadow: var(--shadow);
}

/* Common button styles */
.btn {
    padding: 8px 16px;
    background-color: #4a6da7;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    margin-right: 10px;
}

.btn:hover {
    background-color: #3a5a8f;
}

/* Disabled button style */
.btn.disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-danger {
    color: #dc3545;
    background-color: transparent;
    border: none;
}

.btn-danger:hover {
    color: #bd2130;
    background-color: rgba(220, 53, 69, 0.1);
}

.btn-success {
    background-color: #28a745;
}

.btn-success:hover {
    background-color: #218838;
}

/* Title link */
.title-link {
    color: white;
    text-decoration: none;
    transition: opacity 0.2s;
}

.title-link:hover {
    opacity: 0.9;
}

/* Tab content */
.tab-content {
    display: none;
}

.tab-content.active {
    display: flex;
}

/* Client info in header */
.client-info {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    margin-left: 5px;
    display: none; /* Hide client info in header */
}

/* Client name subtitle for page sections */
.client-name-subtitle {
    font-size: 0.9em;
    color: #666;
    font-weight: normal;
    margin-left: 10px;
    display: inline-block;
}

/* Client name inline with title */
.client-name-inline {
    font-size: 1.2em;
    color: #666;
    font-weight: normal;
    margin-left: 10px;
    display: inline-block;
    vertical-align: baseline;
}

/* Add space between dash and client name */
.client-info span {
    margin-left: 0.5rem;
}

/* Welcome client name in index.html */
#welcome-client-name {
    font-size: 1.5em;
    color: #4a6da7;
    font-weight: 500;
    margin-bottom: 10px;
}

/* Migration notification */
.notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 12px 16px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    max-width: 300px;
    animation: slide-in 0.3s ease-out;
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

.notification-content i {
    font-size: 1.2rem;
}

.notification-content .fa-sync {
    color: var(--primary-color);
}

.notification-content .fa-check {
    color: #28a745;
}

.notification-content .fa-exclamation-triangle {
    color: #dc3545;
}

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