/* HermesOrchestrator — Custom Styles */

:root {
    --hermes-primary: #6c5ce7;
    --hermes-secondary: #a29bfe;
    --hermes-dark: #2d3436;
    --hermes-success: #00b894;
    --hermes-danger: #d63031;
    --hermes-warning: #fdcb6e;
}

/* Layout */
.app-layout {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.app-layout main {
    flex: 1;
}

.navbar-brand i {
    color: var(--hermes-secondary);
    margin-right: 0.5rem;
}

/* Status Indicator */
.status-indicator {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-radius: 0.5rem;
    background: #f8f9fa;
}

.status-indicator.active {
    border-left: 4px solid var(--hermes-success);
}

.status-indicator.inactive {
    border-left: 4px solid var(--hermes-danger);
}

.status-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
}

.dot-active {
    background: var(--hermes-success);
    box-shadow: 0 0 8px var(--hermes-success);
    animation: pulse 2s infinite;
}

.dot-inactive {
    background: #b2bec3;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.status-info {
    flex: 1;
}

.status-label {
    font-weight: 600;
}

.status-actions {
    display: flex;
    gap: 0.5rem;
}

/* Insight Card */
.insight-card .card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, var(--hermes-primary), var(--hermes-secondary));
    color: white;
}

.insight-list {
    max-height: 500px;
    overflow-y: auto;
}

.insight-item {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    transition: background 0.2s;
}

.insight-item:hover {
    background: #f8f9fa;
}

.insight-item.unread {
    background: #f0edff;
}

.insight-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--hermes-primary);
}

.insight-summary {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Chat Panel */
.chat-panel {
    display: flex;
    flex-direction: column;
    height: 500px;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    background: #f8f9fa;
}

.chat-message {
    margin-bottom: 1rem;
    display: flex;
}

.chat-message.user {
    justify-content: flex-end;
}

.chat-message.agent {
    justify-content: flex-start;
}

.message-bubble {
    max-width: 75%;
    padding: 0.75rem 1rem;
    border-radius: 1rem;
    position: relative;
}

.chat-message.user .message-bubble {
    background: var(--hermes-primary);
    color: white;
    border-bottom-right-radius: 0.25rem;
}

.chat-message.agent .message-bubble {
    background: white;
    border: 1px solid #dee2e6;
    border-bottom-left-radius: 0.25rem;
}

.message-bubble.thinking {
    background: white;
    border: 1px solid #dee2e6;
    display: flex;
    align-items: center;
    padding: 0.5rem 1rem;
}

.message-sender {
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    opacity: 0.7;
}

.message-text {
    font-size: 0.9rem;
    line-height: 1.5;
    white-space: pre-wrap;
}

.message-time {
    display: block;
    text-align: right;
    margin-top: 0.25rem;
    opacity: 0.6;
}

.chat-input {
    padding: 1rem;
    background: white;
    border-top: 1px solid #dee2e6;
}

/* Settings Panel */
.settings-panel {
    padding: 1rem;
}

/* Dashboard */
.dashboard-page h2 i,
.settings-page h2 i,
.chat-page h2 i {
    color: var(--hermes-primary);
    margin-right: 0.5rem;
}

/* Footer */
.footer {
    border-top: 1px solid #dee2e6;
}

/* Responsive */
@media (max-width: 768px) {
    .status-indicator {
        flex-direction: column;
        align-items: flex-start;
    }

    .status-actions {
        width: 100%;
    }

    .status-actions .btn {
        flex: 1;
    }

        .chat-panel {
        height: 400px;
    }
}

/* ============================================================
   Auth / Profile Creation Page — Modern Design
   ============================================================ */

.auth-page {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    overflow: hidden;
    padding: 2rem;
}

.auth-bg-decoration .circle {
    position: absolute;
    border-radius: 50%;
    opacity: 0.08;
    background: #fff;
}

.circle-1 {
    width: 600px;
    height: 600px;
    top: -200px;
    left: -200px;
}

.circle-2 {
    width: 400px;
    height: 400px;
    bottom: -100px;
    right: -100px;
}

.circle-3 {
    width: 200px;
    height: 200px;
    top: 50%;
    left: 60%;
}

.auth-container {
    width: 100%;
    max-width: 520px;
    position: relative;
    z-index: 1;
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-card {
    border: none;
    border-radius: 24px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    box-shadow: 0 25px 80px rgba(0,0,0,0.3);
}

.auth-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
    padding: 2.5rem 2rem 1.5rem;
    border: none;
}

.logo-icon {
    font-size: 3rem;
    line-height: 1;
}

.logo-icon i {
    background: rgba(255,255,255,0.2);
    padding: 0.75rem;
    border-radius: 50%;
    width: 70px;
    height: 70px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.auth-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.auth-subtitle {
    opacity: 0.85;
    font-size: 0.95rem;
    margin-bottom: 0;
}

.auth-footer {
    background: transparent;
    border-top: 1px solid rgba(0,0,0,0.05);
    text-align: center;
    padding: 1rem;
}

/* Google Button */
.btn-google {
    background: #fff;
    border: 2px solid #dadce0;
    color: #3c4043;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.btn-google:hover {
    background: #f8f9fa;
    border-color: #4285f4;
    color: #202124;
    box-shadow: 0 4px 12px rgba(66,133,244,0.2);
    transform: translateY(-1px);
}

.btn-google i {
    color: #4285f4;
}

/* Facebook Button */
.btn-facebook {
    background: #1877f2;
    border: 2px solid #1877f2;
    color: #fff;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.btn-facebook:hover {
    background: #166fe5;
    border-color: #166fe5;
    color: #fff;
    box-shadow: 0 4px 12px rgba(24,119,242,0.28);
    transform: translateY(-1px);
}

.btn-facebook i {
    color: #fff;
}

/* Divider */
.divider-with-text {
    display: flex;
    align-items: center;
    color: #5f6368;
    font-size: 0.85rem;
    gap: 0.75rem;
}

.divider-with-text::before,
.divider-with-text::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #e0e0e0;
}

/* Input Styling */
.form-control {
    border-radius: 10px;
    border: 2px solid #e0e0e0;
    padding: 0.65rem 1rem;
    font-size: 0.95rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102,126,234,0.15);
}

