/* Notification System */
.vigthoria-notifications {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    pointer-events: none;
}

.vigthoria-notification {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border: 1px solid #00d4aa;
    border-radius: 8px;
    padding: 16px 20px;
    margin-bottom: 12px;
    min-width: 320px;
    max-width: 400px;
    box-shadow: 0 8px 32px rgba(0, 212, 170, 0.2);
    transform: translateX(100%);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: auto;
    position: relative;
    overflow: hidden;
}

.vigthoria-notification.show {
    transform: translateX(0);
    opacity: 1;
}

.vigthoria-notification::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #00d4aa, #64ffda);
}

.vigthoria-notification.success::before {
    background: linear-gradient(90deg, #00d4aa, #4caf50);
}

.vigthoria-notification.warning::before {
    background: linear-gradient(90deg, #ffa726, #ff9800);
}

.vigthoria-notification.error::before {
    background: linear-gradient(90deg, #f44336, #d32f2f);
}

.notification-header {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.notification-icon {
    font-size: 18px;
    margin-right: 10px;
    color: #00d4aa;
}

.notification-title {
    font-weight: 600;
    color: #ffffff;
    font-size: 14px;
}

.notification-close {
    margin-left: auto;
    background: none;
    border: none;
    color: #888;
    cursor: pointer;
    font-size: 16px;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notification-close:hover {
    color: #fff;
}

.notification-message {
    color: #e0e0e0;
    font-size: 13px;
    line-height: 1.4;
}

.notification-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    background: rgba(0, 212, 170, 0.3);
    transition: width linear;
}

/* AI Assistant Panel */
.ai-assistant {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 350px;
    max-height: 60vh;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border: 1px solid #00d4aa;
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0, 212, 170, 0.3);
    transform: translateY(calc(100% + 90px));
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 9999;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 400px;
}

.ai-assistant.active {
    transform: translateY(0);
}

.ai-assistant-header {
    padding: 15px 20px;
    border-bottom: 1px solid #333;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(90deg, #00d4aa, #64ffda);
    color: #1a1a2e;
    flex-shrink: 0;
}

.assistant-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.assistant-avatar {
    width: 36px; /* Increased from 32px */
    height: 36px; /* Increased from 32px */
    border-radius: 50%;
    background: rgba(26, 26, 46, 0.15); /* Slightly more visible */
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1a1a2e;
    font-size: 18px; /* Increased from 16px */
    font-weight: 600; /* Added weight for better visibility */
    box-shadow: 0 2px 8px rgba(0, 212, 170, 0.3); /* Added glow effect */
}

.assistant-details {
    display: flex;
    flex-direction: column;
}

.assistant-name {
    font-weight: 700; /* Increased from 600 */
    font-size: 16px; /* Increased from 14px */
    color: #1a1a2e;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.1); /* Added text shadow for visibility */
    letter-spacing: 0.5px; /* Added letter spacing for prominence */
}

.assistant-status {
    font-size: 13px; /* Increased from 12px */
    color: rgba(26, 26, 46, 0.8); /* More visible - increased opacity */
    font-weight: 500; /* Added weight for better visibility */
}

.ai-assistant-title {
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
}

.ai-assistant-title i {
    margin-right: 8px;
}

.ai-assistant-toggle {
    background: none;
    border: none;
    color: #1a1a2e;
    cursor: pointer;
    font-size: 16px;
}

.ai-assistant-content {
    padding: 15px 20px;
    max-height: calc(60vh - 140px);
    overflow-y: auto;
    background: #1a1a2e;
    position: relative;
}

.ai-assistant-content::-webkit-scrollbar {
    width: 6px;
}

.ai-assistant-content::-webkit-scrollbar-track {
    background: #333;
}

.ai-assistant-content::-webkit-scrollbar-thumb {
    background: #00d4aa;
    border-radius: 3px;
}

.ai-suggestion {
    background: rgba(0, 212, 170, 0.1);
    border: 1px solid rgba(0, 212, 170, 0.3);
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 12px;
    font-size: 13px;
    line-height: 1.4;
}

.ai-suggestion-header {
    font-weight: 600;
    color: #00d4aa;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
}

.ai-suggestion-header i {
    margin-right: 6px;
}

.ai-suggestion-text {
    color: #e0e0e0;
}

.ai-suggestion.user-message {
    background: rgba(0, 212, 170, 0.15);
    border-color: rgba(0, 212, 170, 0.4);
}

.ai-suggestion.user-message .ai-suggestion-header {
    color: #64ffda;
}

.ai-suggestion.user-message .ai-suggestion-text {
    color: #f0f0f0;
}

.ai-chat {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ai-input-container {
    display: flex;
    gap: 8px;
    padding: 15px 20px;
    background: #1a1a2e;
    border-top: 1px solid #333;
    border-radius: 0 0 12px 12px;
}

.ai-assistant-footer {
    border-top: 1px solid #333;
    background: #1a1a2e;
    padding: 0;
    border-radius: 0 0 12px 12px;
    flex-shrink: 0;
}

.ai-input {
    flex: 1;
    background: #1e1e2e;
    border: 1px solid #333;
    border-radius: 6px;
    padding: 8px 12px;
    color: #fff;
    font-size: 13px;
    line-height: 1.4;
}

.ai-send-btn {
    background: #00d4aa;
    border: none;
    border-radius: 6px;
    color: #1a1a2e;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* AI Assistant Toggle Button */
.ai-assistant-fab {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #00d4aa 0%, #64ffda 100%);
    border: none;
    border-radius: 50%;
    color: #1a1a2e;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 8px 32px rgba(0, 212, 170, 0.4);
    transition: all 0.3s ease;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ai-assistant-fab:hover {
    transform: scale(1.1);
}

/* AI Assistant Layout - Ensure proper scrolling */
.ai-assistant-body {
    flex: 1;
    min-height: 200px;
    max-height: calc(60vh - 140px); /* Subtract header + footer height */
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.ai-chat-container {
    flex: 1;
    overflow-y: auto;
    padding: 15px 20px;
    background: #1a1a2e;
}

.ai-chat-container::-webkit-scrollbar {
    width: 6px;
}

.ai-chat-container::-webkit-scrollbar-track {
    background: #333;
}

.ai-chat-container::-webkit-scrollbar-thumb {
    background: #00d4aa;
    border-radius: 3px;
}

.ai-chat-container::-webkit-scrollbar-thumb:hover {
    background: #00b893;
}

#aiChat {
    min-height: 100%;
    display: flex;
    flex-direction: column;
}

.chat-messages-area {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Ensure input field is always visible */

.ai-input:focus {
    outline: none;
    border-color: #00d4aa;
    box-shadow: 0 0 0 2px rgba(0, 212, 170, 0.2);
}

.ai-send-btn:hover {
    background: #00b893;
    transform: translateY(-1px);
}

.ai-assistant-fab.hidden {
    opacity: 0;
    pointer-events: none;
    transform: scale(0.8);
}