/* Bot Management Enhanced Styles */

/* Your Bots Card Container */
.geex-bot-list {
    max-height: 500px;
    overflow-y: auto;
    padding-right: 10px;
}

.geex-bot-list::-webkit-scrollbar {
    width: 6px;
}

.geex-bot-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.geex-bot-list::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.geex-bot-list::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Individual Bot Card */
.geex-bot-list__item {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.geex-bot-list__item:hover {
    border-color: #d0d0d0;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.geex-bot-list__item:last-child {
    margin-bottom: 0;
}

/* Bot Card Header */
.geex-bot-list__item__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f0f0;
}

.geex-bot-list__item__title {
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
    line-height: 1.4;
    flex: 1;
    padding-right: 10px;
}

/* Enhanced Edit Button */
.geex-bot-list__item__actions {
    display: flex;
    gap: 8px;
}

.geex-bot-list__item__actions .geex-btn {
    padding: 6px 10px;
    font-size: 12px;
    border-radius: 6px;
    min-width: auto;
    height: auto;
    line-height: 1;
    border: 1px solid transparent;
    transition: all 0.25s ease;
}

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

.geex-bot-list__item__actions .geex-btn--primary:hover {
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.geex-bot-list__item__actions .geex-btn i {
    font-size: 14px;
    margin: 0;
}

/* Bot Card Content */
.geex-bot-list__item__content {
    margin-top: 12px;
}

/* Enhanced Bot Prompt with Light Background */
.geex-bot-list__item__prompt {
    background: linear-gradient(135deg, #f8f9ff 0%, #f0f2ff 100%);
    border: 1px solid #e6e8ff;
    border-radius: 8px;
    padding: 12px 16px;
    margin: 0 0 12px 0;
    color: #495057;
    font-size: 14px;
    line-height: 1.5;
    position: relative;
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
}

.geex-bot-list__item__prompt::before {
    content: "💬";
    position: absolute;
    top: 8px;
    right: 12px;
    font-size: 16px;
    opacity: 0.6;
}

.geex-bot-list__item__prompt:hover {
    background: linear-gradient(135deg, #f0f2ff 0%, #e8ebff 100%);
    border-color: #d4d8ff;
}

/* Bot Meta Information */
.geex-bot-list__item__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
}

.geex-bot-list__item__date {
    color: #6c757d;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.geex-bot-list__item__date i {
    font-size: 14px;
    opacity: 0.7;
}

/* Empty State */
.geex-bot-list__empty {
    text-align: center;
    padding: 40px 20px;
    color: #6c757d;
}

.geex-bot-list__empty i {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
    color: #667eea;
}

.geex-bot-list__empty p {
    margin: 0;
    font-size: 16px;
    line-height: 1.5;
}

/* Responsive Design */
@media (max-width: 768px) {
    .geex-bot-list__item {
        padding: 16px;
    }
    
    .geex-bot-list__item__header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .geex-bot-list__item__actions {
        align-self: flex-end;
    }
    
    .geex-bot-list__item__title {
        padding-right: 0;
    }
    
    .geex-bot-list__item__meta {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Animation for new bots */
@keyframes fadeInBot {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.geex-bot-list__item.new-bot {
    animation: fadeInBot 0.5s ease;
}

/* Focus styles for accessibility */
.geex-bot-list__item__actions .geex-btn:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}
