/* My Bots Styles */
.mybots-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 32px 24px;
}

/* Section Styling */
.mybots-section {
    margin-bottom: 48px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--border-primary);
}

.section-title {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-title i {
    color: var(--primary-color);
}

/* Slot Management */
.slot-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.slot-counter {
    font-size: 14px;
    color: var(--text-muted);
    background: var(--surface-secondary);
    padding: 8px 16px;
    border-radius: 20px;
    border: 1px solid var(--border-primary);
}

.buy-slots-btn {
    background: var(--secondary-color) !important;
    border: 1px solid var(--secondary-color) !important;
    color: white !important;
}

.buy-slots-btn:hover {
    background: var(--secondary-hover) !important;
    transform: translateY(-1px);
}

.purchased-info {
    display: flex;
    align-items: center;
}

.purchased-counter {
    font-size: 14px;
    color: var(--text-muted);
    background: var(--surface-secondary);
    padding: 8px 16px;
    border-radius: 20px;
    border: 1px solid var(--border-primary);
}

/* Bot Cards */
.created-bot-card, .purchased-bot-card {
    position: relative;
}

.created-bot-card .bot-description {
    display: none; /* User-created bots don't show descriptions */
}

.purchased-bot-card .bot-description {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 16px;
}

/* Purchase Badges */
.purchase-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: var(--primary-color);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}

.purchase-badge.marketplace-badge {
    background: var(--secondary-color);
}

/* Status Tags */
.status-draft {
    background: var(--warning-color) !important;
    color: white !important;
}

.status-active {
    background: var(--success-color) !important;
    color: white !important;
}

/* Bot Actions */
.bot-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.dashboard-btn {
    background: var(--primary-color) !important;
    border: 1px solid var(--primary-color) !important;
    color: white !important;
}

.dashboard-btn:hover {
    background: var(--primary-hover) !important;
    transform: translateY(-1px);
}

.config-btn {
    background: var(--surface-tertiary) !important;
    border: 1px solid var(--border-primary) !important;
    color: var(--text-secondary) !important;
}

.config-btn:hover {
    background: var(--hover-secondary) !important;
    border-color: var(--primary-color) !important;
    color: var(--primary-color) !important;
}

/* Create New Bot Card */
.create-bot-card {
    background: linear-gradient(135deg, var(--hover-secondary), var(--surface-primary));
    border: 2px dashed var(--primary-color);
    text-align: center;
    padding: 32px 24px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.create-bot-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 25px 50px var(--shadow-medium);
    border-style: solid;
}

.create-bot-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.create-bot-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: white;
    margin-bottom: 8px;
}

.create-bot-card h3 {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.create-bot-description {
    color: var(--text-muted);
    font-size: 16px;
    line-height: 1.5;
    margin: 0;
    max-width: 280px;
}

.create-new-bot-btn {
    margin-top: 8px;
    background: var(--primary-color) !important;
    border: 1px solid var(--primary-color) !important;
    color: white !important;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 500;
}

.create-new-bot-btn:hover {
    background: var(--primary-hover) !important;
    transform: translateY(-2px);
}

/* Slot Limit Card */
.slot-limit-card {
    background: linear-gradient(135deg, var(--surface-secondary), var(--surface-primary));
    border: 2px solid var(--border-primary);
    text-align: center;
    padding: 32px 24px;
    opacity: 0.8;
}

.slot-limit-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.slot-limit-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: white;
    margin-bottom: 8px;
}

.slot-limit-card h3 {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.slot-limit-description {
    color: var(--text-muted);
    font-size: 16px;
    line-height: 1.5;
    margin: 0;
    max-width: 280px;
}

.buy-slots-btn-card {
    margin-top: 8px;
    background: var(--secondary-color) !important;
    border: 1px solid var(--secondary-color) !important;
    color: white !important;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 500;
}

.buy-slots-btn-card:hover {
    background: var(--secondary-hover) !important;
    transform: translateY(-2px);
}

/* Empty Purchased Card */
.empty-purchased-card {
    background: var(--surface-secondary);
    border: 1px solid var(--border-primary);
    text-align: center;
    padding: 32px 24px;
    opacity: 0.8;
}

.empty-purchased-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.empty-purchased-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: white;
    margin-bottom: 8px;
}

