/**
 * EagleRise - Additional Styles for Interactive Features
 */

/* Toast Notifications */
.toast {
    position: fixed;
    top: 90px;
    right: 30px;
    background: white;
    padding: 16px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 10000;
    opacity: 0;
    transform: translateX(400px);
    transition: all 0.3s ease;
    max-width: 350px;
}

.toast.show {
    opacity: 1;
    transform: translateX(0);
}

.toast-success {
    border-left: 4px solid #10b981;
}

.toast-success i {
    color: #10b981;
}

.toast-error {
    border-left: 4px solid #ef4444;
}

.toast-error i {
    color: #ef4444;
}

.toast-info {
    border-left: 4px solid #1e90ff;
}

.toast-info i {
    color: #1e90ff;
}

.toast-warning {
    border-left: 4px solid #f59e0b;
}

.toast-warning i {
    color: #f59e0b;
}

/* Notifications Panel */
.notifications-panel {
    position: fixed;
    top: 90px;
    right: 30px;
    width: 400px;
    max-height: 600px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    z-index: 9999;
    opacity: 0;
    transform: translateY(-20px) scale(0.95);
    transition: all 0.3s ease;
    pointer-events: none;
}

.notifications-panel.show {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: all;
}

.dark-mode .notifications-panel {
    background: var(--color-navy-blue);
}

.notifications-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--color-border);
}

.dark-mode .notifications-header {
    border-bottom-color: rgba(255,255,255,0.1);
}

.notifications-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.btn-text {
    background: none;
    border: none;
    color: var(--color-cyber-blue);
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
}

.btn-text:hover {
    text-decoration: underline;
}

.notifications-list {
    max-height: 500px;
    overflow-y: auto;
}

.notification-item {
    display: flex;
    gap: 12px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--color-border);
    cursor: pointer;
    transition: background 0.2s;
}

.dark-mode .notification-item {
    border-bottom-color: rgba(255,255,255,0.1);
}

.notification-item:hover {
    background: rgba(30, 144, 255, 0.05);
}

.notification-item.unread {
    background: rgba(30, 144, 255, 0.05);
}

.notification-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.notification-icon.welcome {
    background: rgba(30, 144, 255, 0.1);
    color: var(--color-cyber-blue);
}

.notification-icon.approval {
    background: rgba(16, 185, 129, 0.1);
    color: var(--color-success);
}

.notification-icon.rejection {
    background: rgba(239, 68, 68, 0.1);
    color: var(--color-error);
}

.notification-content {
    flex: 1;
}

.notification-title {
    font-weight: 600;
    margin-bottom: 4px;
}

.notification-body {
    font-size: 14px;
    color: var(--color-text-light);
    margin-bottom: 4px;
}

.notification-time {
    font-size: 12px;
    color: var(--color-text-light);
}

.no-notifications {
    padding: 40px;
    text-align: center;
    color: var(--color-text-light);
}

/* AI Chat Panel */
.ai-chat-panel {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 400px;
    height: 600px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    z-index: 9998;
    display: flex;
    flex-direction: column;
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    transition: all 0.3s ease;
    pointer-events: none;
}

.ai-chat-panel.show {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: all;
}

.dark-mode .ai-chat-panel {
    background: var(--color-navy-blue);
}

.chat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--color-border);
    background: linear-gradient(135deg, var(--color-dark-blue), var(--color-cyber-blue));
    color: white;
    border-radius: 16px 16px 0 0;
}

.chat-header i {
    margin-right: 10px;
}

.btn-icon {
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.btn-icon:hover {
    background: rgba(255,255,255,0.3);
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.chat-message {
    display: flex;
    gap: 10px;
}

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

.message-bubble {
    max-width: 75%;
    padding: 12px 16px;
    border-radius: 12px;
    background: var(--color-light-bg);
}

.dark-mode .message-bubble {
    background: rgba(255,255,255,0.1);
}

.chat-message.user .message-bubble {
    background: var(--color-cyber-blue);
    color: white;
}

.chat-message.assistant .message-bubble {
    background: var(--color-light-bg);
}

.message-bubble p {
    margin: 0 0 8px 0;
}

.message-bubble p:last-child {
    margin-bottom: 0;
}

.message-time {
    font-size: 11px;
    color: rgba(0,0,0,0.5);
    display: block;
    margin-top: 4px;
}

.chat-message.user .message-time {
    color: rgba(255,255,255,0.7);
}

.quick-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 12px;
}

.quick-actions button {
    background: white;
    border: 1px solid var(--color-border);
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
    text-align: left;
}

.quick-actions button:hover {
    background: var(--color-cyber-blue);
    color: white;
    border-color: var(--color-cyber-blue);
}

.typing {
    padding: 12px 20px !important;
    display: flex;
    gap: 4px;
}

.typing span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-text-light);
    animation: typing 1.4s infinite;
}

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

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

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

.chat-input {
    display: flex;
    gap: 12px;
    padding: 16px 20px;
    border-top: 1px solid var(--color-border);
}

.dark-mode .chat-input {
    border-top-color: rgba(255,255,255,0.1);
}

.chat-input input {
    flex: 1;
    padding: 10px 16px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
}

.dark-mode .chat-input input {
    background: rgba(255,255,255,0.05);
    border-color: rgba(255,255,255,0.1);
    color: white;
}

.chat-input button {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* User Menu */
.user-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 280px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    pointer-events: none;
}

.user-menu.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

.dark-mode .user-menu {
    background: var(--color-navy-blue);
}

.user-menu-header {
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-avatar-large {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--color-cyber-blue);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 18px;
}

.user-info {
    flex: 1;
}

.user-name {
    font-weight: 600;
    margin-bottom: 2px;
}

.user-email {
    font-size: 13px;
    color: var(--color-text-light);
}

.menu-divider {
    height: 1px;
    background: var(--color-border);
    margin: 0 12px;
}

.dark-mode .menu-divider {
    background: rgba(255,255,255,0.1);
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: var(--color-text-dark);
    text-decoration: none;
    transition: background 0.2s;
}

.dark-mode .menu-item {
    color: white;
}

.menu-item:hover {
    background: rgba(30, 144, 255, 0.05);
}

.menu-item i {
    width: 20px;
    text-align: center;
    color: var(--color-text-light);
}

/* Search Bar */
.search-container {
    position: relative;
    flex: 1;
    max-width: 400px;
}

.search-container input {
    width: 100%;
    padding: 10px 40px 10px 16px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    font-family: inherit;
}

.dark-mode .search-container input {
    background: rgba(255,255,255,0.05);
    border-color: rgba(255,255,255,0.1);
    color: white;
}

.search-container button {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--color-text-light);
    cursor: pointer;
    padding: 8px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .notifications-panel,
    .ai-chat-panel {
        width: calc(100vw - 40px);
        right: 20px;
    }

    .ai-chat-panel {
        height: calc(100vh - 120px);
        bottom: 20px;
    }

    .user-menu {
        right: -20px;
    }
}

/* Additional utility classes */
.dropdown {
    position: relative;
}

.relative {
    position: relative;
}