.form-label {
    font-size: 0.85rem;
    margin-bottom: 0.35rem;
    color: #3c4043;
}

/* Google Avatar */
.google-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #e0e0e0;
    flex-shrink: 0;
}

/* Google Confirm Section */
.google-confirm {
    animation: fadeInUp 0.4s ease-out;
}

/* Alert styling */
.alert {
    border-radius: 12px;
}

.alert-info {
    background: #f0f4ff;
    color: #5a6c9e;
}

/* Button Primary */
.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 12px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    transition: all 0.2s ease;
    box-shadow: 0 4px 15px rgba(102,126,234,0.35);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(102,126,234,0.45);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-outline-secondary {
    border-radius: 12px;
    border: 2px solid #e0e0e0;
    color: #5f6368;
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn-outline-secondary:hover {
    background: #f8f9fa;
    border-color: #dadce0;
    color: #3c4043;
}

/* Success animation */
.success-animation {
    animation: scaleIn 0.5s ease-out;
}

@keyframes scaleIn {
    from {
        transform: scale(0);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Country badge chips on Landing Page */
.country-badge {
    cursor: pointer;
    user-select: none;
    font-size: 0.85rem;
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    transition: all 0.2s ease;
}

.country-badge:hover {
    transform: scale(1.05);
}

/* Form check spacing on Landing Page */
.form-check-label i {
    margin-right: 0.25rem;
}

/* Smooth transitions for saved state */
.alert-success {
    animation: slideDown 0.4s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 576px) {
    .auth-page {
        padding: 1rem;
    }
    .auth-card {
        border-radius: 16px;
    }
    .auth-header {
        padding: 2rem 1.5rem 1rem;
    }
    .auth-title {
        font-size: 1.5rem;
    }
    .logo-icon {
        font-size: 2.5rem;
    }
}