.empty-purchased-card h3 {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.empty-purchased-description {
    color: var(--text-muted);
    font-size: 16px;
    line-height: 1.5;
    margin: 0;
    max-width: 320px;
}

.empty-purchased-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

.browse-marketplace-btn, .browse-templates-btn {
    background: var(--surface-tertiary) !important;
    border: 1px solid var(--border-primary) !important;
    color: var(--text-secondary) !important;
}

.browse-marketplace-btn:hover, .browse-templates-btn:hover {
    background: var(--hover-secondary) !important;
    border-color: var(--primary-color) !important;
    color: var(--primary-color) !important;
}

/* Modal Specific Styles */
#buy-slots-modal .modal-content,
#create-bot-modal .modal-content,
#bot-dashboard-modal .modal-content {
    max-width: 700px;
    width: 90%;
}

/* Slots Purchase Modal */
.slots-purchase-info {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.current-slots-info h4,
.slots-options h4,
.slots-benefits h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 12px 0;
}

.slots-display {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--surface-secondary);
    padding: 16px;
    border-radius: 8px;
}

.slots-display i {
    color: var(--primary-color);
    font-size: 20px;
}

.slots-text {
    font-weight: 500;
    color: var(--text-primary);
}

.slot-option {
    border: 2px solid var(--border-primary);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.slot-option:hover {
    border-color: var(--primary-color);
    background: var(--hover-secondary);
}

.slot-option.selected {
    border-color: var(--primary-color);
    background: var(--hover-secondary);
}

.slot-option.recommended {
    border-color: var(--secondary-color);
    background: linear-gradient(135deg, var(--hover-secondary), var(--surface-primary));
}

.recommended-badge {
    position: absolute;
    top: -8px;
    right: 16px;
    background: var(--secondary-color);
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.slot-option-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.slot-count {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
}

.slot-price {
    font-size: 24px;
    font-weight: 700;
    color: var(--secondary-color);
}

.slot-description {
    color: var(--text-muted);
    margin-bottom: 4px;
}

.slot-total {
    color: var(--text-secondary);
    font-weight: 500;
}

.slots-benefits ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.slots-benefits li {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 0;
    color: var(--text-secondary);
}

.slots-benefits li i {
    color: var(--primary-color);
}

/* Create Bot Modal */
.avatar-selection {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
    margin-top: 8px;
}

.avatar-option {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--surface-secondary);
    border: 2px solid var(--border-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.avatar-option:hover {
    border-color: var(--primary-color);
    background: var(--hover-secondary);
}

.avatar-option.selected {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: white;
}

.avatar-option i {
    font-size: 20px;
}

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

.template-option {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    border: 2px solid var(--border-primary);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.template-option:hover {
    border-color: var(--primary-color);
    background: var(--hover-secondary);
}

.template-option.selected {
    border-color: var(--primary-color);
    background: var(--hover-secondary);
}

.template-icon {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    background: var(--surface-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--primary-color);
}

.template-info h5 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 4px 0;
}

.template-info p {
    font-size: 14px;
    color: var(--text-muted);
    margin: 0;
}

/* Dashboard Modal */
.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.stat-card {
    background: var(--surface-secondary);
    border-radius: 8px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.stat-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
}

.stat-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
}

.stat-label {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dashboard-actions {
    margin-bottom: 24px;
}

.dashboard-actions h4,
.dashboard-status h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 12px 0;
}

.action-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
}

.dashboard-action {
    background: var(--surface-tertiary) !important;
    border: 1px solid var(--border-primary) !important;
    color: var(--text-secondary) !important;
    padding: 12px 16px;
    text-align: center;
}

.dashboard-action:hover {
    background: var(--hover-secondary) !important;
    border-color: var(--primary-color) !important;
    color: var(--primary-color) !important;
}

.status-info {
    background: var(--surface-secondary);
    border-radius: 8px;
    padding: 16px;
}

.status-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-primary);
}

.status-item:last-child {
    border-bottom: none;
}

.status-label {
    color: var(--text-muted);
    font-weight: 500;
}

.status-value {
    color: var(--text-primary);
    font-weight: 600;
}

.status-value.online {
    color: var(--success-color);
}

/* Responsive Design */
@media (max-width: 768px) {
    .section-header {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
    }
    
    .slot-info {
        justify-content: space-between;
    }
    
    .bot-actions {
        justify-content: center;
    }
    
    .bot-actions .btn-small {
        flex: 1;
        min-width: 100px;
    }
    
    .avatar-selection {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .dashboard-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .action-buttons {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .dashboard-stats {
        grid-template-columns: 1fr;
    }
    
    .slot-option-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}