/* ===== AI ASSISTANT STYLES ===== */

/* Floating AI Button */
.ai-floating-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 15px 25px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
    transition: all 0.3s ease;
    z-index: 9998;
    animation: aiPulse 2s ease-in-out infinite;
}

.ai-floating-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(102, 126, 234, 0.6);
}

.ai-floating-btn.active {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

.ai-btn-icon {
    font-size: 1.3rem;
}

@keyframes aiPulse {
    0%, 100% {
        box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
    }
    50% {
        box-shadow: 0 8px 35px rgba(102, 126, 234, 0.7);
    }
}

/* AI Chat Panel */
.ai-chat-panel {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 420px;
    max-width: calc(100vw - 40px);
    height: 650px;
    max-height: calc(100vh - 100px);
    background: rgba(17, 24, 39, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    z-index: 9999;
    transform: translateY(20px) scale(0.95);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
}

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

/* AI Chat Header */
.ai-chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px 20px 0 0;
    cursor: grab;
}

/* AI Model Selector */
.ai-model-selector {
    padding: 8px 15px;
    background: rgba(17, 24, 39, 0.6);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

.ai-model-selector label {
    display: flex;
    align-items: center;
    gap: 6px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.model-buttons {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.model-btn {
    flex: 1;
    min-width: 0;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 6px 10px;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: white;
    font-size: 0.8rem;
}

.model-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.model-btn.active {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-color: transparent;
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.model-icon {
    font-size: 1rem;
    line-height: 1;
    flex-shrink: 0;
}

.model-info {
    flex: 1;
    text-align: left;
    min-width: 0;
}

.model-name {
    font-weight: 600;
    font-size: 0.8rem;
    margin-bottom: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.model-desc {
    display: none;
}

.model-btn.active .model-desc {
    color: rgba(255, 255, 255, 0.9);
}

.ai-chat-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    font-weight: 700;
    color: white;
}

.ai-badge {
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

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

.ai-chat-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

/* AI Tabs */
.ai-chat-tabs {
    display: flex;
    background: rgba(17, 24, 39, 0.8);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.ai-tab {
    flex: 1;
    padding: 15px;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: relative;
}

.ai-tab:hover {
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.05);
}

.ai-tab.active {
    color: white;
    background: rgba(102, 126, 234, 0.2);
}

.ai-tab.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #667eea, #764ba2);
}

/* Tab Content */
.ai-tab-content {
    flex: 1;
    display: none;
    flex-direction: column;
    overflow: hidden;
    min-height: 0;
}

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

/* Chat Messages */
.ai-chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    min-height: 0;
}

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

.ai-chat-messages::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

.ai-chat-messages::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

.ai-message {
    display: flex;
    gap: 12px;
    animation: messageSlideIn 0.3s ease-out;
}

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

.ai-message-assistant {
    align-self: flex-start;
}

.ai-message-user {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.ai-message-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.ai-message-user .ai-message-avatar {
    background: linear-gradient(135deg, #f093fb, #f5576c);
}

.ai-message-content {
    background: rgba(255, 255, 255, 0.05);
    padding: 12px 16px;
    border-radius: 15px;
    max-width: 75%;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    font-size: 0.95rem;
}

.ai-message-user .ai-message-content {
    background: rgba(102, 126, 234, 0.2);
}

.ai-message-content p {
    margin: 0 0 10px;
}

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

.ai-message-content ul {
    margin: 10px 0;
    padding-left: 20px;
}

.ai-message-content li {
    margin: 5px 0;
}

.ai-message-content code {
    background: rgba(0, 0, 0, 0.3);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
}

/* Typing Indicator */
.ai-typing-dots {
    display: flex;
    gap: 4px;
    padding: 8px;
}

.ai-typing-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    animation: typingBounce 1.4s ease-in-out infinite;
}

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

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

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

/* Chat Input */
.ai-chat-input-container {
    display: flex;
    gap: 10px;
    padding: 15px 20px;
    background: rgba(17, 24, 39, 0.8);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.ai-chat-input {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    padding: 12px 20px;
    color: white;
    font-size: 0.95rem;
    outline: none;
    transition: all 0.3s;
}

.ai-chat-input:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
}

.ai-chat-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.ai-chat-send {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border: none;
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
}

.ai-chat-send:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

/* Analyze Tab */
.ai-analyze-container {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
}

.ai-analyze-header {
    text-align: center;
    margin-bottom: 25px;
}

.ai-analyze-header i {
    font-size: 3rem;
    color: #667eea;
    margin-bottom: 10px;
}

.ai-analyze-header h3 {
    font-size: 1.3rem;
    color: white;
    margin: 10px 0;
}

.ai-analyze-header p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

.ai-analyze-upload {
    text-align: center;
    padding: 40px 20px;
    border: 2px dashed rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    margin-bottom: 20px;
}

.ai-analyze-btn {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.ai-analyze-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

.ai-analyze-hint {
    margin-top: 15px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
}

/* Analysis Results */
.ai-analysis-result {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 20px;
    margin-top: 20px;
}

.ai-result-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.ai-result-header i {
    font-size: 1.5rem;
    color: #667eea;
}

.ai-result-header h4 {
    color: white;
    font-size: 1.1rem;
    margin: 0;
}

.ai-result-content {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.7;
    font-size: 0.95rem;
}

.ai-result-content h4 {
    color: #667eea;
    margin: 15px 0 10px;
}

.ai-result-content ul {
    padding-left: 20px;
}

.ai-result-content li {
    margin: 8px 0;
}

.ai-result-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.ai-result-btn {
    flex: 1;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: none;
    padding: 12px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.ai-result-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

/* AI Tools Grid */
.ai-tools-container {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
}

.ai-tools-container h3 {
    color: white;
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.ai-tools-container > p {
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 20px;
}

.ai-tools-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.ai-tool-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}

.ai-tool-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: #667eea;
    transform: translateY(-3px);
}

.ai-tool-card i {
    font-size: 2rem;
    color: #667eea;
    margin-bottom: 10px;
}

.ai-tool-card h4 {
    color: white;
    font-size: 0.95rem;
    margin: 10px 0 5px;
}

.ai-tool-card p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
    margin: 0;
}

/* Chat Footer */
.ai-chat-footer {
    padding: 12px 20px;
    background: rgba(17, 24, 39, 0.8);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.ai-chat-footer small {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.75rem;
}

/* AI Notifications */
.ai-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(17, 24, 39, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: white;
    font-size: 0.95rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    z-index: 10000;
    transform: translateX(400px);
    opacity: 0;
    transition: all 0.3s ease;
}

.ai-notification.show {
    transform: translateX(0);
    opacity: 1;
}

.ai-notification-error {
    border-left: 4px solid #f5576c;
}

.ai-notification-success {
    border-left: 4px solid #4ade80;
}

.ai-notification-info {
    border-left: 4px solid #667eea;
}

.ai-notification i {
    font-size: 1.3rem;
}

/* AI Loading Overlay */
.ai-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
}

.ai-loading-content {
    text-align: center;
    color: white;
}

.ai-loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-top-color: #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

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

.ai-loading-content p {
    font-size: 1.1rem;
    margin: 0;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .ai-floating-btn {
        bottom: 20px;
        right: 20px;
        padding: 12px 20px;
        font-size: 0.9rem;
    }
    
    .ai-btn-text {
        display: none;
    }
    
    .ai-chat-panel {
        bottom: 0;
        right: 0;
        left: 0;
        width: 100%;
        max-width: 100%;
        height: 100vh;
        max-height: 100vh;
        border-radius: 0;
    }
    
    .ai-chat-header {
        border-radius: 0;
        cursor: default;
    }
    
    .ai-tools-grid {
        grid-template-columns: 1fr;
    }
    
    .ai-notification {
        left: 20px;
        right: 20px;
        top: auto;
        bottom: 90px;
    }
}

@media (max-width: 480px) {
    .ai-tab {
        font-size: 0.8rem;
        padding: 12px 8px;
    }
    
    .ai-message-content {
        max-width: 85%;
        font-size: 0.9rem;
    }
    
    .ai-tool-card {
        padding: 15px;
    }
    
    .ai-tool-card i {
        font-size: 1.5rem;
    }
    
    /* Model selector on mobile */
    .ai-model-selector {
        padding: 6px 12px;
    }
    
    .ai-model-selector label {
        font-size: 0.7rem;
        margin-bottom: 5px;
    }
    
    .model-buttons {
        flex-direction: row;
        gap: 4px;
    }
    
    .model-btn {
        min-width: 0;
        flex: 1;
        padding: 5px 8px;
        font-size: 0.75rem;
    }
    
    .model-icon {
        font-size: 0.9rem;
    }
    
    .model-name {
        font-size: 0.75rem;
    }
    
    .model-desc {
        display: none;
    }
}

/* ===== AI MODAL STYLES ===== */

.ai-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100000;
    backdrop-filter: blur(5px);
    animation: fadeIn 0.2s ease;
}

.ai-modal {
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
    border-radius: 20px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

.ai-modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
}

.ai-modal-header h3 {
    margin: 0;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.ai-modal-close {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: white;
    transition: all 0.3s ease;
}

.ai-modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.ai-modal-body {
    padding: 30px;
    color: rgba(255, 255, 255, 0.9);
    overflow-y: auto;
    max-height: calc(80vh - 80px);
}

.ai-modal-body p {
    margin-bottom: 20px;
    font-size: 1rem;
}

.ai-option-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ai-option-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
}

.ai-option-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 15px 20px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 10px;
}

.ai-option-btn i {
    font-size: 1.25rem;
    color: #667eea;
}

.ai-option-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #667eea;
    transform: translateY(-2px);
}

.ai-qa-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 15px;
    color: white;
    font-size: 1rem;
    font-family: inherit;
    resize: vertical;
    transition: all 0.3s ease;
}

.ai-qa-input:focus {
    outline: none;
    border-color: #667eea;
    background: rgba(255, 255, 255, 0.08);
}

.ai-qa-input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.ai-modal-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.ai-action-btn {
    padding: 12px 24px;
    border-radius: 12px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ai-action-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

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

.ai-btn-primary:hover {
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.ai-close-btn {
    background: rgba(255, 0, 0, 0.1);
    border: 2px solid rgba(255, 0, 0, 0.3);
    border-radius: 8px;
    padding: 8px 12px;
    color: #ff6b6b;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.ai-close-btn:hover {
    background: rgba(255, 0, 0, 0.2);
    border-color: #ff6b6b;
}

/* AI Loading Overlay */
.ai-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-center: center;
    z-index: 100001;
    backdrop-filter: blur(10px);
}

.ai-loading-content {
    text-align: center;
    color: white;
}

.ai-loading-spinner {
    width: 60px;
    height: 60px;
    border: 5px solid rgba(255, 255, 255, 0.1);
    border-top-color: #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

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

.ai-loading-content p {
    font-size: 1.1rem;
    margin: 0;
}

/* AI Tool Suggestions */
.ai-tool-suggestions {
    margin-top: 15px;
    padding: 15px;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 12px;
    border: 1px solid rgba(102, 126, 234, 0.2);
}

.ai-tool-suggestions strong {
    display: block;
    color: white;
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.ai-tool-buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ai-tool-btn {
    background: rgba(255, 255, 255, 0.1) !important;
    border: 2px solid rgba(102, 126, 234, 0.3) !important;
    border-radius: 10px !important;
    padding: 12px 16px !important;
    color: white !important;
    cursor: pointer !important;
    pointer-events: auto !important;
    transition: all 0.3s ease !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    font-size: 0.95rem !important;
    font-weight: 600 !important;
    width: 100% !important;
    text-align: left !important;
}

.ai-tool-btn:hover {
    background: rgba(102, 126, 234, 0.3) !important;
    border-color: #667eea !important;
    transform: translateX(5px) !important;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3) !important;
}

.ai-tool-btn:active {
    transform: translateX(3px) !important;
}

.ai-tool-btn i {
    color: #667eea;
    font-size: 1rem;
}

/* AI Tool Guide */
.ai-tool-guide {
    margin-top: 15px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.ai-guide-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.ai-guide-header h4 {
    color: white;
    margin: 0;
    font-size: 1.1rem;
}

.ai-guide-open-btn {
    background: linear-gradient(135deg, #667eea, #764ba2) !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 8px 16px !important;
    color: white !important;
    cursor: pointer !important;
    pointer-events: auto !important;
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    transition: all 0.3s ease !important;
}

.ai-guide-open-btn:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4) !important;
}

.ai-guide-steps {
    color: rgba(255, 255, 255, 0.9);
}

.ai-guide-steps ol {
    margin: 10px 0;
    padding-left: 25px;
}

.ai-guide-steps li {
    margin: 8px 0;
    line-height: 1.6;
}

.ai-guide-tips {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.ai-guide-tips strong {
    color: #667eea;
    display: block;
    margin-bottom: 8px;
}

.ai-guide-tips ul {
    margin: 0;
    padding-left: 20px;
    color: rgba(255, 255, 255, 0.8);
}

.ai-guide-tips li {
    margin: 5px 0;
    font-size: 0.9rem;
}

/* Mobile Responsive for Modals */
@media (max-width: 480px) {
    .ai-modal {
        width: 95%;
        max-height: 90vh;
    }
    
    .ai-modal-body {
        padding: 20px;
    }
    
    .ai-option-grid {
        grid-template-columns: 1fr;
    }
    
    .ai-modal-actions {
        flex-direction: column;
    }
    
    .ai-action-btn {
        width: 100%;
        justify-content: center;
    }
    
    .ai-tool-btn {
        padding: 10px 14px !important;
        font-size: 0.9rem !important;
    }
}

